order.vue 19 KB

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