order.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  1. <template>
  2. <view class="pages">
  3. <u-navbar
  4. title="我的订单"
  5. :placeholder="true"
  6. :autoBack="false"
  7. @leftClick="leftClick"
  8. :safeAreaInsetTop="true"
  9. >
  10. </u-navbar>
  11. <view class="tabs-wrap">
  12. <u-tabs
  13. :list="tabsList"
  14. lineColor="#EE0D0D"
  15. :current="tabsCurrent"
  16. :activeStyle="{color:'#EE0D0D','font-weight': '600','font-size':'30rpx'}"
  17. :inactiveStyle="{color:'#7F7F7F'}"
  18. itemStyle="width:20%;box-sizing:border-box;padding:24rpx"
  19. @click="tabsClick"></u-tabs>
  20. </view>
  21. <view class="page-wrap">
  22. <mescroll-body class="" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
  23. <view class="order">
  24. <view v-for="(item) in orderListWithClass" class="order-item"
  25. :class="item.class"
  26. @click="goOrderDetails(item)" :key="item.id">
  27. <view class="top u-flex u-row-between">
  28. <text>{{item.theatreName}}</text>
  29. <text>{{item.status|filterOrderState}}</text>
  30. </view>
  31. <view class="info u-flex u-col-top">
  32. <image class="img" :src="item.performImg"></image>
  33. <view class="text">
  34. <view class="name">{{item.performName}} - {{item.goodsName}}</view>
  35. <view class="time">{{item.performDate}} {{item.performTimeStart}}</view>
  36. <!-- <view class="position">{{item.performDate}}</view> -->
  37. <view class="statistics">
  38. <text>共{{item.viewerNum}}张</text>
  39. <text class="label">合计:</text>
  40. <text class="price">¥{{item.realPrice}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="btn-wrap u-flex u-row-right">
  45. <view
  46. class="btn"
  47. :class="btn.class"
  48. @click.stop="clickEven(btn.fun, item)"
  49. v-for="(btn, index) in statusBtn[item.status].filter(b => !b.condition || b.condition(item))"
  50. :key="index"
  51. >
  52. {{ btn.name }}
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </mescroll-body>
  58. </view>
  59. <u-toast ref="uToast"></u-toast>
  60. <tabbar :tabbarIndexProps="1" />
  61. </view>
  62. </template>
  63. <script>
  64. import tabbar from "../components/tabbar.vue";
  65. // 引入mescroll-mixins.js
  66. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  67. // #ifdef H5
  68. import wxH5 from "weixin-jsapi";
  69. // #endif
  70. export default {
  71. mixins: [MescrollMixin], // 使用mixin
  72. components:{
  73. tabbar
  74. },
  75. data() {
  76. return {
  77. staticUrl:this.$commonConfig.staticUrl,
  78. goodsKey:1,
  79. hasfetch:false,
  80. tabsCurrent:1,
  81. tabsList:[
  82. {name:'全部',status:null,},
  83. {name:'待支付',status:'0',badge:{isDot:false,value:null}},
  84. {name:'待使用',status:'3',badge:{isDot:false,value:null}},
  85. {name:'已完成',status:'7',badge:{isDot:false,value:null}},
  86. {name:'售后',status:'4,5,6',badge:{isDot:false,value:null}}
  87. ],
  88. status:'',
  89. dataList:[],
  90. statusBtn:{// 状态(0待支付,2超时取消,3支付完成,待使用,4退款中,5己退款,6退款失败,7己使用,8己超期 9关闭)
  91. 0:[{name:'取消订单',fun:'cancelOrder',class:''},{name:'去支付',fun:'pay',class:'red'}],
  92. 1:[],
  93. 2:[],
  94. 3:[{name:'改签',fun:'rebook',class:'',condition: (item) => item.allowReSubmit === 1},{name:'出示二维码',fun:'goOrderDetails',class:'red'}],
  95. //,{name:'评价',fun:'evaluate',class:'green'}
  96. 4:[],
  97. 5:[],
  98. 6:[],
  99. // ,{name:'查看评价',fun:'viewEvaluate',class:'green'}
  100. 7:[],
  101. 8:[],
  102. 9:[],
  103. 10:[]
  104. },
  105. orderBadge:{
  106. noPayNum:0,
  107. deliverNum:0,
  108. collectNum:0,
  109. commentNum:0,
  110. refundNum:0,
  111. },
  112. templateIdList:[],//微信小程序订阅消息
  113. }
  114. },
  115. computed: {
  116. orderListWithClass() {
  117. return this.dataList.map(order => {
  118. // let spliceData = order.detailList.splice(0,2);
  119. // let moreData = order.detailList.splice(2,order.detailList.length);
  120. // let moreData = order.detailList.slice(2);
  121. // if(order.detailList.length>2){
  122. // moreData = order.detailList;
  123. // }
  124. return {
  125. ...order,
  126. // spliceData:spliceData,
  127. // moreData:moreData,
  128. // showMore:false,
  129. class: {
  130. 0: 'status-0',
  131. 1: 'status-1',
  132. 2: 'status-2',
  133. 3: 'status-3',
  134. 4: 'status-4',
  135. 5: 'status-5',
  136. 6: 'status-6',
  137. 7: 'status-7',
  138. 8: 'status-8'
  139. }[order.status] || ''
  140. }
  141. })
  142. }
  143. },
  144. onLoad(page) {
  145. // console.log('page',page);
  146. const status = page.status;
  147. const index = this.tabsList.findIndex(item => item.status === status);
  148. this.tabsCurrent = index>=0?index:0;
  149. this.getTemplateIdList();//获取模板列表
  150. },
  151. onShow() {
  152. setTimeout(()=>{
  153. this.hasfetch&&this.reloadList()
  154. },500);
  155. // this.statisticsOrder();
  156. },
  157. methods: {
  158. leftClick(){
  159. uni.reLaunch({url: '/center/center'});
  160. },
  161. /*下拉刷新的回调, 重置列表为第一页 (此处可删,mixins已默认)
  162. downCallback(){
  163. this.mescroll.resetUpScroll();
  164. },
  165. /*上拉加载的回调*/
  166. upCallback(page) {
  167. // this.statisticsOrder();
  168. // 此处可以继续请求其他接口
  169. // if(page.num == 1){
  170. // // 请求其他接口...
  171. // }
  172. // 如果希望先请求其他接口,再触发upCallback,可参考以下写法
  173. // if(!this.hasTypeId){
  174. // this.shopNewsType();
  175. // return // 此处return,先获取xx
  176. // }
  177. let pageNum = page.num; // 页码, 默认从1开始
  178. let pageSize = page.size; // 页长, 默认每页10条
  179. let params = {
  180. source:1,
  181. pageNum : page.num,
  182. pageSize : page.size,
  183. statusIn : this.tabsList[this.tabsCurrent]?.status||'',
  184. userid:this.vuex_member_info.id
  185. // status : this.tabsList[this.tabsCurrent].status,
  186. }
  187. // console.log('this.params',params);
  188. this.$u.api.orderList(params).then(data => {
  189. this.hasfetch = true;
  190. console.log('data',JSON.parse(JSON.stringify(data)));
  191. // 接口返回的当前页数据列表 (数组)
  192. let curPageData = data.data.rows;
  193. // console.log('curPageData',JSON.parse(JSON.stringify(curPageData)));
  194. // 接口返回的当前页数据长度 (如列表有26个数据,当前页返回8个,则curPageLen=8)
  195. let curPageLen = curPageData.length;
  196. // 接口返回的总页数 (如列表有26个数据,每页10条,共3页; 则totalPage=3)
  197. // let totalPage = data.data.data.totalPage;
  198. // 接口返回的总数据量(如列表有26个数据,每页10条,共3页; 则totalSize=26)
  199. let totalSize = data.data.total;
  200. // 接口返回的是否有下一页 (true/false)
  201. // let hasNext = data.xxx;
  202. // console.log('totalPage',totalPage,'curPageLen',curPageLen);
  203. //设置列表数据
  204. if(page.num == 1) this.dataList = []; //如果是第一页需手动置空列表
  205. this.dataList = this.dataList.concat(curPageData); //追加新数据
  206. // 请求成功,隐藏加载状态
  207. //方法一(推荐): 后台接口有返回列表的总页数 totalPage
  208. // this.mescroll.endByPage(curPageLen, totalPage);
  209. //方法二(推荐): 后台接口有返回列表的总数据量 totalSize
  210. this.mescroll.endBySize(curPageLen, totalSize);
  211. }).catch(err => {
  212. this.mescroll.endErr()
  213. console.log(err)
  214. });
  215. },
  216. /*若希望重新加载列表,只需调用此方法即可(内部会自动page.num=1,再主动触发up.callback)*/
  217. reloadList() {
  218. this.mescroll.resetUpScroll();
  219. },
  220. tabsClick(item){
  221. // this.status = item.status;
  222. this.tabsCurrent = item.index;
  223. this.reloadList()
  224. // console.log('item',item);
  225. },
  226. goOrderDetails(item){
  227. uni.$u.route('/center/orderdetails', {
  228. id: item.id
  229. });
  230. },
  231. toggleMore(item,index){
  232. // console.log('toggleMore',item);
  233. this.orderListWithClass[index].showMore = !this.orderListWithClass[index].showMore
  234. this.goodsKey++;
  235. },
  236. clickEven(fun,item){
  237. // console.log('fun',fun);
  238. let funObj = {
  239. pay: this.pay,
  240. goOrderDetails:this.goOrderDetails,
  241. evaluate:this.evaluate,
  242. refund:this.refund,
  243. cancelOrder:this.cancelOrder,
  244. viewRefund:this.viewRefund,
  245. confirmReceipt:this.confirmReceipt,
  246. viewEvaluate:this.viewEvaluate,
  247. rebook:this.rebook,
  248. };
  249. // console.log('funObj[fun]',funObj[fun]);
  250. if (fun in funObj) {
  251. funObj[fun](item);
  252. }
  253. },
  254. getTemplateIdList(){
  255. this.$u.api.templateIdList({templateLabel:'order_pay'}).then(res=>{
  256. console.log('getTemplateIdList',res.data);
  257. this.templateIdList = res.data.list.map(item=>{
  258. return item.templateId
  259. });
  260. // if(this.templateIdList.length>0){
  261. // this.templateEven();
  262. // }
  263. }).catch(err=>{
  264. console.log('getTemplateIdList',err);
  265. })
  266. },
  267. pay(item){
  268. console.log('pay',item);
  269. // #ifdef H5
  270. this.gotoPay(item.id);
  271. // #endif
  272. // #ifdef MP
  273. this.setTemplate(item.id);
  274. // #endif
  275. // uni.$u.route('/shopping/pay', {
  276. // orderId: item.id,
  277. // // openid: that.vuex_wechatOpenid,
  278. // payAmount:item.orderPrice
  279. // });
  280. },
  281. evaluate(item){
  282. // console.log('logistics',item);
  283. uni.$u.route('/shopping/evaluate', {
  284. id: item.id
  285. });
  286. },
  287. comment(orderId,orderDetailId,goodsId){
  288. uni.$u.route('/shopping/addcomment', {
  289. orderId,
  290. orderDetailId,
  291. goodsId
  292. });
  293. },
  294. viewComment(orderDetailId,goodsId,goods){
  295. uni.$u.route('/shopping/viewcomment', {
  296. orderDetailId,
  297. goodsId,
  298. goods:JSON.stringify(goods)
  299. });
  300. },
  301. refund(item){
  302. // console.log('logistics',item);
  303. uni.$u.route('/shopping/refund', {
  304. id: item.id
  305. });
  306. },
  307. cancelOrder(item){
  308. let that = this;
  309. uni.showModal({
  310. title: '提示',
  311. content: '确认取消吗!',
  312. success: res => {
  313. if (res.confirm) {
  314. this.$u.api.cancelOrder({orderId:item.id}).then(res=>{
  315. this.$refs.uToast.show({
  316. message:res.msg,
  317. complete() {
  318. that.reloadList();
  319. }
  320. });
  321. // uni.$u.toast(res.msg);
  322. console.log('res',res.data);
  323. }).catch(err=>{
  324. console.log('cancelOrder',err);
  325. })
  326. }
  327. }
  328. });
  329. // console.log('logistics',item);
  330. },
  331. viewRefund(item){
  332. uni.$u.route('/center/viewRefund', {
  333. orderId: item.id
  334. });
  335. },
  336. confirmReceipt(item){
  337. let that = this;
  338. uni.showModal({
  339. title: '提示',
  340. content: '确认收货吗!',
  341. success: res => {
  342. if (res.confirm) {
  343. this.$u.api.confirmReceipt({orderId:item.id}).then(res=>{
  344. uni.showToast({
  345. title:res.msg,
  346. duration:2000,
  347. complete() {
  348. that.reloadList();
  349. }
  350. });
  351. console.log('res',res.data);
  352. }).catch(err=>{
  353. console.log('confirmReceipt',err);
  354. })
  355. }
  356. }
  357. })
  358. },
  359. viewEvaluate(item){
  360. uni.$u.route('/shopping/orderdetails', {
  361. id: item.id
  362. });
  363. },
  364. rebook(item){
  365. // console.log('rebook',item);
  366. uni.$u.route('pages/ticketlist',{performId:item.performId,orderId:item.id,fromPage:'rebook'})
  367. },
  368. // 设置小程序订阅消息
  369. setTemplate(orderId) {
  370. let that = this;
  371. console.log('templateIdList',this.templateIdList);
  372. uni.requestSubscribeMessage({
  373. tmplIds: that.templateIdList,
  374. success (res) {
  375. // that.gotoPay();
  376. console.log("success:",res);
  377. },
  378. fail (res) {
  379. console.log("fail:",res);
  380. },
  381. complete (res) {
  382. that.gotoPay(orderId);
  383. console.log("complete:",res);
  384. }
  385. })
  386. },
  387. gotoPay(orderId){
  388. this.$u.api.gotoPay({orderId:orderId,openid:''}).then(res=>{
  389. this.payResult = res.data.payInfo;
  390. this.payResult.package = res.data.payInfo.packageValue;
  391. // #ifdef H5
  392. this.initConfig(this.payResult)
  393. // #endif
  394. // #ifdef MP
  395. this.wxPay()
  396. // #endif
  397. // if(this.params.paymentMode==1||this.params.paymentMode==4){
  398. // this.wxPay()
  399. // }else{
  400. // uni.$u.route('/shopping/paysuccess');
  401. // }
  402. console.log('gotoPayres',res.data);
  403. }).catch(err=>{
  404. this.paypass = '';
  405. this.checkPassShow = false;
  406. console.log('gotoPay',err);
  407. })
  408. },
  409. wxPay(){
  410. let that = this;
  411. uni.requestPayment({
  412. ... this.payResult,
  413. "provider": "wxpay",
  414. "orderInfo": {
  415. // "appid": "wx499********7c70e", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  416. // "noncestr": "c5sEwbaNPiXAF3iv", // 随机字符串
  417. // "package": "Sign=WXPay", // 固定值
  418. // "partnerid": "148*****52", // 微信支付商户号
  419. // "prepayid": "wx202254********************fbe90000", // 统一下单订单号
  420. // "timestamp": 1597935292, // 时间戳(单位:秒)
  421. // "sign": "A842B45937F6EFF60DEC7A2EAA52D5A0" // 签名,这里用的 MD5/RSA 签名
  422. },
  423. success(res) {
  424. setTimeout(()=>{
  425. this.tabsCurrent = 2;
  426. this.reloadList();
  427. },1500)
  428. // that.payQuery();
  429. },
  430. fail(e) {
  431. console.log('wxPayfail',e);
  432. }
  433. })
  434. },
  435. payQuery(){
  436. let that = this;
  437. let retryCount = 0;
  438. let maxRetryCount = 5; // 设置最大重试次数
  439. let interval = 2000; // 设置间隔时间为2秒
  440. let timeout = 10000; // 设置超时时间为10秒
  441. let timer;
  442. uni.showLoading({
  443. title:'支付结果查询中'
  444. })
  445. timer = setInterval(() => {
  446. retryCount++;
  447. if (retryCount > maxRetryCount || retryCount * interval > timeout) {
  448. clearInterval(timer);
  449. uni.hideLoading();
  450. console.log("支付查询超时或达到最大重试次数");
  451. // 在这里添加超时或达到最大重试次数的处理逻辑
  452. this.reloadList()
  453. } else {
  454. console.log("第" + retryCount + "次查询");
  455. // 调用查询支付状态的方法
  456. // 如果支付状态为成功,则清除定时器并处理成功的逻辑
  457. // 如果支付状态为失败,则清除定时器并处理失败的逻辑
  458. this.$u.api.payQuery({orderId:this.orderId}).then(res=>{
  459. // 0-未支付 1-已支付 2-支付中 3-支付失败 4-支付退款
  460. let payStatus = res.data.payStatus;
  461. if(payStatus===1){
  462. uni.$u.route('/center/paysuccess');
  463. }else if(payStatus===0||payStatus===2){
  464. this.payQuery()
  465. }else if(payStatus===3){
  466. uni.toast('支付失败')
  467. }
  468. clearInterval(timer);
  469. }).catch(err=>{
  470. console.log('payQuery',err);
  471. }).finally(()=>{
  472. uni.hideLoading()
  473. })
  474. }
  475. }, interval);
  476. },
  477. statisticsOrder(){
  478. this.$u.api.statisticsOrder().then(res=>{
  479. let data = res.data || {};
  480. this.orderBadge = Object.assign(this.orderBadge,data);
  481. let {noPayNum,deliverNum,collectNum,commentNum,refundNum} = res.data;
  482. let noPayNumindex = this.tabsList.findIndex(item => item.status == 0);
  483. this.tabsList[1].badge.isDot = false;
  484. this.tabsList[1].badge.value = noPayNum;
  485. this.tabsList[2].badge.isDot = false;
  486. this.tabsList[2].badge.value = deliverNum;
  487. this.tabsList[3].badge.isDot = false;
  488. this.tabsList[3].badge.value = collectNum;
  489. this.tabsList[4].badge.isDot = false;
  490. this.tabsList[4].badge.value = commentNum;
  491. this.tabsList[5].badge.isDot = false;
  492. this.tabsList[5].badge.value = refundNum;
  493. // console.log('statisticsOrder',res.data);
  494. // console.log('this.orderBadge',this.orderBadge);
  495. }).catch(err=>{
  496. console.log('memberInfo',err.data);
  497. })
  498. },
  499. /**
  500. * 公众号微信支付
  501. */
  502. initConfig() {
  503. // #ifdef H5
  504. let that = this
  505. wxH5.config({
  506. debug: false, // 这里一般在测试阶段先用ture,等打包给后台的时候就改回false,
  507. appId: that.payResult.appId, // 必填,公众号的唯一标识
  508. timestamp: that.payResult.timeStamp, // 必填,生成签名的时间戳
  509. nonceStr: that.payResult.nonceStr, // 必填,生成签名的随机串
  510. signature: that.payResult.paySign, // 必填,签名
  511. jsApiList: ['chooseWXPay', 'checkJsApi'] // 必填,需要使用的JS接口列表
  512. })
  513. wxH5.ready(() => {
  514. wxH5.chooseWXPay({
  515. timestamp: that.payResult.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
  516. nonceStr: that.payResult.nonceStr, // 支付签名随机串,不长于 32 位
  517. package: that.payResult.packageValue, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=\*\*\*)
  518. signType: 'SHA1', // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'
  519. paySign: that.payResult.paySign, // 支付签名
  520. success: () => {
  521. setTimeout(()=>{
  522. that.tabsCurrent = 2;
  523. that.reloadList();
  524. },1500)
  525. // that.payQuery();
  526. },
  527. fail: (e) => {
  528. uni.$u.route('/center/order', {
  529. status: 0
  530. });
  531. console.log('wxPayfail', e);
  532. },
  533. cancel: () => {
  534. uni.$u.route('/center/order', {
  535. status: 0
  536. });
  537. that.cansubmit = true;
  538. }
  539. })
  540. })
  541. // #endif
  542. }
  543. }
  544. }
  545. </script>
  546. <style>
  547. page{
  548. background-color: #F5F5F5;
  549. }
  550. </style>
  551. <style lang="scss" scoped>
  552. .tabs-wrap{
  553. background-color: #fff;
  554. margin-bottom: 10rpx;
  555. }
  556. .list-item{
  557. overflow: hidden;
  558. width: 48%;
  559. margin-bottom: 30rpx;
  560. background-color: #fff;
  561. .image-wrap{
  562. margin-bottom: 20rpx;
  563. }
  564. }
  565. .order-item{
  566. margin-bottom: 20rpx;
  567. background: #FFFFFF;
  568. box-shadow: 0rpx 2rpx 12rpx 0rpx rgba(221,221,221,0.5);
  569. border-radius: 20rpx;
  570. padding: 32rpx;
  571. content-visibility: auto;
  572. contain-intrinsic-size: 346rpx;
  573. .top{
  574. font-size: 24rpx;
  575. font-weight: 400;
  576. color: #7F7F7F;
  577. line-height: 36rpx;
  578. margin-bottom: 36rpx;
  579. }
  580. .info{
  581. margin-bottom: 30rpx;
  582. .img{
  583. width: 180rpx;
  584. height: 160rpx;
  585. border-radius: 12rpx;
  586. }
  587. .text{
  588. font-size: 24rpx;
  589. font-weight: 400;
  590. color: #7F7F7F;
  591. padding-left: 26rpx;
  592. flex: 1;
  593. .name{
  594. font-size: 28rpx;
  595. font-weight: bold;
  596. color: #363636;
  597. margin-bottom: 20rpx;
  598. }
  599. .time{
  600. margin-bottom: 20rpx;
  601. }
  602. .position{
  603. margin-bottom: 20rpx;
  604. }
  605. .statistics{
  606. text-align: right;
  607. }
  608. .label{
  609. font-size: 24rpx;
  610. font-weight: 400;
  611. color: #363636;
  612. margin-left: 10rpx;
  613. }
  614. .price{
  615. font-size: 32rpx;
  616. font-weight: bold;
  617. color: #ED0000;
  618. }
  619. }
  620. }
  621. .btn-wrap{
  622. }
  623. .btn{
  624. padding: 12rpx 40rpx;
  625. border: 1px solid #E5E5E5;
  626. color: #7F7F7F;
  627. text-align: center;
  628. border-radius: 8rpx;
  629. font-size: 24rpx;
  630. &.red{border-color: #ED0000;color: #ED0000;}
  631. &.red.solid{border-color: #ED0000;background-color:#ED0000;color: #fff;}
  632. &.green{color: #00A447;border-color: #00A447;}
  633. &:not(:first-child){
  634. margin-left: 20rpx;
  635. }
  636. }
  637. &.status-0{.status{color:#FF3C3F;}}
  638. &.status-1{.status{color:#FF3C3F;}}
  639. &.status-2{.status{color:#0099EB;}}
  640. &.status-3{.status{color:#00A447;}}
  641. &.status-4{.status{color:#FF3C3F;}}
  642. &.status-5{.status{color:#FF3C3F;}}
  643. &.status-6{.status{color:#FF3C3F;}}
  644. &.status-7{.status{color:#FFB100;}}
  645. }
  646. </style>