search-order.vue 25 KB

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