orderPay.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900
  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_REFUND' || 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_REFUND' || 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"
  226. v-if="info.goodsList[0].goodsState == 'APPLY_REFUND' || info.goodsList[0].goodsState == 'APPLY_REFUNDING'"
  227. class="pay-btn" @click="cancelReply">取消退款</button>
  228. </template>
  229. <button type="default" :loading="btnLoading1"
  230. v-if="info.goodsList[0].refundLog && info.goodsList[0].refundLog.refund == 'REFUSAL_REFUND' && !info.goodsList[0].refundLog.platInter"
  231. class="pay-btn" @click="refundIntervene">申请介入处理</button>
  232. <view class="btn-box" v-if="info.goodsList[0].goodsState == 'WAIT_PAYMENT'">
  233. <button class="cancel-btn" @click="cancel" :loading="btnLoading">
  234. 取消订单
  235. </button>
  236. <button class="btn" @click="pay" :loading="btnLoading">
  237. 立即支付
  238. </button>
  239. </view>
  240. </view>
  241. </template>
  242. <script>
  243. import { qrCode, getReserve } from '@/api/order.js'
  244. import { payDetails, queryPayOrder, unRefund, refundIntervene, close } from '@/api/payment.js';
  245. // import { cancelOrder } from '@/api/refuel.js'
  246. export default {
  247. data() {
  248. return {
  249. info: {
  250. goodsList: [
  251. {
  252. goodsState: '',
  253. refundLog: {
  254. refund: ''
  255. }
  256. }
  257. ]
  258. },
  259. reserve: {
  260. persons: [],
  261. },
  262. codeData: 'qrcode',
  263. show: false,
  264. loading: false,
  265. pageLoading: true,
  266. btnLoading: false,
  267. btnLoading1: false,
  268. oldBright: 0,
  269. isNotTime: false,
  270. qrsize: uni.upx2px(200)
  271. };
  272. },
  273. methods: {
  274. // 申请客服介入
  275. refundIntervene() {
  276. let that = this
  277. uni.showModal({
  278. title: '提示',
  279. content: '确认申请客服介入吗?',
  280. success: function (res) {
  281. if (res.confirm) {
  282. that.btnLoading1 = true
  283. refundIntervene(that.info.goodsList[0].id).then(res => {
  284. that.btnLoading1 = false
  285. if (res.state == 'Success') {
  286. that.payDetails(that.info.orderNo)
  287. }
  288. })
  289. } else if (res.cancel) {
  290. console.log('用户点击取消');
  291. }
  292. }
  293. });
  294. },
  295. isRefund() {
  296. if (!this.info.goodsList[0].verifyModel) {//没核销
  297. return true
  298. } else if (this.info.goodsList[0].verifyModel && (new Date().getTime() < (this.info.goodsList[0].verifyModel.checkTime + 1000 * 60 * 60 * 48))) {// 已核销 并且没超过48小时
  299. return true
  300. } else {
  301. return false
  302. }
  303. },
  304. finish() {
  305. this.isNotTime = true
  306. this.payDetails(this.info.orderNo)
  307. },
  308. refundDetail() {
  309. uni.navigateTo({
  310. url: `/my/order/refundDetail?id=${this.info.orderNo}`
  311. })
  312. },
  313. checkCode() {
  314. this.codeData = ''
  315. this.$nextTick(() => {
  316. this.show = true
  317. this.loading = true
  318. let that = this
  319. // uni.getScreenBrightness({
  320. // success(res) {
  321. // // 获取用户手机亮度 保存起来
  322. // that.oldBright = res.value
  323. // setTimeout(()=>{
  324. // uni.setScreenBrightness({
  325. // value:1
  326. // })
  327. // },200)
  328. // }
  329. // })
  330. qrCode(this.info.goodsList[0].id).then(res => {
  331. this.loading = false
  332. if (res.state == 'Success') {
  333. this.codeData = res.content
  334. }
  335. })
  336. })
  337. },
  338. close() {
  339. this.show = false
  340. // uni.setScreenBrightness({
  341. // value:this.oldBright
  342. // })
  343. },
  344. handleCall() {
  345. uni.makePhoneCall({
  346. phoneNumber: '4000016553'//仅为示例
  347. });
  348. },
  349. apply() {
  350. let that = this
  351. uni.navigateTo({
  352. url: '/my/order/refund',
  353. success: function (res) {
  354. // 通过eventChannel向被打开页面传送数据
  355. res.eventChannel.emit('orderInfo', that.info)
  356. }
  357. })
  358. },
  359. // 获取订单详情
  360. payDetails(orderNo) {
  361. payDetails(orderNo).then(res => {
  362. this.pageLoading = false
  363. this.info = res.content
  364. if (this.info.goodsList[0].jobFlowMap == 'P802') {
  365. this.isVisual = true
  366. }
  367. if (!this.info.goodsList[0].refundLog) {
  368. this.info.goodsList[0].refundLog = {}
  369. }
  370. if (this.info.goodsList[0].goodsState == 'WAIT_USE') {
  371. qrCode(this.info.goodsList[0].id).then(res => {
  372. this.loading = false
  373. if (res.state == 'Success') {
  374. this.codeData = res.content
  375. }
  376. })
  377. }
  378. })
  379. getReserve(orderNo).then(res => {
  380. if (res.state == 'Success') {
  381. this.reserve = res.content
  382. if (!this.reserve.persons) {
  383. this.reserve.persons = []
  384. }
  385. }
  386. })
  387. },
  388. // 取消支付
  389. cancel() {
  390. uni.showLoading({
  391. title: '取消中'
  392. })
  393. // let obj = {}
  394. // try {
  395. // obj = JSON.parse(this.info.goodsList[0].extend)
  396. // } catch (error) {
  397. // obj = {}
  398. // }
  399. close(this.info.orderNo
  400. ).then(res => {
  401. if (res.state == 'Success') {
  402. uni.showToast({
  403. title: '取消成功',
  404. icon: 'success'
  405. })
  406. this.payDetails(this.info.orderNo)
  407. }
  408. })
  409. },
  410. // 支付
  411. pay() {
  412. let that = this
  413. if (this.info.goodsList[0].jobFlowMap == 'XiaoJu') {
  414. let { xjOrderId, tradeId } = JSON.parse(this.info.goodsList[0].extend)
  415. uni.navigateToMiniProgram({
  416. appId: "wx0d252f6ed9755862", // 滴滴加油小程序appId
  417. path: `packageA/pages/open-energy-pay/index?orderId=${xjOrderId}&tradeId=${tradeId}`, // 滴滴加油收银台页面地址,需要拼接orderId和tradeId
  418. envVersion: 'release', // 固定release
  419. })
  420. } else {
  421. if (this.btnLoading) return
  422. this.btnLoading = true
  423. uni.showLoading({
  424. title: '支付中'
  425. })
  426. let miniPayRequest = JSON.parse(this.info.payment.miniPayRequest)
  427. uni.requestPayment({
  428. "provider": "wxpay",
  429. "orderInfo": miniPayRequest,
  430. "appid": miniPayRequest.appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  431. "paySign": miniPayRequest.paySign,
  432. "nonceStr": miniPayRequest.nonceStr, // 随机字符串
  433. "package": miniPayRequest.package, // 固定值
  434. // "prepayid": miniPayRequest.package, // 统一下单订单号
  435. "timeStamp": miniPayRequest.timeStamp, // 时间戳(单位:秒)
  436. "signType": miniPayRequest.signType, //签名算法
  437. success(msg) {
  438. console.log('msg', msg);
  439. queryPayOrder(that.info.orderNo).then(res1 => {
  440. if (res1.state == 'Success') {
  441. uni.hideLoading()
  442. uni.showToast({
  443. title: '支付成功',
  444. icon: 'success'
  445. })
  446. that.btnLoading = false
  447. that.payDetails(that.info.orderNo)
  448. }
  449. })
  450. },
  451. fail(e) {
  452. that.btnLoading = false
  453. uni.hideLoading()
  454. uni.showToast({
  455. title: '取消支付',
  456. icon: 'fail'
  457. })
  458. // 取消支付后,获取支付信息以备再次支付
  459. that.payDetails(that.info.orderNo)
  460. console.log('err', e, this);
  461. }
  462. })
  463. }
  464. },
  465. // 取消退款申请
  466. cancelReply() {
  467. if (this.btnLoading) return
  468. this.btnLoading = true
  469. uni.showLoading({
  470. title: '取消中'
  471. })
  472. console.log(this.info.goodsList[0])
  473. unRefund({ id: this.info.goodsList[0].id }).then(res => {
  474. this.btnLoading = false
  475. uni.hideLoading()
  476. if (res.state == 'Success') {
  477. this.payDetails(this.info.orderNo)
  478. uni.showToast({
  479. title: '取消成功',
  480. icon: 'success'
  481. })
  482. }
  483. })
  484. },
  485. toDetailStudy(orderNo) {
  486. uni.navigateTo({
  487. url: '/pages/activity/detail?orderNo=' + orderNo
  488. })
  489. }
  490. },
  491. filters: {
  492. filterType: function (val) {
  493. if (val.refundLog && val.refundLog.refund == 'REFUSAL_REFUND' && !val.change) {
  494. return '拒绝退款'
  495. }
  496. else if (val.goodsState == 'APPLY_REFUND') {
  497. return '退款审核中'
  498. } else if (val.goodsState == 'CLOSE') {
  499. return '关闭订单'
  500. } else if (val.goodsState == 'REFUNDED') {
  501. return '已退款'
  502. } else if (val.goodsState == 'REFUSAL_REFUND') {
  503. return '拒绝退款'
  504. } else if (val.goodsState == 'APPLY_REFUNDING') {
  505. return '退款中'
  506. } else if (val.goodsState == 'USED') {
  507. return '订单已完成'
  508. } else if (val.goodsState == 'WAIT_PAYMENT') {
  509. return '待付款'
  510. } else if (val.goodsState == 'WAIT_USE') {
  511. return '待使用'
  512. } else {
  513. return ''
  514. }
  515. },
  516. filterPay(val) {
  517. if (val) {
  518. if (val.paymentWay == 'wx.unifiedOrder') {
  519. return '微信支付'
  520. } else if (val.paymentWay == 'trade.create') {
  521. return '支付宝支付'
  522. } else if (val.paymentWay == 'uac.miniOrder') {
  523. return '云闪付支付'
  524. }
  525. }
  526. else {
  527. return '-'
  528. }
  529. }
  530. },
  531. computed: {
  532. closeTime() {
  533. return (this.info.createTime + 1000 * 60 * 30) - new Date().getTime()
  534. },
  535. payTime() {
  536. const goodsList = this.info.goodsList;
  537. if (goodsList && goodsList[0] && goodsList[0].extend) {
  538. let extend;
  539. try {
  540. extend = JSON.parse(goodsList[0].extend);
  541. } catch (e) {
  542. // 如果解析JSON失败,返回默认值 '-'
  543. return '-';
  544. }
  545. if (!extend.hasOwnProperty('account')) {
  546. if (extend.hasOwnProperty('notifyOrderInfo')) {
  547. return extend.notifyOrderInfo.payTime;
  548. } else {
  549. return '-';
  550. }
  551. }
  552. }
  553. const payment = this.info.payment;
  554. if (payment && payment.paymentTime) {
  555. return uni.$u.timeFormat(payment.paymentTime, 'yyyy-mm-dd hh:MM:ss');
  556. } else {
  557. return '-';
  558. }
  559. }
  560. },
  561. onLoad(options) {
  562. this.info.orderNo = options.id
  563. },
  564. onShow() {
  565. this.pageLoading = true
  566. this.payDetails(this.info.orderNo)
  567. },
  568. };
  569. </script>
  570. <style lang="scss" scoped>
  571. .pay {
  572. background: #F9F9F9;
  573. min-height: 100vh;
  574. padding: 20rpx;
  575. .state {
  576. display: flex;
  577. color: #222222;
  578. font-size: 32rpx;
  579. font-weight: bold;
  580. margin: 8rpx 0 28rpx 0;
  581. }
  582. .pay-info {
  583. background: #FFFFFF;
  584. border-radius: 16rpx 16rpx 16rpx 16rpx;
  585. padding: 24rpx;
  586. .goods-info {
  587. display: flex;
  588. margin-bottom: 26rpx;
  589. .goods-img {
  590. width: 164rpx;
  591. height: 164rpx;
  592. border-radius: 16rpx;
  593. }
  594. .info {
  595. margin-left: 28rpx;
  596. flex: 1;
  597. .goods-name {
  598. font-weight: bold;
  599. color: #181818;
  600. font-size: 32rpx;
  601. width: 100%;
  602. word-break: break-all;
  603. text-overflow: ellipsis;
  604. overflow: hidden;
  605. display: -webkit-box;
  606. -webkit-box-orient: vertical;
  607. -webkit-line-clamp: 2;
  608. /* 这里是超出几行省略 */
  609. }
  610. .num {
  611. color: #999999;
  612. font-size: 24rpx;
  613. margin-top: 16rpx;
  614. }
  615. .priceColumn {
  616. display: flex;
  617. justify-content: space-between;
  618. align-items: center;
  619. margin-top: 30rpx;
  620. .price {
  621. font-weight: bold;
  622. color: #FF4D3A;
  623. font-size: 32rpx;
  624. .unit {
  625. font-size: 20rpx;
  626. }
  627. }
  628. .goodsNum {
  629. font-size: 24rpx;
  630. color: #AAAAAA;
  631. }
  632. }
  633. }
  634. }
  635. .setoff {
  636. border-bottom: 1px solid #F0F0F0;
  637. display: flex;
  638. justify-content: space-between;
  639. align-items: center;
  640. font-size: 24rpx;
  641. padding-bottom: 24rpx;
  642. .text {
  643. color: #222222;
  644. }
  645. .date {
  646. color: #AAAAAA;
  647. }
  648. }
  649. .footer {
  650. display: flex;
  651. justify-content: space-between;
  652. margin-top: 20rpx;
  653. background: #F9F9F9;
  654. border-radius: 16rpx;
  655. padding: 24rpx;
  656. .slogan,
  657. .action {
  658. font-size: 24rpx;
  659. color: #AAAAAA;
  660. }
  661. }
  662. }
  663. .card-box {
  664. padding: 24rpx;
  665. background: #FFFFFF;
  666. margin: 20rpx 0;
  667. border-radius: 16rpx 16rpx 16rpx 16rpx;
  668. .title-top {
  669. display: flex;
  670. justify-content: space-between;
  671. align-items: center;
  672. .title-text {
  673. font-size: 28rpx;
  674. font-weight: bold;
  675. color: #222222;
  676. }
  677. // margin-bottom: 24rpx;
  678. }
  679. .border {
  680. border-top: 1px solid #F0F0F0;
  681. margin-top: 20rpx;
  682. }
  683. .info {
  684. display: flex;
  685. justify-content: space-between;
  686. align-items: center;
  687. padding-top: 20rpx;
  688. .label {
  689. color: #AAAAAA;
  690. font-size: 24rpx;
  691. }
  692. .value {
  693. color: #222222;
  694. font-size: 24rpx;
  695. }
  696. }
  697. .code-box {
  698. display: flex;
  699. justify-content: center;
  700. align-items: center;
  701. flex-direction: column;
  702. .qrcode {
  703. width: 200rpx;
  704. height: 200rpx;
  705. }
  706. .coode {
  707. margin-top: 20rpx;
  708. font-size: 28rpx;
  709. color: #222222;
  710. }
  711. }
  712. }
  713. .btn-box {
  714. position: fixed;
  715. bottom: 0%;
  716. left: 0%;
  717. width: 100%;
  718. display: flex;
  719. align-items: center;
  720. justify-content: space-between;
  721. box-sizing: border-box;
  722. padding: 10rpx 24rpx env(safe-area-inset-bottom);
  723. background: #fff;
  724. border-top: 1rpx solid #EEEEEE;
  725. .cancel-btn {
  726. width: 344rpx;
  727. height: 80rpx;
  728. line-height: 80rpx;
  729. text-align: center;
  730. border-radius: 40rpx;
  731. font-weight: 600;
  732. font-size: 28rpx;
  733. border: 1px solid #AAAAAA;
  734. color: #AAAAAA;
  735. margin: 0;
  736. }
  737. .btn {
  738. width: 344rpx;
  739. height: 80rpx;
  740. line-height: 80rpx;
  741. text-align: center;
  742. background: #3B83FF;
  743. border-radius: 40rpx;
  744. font-weight: 600;
  745. font-size: 28rpx;
  746. color: #FFFFFF;
  747. margin: 0;
  748. margin-left: 20rpx;
  749. }
  750. }
  751. .pay-btn {
  752. background: #3B83FF;
  753. width: 688rpx;
  754. height: 80rpx;
  755. line-height: 80rpx;
  756. border-radius: 46rpx;
  757. color: #fff;
  758. margin-top: 50rpx;
  759. }
  760. .refund-box {
  761. .refund-msg {
  762. font-weight: 300;
  763. font-size: 24rpx;
  764. color: #222222;
  765. margin-top: 15rpx;
  766. line-height: 40rpx;
  767. }
  768. }
  769. .apply-box {
  770. position: relative;
  771. .label {
  772. font-weight: 600;
  773. font-size: 28rpx;
  774. color: #222222;
  775. }
  776. .value {
  777. color: #999999;
  778. font-size: 24rpx;
  779. margin-top: 15rpx;
  780. }
  781. .jiantou {
  782. position: absolute;
  783. top: 50%;
  784. right: 24rpx;
  785. transform: translateY(-50%);
  786. width: 24rpx;
  787. height: 24rpx;
  788. }
  789. }
  790. .content {
  791. padding: 28rpx 24rpx;
  792. border-radius: 16rpx;
  793. background: #fff;
  794. }
  795. .progress {
  796. .progress-title {
  797. font-weight: 600;
  798. font-size: 32rpx;
  799. color: #181818;
  800. }
  801. .progress-desc {
  802. font-weight: 300;
  803. font-size: 24rpx;
  804. color: #AAAAAA;
  805. margin-top: 15rpx;
  806. }
  807. margin-bottom: 20rpx;
  808. }
  809. }
  810. </style>