applylist.vue 19 KB

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