orderPay.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898
  1. <template>
  2. <view class="pay">
  3. <view class="state" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT' && !isNotTime">
  4. 等待支付,剩余<u-count-down :time="closeTime" format="mm:ss" @finish="finish"></u-count-down>
  5. </view>
  6. <view class="state" v-else>
  7. {{ info.goodsList[0] | filterType }}
  8. </view>
  9. <view class="content progress"
  10. v-if="info.goodsList[0].goodsState == 'APPLY_REFUNDING' || info.goodsList[0].goodsState == 'REFUNDED'"
  11. @click="refundDetail">
  12. <view class="progress-title">
  13. 退款进度
  14. </view>
  15. <view class="progress-desc">
  16. 查看退款详情
  17. </view>
  18. </view>
  19. <view class="pay-info">
  20. <view class="goods-info">
  21. <image class="goods-img"
  22. :src="info.goodsList[0].goodsInfo.goodsPath + '?x-oss-process=image/resize,h_164,w_164,m_fixed'" mode="">
  23. </image>
  24. <view class="info">
  25. <view class="goods-name">
  26. {{ info.goodsList[0].goodsInfo.goodsName }}
  27. </view>
  28. <view class="num">
  29. {{ info.goodsList[0].goodsInfo.goodsDescribe }}
  30. </view>
  31. <view class="priceColumn">
  32. <view class="price">
  33. <text class="unit">¥</text>{{ info.goodsList[0].goodsInfo.realPrice }}
  34. </view>
  35. <view class="goodsNum">
  36. x{{ reserve.persons.length || 1 }}
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="setoff">
  42. <view class="text">
  43. 出发时间
  44. </view>
  45. <view class="date" @click="openCalendar">
  46. {{ $u.timeFormat(new Date(reserve.reserveTime).getTime(), 'yyyy年mm月dd日') }}
  47. </view>
  48. </view>
  49. <view class="footer" v-if="info.goodsList[0].goodsState == 'WAIT_USE'" @click="toDetailStudy(info.orderNo)">
  50. <view class="slogan">
  51. 研学在即,课程相信
  52. </view>
  53. <view class="action">
  54. 立即学习
  55. </view>
  56. </view>
  57. </view>
  58. <view class="card-box" v-if="info.goodsList[0].goodsState == 'WAIT_USE'">
  59. <view class="title-top">
  60. <view class="title-text">
  61. 券码信息
  62. </view>
  63. </view>
  64. <view class="code-box">
  65. <view class="qrcode">
  66. <uqrcode ref="uqrcode" :size="qrsize" type="2d" auto canvas-id="qrcode" :value="codeData" :loading="loading">
  67. <template v-slot:loading>
  68. <text style="color: black;">拼命加载中...</text>
  69. </template>
  70. </uqrcode>
  71. </view>
  72. <view class="coode">{{ codeData }}</view>
  73. </view>
  74. </view>
  75. <view class="card-box">
  76. <view class="title-top">
  77. <view class="title-text">
  78. 预定人信息
  79. </view>
  80. </view>
  81. <view class="info border">
  82. <view class="label">
  83. 姓名
  84. </view>
  85. <view class="value">
  86. {{ reserve.reserveName }}
  87. </view>
  88. </view>
  89. <view class="info">
  90. <view class="label">
  91. 手机号
  92. </view>
  93. <view class="value">
  94. {{ reserve.reservePhone }}
  95. </view>
  96. </view>
  97. </view>
  98. <view class="card-box">
  99. <view class="title-top">
  100. <view class="title-text">
  101. 出游人信息
  102. </view>
  103. </view>
  104. <template v-for="item in reserve.persons">
  105. <view class="info border">
  106. <view class="label">
  107. 姓名
  108. </view>
  109. <view class="value">
  110. {{ item.userName }}
  111. </view>
  112. </view>
  113. <view class="info">
  114. <view class="label">
  115. 手机号
  116. </view>
  117. <view class="value">
  118. {{ item.phone }}
  119. </view>
  120. </view>
  121. </template>
  122. </view>
  123. <view class="card-box">
  124. <view class="title-top">
  125. <view class="title-text">
  126. 订单信息
  127. </view>
  128. </view>
  129. <view class="info ">
  130. <view class="label">
  131. 订单编号
  132. </view>
  133. <view class="value">
  134. {{ info.orderNo }}
  135. </view>
  136. </view>
  137. <view class="info">
  138. <view class="label">
  139. 付款方式
  140. </view>
  141. <view class="value">
  142. {{ info.payment | filterPay }}
  143. </view>
  144. </view>
  145. <view class="info ">
  146. <view class="label">
  147. 下单时间
  148. </view>
  149. <view class="value">
  150. {{ $u.timeFormat(info.createTime, 'yyyy-mm-dd hh:MM:ss') }}
  151. </view>
  152. </view>
  153. <view class="info">
  154. <view class="label">
  155. 支付时间
  156. </view>
  157. <view class="value">
  158. {{ payTime }}
  159. </view>
  160. </view>
  161. </view>
  162. <view class="card-box">
  163. <view class="title-top">
  164. <view class="title-text">
  165. 交易信息
  166. </view>
  167. </view>
  168. <view class="info ">
  169. <view class="label">
  170. 金额
  171. </view>
  172. <view class="value">
  173. ¥{{ info.totalAmount }}
  174. </view>
  175. </view>
  176. <view class="info">
  177. <view class="label">
  178. 优惠券
  179. </view>
  180. <view class="value">
  181. -¥{{ info.discountAmount }}
  182. </view>
  183. </view>
  184. <view class="info ">
  185. <view class="label">
  186. 合计
  187. </view>
  188. <view class="value">
  189. ¥{{ info.payAmount }}
  190. </view>
  191. </view>
  192. </view>
  193. <view class="content apply-box" v-if="(info.goodsList[0].goodsState == 'WAIT_USE' ||
  194. info.goodsList[0].goodsState == 'USED') &&
  195. info.goodsList[0].refundLog.refund != 'REFUSAL_REFUND' &&
  196. isRefund() &&
  197. info.goodsList[0].jobFlowMap !== 'XiaoJu'" @click="apply">
  198. <view class="label">
  199. 退款申请
  200. </view>
  201. <view class="value">
  202. 如引发商品争议,可申请平台介入处理
  203. </view>
  204. <image class="jiantou" src="../../static/jiantou-icon.png" mode=""></image>
  205. </view>
  206. <view class="content apply-box"
  207. v-if="info.goodsList[0].refundLog && info.goodsList[0].refundLog.refund == 'REFUSAL_REFUND'">
  208. <view class="title">
  209. 已拒绝
  210. </view>
  211. <view class="value">
  212. 拒绝理由:{{ info.goodsList[0].refundLog.conclusion }}
  213. </view>
  214. </view>
  215. <template>
  216. <view class="content refund-box"
  217. v-if="info.goodsList[0].goodsState == 'APPLY_REFUNDING' || (info.goodsList[0].refundLog && info.goodsList[0].refundLog.remark)">
  218. <view class="title">
  219. 退款原因
  220. </view>
  221. <view class="refund-msg">
  222. {{ info.goodsList[0].refundLog.remark }}
  223. </view>
  224. </view>
  225. <button type="default" :loading="btnLoading" v-if="info.goodsList[0].goodsState == 'APPLY_REFUNDING'" class="pay-btn"
  226. @click="cancelReply">取消退款</button>
  227. </template>
  228. <button type="default" :loading="btnLoading1"
  229. v-if="info.goodsList[0].refundLog && info.goodsList[0].refundLog.refund == 'REFUSAL_REFUND' && !info.goodsList[0].refundLog.platInter"
  230. class="pay-btn" @click="refundIntervene">申请介入处理</button>
  231. <view class="btn-box" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT'">
  232. <button class="cancel-btn" @click="cancel" :loading="btnLoading">
  233. 取消订单
  234. </button>
  235. <button class="btn" @click="pay" :loading="btnLoading">
  236. 立即支付
  237. </button>
  238. </view>
  239. </view>
  240. </template>
  241. <script>
  242. import { qrCode, getReserve } from '@/api/order.js'
  243. import { payDetails, queryPayOrder, unRefund, refundIntervene } from '@/api/payment.js';
  244. import { cancelOrder } from '@/api/refuel.js'
  245. export default {
  246. data() {
  247. return {
  248. info: {
  249. goodsList: [
  250. {
  251. goodsState: '',
  252. refundLog: {
  253. refund: ''
  254. }
  255. }
  256. ]
  257. },
  258. reserve: {
  259. persons: [],
  260. },
  261. codeData: 'qrcode',
  262. show: false,
  263. loading: false,
  264. pageLoading: true,
  265. btnLoading: false,
  266. btnLoading1: false,
  267. oldBright: 0,
  268. isNotTime: false,
  269. qrsize: uni.upx2px(200)
  270. };
  271. },
  272. methods: {
  273. // 申请客服介入
  274. refundIntervene() {
  275. let that = this
  276. uni.showModal({
  277. title: '提示',
  278. content: '确认申请客服介入吗?',
  279. success: function (res) {
  280. if (res.confirm) {
  281. that.btnLoading1 = true
  282. refundIntervene(that.info.goodsList[0].id).then(res => {
  283. that.btnLoading1 = false
  284. if (res.state == 'Success') {
  285. that.payDetails(that.info.orderNo)
  286. }
  287. })
  288. } else if (res.cancel) {
  289. console.log('用户点击取消');
  290. }
  291. }
  292. });
  293. },
  294. isRefund() {
  295. if (!this.info.goodsList[0].verifyModel) {//没核销
  296. return true
  297. } else if (this.info.goodsList[0].verifyModel && (new Date().getTime() < (this.info.goodsList[0].verifyModel.checkTime + 1000 * 60 * 60 * 48))) {// 已核销 并且没超过48小时
  298. return true
  299. } else {
  300. return false
  301. }
  302. },
  303. finish() {
  304. this.isNotTime = true
  305. this.payDetails(this.info.orderNo)
  306. },
  307. refundDetail() {
  308. uni.navigateTo({
  309. url: `/my/order/refundDetail?id=${this.info.orderNo}`
  310. })
  311. },
  312. checkCode() {
  313. this.codeData = ''
  314. this.$nextTick(() => {
  315. this.show = true
  316. this.loading = true
  317. let that = this
  318. // uni.getScreenBrightness({
  319. // success(res) {
  320. // // 获取用户手机亮度 保存起来
  321. // that.oldBright = res.value
  322. // setTimeout(()=>{
  323. // uni.setScreenBrightness({
  324. // value:1
  325. // })
  326. // },200)
  327. // }
  328. // })
  329. qrCode(this.info.goodsList[0].id).then(res => {
  330. this.loading = false
  331. if (res.state == 'Success') {
  332. this.codeData = res.content
  333. }
  334. })
  335. })
  336. },
  337. close() {
  338. this.show = false
  339. // uni.setScreenBrightness({
  340. // value:this.oldBright
  341. // })
  342. },
  343. handleCall() {
  344. uni.makePhoneCall({
  345. phoneNumber: '4000016553'//仅为示例
  346. });
  347. },
  348. apply() {
  349. let that = this
  350. uni.navigateTo({
  351. url: '/my/order/refund',
  352. success: function (res) {
  353. // 通过eventChannel向被打开页面传送数据
  354. res.eventChannel.emit('orderInfo', that.info)
  355. }
  356. })
  357. },
  358. // 获取订单详情
  359. payDetails(orderNo) {
  360. payDetails(orderNo).then(res => {
  361. this.pageLoading = false
  362. this.info = res.content
  363. if (this.info.goodsList[0].jobFlowMap == 'P802') {
  364. this.isVisual = true
  365. }
  366. if (!this.info.goodsList[0].refundLog) {
  367. this.info.goodsList[0].refundLog = {}
  368. }
  369. if (this.info.goodsList[0].goodsState == 'WAIT_USE') {
  370. qrCode(this.info.goodsList[0].id).then(res => {
  371. this.loading = false
  372. if (res.state == 'Success') {
  373. this.codeData = res.content
  374. }
  375. })
  376. }
  377. })
  378. getReserve(orderNo).then(res => {
  379. if (res.state == 'Success') {
  380. this.reserve = res.content
  381. if (!this.reserve.persons) {
  382. this.reserve.persons = []
  383. }
  384. }
  385. })
  386. },
  387. // 取消支付
  388. cancel() {
  389. uni.showLoading({
  390. title: '取消中'
  391. })
  392. let obj = {}
  393. try {
  394. obj = JSON.parse(this.info.goodsList[0].extend)
  395. } catch (error) {
  396. obj = {}
  397. }
  398. cancelOrder(obj).then(res => {
  399. if (res.state == 'Success') {
  400. uni.showToast({
  401. title: '取消成功',
  402. icon: 'success'
  403. })
  404. this.payDetails(this.info.orderNo)
  405. }
  406. })
  407. },
  408. // 支付
  409. pay() {
  410. let that = this
  411. if (this.info.goodsList[0].jobFlowMap == 'XiaoJu') {
  412. let { xjOrderId, tradeId } = JSON.parse(this.info.goodsList[0].extend)
  413. uni.navigateToMiniProgram({
  414. appId: "wx0d252f6ed9755862", // 滴滴加油小程序appId
  415. path: `packageA/pages/open-energy-pay/index?orderId=${xjOrderId}&tradeId=${tradeId}`, // 滴滴加油收银台页面地址,需要拼接orderId和tradeId
  416. envVersion: 'release', // 固定release
  417. })
  418. } else {
  419. if (this.btnLoading) return
  420. this.btnLoading = true
  421. uni.showLoading({
  422. title: '支付中'
  423. })
  424. let miniPayRequest = JSON.parse(this.info.payment.miniPayRequest)
  425. uni.requestPayment({
  426. "provider": "wxpay",
  427. "orderInfo": miniPayRequest,
  428. "appid": miniPayRequest.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  429. "paySign": miniPayRequest.paySign,
  430. "nonceStr": miniPayRequest.nonceStr, // 随机字符串
  431. "package": miniPayRequest.package, // 固定值
  432. // "prepayid": miniPayRequest.package, // 统一下单订单号
  433. "timeStamp": miniPayRequest.timeStamp, // 时间戳(单位:秒)
  434. "signType": miniPayRequest.signType, //签名算法
  435. success(msg) {
  436. console.log('msg', msg);
  437. queryPayOrder(that.info.orderNo).then(res1 => {
  438. if (res1.state == 'Success') {
  439. uni.hideLoading()
  440. uni.showToast({
  441. title: '支付成功',
  442. icon: 'success'
  443. })
  444. that.btnLoading = false
  445. that.payDetails(that.info.orderNo)
  446. }
  447. })
  448. },
  449. fail(e) {
  450. that.btnLoading = false
  451. uni.hideLoading()
  452. uni.showToast({
  453. title: '取消支付',
  454. icon: 'fail'
  455. })
  456. // 取消支付后,获取支付信息以备再次支付
  457. that.payDetails(that.info.orderNo)
  458. console.log('err', e, this);
  459. }
  460. })
  461. }
  462. },
  463. // 取消退款申请
  464. cancelReply() {
  465. if (this.btnLoading) return
  466. this.btnLoading = true
  467. uni.showLoading({
  468. title: '取消中'
  469. })
  470. console.log(this.info.goodsList[0])
  471. unRefund({ id: this.info.goodsList[0].id }).then(res => {
  472. this.btnLoading = false
  473. uni.hideLoading()
  474. if (res.state == 'Success') {
  475. this.payDetails(this.info.orderNo)
  476. uni.showToast({
  477. title: '取消成功',
  478. icon: 'success'
  479. })
  480. }
  481. })
  482. },
  483. toDetailStudy(orderNo) {
  484. uni.navigateTo({
  485. url: '/pages/activity/detail?orderNo=' + orderNo
  486. })
  487. }
  488. },
  489. filters: {
  490. filterType: function (val) {
  491. if (val.refundLog && val.refundLog.refund == 'REFUSAL_REFUND' && !val.change) {
  492. return '拒绝退款'
  493. }
  494. else if (val.goodsState == 'APPLY_REFUNDING') {
  495. return '退款审核中'
  496. } else if (val.goodsState == 'CLOSE') {
  497. return '关闭订单'
  498. } else if (val.goodsState == 'REFUNDED') {
  499. return '已退款'
  500. } else if (val.goodsState == 'REFUSAL_REFUND') {
  501. return '拒绝退款'
  502. } else if (val.goodsState == 'APPLY_REFUNDING') {
  503. return '退款中'
  504. } else if (val.goodsState == 'USED') {
  505. return '订单已完成'
  506. } else if (val.goodsState == 'WAIT_PAYMENT') {
  507. return '待付款'
  508. } else if (val.goodsState == 'WAIT_USE') {
  509. return '待使用'
  510. } else {
  511. return ''
  512. }
  513. },
  514. filterPay(val) {
  515. if (val) {
  516. if (val.paymentWay == 'wx.unifiedOrder') {
  517. return '微信支付'
  518. } else if (val.paymentWay == 'trade.create') {
  519. return '支付宝支付'
  520. } else if (val.paymentWay == 'uac.miniOrder') {
  521. return '云闪付支付'
  522. }
  523. }
  524. else {
  525. return '-'
  526. }
  527. }
  528. },
  529. computed: {
  530. closeTime() {
  531. return (this.info.createTime + 1000 * 60 * 30) - new Date().getTime()
  532. },
  533. payTime() {
  534. const goodsList = this.info.goodsList;
  535. if (goodsList && goodsList[0] && goodsList[0].extend) {
  536. let extend;
  537. try {
  538. extend = JSON.parse(goodsList[0].extend);
  539. } catch (e) {
  540. // 如果解析JSON失败,返回默认值 '-'
  541. return '-';
  542. }
  543. if (!extend.hasOwnProperty('account')) {
  544. if (extend.hasOwnProperty('notifyOrderInfo')) {
  545. return extend.notifyOrderInfo.payTime;
  546. } else {
  547. return '-';
  548. }
  549. }
  550. }
  551. const payment = this.info.payment;
  552. if (payment && payment.paymentTime) {
  553. return uni.$u.timeFormat(payment.paymentTime, 'yyyy-mm-dd hh:MM:ss');
  554. } else {
  555. return '-';
  556. }
  557. }
  558. },
  559. onLoad(options) {
  560. this.info.orderNo = options.id
  561. },
  562. onShow() {
  563. this.pageLoading = true
  564. this.payDetails(this.info.orderNo)
  565. },
  566. };
  567. </script>
  568. <style lang="scss" scoped>
  569. .pay {
  570. background: #F9F9F9;
  571. min-height: 100vh;
  572. padding: 20rpx;
  573. .state {
  574. display: flex;
  575. color: #222222;
  576. font-size: 32rpx;
  577. font-weight: bold;
  578. margin: 8rpx 0 28rpx 0;
  579. }
  580. .pay-info {
  581. background: #FFFFFF;
  582. border-radius: 16rpx 16rpx 16rpx 16rpx;
  583. padding: 24rpx;
  584. .goods-info {
  585. display: flex;
  586. margin-bottom: 26rpx;
  587. .goods-img {
  588. width: 164rpx;
  589. height: 164rpx;
  590. border-radius: 16rpx;
  591. }
  592. .info {
  593. margin-left: 28rpx;
  594. flex: 1;
  595. .goods-name {
  596. font-weight: bold;
  597. color: #181818;
  598. font-size: 32rpx;
  599. width: 100%;
  600. word-break: break-all;
  601. text-overflow: ellipsis;
  602. overflow: hidden;
  603. display: -webkit-box;
  604. -webkit-box-orient: vertical;
  605. -webkit-line-clamp: 2;
  606. /* 这里是超出几行省略 */
  607. }
  608. .num {
  609. color: #999999;
  610. font-size: 24rpx;
  611. margin-top: 16rpx;
  612. }
  613. .priceColumn {
  614. display: flex;
  615. justify-content: space-between;
  616. align-items: center;
  617. margin-top: 30rpx;
  618. .price {
  619. font-weight: bold;
  620. color: #FF4D3A;
  621. font-size: 32rpx;
  622. .unit {
  623. font-size: 20rpx;
  624. }
  625. }
  626. .goodsNum {
  627. font-size: 24rpx;
  628. color: #AAAAAA;
  629. }
  630. }
  631. }
  632. }
  633. .setoff {
  634. border-bottom: 1px solid #F0F0F0;
  635. display: flex;
  636. justify-content: space-between;
  637. align-items: center;
  638. font-size: 24rpx;
  639. padding-bottom: 24rpx;
  640. .text {
  641. color: #222222;
  642. }
  643. .date {
  644. color: #AAAAAA;
  645. }
  646. }
  647. .footer {
  648. display: flex;
  649. justify-content: space-between;
  650. margin-top: 20rpx;
  651. background: #F9F9F9;
  652. border-radius: 16rpx;
  653. padding: 24rpx;
  654. .slogan,
  655. .action {
  656. font-size: 24rpx;
  657. color: #AAAAAA;
  658. }
  659. }
  660. }
  661. .card-box {
  662. padding: 24rpx;
  663. background: #FFFFFF;
  664. margin: 20rpx 0;
  665. border-radius: 16rpx 16rpx 16rpx 16rpx;
  666. .title-top {
  667. display: flex;
  668. justify-content: space-between;
  669. align-items: center;
  670. .title-text {
  671. font-size: 28rpx;
  672. font-weight: bold;
  673. color: #222222;
  674. }
  675. // margin-bottom: 24rpx;
  676. }
  677. .border {
  678. border-top: 1px solid #F0F0F0;
  679. margin-top: 20rpx;
  680. }
  681. .info {
  682. display: flex;
  683. justify-content: space-between;
  684. align-items: center;
  685. padding-top: 20rpx;
  686. .label {
  687. color: #AAAAAA;
  688. font-size: 24rpx;
  689. }
  690. .value {
  691. color: #222222;
  692. font-size: 24rpx;
  693. }
  694. }
  695. .code-box {
  696. display: flex;
  697. justify-content: center;
  698. align-items: center;
  699. flex-direction: column;
  700. .qrcode {
  701. width: 200rpx;
  702. height: 200rpx;
  703. }
  704. .coode {
  705. margin-top: 20rpx;
  706. font-size: 28rpx;
  707. color: #222222;
  708. }
  709. }
  710. }
  711. .btn-box {
  712. position: fixed;
  713. bottom: 0%;
  714. left: 0%;
  715. width: 100%;
  716. display: flex;
  717. align-items: center;
  718. justify-content: space-between;
  719. box-sizing: border-box;
  720. padding: 10rpx 24rpx env(safe-area-inset-bottom);
  721. background: #fff;
  722. border-top: 1rpx solid #EEEEEE;
  723. .cancel-btn {
  724. width: 344rpx;
  725. height: 80rpx;
  726. line-height: 80rpx;
  727. text-align: center;
  728. border-radius: 40rpx;
  729. font-weight: 600;
  730. font-size: 28rpx;
  731. border: 1px solid #AAAAAA;
  732. color: #AAAAAA;
  733. margin: 0;
  734. }
  735. .btn {
  736. width: 344rpx;
  737. height: 80rpx;
  738. line-height: 80rpx;
  739. text-align: center;
  740. background: #3B83FF;
  741. border-radius: 40rpx;
  742. font-weight: 600;
  743. font-size: 28rpx;
  744. color: #FFFFFF;
  745. margin: 0;
  746. margin-left: 20rpx;
  747. }
  748. }
  749. .pay-btn {
  750. background: #3B83FF;
  751. width: 688rpx;
  752. height: 80rpx;
  753. line-height: 80rpx;
  754. border-radius: 46rpx;
  755. color: #fff;
  756. margin-top: 50rpx;
  757. }
  758. .refund-box {
  759. .refund-msg {
  760. font-weight: 300;
  761. font-size: 24rpx;
  762. color: #222222;
  763. margin-top: 15rpx;
  764. line-height: 40rpx;
  765. }
  766. }
  767. .apply-box {
  768. position: relative;
  769. .label {
  770. font-weight: 600;
  771. font-size: 28rpx;
  772. color: #222222;
  773. }
  774. .value {
  775. color: #999999;
  776. font-size: 24rpx;
  777. margin-top: 15rpx;
  778. }
  779. .jiantou {
  780. position: absolute;
  781. top: 50%;
  782. right: 24rpx;
  783. transform: translateY(-50%);
  784. width: 24rpx;
  785. height: 24rpx;
  786. }
  787. }
  788. .content {
  789. padding: 28rpx 24rpx;
  790. border-radius: 16rpx;
  791. background: #fff;
  792. }
  793. .progress {
  794. .progress-title {
  795. font-weight: 600;
  796. font-size: 32rpx;
  797. color: #181818;
  798. }
  799. .progress-desc {
  800. font-weight: 300;
  801. font-size: 24rpx;
  802. color: #AAAAAA;
  803. margin-top: 15rpx;
  804. }
  805. margin-bottom: 20rpx;
  806. }
  807. }
  808. </style>