search-order.vue 23 KB

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