index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788
  1. <template>
  2. <view class="page" v-if="payPriceShow">
  3. <view class="pay-price">
  4. <view class="price">
  5. <text class="unit">{{$t(`¥`)}}</text>
  6. <numberScroll :num='payPriceShow' color="#E93323" width='30' height='50' fontSize='50'></numberScroll>
  7. </view>
  8. <view class="count-down">
  9. {{$t(`支付剩余时间`)}}:
  10. <countDown :is-day="false" :tip-text="' '" :day-text="' '" :hour-text="' : '" :minute-text="' : '"
  11. :second-text="' '" :datatime="invalidTime"></countDown>
  12. </view>
  13. </view>
  14. <view class="payment">
  15. <view class="title">
  16. {{$t(`支付方式`)}}
  17. </view>
  18. <view class="item acea-row row-between-wrapper" v-for="(item,index) in cartArr" :key="index"
  19. v-show='item.payStatus' @click="payType(item.number || 0, item.value, index)">
  20. <view class="left acea-row row-between-wrapper">
  21. <view class="iconfont" :class="item.icon"></view>
  22. <view class="text">
  23. <view class="name">{{$t(item.name)}}</view>
  24. <view class="info" v-if="item.value == 'yue'">
  25. {{$t(item.title)}} <span class="money">{{$t(`¥`)}}{{ item.number }}</span>
  26. </view>
  27. <view class="info" v-else>{{$t(item.title)}}</view>
  28. </view>
  29. </view>
  30. <view class="iconfont" :class="active==index?'icon-xuanzhong11 font-num':'icon-weixuan'"></view>
  31. </view>
  32. </view>
  33. <view class="btn">
  34. <view class="button acea-row row-center-wrapper" @click='goPay(number, paytype)'>{{$t(`确认支付`)}}</view>
  35. <view class="wait-pay" @click="waitPay">{{$t(`暂不支付`)}}</view>
  36. </view>
  37. <view v-show="false" v-html="formContent"></view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import countDown from '@/components/countDown';
  43. import numberScroll from '@/components/numberScroll.vue'
  44. import {
  45. getCashierOrder,
  46. orderPay
  47. } from '@/api/order.js';
  48. import {
  49. basicConfig
  50. } from '@/api/public.js'
  51. export default {
  52. components: {
  53. countDown,
  54. numberScroll
  55. },
  56. data() {
  57. return {
  58. checked: false,
  59. datatime: 1676344056,
  60. //支付方式
  61. cartArr: [{
  62. "name": this.$t(`微信支付`),
  63. "icon": "icon-weixin2",
  64. value: 'weixin',
  65. title: this.$t(`使用微信快捷支付`),
  66. payStatus: 1,
  67. },
  68. {
  69. "name": this.$t(`支付宝支付`),
  70. "icon": "icon-zhifubao",
  71. value: 'alipay',
  72. title: this.$t(`使用支付宝支付`),
  73. payStatus: 1,
  74. },
  75. {
  76. "name": this.$t(`余额支付`),
  77. "icon": "icon-yuezhifu",
  78. value: 'yue',
  79. title: this.$t(`可用余额`),
  80. payStatus: 1,
  81. },
  82. {
  83. "name": this.$t(`线下支付`),
  84. "icon": "icon-yuezhifu1",
  85. value: 'offline',
  86. title: this.$t(`使用线下付款`),
  87. payStatus: 2,
  88. }, {
  89. "name": this.$t(`好友代付`),
  90. "icon": "icon-haoyoudaizhifu",
  91. value: 'friend',
  92. title: this.$t(`找微信好友支付`),
  93. payStatus: 1,
  94. }
  95. ],
  96. orderId: 0,
  97. fromType: '',
  98. active: 0,
  99. payPrice: 0,
  100. payPriceShow: 0,
  101. payPostage: 0,
  102. offlinePostage: false,
  103. invalidTime: 0,
  104. initIn: false,
  105. jumpData: {
  106. orderId: '',
  107. msg: ''
  108. },
  109. formContent: '',
  110. oid: 0
  111. }
  112. },
  113. watch: {
  114. cartArr: {
  115. handler(newV, oldValue) {
  116. let newPayList = [];
  117. newV.forEach((item, index) => {
  118. if (item.payStatus) {
  119. item.index = index;
  120. newPayList.push(item)
  121. }
  122. });
  123. this.$nextTick(e => {
  124. this.active = newPayList[0].index;
  125. this.paytype = newPayList[0].value;
  126. })
  127. },
  128. immediate: true,
  129. deep: true
  130. }
  131. },
  132. onLoad(options) {
  133. if (options.order_id) this.orderId = options.order_id
  134. if (options.from_type) this.fromType = options.from_type
  135. this.getBasicConfig()
  136. },
  137. onShow() {
  138. let options = wx.getEnterOptionsSync();
  139. if (options.scene == '1038' && options.referrerInfo.appId == 'wxef277996acc166c3' && this.initIn) {
  140. // 代表从收银台小程序返回
  141. let extraData = options.referrerInfo.extraData;
  142. this.initIn = false
  143. if (!extraData) {
  144. // "当前通过物理按键返回,未接收到返参,建议自行查询交易结果";
  145. this.$util.Tips({
  146. title: this.$t(`取消支付`)
  147. }, {
  148. tab: 5,
  149. url: `/pages/goods/order_pay_status/index?order_id=${this.orderId}&msg=${this.$t(`取消支付`)}&type=3&totalPrice=${this.payPriceShow}&status=2`
  150. });
  151. } else {
  152. if (extraData.code == 'success') {
  153. this.$util.Tips({
  154. title: this.$t(`支付成功`),
  155. icon: 'success'
  156. }, {
  157. tab: 5,
  158. url: `/pages/goods/order_pay_status/index?order_id=${this.orderId}&msg=${this.jumpData.msg}&type=3&totalPrice=${this.payPriceShow}`
  159. });
  160. } else if (extraData.code == 'cancel') {
  161. // "支付已取消";
  162. this.$util.Tips({
  163. title: this.$t(`取消支付`)
  164. }, {
  165. tab: 5,
  166. url: `/pages/goods/order_pay_status/index?order_id=${this.orderId}&msg=${this.$t(`取消支付`)}&type=3&totalPrice=${this.payPriceShow}&status=2`
  167. });
  168. } else {
  169. // "支付失败:" + extraData.errmsg;
  170. uni.reLaunch({
  171. url: `/pages/goods/order_pay_status/index?order_id=${this.orderId}&msg=${this.$t(`支付失败`)}&totalPrice=${this.payPriceShow}`
  172. })
  173. }
  174. }
  175. }
  176. },
  177. methods: {
  178. getBasicConfig() {
  179. basicConfig().then(res => {
  180. console.log(res,'支付配置')
  181. //微信支付是否开启
  182. this.cartArr[0].payStatus = res.data.pay_weixin_open || 0
  183. //支付宝是否开启
  184. this.cartArr[1].payStatus = res.data.ali_pay_status || 0;
  185. //#ifdef MP
  186. this.cartArr[1].payStatus = 0;
  187. //#endif
  188. //余额支付是否开启
  189. this.cartArr[2].payStatus = res.data.yue_pay_status
  190. if (res.data.offline_pay_status) {
  191. this.cartArr[3].payStatus = 1
  192. } else {
  193. this.cartArr[3].payStatus = 0
  194. }
  195. //好友代付是否开启
  196. this.cartArr[4].payStatus = res.data.friend_pay_status || 0;
  197. this.getCashierOrder()
  198. }).catch(err => {
  199. uni.hideLoading();
  200. return this.$util.Tips({
  201. title: err
  202. })
  203. })
  204. },
  205. getCashierOrder() {
  206. uni.showLoading({
  207. title: this.$t(`创建订单中`)
  208. });
  209. getCashierOrder(this.orderId, this.fromType).then(res => {
  210. this.payPrice = this.payPriceShow = res.data.pay_price
  211. this.payPostage = res.data.pay_postage
  212. this.offlinePostage = res.data.offline_postage
  213. this.invalidTime = res.data.invalid_time
  214. this.cartArr[2].number = res.data.now_money;
  215. this.number = Number(res.data.now_money) || 0;
  216. this.oid = res.data.oid
  217. uni.hideLoading();
  218. }).catch(err => {
  219. uni.hideLoading();
  220. return this.$util.Tips({
  221. title: err
  222. })
  223. })
  224. },
  225. payType(number, paytype, index) {
  226. this.active = index;
  227. this.paytype = paytype;
  228. this.number = number;
  229. if (this.offlinePostage) {
  230. if (paytype == 'offline') {
  231. this.payPriceShow = this.$util.$h.Sub(this.payPrice, this.payPostage);
  232. } else {
  233. this.payPriceShow = this.payPrice;
  234. }
  235. }
  236. },
  237. formpost(url, postData) {
  238. let tempform = document.createElement("form");
  239. tempform.action = url;
  240. tempform.method = "post";
  241. tempform.target = "_self";
  242. tempform.style.display = "none";
  243. for (let x in postData) {
  244. let opt = document.createElement("input");
  245. opt.name = x;
  246. opt.value = postData[x];
  247. tempform.appendChild(opt);
  248. }
  249. document.body.appendChild(tempform);
  250. this.$nextTick(e => {
  251. tempform.submit();
  252. })
  253. },
  254. waitPay() {
  255. uni.reLaunch({
  256. url: '/pages/goods/order_pay_status/index?order_id=' + this.orderId + '&msg=取消支付&type=3' +
  257. '&status=2&totalPrice=' + this.payPriceShow
  258. })
  259. },
  260. goPay(number, paytype) {
  261. let that = this;
  262. if (!that.orderId) return that.$util.Tips({
  263. title: that.$t(`请选择要支付的订单`)
  264. });
  265. if (paytype == 'yue' && parseFloat(number) < parseFloat(that.payPriceShow)) return that.$util.Tips({
  266. title: that.$t(`余额不足`)
  267. });
  268. uni.showLoading({
  269. title: that.$t(`支付中`)
  270. });
  271. if (paytype == 'friend' && that.orderId) {
  272. uni.hideLoading();
  273. return uni.navigateTo({
  274. url: '/pages/users/payment_on_behalf/index?oid=' + that.oid + '&spread=' +
  275. this.$store.state.app.uid,
  276. success: res => {},
  277. fail: () => {},
  278. complete: () => {}
  279. });
  280. }
  281. orderPay({
  282. uni: that.orderId,
  283. paytype: paytype,
  284. type: that.friendPay ? 1 : 0,
  285. // #ifdef H5
  286. quitUrl: location.port ? location.protocol + '//' + location.hostname + ':' + location
  287. .port +
  288. '/pages/goods/order_details/index?order_id=' + this.orderId : location.protocol +
  289. '//' + location.hostname +
  290. '/pages/goods/order_details/index?order_id=' + this.orderId
  291. // #endif
  292. // #ifdef APP-PLUS
  293. quitUrl: '/pages/goods/order_details/index?order_id=' + this.orderId
  294. // #endif
  295. }).then(res => {
  296. let status = res.data.status,
  297. orderId = res.data.result.order_id,
  298. jsConfig = res.data.result.jsConfig,
  299. goPages = '/pages/goods/order_pay_status/index?order_id=' + this.orderId + '&msg=' +
  300. res
  301. .msg +
  302. '&type=3' + '&totalPrice=' + this.payPriceShow,
  303. friendPay = '/pages/users/payment_on_behalf/index?order_id=' + this.orderId +
  304. '&spread=' +
  305. this
  306. .$store.state.app.uid
  307. switch (status) {
  308. case 'ORDER_EXIST':
  309. case 'EXTEND_ORDER':
  310. uni.hideLoading();
  311. return that.$util.Tips({
  312. title: res.msg
  313. }, {
  314. tab: 5,
  315. url: goPages
  316. });
  317. case 'ALLINPAY_PAY':
  318. uni.hideLoading();
  319. // #ifdef MP
  320. this.initIn = true
  321. wx.openEmbeddedMiniProgram({
  322. appId: 'wxef277996acc166c3',
  323. extraData: {
  324. cusid: jsConfig.cusid,
  325. appid: jsConfig.appid,
  326. version: jsConfig.version,
  327. trxamt: jsConfig.trxamt,
  328. reqsn: jsConfig.reqsn,
  329. notify_url: jsConfig.notify_url,
  330. body: jsConfig.body,
  331. remark: jsConfig.remark,
  332. validtime: jsConfig.validtime,
  333. randomstr: jsConfig.randomstr,
  334. paytype: jsConfig.paytype,
  335. sign: jsConfig.sign,
  336. signtype: jsConfig.signtype
  337. }
  338. })
  339. this.jumpData = {
  340. orderId: res.data.result.order_id,
  341. msg: res.msg,
  342. }
  343. // #endif
  344. // #ifdef APP-PLUS
  345. plus.runtime.openURL(jsConfig.payinfo);
  346. setTimeout(e => {
  347. uni.reLaunch({
  348. url: goPages
  349. })
  350. }, 1000)
  351. // #endif
  352. // #ifdef H5
  353. this.formpost(res.data.result.pay_url, jsConfig)
  354. // #endif
  355. break;
  356. case 'PAY_ERROR':
  357. uni.hideLoading();
  358. return that.$util.Tips({
  359. title: res.msg
  360. }, {
  361. tab: 5,
  362. url: goPages
  363. });
  364. break;
  365. case 'SUCCESS':
  366. uni.hideLoading();
  367. if (paytype !== 'friend') {
  368. return that.$util.Tips({
  369. title: res.msg,
  370. icon: 'success'
  371. }, {
  372. tab: 4,
  373. url: goPages
  374. });
  375. } else {
  376. return that.$util.Tips({
  377. title: res.msg,
  378. icon: 'success'
  379. }, {
  380. tab: 4,
  381. url: friendPay
  382. });
  383. }
  384. break;
  385. case 'WECHAT_PAY':
  386. that.toPay = true;
  387. // #ifdef MP
  388. /* that.toPay = true; */
  389. let mp_pay_name = ''
  390. if (uni.requestOrderPayment) {
  391. mp_pay_name = 'requestOrderPayment'
  392. } else {
  393. mp_pay_name = 'requestPayment'
  394. }
  395. uni[mp_pay_name]({
  396. timeStamp: jsConfig.timestamp,
  397. nonceStr: jsConfig.nonceStr,
  398. package: jsConfig.package,
  399. signType: jsConfig.signType,
  400. paySign: jsConfig.paySign,
  401. success: function(res) {
  402. uni.hideLoading();
  403. if (that.BargainId || that.combinationId || that.pinkId ||
  404. that
  405. .seckillId || that.discountId)
  406. return that.$util.Tips({
  407. title: that.$t(`支付成功`),
  408. icon: 'success'
  409. }, {
  410. tab: 4,
  411. url: goPages
  412. });
  413. return that.$util.Tips({
  414. title: that.$t(`支付成功`),
  415. icon: 'success'
  416. }, {
  417. tab: 5,
  418. url: goPages
  419. });
  420. },
  421. fail: function(e) {
  422. uni.hideLoading();
  423. return that.$util.Tips({
  424. title: that.$t(`取消支付`)
  425. }, {
  426. tab: 5,
  427. url: goPages + '&status=2'
  428. });
  429. },
  430. complete: function(e) {
  431. uni.hideLoading();
  432. //关闭当前页面跳转至订单状态
  433. if (res.errMsg == 'requestPayment:cancel' || e.errMsg ==
  434. 'requestOrderPayment:cancel') return that.$util
  435. .Tips({
  436. title: that.$t(`取消支付`)
  437. }, {
  438. tab: 5,
  439. url: goPages + '&status=2'
  440. });
  441. },
  442. })
  443. // #endif
  444. // #ifdef H5
  445. this.$wechat.pay(res.data.result.jsConfig).then(res => {
  446. return that.$util.Tips({
  447. title: that.$t(`支付成功`),
  448. icon: 'success'
  449. }, {
  450. tab: 5,
  451. url: goPages
  452. });
  453. }).catch(res => {
  454. if (!this.$wechat.isWeixin()) {
  455. uni.redirectTo({
  456. url: goPages + '&msg=' + that.$t(`支付失败`) +
  457. '&status=2'
  458. // '&msg=支付失败&status=2'
  459. })
  460. }
  461. if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
  462. title: that.$t(`取消支付`)
  463. }, {
  464. tab: 5,
  465. url: goPages + '&status=2'
  466. });
  467. })
  468. // #endif
  469. // #ifdef APP-PLUS
  470. uni.requestPayment({
  471. provider: 'wxpay',
  472. orderInfo: jsConfig,
  473. success: (e) => {
  474. let url = goPages;
  475. uni.showToast({
  476. title: that.$t(`支付成功`)
  477. })
  478. setTimeout(res => {
  479. uni.redirectTo({
  480. url: url
  481. })
  482. }, 2000)
  483. },
  484. fail: (e) => {
  485. let url = '/pages/goods/order_pay_status/index?order_id=' +
  486. orderId +
  487. '&msg=' + that.$t(`支付失败`);
  488. uni.showModal({
  489. content: that.$t(`支付失败`),
  490. showCancel: false,
  491. success: function(res) {
  492. if (res.confirm) {
  493. uni.redirectTo({
  494. url: url
  495. })
  496. } else if (res.cancel) {}
  497. }
  498. })
  499. },
  500. complete: () => {
  501. uni.hideLoading();
  502. },
  503. });
  504. // #endif
  505. break;
  506. case 'PAY_DEFICIENCY':
  507. uni.hideLoading();
  508. //余额不足
  509. return that.$util.Tips({
  510. title: res.msg
  511. }, {
  512. tab: 5,
  513. url: goPages + '&status=1'
  514. });
  515. break;
  516. case "WECHAT_H5_PAY":
  517. uni.hideLoading();
  518. that.$util.Tips({
  519. title: that.$t(`等待支付中`)
  520. }, {
  521. tab: 4,
  522. url: goPages + '&status=0'
  523. });
  524. setTimeout(() => {
  525. location.href = res.data.result.jsConfig.h5_url;
  526. }, 1500);
  527. break;
  528. case 'ALIPAY_PAY':
  529. //#ifdef H5
  530. uni.hideLoading();
  531. that.$util.Tips({
  532. title: that.$t(`等待支付中`)
  533. }, {
  534. tab: 4,
  535. url: goPages + '&status=0'
  536. });
  537. that.formContent = res.data.result.jsConfig;
  538. setTimeout(() => {
  539. document.getElementById('alipaysubmit').submit();
  540. }, 1500);
  541. //#endif
  542. // #ifdef MP
  543. uni.navigateTo({
  544. url: `/pages/users/alipay_invoke/index?id=${orderId}&link=${jsConfig.qrCode}`
  545. });
  546. // #endif
  547. // #ifdef APP-PLUS
  548. uni.requestPayment({
  549. provider: 'alipay',
  550. orderInfo: jsConfig,
  551. success: (e) => {
  552. uni.showToast({
  553. title: that.$t(`支付成功`)
  554. })
  555. let url = '/pages/goods/order_pay_status/index?order_id=' +
  556. orderId +
  557. '&msg=' + that.$t(`支付成功`);
  558. setTimeout(res => {
  559. uni.redirectTo({
  560. url: url
  561. })
  562. }, 2000)
  563. },
  564. fail: (e) => {
  565. let url = '/pages/goods/order_pay_status/index?order_id=' +
  566. orderId +
  567. '&msg=' + that.$t(`支付失败`);
  568. uni.showModal({
  569. content: that.$t(`支付失败`),
  570. showCancel: false,
  571. success: function(res) {
  572. if (res.confirm) {
  573. uni.redirectTo({
  574. url: url
  575. })
  576. } else if (res.cancel) {}
  577. }
  578. })
  579. },
  580. complete: () => {
  581. uni.hideLoading();
  582. },
  583. });
  584. // #endif
  585. break;
  586. }
  587. }).catch(err => {
  588. uni.hideLoading();
  589. return that.$util.Tips({
  590. title: err
  591. }, () => {
  592. that.$emit('onChangeFun', {
  593. action: 'pay_fail'
  594. });
  595. });
  596. })
  597. }
  598. }
  599. }
  600. </script>
  601. <style lang="scss" scoped>
  602. .page {
  603. .pay-price {
  604. display: flex;
  605. justify-content: center;
  606. flex-direction: column;
  607. align-items: center;
  608. padding: 50rpx 0 40rpx 0;
  609. .price {
  610. color: #E93323;
  611. margin-bottom: 20rpx;
  612. display: flex;
  613. align-items: flex-end;
  614. .unit {
  615. font-size: 34rpx;
  616. font-weight: 500;
  617. line-height: 41rpx;
  618. }
  619. .num {
  620. font-size: 50rpx;
  621. font-weight: 600;
  622. }
  623. }
  624. .count-down {
  625. display: flex;
  626. align-items: center;
  627. background-color: #fff;
  628. padding: 8rpx 28rpx;
  629. border-radius: 40rpx;
  630. font-size: 24rpx;
  631. color: #E93323;
  632. .time {
  633. margin-top: 0 !important;
  634. }
  635. /deep/.red {
  636. margin: 0 !important;
  637. }
  638. }
  639. }
  640. .payment {
  641. width: 690rpx;
  642. border-radius: 14rpx 14rpx;
  643. background-color: #fff;
  644. z-index: 999;
  645. margin: 0 30rpx;
  646. .title {
  647. color: #666666;
  648. font-size: 26rpx;
  649. padding: 30rpx 0 0 30rpx;
  650. }
  651. .payMoney {
  652. font-size: 28rpx;
  653. color: #333333;
  654. text-align: center;
  655. margin-top: 50rpx;
  656. .font-color {
  657. margin-left: 10rpx;
  658. .money {
  659. font-size: 40rpx;
  660. }
  661. }
  662. }
  663. }
  664. .payment.on {
  665. transform: translate3d(0, 0, 0);
  666. }
  667. .icon-xuanzhong11 {
  668. color: #E93323 !important;
  669. }
  670. .payment .item {
  671. border-bottom: 1rpx solid #eee;
  672. height: 130rpx;
  673. margin-left: 30rpx;
  674. padding-right: 30rpx;
  675. }
  676. .payment .item:last-child {
  677. border-bottom: none;
  678. }
  679. .payment .item .left {
  680. flex: 1;
  681. }
  682. .payment .item .left .text {
  683. flex: 1;
  684. }
  685. .payment .item .left .text .name {
  686. font-size: 30rpx;
  687. color: #333;
  688. }
  689. .payment .item .left .text .info {
  690. font-size: 22rpx;
  691. color: #999;
  692. }
  693. .payment .item .left .text .info .money {
  694. color: #ff9900;
  695. }
  696. .payment .item .left .iconfont {
  697. font-size: 50rpx;
  698. color: #09bb07;
  699. margin-right: 28rpx;
  700. }
  701. .payment .item .left .iconfont.icon-zhifubao {
  702. color: #00aaea;
  703. }
  704. .payment .item .left .iconfont.icon-yuezhifu {
  705. color: #ff9900;
  706. }
  707. .payment .item .left .iconfont.icon-yuezhifu1 {
  708. color: #eb6623;
  709. }
  710. .payment .item .left .iconfont.icon-tonglianzhifu1 {
  711. color: #305fd8;
  712. }
  713. .payment .item .iconfont {
  714. font-size: 40rpx;
  715. color: #ccc;
  716. }
  717. .icon-haoyoudaizhifu {
  718. color: #F34C3E !important;
  719. }
  720. .btn {
  721. position: fixed;
  722. left: 30rpx;
  723. display: flex;
  724. flex-direction: column;
  725. align-items: center;
  726. bottom: 30rpx;
  727. bottom: calc(30rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  728. bottom: calc(30rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  729. }
  730. .wait-pay {
  731. color: #aaa;
  732. font-size: 24rpx;
  733. padding-top: 20rpx;
  734. }
  735. .button {
  736. width: 690rpx;
  737. height: 90rpx;
  738. border-radius: 45rpx;
  739. color: #FFFFFF;
  740. background-color: #E93323;
  741. }
  742. }
  743. </style>