order.vue 19 KB

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