search-order.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. <template>
  2. <view class="search-container">
  3. <!-- <or-search :theme="themeClass" @getSearchText="getSearchText"></or-search> -->
  4. <view class="search-main">
  5. <view class="search">
  6. <view class="search-input">
  7. <text class="iconfont icon-iconfonticonfontsousuo1"></text>
  8. <input maxlength="20" focus type="text" value="" confirm-type="search" @focus="onFocus" @input="onShowClose" @confirm="subMitSearch()" placeholder="请输入商品关键词" v-model.trim="searchInputVal"/>
  9. <text class="iconfont icon-shanchu1" v-if="isShowClose" @click="delInputText()"></text>
  10. </view>
  11. <view class="search-btn" @click="subMitSearch()">搜索</view>
  12. </view>
  13. </view>
  14. <view class="search-container-history" v-if="!isShowWrapper">
  15. <view :class="'s-' + themeClass" v-if="serachRecordList.length>0">
  16. <view class="header">
  17. 搜索历史
  18. <text class="iconfont icon-shanchu" @click="delhistory"></text>
  19. </view>
  20. <view class="list">
  21. <view v-for="(item,index) in serachRecordList" :key="index" @click="keywordsClick(item.searchWord)">{{item.searchWord}}</view>
  22. </view>
  23. </view>
  24. </view>
  25. <view class=" order-container" v-if="isShowWrapper" :style="{'overflow':(showSkeleton? 'hidden' : 'auto'),'height': (showSkeleton? windowHeight + 'px' : 'auto')}">
  26. <scroll-view class="tui-skeleton" @scrolltolower="scrolltolower" scroll-y >
  27. <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
  28. <!-- 空白页 -->
  29. <empty v-if="isShowEmpty" :navbarHeight="navbarHeight"></empty>
  30. <!-- 列表 -->
  31. <view v-else class="tui-order-content">
  32. <view class="tui-order-item" v-for="(order,orderIndex) in orderList" :key="orderIndex" @click.stop="detail(order.orderID)">
  33. <view class="order-title">
  34. <view class="order-title-t">
  35. <view class="order-title-num tui-skeleton-fillet">订单号:{{order.orderNo}}</view>
  36. <view class="order-title-tip tui-skeleton-fillet">{{orderStateExp(order.status)}}</view>
  37. </view>
  38. <view class="order-title-b">下单时间:{{order.orderTime}}</view>
  39. </view>
  40. <block v-for="(shop,index) in order.shopOrderList" :key="index">
  41. <view class="goods-title">
  42. <view class="title-logo tui-skeleton-fillet"><image :src="shop.shopLogo" mode=""></image></view>
  43. <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
  44. </view>
  45. <view class="goods-item" v-for="(pros,prosIndex) in shop.cmOrderProducts" :key="prosIndex">
  46. <view class="goods-pros-t">
  47. <view class="pros-img tui-skeleton-fillet"><image :src="pros.productImage" alt="" /></view>
  48. <view class="pros-product">
  49. <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
  50. <view class="productspec tui-skeleton-fillet">规格:{{pros.productUnit}}</view>
  51. <view class="productprice">
  52. <view class="price tui-skeleton-fillet">
  53. <text>¥{{pros.price.toFixed(2)}}</text>
  54. </view>
  55. <view class="count tui-skeleton-fillet">
  56. <text class="small">x</text>{{pros.num}}
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </block>
  63. <view class="order-footer">
  64. <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{orderPriceToFixed(order.discountFee)}}</view>
  65. <view class="order-footer-bot">
  66. <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
  67. <view class="money tui-skeleton-fillet">合计:¥{{orderPriceToFixed(order.payableAmount)}}</view>
  68. </view>
  69. </view>
  70. <!-- 底部button -->
  71. <order-button ref="orderButton"
  72. :status="order.status"
  73. :orderID="order.orderID"
  74. @buttonConfirm="handButtonConfirm">
  75. </order-button>
  76. </view>
  77. <!--加载loadding-->
  78. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  79. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
  80. <!--加载loadding-->
  81. </view>
  82. </view>
  83. </scroll-view>
  84. </view>
  85. <!-- 分享弹窗 -->
  86. <share-alert v-if="isShareModal"
  87. :orderID="btnoRderID"
  88. @shareConfirm ='onShareAppMessage'>
  89. </share-alert>
  90. <!-- 删除订单弹窗 -->
  91. <model-alert v-if="isShowDelModal"
  92. :alertText='alertText'
  93. :alertType ='alertType'
  94. @btnConfirm ='handBtnDetele'>
  95. </model-alert>
  96. <!-- 取消订单弹窗 -->
  97. <cancel-alert v-if="isCenceModal"
  98. :cenceAlertText='cenceAlertText'
  99. @cenceConfirm ='handCenceConfirm'>
  100. </cancel-alert>
  101. <!-- 透明模态层 -->
  102. <modal-layer v-if='isModalLayer'></modal-layer>
  103. </view>
  104. </template>
  105. <script>
  106. import orSearch from '@/components/uni-search/or-search.vue'
  107. import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
  108. import tuiNomore from "@/components/tui-components/nomore/nomore"
  109. import orderButton from '@/components/module/orderDetails/orderListButton' //按钮
  110. import modalLayer from "@/components/modal-layer"
  111. import empty from "@/components/empty";
  112. import shareAlert from '@/components/module/modelAlert/shareAlert' //分享弹窗
  113. import modelAlert from '@/components/module/modelAlert/modelAlert' //删除弹窗
  114. import cancelAlert from '@/components/module/modelAlert/cancelAlert' //取消弹窗
  115. import authorize from '@/config/authorize.js'
  116. export default {
  117. components: {
  118. orSearch,
  119. tuiLoadmore,
  120. tuiNomore,
  121. orderButton,
  122. empty,
  123. shareAlert,
  124. modelAlert,
  125. cancelAlert
  126. },
  127. data() {
  128. return {
  129. themeClass: 'block',
  130. searchInputVal:'',
  131. isShowClose:false, //是否显示清空输入框图标
  132. isSearchHistory:false, //是都显示搜索历史
  133. serachRecordList:[],
  134. isShowWrapper:false,
  135. isModallayer:false,
  136. isShowEmpty:false,
  137. windowHeight: '',
  138. showSkeleton: true,
  139. userID:0,
  140. orderList: [],
  141. btnoRderID: 0, //点击按钮传入的的订单ID
  142. pageNum: 1, //页数
  143. pageSize: 10, //条数
  144. scrollTop: 0,
  145. deteleType:'',
  146. skeletonShow: true,
  147. isShareModal: false,//控制分享弹窗
  148. isCenceModal: false,//控制取消订单弹窗
  149. isShowDelModal: false,//控制删除订单弹窗
  150. isModalLayer: false,
  151. loadding: false,
  152. pullUpOn: true,
  153. hasNextPage: false,
  154. pullFlag: true,
  155. navbarHeight:'',
  156. alertText: '',
  157. alertType:'',
  158. cenceAlertText: '确认取消该订单吗?',
  159. nomoreText: '上拉显示更多',
  160. }
  161. },
  162. created() {
  163. let self = this;
  164. self.$api.getStorage().then((resolve) =>{
  165. self.userID = resolve.userID
  166. })
  167. self.setScrollHeight();
  168. self.$api.loginStatus().then((resolveData) => {
  169. self.loginStatus = resolveData;
  170. });
  171. },
  172. onLoad() {
  173. this.initGetSerachRecord()
  174. },
  175. methods:{
  176. subMitSearch() {
  177. if (this.searchInputVal == '') {
  178. this.$util.msg('请输入商品关键词',2000);
  179. }else{
  180. this.commodityList =[]
  181. this.getOrderDatainit()
  182. }
  183. },
  184. initGetSerachRecord(){
  185. authorize.getCode('weixin').then(wechatcode =>{
  186. // console.log(wechatcode);
  187. this.$api.get('/search/history',{organizeID:this.userOrganizeID,code:wechatcode},
  188. response =>{
  189. // console.log(response);
  190. if(response.code == '1'){
  191. this.serachRecordList = response.data
  192. if(this.serachRecordList.length>0){
  193. this.isSearchHistory = true
  194. }else{
  195. this.isSearchHistory = false
  196. }
  197. }else{
  198. this.$util.msg(response.msg,2000)
  199. }
  200. }
  201. )
  202. })
  203. },
  204. onShowClose () { //输入框失去焦点时触发
  205. this.inputEmpty(this.searchInputVal)
  206. },
  207. onFocus () { //输入框获取焦点时触发
  208. this.inputEmpty(this.searchInputVal)
  209. this.initGetSerachRecord()
  210. },
  211. delInputText () { //清除输入框内容
  212. this.searchInputVal = ''
  213. this.isShowClose = false
  214. this.isShowWrapper = false
  215. this.inputEmpty(this.searchInputVal)
  216. this.initGetSerachRecord()
  217. },
  218. keywordsClick (item) { //关键词搜索与历史搜索
  219. this.searchInputVal = item;
  220. this.isShowClose = true;
  221. this.subMitSearch();
  222. },
  223. delhistory () { //清空历史记录
  224. this.alertType = 'delsearch'
  225. this.alertText ='确定删除全部历史记录?'
  226. this.isShowDelModal = true;
  227. },
  228. confirmDetele() {
  229. authorize.getCode('weixin').then(wechatcode =>{
  230. // console.log(wechatcode);
  231. this.$api.get('/search/deleteOrderRecord',{organizeID:this.userOrganizeID,code:wechatcode},
  232. response =>{
  233. // console.log(response);
  234. if(response.code == '1'){
  235. this.serachRecordList=[];
  236. this.isShowDelModal = false;
  237. this.isSearchHistory = false
  238. }else{
  239. this.$util.msg(response.msg,2000)
  240. }
  241. }
  242. )
  243. })
  244. },
  245. inputEmpty(val){
  246. this.isShowWrapper = false
  247. if(val != ''){
  248. this.isShowClose = true
  249. }else{
  250. this.isShowClose = false
  251. }
  252. },
  253. getOrderDatainit(index,source){
  254. /**
  255. * @订单初始化加载 仅加载第一页码
  256. * @param:code(微信返回的用户code)
  257. * @param:searchWord(搜索关键词)
  258. * @param:userID(用户ID)
  259. * @param:index(页码数)
  260. * @param:pageSize(每页条数)
  261. * @param:organizeID(全局变量组织ID)
  262. */
  263. authorize.getCode('weixin').then(wechatcode =>{
  264. this.$api.getStorage().then((resolve) =>{
  265. this.userID = resolve.userID
  266. let params = {code:wechatcode,searchWord:this.searchInputVal,userID:this.userID,index:1,pageSize:this.pageSize,organizeID:this.userOrganizeID};
  267. this.$api.lodingGet('/search/order',params,
  268. response => {
  269. if(response.code === '1'){
  270. this.isShowWrapper = true
  271. const _responseData = response.data.results;
  272. if(_responseData && _responseData.length > 0){
  273. let filrerData = _responseData.filter(item=>{
  274. //添加不同状态下订单的表现形式
  275. item = Object.assign(item, this.orderStateExp(item.state));
  276. return item;
  277. });
  278. this.orderList =[];
  279. filrerData.forEach(item=>{
  280. this.orderList.push(item);
  281. })
  282. this.hasNextPage = response.data.hasNextPage;
  283. if(this.hasNextPage){
  284. this.pullUpOn = false
  285. this.nomoreText = '上拉显示更多'
  286. }else{
  287. if(this.orderList.length < 2){
  288. this.pullUpOn = true
  289. }else{
  290. this.pullUpOn = false
  291. this.nomoreText = '已至底部'
  292. }
  293. }
  294. this.isShowEmpty = false
  295. }else{
  296. this.isShowEmpty = true
  297. }
  298. }else{
  299. this.$util.msg(response.msg,2000);
  300. }
  301. }
  302. )
  303. })
  304. })
  305. },
  306. getOnReachBottomData(index){//上拉加载
  307. this.pageNum+=1
  308. let params = {code:wechatcode,searchWord:this.searchInputVal,userID:this.userID,index:1,pageSize:this.pageSize,organizeID:this.userOrganizeID};
  309. this.$api.get('/search/order',params,
  310. response => {
  311. if(response.code === '1'){
  312. let resData = response.data.results
  313. this.hasNextPage = response.data.hasNextPage;
  314. this.orderList = this.orderList.concat(resData)
  315. this.pullFlag = false;// 防上拉暴滑
  316. setTimeout(()=>{this.pullFlag = true;},500)
  317. if(this.hasNextPage){
  318. this.pullUpOn = false
  319. this.nomoreText = '上拉显示更多'
  320. }else{
  321. this.loadding = false
  322. this.pullUpOn = false
  323. this.nomoreText = '已至底部'
  324. }
  325. }else{
  326. this.$util.msg(response.msg,2000);
  327. }
  328. }
  329. )
  330. },
  331. scrolltolower() {
  332. if(this.hasNextPage){
  333. this.loadding = true
  334. this.pullUpOn = true
  335. this.getOnReachBottomData();
  336. }
  337. },
  338. detail(id) {//订单详情跳转
  339. console.log(id)
  340. this.isModalLayer = true;
  341. this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderID=${id}`)
  342. },
  343. handBtnDetele(e){
  344. console.log(e)
  345. if(e == 'delsearch'){
  346. this.confirmDetele()
  347. }else{
  348. this.handOrderDetele()
  349. }
  350. },
  351. handButtonConfirm(data) {//获取点击
  352. console.log('点击按钮的类型是',data);
  353. this.handShowAlert(data)
  354. this.btnoRderID = data.orderId
  355. },
  356. handShowAlert(data) {//执行
  357. switch(data.type){
  358. case 'delete':
  359. this.isShowDelModal = true;
  360. this.alertType = 'delorder'
  361. this.alertText ='确认删除订单吗?'
  362. break
  363. case 'cancel':
  364. this.isCenceModal = true;
  365. break
  366. case 'query':
  367. this.isModalLayer = true;
  368. this.$api.navigateTo('/pages/user/order/order-logistics?orderID='+data.orderId)
  369. break
  370. case 'confirm':
  371. this.handOrderConfirm(data.orderId);
  372. break
  373. }
  374. },
  375. handOrderConfirm (id){//确认收货
  376. this.$api.get('/order/affirm',{orderID:id},
  377. response => {
  378. if(response.code === '1'){
  379. this.$util.msg(response.msg,2000,true,'success');
  380. this.isShowDelModal = false
  381. setTimeout(() => {
  382. this.getOrderDatainit(this.currentTab)
  383. },2000)
  384. }else{
  385. this.$util.msg(response.msg,2000);
  386. }
  387. }
  388. )
  389. },
  390. handOrderDetele (){//删除订单
  391. this.$api.get('/order/delete',{orderID:this.btnoRderID},
  392. response => {
  393. if(response.code === '1'){
  394. this.$util.msg(response.msg,2000,true,'success');
  395. this.isShowDelModal = false
  396. setTimeout(() => {
  397. this.getOrderDatainit(this.currentTab)
  398. },2000)
  399. }else{
  400. this.$util.msg(response.msg,2000);
  401. }
  402. }
  403. )
  404. },
  405. handCenceConfirm (){//取消订单
  406. this.$api.get('/order/cancel',{orderID:this.btnoRderID},
  407. response => {
  408. if(response.code === '1'){
  409. this.$util.msg(response.msg,2000,true,'success');
  410. this.isCenceModal = false
  411. setTimeout(() => {
  412. this.getOrderDatainit(this.currentTab)
  413. },2000)
  414. }else{
  415. this.$util.msg(response.msg,2000);
  416. }
  417. }
  418. )
  419. },
  420. onShareAppMessage (res){//分享转发
  421. this.isShareModal = false
  422. if (res.from === 'button') {// 来自页面内转发按钮
  423. // console.log(res.target)
  424. }
  425. return {
  426. title: '您有新的分享订单,快来查看吧~',
  427. path: `/pages/user/order/orderShareLogin?orderID=${this.btnoRderID}&userID=${this.userID}`,
  428. imageUrl:'https://admin-b.caimei365.com/userfiles/1/images/photo/2020/02/%E5%88%86%E4%BA%AB%E7%95%8C%E9%9D%A2a%CC%8A%403x.png'
  429. }
  430. },
  431. //订单状态文字和颜色
  432. orderStateExp (state){
  433. let stateText = '',
  434. stateTextObject={
  435. 4:'交易完成',
  436. 5:'订单完成',
  437. 6:'已关闭',
  438. 7:'交易全退',
  439. 77:'交易全退',
  440. 11:'待付款待发货',
  441. 12:'待付款部分发货',
  442. 13:'待付款已发货',
  443. 21:'部分付款待发货',
  444. 22:'部分付款部分发货',
  445. 23:'部分付款已发货',
  446. 31:'已付款待发货',
  447. 32:'已付款部分发货',
  448. 33:'已付款已发货',
  449. 111:'待付款待发货',
  450. }
  451. Object.keys(stateTextObject).forEach(key => {
  452. if(key == state){
  453. stateText = stateTextObject[key]
  454. }
  455. })
  456. return stateText;
  457. },
  458. orderPriceToFixed (n){
  459. let price ='';
  460. price = n.toFixed(2);
  461. return price
  462. },
  463. setScrollHeight() {
  464. const {windowHeight, pixelRatio} = wx.getSystemInfoSync();
  465. this.windowHeight = windowHeight - 1;
  466. this.scrollHeight = windowHeight - 1;
  467. }
  468. },
  469. onPageScroll(e) {
  470. this.scrollTop = e.scrollTop;
  471. }
  472. }
  473. </script>
  474. <style lang="scss">
  475. @import "@/uni.scss";
  476. page{
  477. background-color: #F7F7F7 !important;
  478. }
  479. .search{
  480. width: 702rpx;
  481. height: 80rpx;
  482. padding: 12rpx 24rpx;
  483. border-bottom: 1px solid #F0F0F0;
  484. position: fixed;
  485. top: 0;
  486. left: 0;
  487. background: #FFFFFF;
  488. z-index: 999;
  489. .search-input{
  490. width: 448rpx;
  491. height: 80rpx;
  492. padding: 0 68rpx;
  493. line-height: 80rpx;
  494. border-radius: 40rpx;
  495. position: relative;
  496. background: #F0F0F0;
  497. float: left;
  498. .icon-iconfonticonfontsousuo1{
  499. font-size: 36rpx;
  500. color: #8A8A8A;
  501. position: absolute;
  502. left: 24rpx;
  503. z-index: 10;
  504. }
  505. .icon-shanchu1{
  506. font-size: 36rpx;
  507. color: #8A8A8A;
  508. position: absolute;
  509. right: 24rpx;
  510. top: 0;
  511. padding: 0 10rpx;
  512. z-index: 10;
  513. }
  514. input{
  515. width: 448rpx;
  516. height: 80rpx;
  517. background-color: #F0F0F0;
  518. font-size: 26rpx;
  519. }
  520. }
  521. .search-btn{
  522. width: 118rpx;
  523. height: 80rpx;
  524. line-height: 80rpx;
  525. color: $color-system;
  526. font-size: 30rpx;
  527. text-align: center;
  528. float: left;
  529. }
  530. .voice-icon{
  531. width: 36rpx;
  532. height: 36rpx;
  533. padding: 16rpx 20rpx 16rpx 0;
  534. position: absolute;
  535. left: 16rpx;
  536. top: 4rpx;
  537. z-index: 10;
  538. }
  539. }
  540. .search-container{
  541. padding-top: 106rpx;
  542. }
  543. .s-block{
  544. background: #FFFFFF;
  545. .header{
  546. font-size: 32rpx;
  547. padding:40rpx 24rpx 22rpx 24rpx;
  548. line-height: 42rpx;
  549. font-size: 30rpx;
  550. font-weight: bold;
  551. position: relative;
  552. .icon-shanchu{
  553. font-size: 36rpx;
  554. color: #333333;
  555. float: right;
  556. padding: 0 10rpx;
  557. z-index: 10;
  558. font-weight: normal;
  559. }
  560. }
  561. .list{
  562. display: flex;
  563. flex-wrap: wrap;
  564. padding-bottom: 40rpx;
  565. view{
  566. color: #8A8A8A;
  567. font-size: 24rpx;
  568. box-sizing: border-box;
  569. text-align: center;
  570. height: 48rpx;
  571. line-height: 48rpx;
  572. border-radius: 24rpx;
  573. margin:12rpx;
  574. padding:.0 30rpx;
  575. overflow: hidden;
  576. white-space: nowrap;
  577. text-overflow: ellipsis;
  578. background-color: #F3F3F3;
  579. }
  580. }
  581. }
  582. .s-circle{
  583. margin-top: 30rpx;
  584. .header{
  585. font-size: 32rpx;
  586. padding: 30rpx;
  587. border-bottom: 2rpx solid #F9F9F9;
  588. position: relative;
  589. image{
  590. width: 36rpx;
  591. height: 36rpx;
  592. padding: 10rpx;
  593. position: absolute;
  594. right: 40rpx;
  595. top: 24rpx;
  596. }
  597. }
  598. .list{
  599. display: flex;
  600. flex-wrap: wrap;
  601. padding: 0 30rpx 20rpx;
  602. view{
  603. padding: 8rpx 30rpx;
  604. margin: 20rpx 30rpx 0 0;
  605. font-size: 28rpx;
  606. color: #8A8A8A;
  607. background-color: #F7F7F7;
  608. box-sizing: border-box;
  609. text-align: center;
  610. border-radius: 20rpx;
  611. }
  612. }
  613. }
  614. .wanted-block{
  615. margin-top: 30rpx;
  616. .header{
  617. font-size: 32rpx;
  618. padding: 30rpx;
  619. }
  620. .list{
  621. display: flex;
  622. flex-wrap: wrap;
  623. view{
  624. width: 50%;
  625. color: #8A8A8A;
  626. font-size: 28rpx;
  627. box-sizing: border-box;
  628. text-align: center;
  629. padding: 20rpx 0;
  630. border-top: 2rpx solid #FFF;
  631. border-left: 2rpx solid #FFF;
  632. background-color: #F7F7F7;
  633. overflow: hidden;
  634. white-space: nowrap;
  635. text-overflow: ellipsis;
  636. }
  637. }
  638. }
  639. .wanted-circle{
  640. margin-top: 30rpx;
  641. .header{
  642. font-size: 32rpx;
  643. padding: 30rpx;
  644. }
  645. .list{
  646. display: flex;
  647. flex-wrap: wrap;
  648. padding: 0 30rpx 20rpx;
  649. view{
  650. padding: 8rpx 30rpx;
  651. margin: 20rpx 30rpx 0 0;
  652. font-size: 28rpx;
  653. color: #8A8A8A;
  654. background-color: #F7F7F7;
  655. box-sizing: border-box;
  656. text-align: center;
  657. border-radius: 20rpx;
  658. }
  659. }
  660. }
  661. .order-container {
  662. scroll-view {
  663. height: 100%;
  664. overflow: scroll;
  665. }
  666. }
  667. .container {
  668. padding-bottom: env(safe-area-inset-bottom);
  669. height: auto;
  670. position: relative;
  671. }
  672. .tui-order-content{
  673. width: 100%;
  674. height: auto;
  675. }
  676. .tui-order-list {
  677. width: 100%;
  678. position: relative;
  679. }
  680. .tui-order-item {
  681. display: flex;
  682. flex-direction: column;
  683. width: 702rpx;
  684. padding:20rpx 24rpx 0 24rpx;
  685. background: #fff;
  686. border-bottom: 20rpx solid #F7F7F7;
  687. }
  688. .order-title{
  689. width: 100%;
  690. height: auto;
  691. .order-title-t{
  692. width: 100%;
  693. height: 40rpx;
  694. float: left;
  695. font-size: $font-size-base;
  696. line-height: 40rpx;
  697. font-weight: bold;
  698. .order-title-num{
  699. float: left;
  700. text-align: left;
  701. color: $color-system;
  702. }
  703. .order-title-tip{
  704. float: right;
  705. text-align: right;
  706. color: #FF2A2A;
  707. }
  708. }
  709. .order-title-b{
  710. width: 100%;
  711. height: 40rpx;
  712. float: left;
  713. margin-top: 8rpx;
  714. font-size: $font-size-base;
  715. line-height: 40rpx;
  716. color: #999999;
  717. text-align: left;
  718. }
  719. }
  720. .goods-title{
  721. width: 100%;
  722. height: 48rpx;
  723. float: left;
  724. margin-top: 24rpx;
  725. .title-logo{
  726. width: 48rpx;
  727. height: 48rpx;
  728. float: left;
  729. image{
  730. width: 48rpx;
  731. height: 48rpx;
  732. }
  733. }
  734. .title-text{
  735. float: left;
  736. margin-left: 16rpx;
  737. font-size: $font-size-base;
  738. color: $text-color;
  739. text-align: left;
  740. line-height: 48rpx;
  741. font-weight: bold;
  742. }
  743. }
  744. .goods-item{
  745. width: 100%;
  746. height: auto;
  747. }
  748. .goods-pros-t{
  749. display: flex;
  750. align-items: center;
  751. width: 100%;
  752. height: 217rpx;
  753. padding:24rpx 0;
  754. .pros-img{
  755. width: 210rpx;
  756. height: 100%;
  757. border-radius: 10rpx;
  758. margin:0 26rpx 0 0;
  759. border:1px solid #f3f3f3;
  760. image{
  761. width: 100%;
  762. height: 100%;
  763. border-radius: 10rpx;
  764. }
  765. }
  766. }
  767. .pros-product{
  768. width: 468rpx;
  769. height: 100%;
  770. line-height: 36rpx;
  771. font-size: $font-size-sb;
  772. position: relative;
  773. .producttitle{
  774. width: 100%;
  775. display: inline-block;
  776. height: auto;
  777. text-overflow:ellipsis;
  778. display: -webkit-box;
  779. word-break: break-all;
  780. -webkit-box-orient: vertical;
  781. -webkit-line-clamp: 2;
  782. overflow: hidden;
  783. margin-bottom: 8rpx;
  784. }
  785. .productspec{
  786. height: 36rpx;
  787. color: #999999;
  788. }
  789. .productprice{
  790. height: 48rpx;
  791. position: absolute;
  792. width: 100%;
  793. bottom: 0;
  794. .price{
  795. line-height: 48rpx;
  796. font-size: $font-size-base;
  797. width: 48%;
  798. color: #FF2A2A;
  799. float: left;
  800. font-weight: bold;
  801. }
  802. .count{
  803. height: 100%;
  804. float: right;
  805. position: relative;
  806. .small{
  807. color: #666666;
  808. }
  809. }
  810. }
  811. }
  812. .order-footer{
  813. width: 100%;
  814. height: 78rpx;
  815. float: left;
  816. .order-footer-top{
  817. width: 100%;
  818. height: 34rpx;
  819. line-height: 34rpx;
  820. font-size: $font-size-sm;
  821. color: #999999;
  822. text-align: right;
  823. }
  824. .order-footer-bot{
  825. width: 100%;
  826. float: left;
  827. height: 48rpx;
  828. line-height: 48rpx;
  829. font-size: $font-size-base;
  830. font-weight: bold;
  831. color: $text-color;
  832. .count{
  833. width: 50%;
  834. float: left;
  835. text-align: left;
  836. }
  837. .money{
  838. width: 50%;
  839. float: right;
  840. text-align: right;
  841. }
  842. }
  843. }
  844. </style>