order.vue 21 KB

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