search-order.vue 22 KB

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