index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  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. //微信支付是否开启
  181. this.cartArr[0].payStatus = res.data.pay_weixin_open || 0
  182. //支付宝是否开启
  183. this.cartArr[1].payStatus = res.data.ali_pay_status || 0;
  184. //#ifdef MP
  185. this.cartArr[1].payStatus = 0;
  186. //#endif
  187. //余额支付是否开启
  188. this.cartArr[2].payStatus = res.data.yue_pay_status
  189. if (res.data.offline_pay_status) {
  190. this.cartArr[3].payStatus = 1
  191. } else {
  192. this.cartArr[3].payStatus = 0
  193. }
  194. //好友代付是否开启
  195. this.cartArr[4].payStatus = res.data.friend_pay_status || 0;
  196. this.getCashierOrder()
  197. }).catch(err => {
  198. uni.hideLoading();
  199. return this.$util.Tips({
  200. title: err
  201. })
  202. })
  203. },
  204. getCashierOrder() {
  205. uni.showLoading({
  206. title: this.$t(`创建订单中`)
  207. });
  208. getCashierOrder(this.orderId, this.fromType).then(res => {
  209. this.payPrice = this.payPriceShow = res.data.pay_price
  210. this.payPostage = res.data.pay_postage
  211. this.offlinePostage = res.data.offline_postage
  212. this.invalidTime = res.data.invalid_time
  213. this.cartArr[2].number = res.data.now_money;
  214. this.number = Number(res.data.now_money) || 0;
  215. this.oid = res.data.oid
  216. uni.hideLoading();
  217. }).catch(err => {
  218. uni.hideLoading();
  219. return this.$util.Tips({
  220. title: err
  221. })
  222. })
  223. },
  224. payType(number, paytype, index) {
  225. this.active = index;
  226. this.paytype = paytype;
  227. this.number = number;
  228. if (this.offlinePostage) {
  229. if (paytype == 'offline') {
  230. this.payPriceShow = this.$util.$h.Sub(this.payPrice, this.payPostage);
  231. } else {
  232. this.payPriceShow = this.payPrice;
  233. }
  234. }
  235. },
  236. formpost(url, postData) {
  237. let tempform = document.createElement("form");
  238. tempform.action = url;
  239. tempform.method = "post";
  240. tempform.target = "_self";
  241. tempform.style.display = "none";
  242. for (let x in postData) {
  243. let opt = document.createElement("input");
  244. opt.name = x;
  245. opt.value = postData[x];
  246. tempform.appendChild(opt);
  247. }
  248. document.body.appendChild(tempform);
  249. this.$nextTick(e => {
  250. tempform.submit();
  251. })
  252. },
  253. waitPay() {
  254. uni.reLaunch({
  255. url: '/pages/goods/order_pay_status/index?order_id=' + this.orderId + '&msg=取消支付&type=3' +
  256. '&status=2&totalPrice=' + this.payPriceShow
  257. })
  258. },
  259. goPay(number, paytype) {
  260. let that = this;
  261. if (!that.orderId) return that.$util.Tips({
  262. title: that.$t(`请选择要支付的订单`)
  263. });
  264. if (paytype == 'yue' && parseFloat(number) < parseFloat(that.payPriceShow)) return that.$util.Tips({
  265. title: that.$t(`余额不足`)
  266. });
  267. uni.showLoading({
  268. title: that.$t(`支付中`)
  269. });
  270. if (paytype == 'friend' && that.orderId) {
  271. uni.hideLoading();
  272. return uni.navigateTo({
  273. url: '/pages/users/payment_on_behalf/index?oid=' + that.oid + '&spread=' +
  274. this.$store.state.app.uid,
  275. success: res => {},
  276. fail: () => {},
  277. complete: () => {}
  278. });
  279. }
  280. orderPay({
  281. uni: that.orderId,
  282. paytype: paytype,
  283. type: that.friendPay ? 1 : 0,
  284. // #ifdef H5
  285. quitUrl: location.port ? location.protocol + '//' + location.hostname + ':' + location
  286. .port +
  287. '/pages/goods/order_details/index?order_id=' + this.orderId : location.protocol +
  288. '//' + location.hostname +
  289. '/pages/goods/order_details/index?order_id=' + this.orderId
  290. // #endif
  291. // #ifdef APP-PLUS
  292. quitUrl: '/pages/goods/order_details/index?order_id=' + this.orderId
  293. // #endif
  294. }).then(res => {
  295. let status = res.data.status,
  296. orderId = res.data.result.order_id,
  297. jsConfig = res.data.result.jsConfig,
  298. goPages = '/pages/goods/order_pay_status/index?order_id=' + this.orderId + '&msg=' +
  299. res
  300. .msg +
  301. '&type=3' + '&totalPrice=' + this.payPriceShow,
  302. friendPay = '/pages/users/payment_on_behalf/index?order_id=' + this.orderId +
  303. '&spread=' +
  304. this
  305. .$store.state.app.uid
  306. switch (status) {
  307. case 'ORDER_EXIST':
  308. case 'EXTEND_ORDER':
  309. uni.hideLoading();
  310. return that.$util.Tips({
  311. title: res.msg
  312. }, {
  313. tab: 5,
  314. url: goPages
  315. });
  316. case 'ALLINPAY_PAY':
  317. uni.hideLoading();
  318. // #ifdef MP
  319. this.initIn = true
  320. wx.openEmbeddedMiniProgram({
  321. appId: 'wxef277996acc166c3',
  322. extraData: {
  323. cusid: jsConfig.cusid,
  324. appid: jsConfig.appid,
  325. version: jsConfig.version,
  326. trxamt: jsConfig.trxamt,
  327. reqsn: jsConfig.reqsn,
  328. notify_url: jsConfig.notify_url,
  329. body: jsConfig.body,
  330. remark: jsConfig.remark,
  331. validtime: jsConfig.validtime,
  332. randomstr: jsConfig.randomstr,
  333. paytype: jsConfig.paytype,
  334. sign: jsConfig.sign,
  335. signtype: jsConfig.signtype
  336. }
  337. })
  338. this.jumpData = {
  339. orderId: res.data.result.order_id,
  340. msg: res.msg,
  341. }
  342. // #endif
  343. // #ifdef APP-PLUS
  344. plus.runtime.openURL(jsConfig.payinfo);
  345. setTimeout(e => {
  346. uni.reLaunch({
  347. url: goPages
  348. })
  349. }, 1000)
  350. // #endif
  351. // #ifdef H5
  352. this.formpost(res.data.result.pay_url, jsConfig)
  353. // #endif
  354. break;
  355. case 'PAY_ERROR':
  356. uni.hideLoading();
  357. return that.$util.Tips({
  358. title: res.msg
  359. }, {
  360. tab: 5,
  361. url: goPages
  362. });
  363. break;
  364. case 'SUCCESS':
  365. uni.hideLoading();
  366. if (paytype !== 'friend') {
  367. return that.$util.Tips({
  368. title: res.msg,
  369. icon: 'success'
  370. }, {
  371. tab: 4,
  372. url: goPages
  373. });
  374. } else {
  375. return that.$util.Tips({
  376. title: res.msg,
  377. icon: 'success'
  378. }, {
  379. tab: 4,
  380. url: friendPay
  381. });
  382. }
  383. break;
  384. case 'WECHAT_PAY':
  385. that.toPay = true;
  386. // #ifdef MP
  387. /* that.toPay = true; */
  388. let mp_pay_name = ''
  389. if (uni.requestOrderPayment) {
  390. mp_pay_name = 'requestOrderPayment'
  391. } else {
  392. mp_pay_name = 'requestPayment'
  393. }
  394. uni[mp_pay_name]({
  395. timeStamp: jsConfig.timestamp,
  396. nonceStr: jsConfig.nonceStr,
  397. package: jsConfig.package,
  398. signType: jsConfig.signType,
  399. paySign: jsConfig.paySign,
  400. success: function(res) {
  401. uni.hideLoading();
  402. if (that.BargainId || that.combinationId || that.pinkId ||
  403. that
  404. .seckillId || that.discountId)
  405. return that.$util.Tips({
  406. title: that.$t(`支付成功`),
  407. icon: 'success'
  408. }, {
  409. tab: 4,
  410. url: goPages
  411. });
  412. return that.$util.Tips({
  413. title: that.$t(`支付成功`),
  414. icon: 'success'
  415. }, {
  416. tab: 5,
  417. url: goPages
  418. });
  419. },
  420. fail: function(e) {
  421. uni.hideLoading();
  422. return that.$util.Tips({
  423. title: that.$t(`取消支付`)
  424. }, {
  425. tab: 5,
  426. url: goPages + '&status=2'
  427. });
  428. },
  429. complete: function(e) {
  430. uni.hideLoading();
  431. //关闭当前页面跳转至订单状态
  432. if (res.errMsg == 'requestPayment:cancel' || e.errMsg ==
  433. 'requestOrderPayment:cancel') return that.$util
  434. .Tips({
  435. title: that.$t(`取消支付`)
  436. }, {
  437. tab: 5,
  438. url: goPages + '&status=2'
  439. });
  440. },
  441. })
  442. // #endif
  443. // #ifdef H5
  444. this.$wechat.pay(res.data.result.jsConfig).then(res => {
  445. return that.$util.Tips({
  446. title: that.$t(`支付成功`),
  447. icon: 'success'
  448. }, {
  449. tab: 5,
  450. url: goPages
  451. });
  452. }).catch(res => {
  453. if (!this.$wechat.isWeixin()) {
  454. uni.redirectTo({
  455. url: goPages + '&msg=' + that.$t(`支付失败`) +
  456. '&status=2'
  457. // '&msg=支付失败&status=2'
  458. })
  459. }
  460. if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
  461. title: that.$t(`取消支付`)
  462. }, {
  463. tab: 5,
  464. url: goPages + '&status=2'
  465. });
  466. })
  467. // #endif
  468. // #ifdef APP-PLUS
  469. uni.requestPayment({
  470. provider: 'wxpay',
  471. orderInfo: jsConfig,
  472. success: (e) => {
  473. let url = goPages;
  474. uni.showToast({
  475. title: that.$t(`支付成功`)
  476. })
  477. setTimeout(res => {
  478. uni.redirectTo({
  479. url: url
  480. })
  481. }, 2000)
  482. },
  483. fail: (e) => {
  484. let url = '/pages/goods/order_pay_status/index?order_id=' +
  485. orderId +
  486. '&msg=' + that.$t(`支付失败`);
  487. uni.showModal({
  488. content: that.$t(`支付失败`),
  489. showCancel: false,
  490. success: function(res) {
  491. if (res.confirm) {
  492. uni.redirectTo({
  493. url: url
  494. })
  495. } else if (res.cancel) {}
  496. }
  497. })
  498. },
  499. complete: () => {
  500. uni.hideLoading();
  501. },
  502. });
  503. // #endif
  504. break;
  505. case 'PAY_DEFICIENCY':
  506. uni.hideLoading();
  507. //余额不足
  508. return that.$util.Tips({
  509. title: res.msg
  510. }, {
  511. tab: 5,
  512. url: goPages + '&status=1'
  513. });
  514. break;
  515. case "WECHAT_H5_PAY":
  516. uni.hideLoading();
  517. that.$util.Tips({
  518. title: that.$t(`等待支付中`)
  519. }, {
  520. tab: 4,
  521. url: goPages + '&status=0'
  522. });
  523. setTimeout(() => {
  524. location.href = res.data.result.jsConfig.h5_url;
  525. }, 1500);
  526. break;
  527. case 'ALIPAY_PAY':
  528. //#ifdef H5
  529. uni.hideLoading();
  530. that.$util.Tips({
  531. title: that.$t(`等待支付中`)
  532. }, {
  533. tab: 4,
  534. url: goPages + '&status=0'
  535. });
  536. that.formContent = res.data.result.jsConfig;
  537. setTimeout(() => {
  538. document.getElementById('alipaysubmit').submit();
  539. }, 1500);
  540. //#endif
  541. // #ifdef MP
  542. uni.navigateTo({
  543. url: `/pages/users/alipay_invoke/index?id=${orderId}&link=${jsConfig.qrCode}`
  544. });
  545. // #endif
  546. // #ifdef APP-PLUS
  547. uni.requestPayment({
  548. provider: 'alipay',
  549. orderInfo: jsConfig,
  550. success: (e) => {
  551. uni.showToast({
  552. title: that.$t(`支付成功`)
  553. })
  554. let url = '/pages/goods/order_pay_status/index?order_id=' +
  555. orderId +
  556. '&msg=' + that.$t(`支付成功`);
  557. setTimeout(res => {
  558. uni.redirectTo({
  559. url: url
  560. })
  561. }, 2000)
  562. },
  563. fail: (e) => {
  564. let url = '/pages/goods/order_pay_status/index?order_id=' +
  565. orderId +
  566. '&msg=' + that.$t(`支付失败`);
  567. uni.showModal({
  568. content: that.$t(`支付失败`),
  569. showCancel: false,
  570. success: function(res) {
  571. if (res.confirm) {
  572. uni.redirectTo({
  573. url: url
  574. })
  575. } else if (res.cancel) {}
  576. }
  577. })
  578. },
  579. complete: () => {
  580. uni.hideLoading();
  581. },
  582. });
  583. // #endif
  584. break;
  585. }
  586. }).catch(err => {
  587. uni.hideLoading();
  588. return that.$util.Tips({
  589. title: err
  590. }, () => {
  591. that.$emit('onChangeFun', {
  592. action: 'pay_fail'
  593. });
  594. });
  595. })
  596. }
  597. }
  598. }
  599. </script>
  600. <style lang="scss" scoped>
  601. .page {
  602. .pay-price {
  603. display: flex;
  604. justify-content: center;
  605. flex-direction: column;
  606. align-items: center;
  607. padding: 50rpx 0 40rpx 0;
  608. .price {
  609. color: #E93323;
  610. margin-bottom: 20rpx;
  611. display: flex;
  612. align-items: flex-end;
  613. .unit {
  614. font-size: 34rpx;
  615. font-weight: 500;
  616. line-height: 41rpx;
  617. }
  618. .num {
  619. font-size: 50rpx;
  620. font-weight: 600;
  621. }
  622. }
  623. .count-down {
  624. display: flex;
  625. align-items: center;
  626. background-color: #fff;
  627. padding: 8rpx 28rpx;
  628. border-radius: 40rpx;
  629. font-size: 24rpx;
  630. color: #E93323;
  631. .time {
  632. margin-top: 0 !important;
  633. }
  634. /deep/.red {
  635. margin: 0 !important;
  636. }
  637. }
  638. }
  639. .payment {
  640. width: 690rpx;
  641. border-radius: 14rpx 14rpx;
  642. background-color: #fff;
  643. z-index: 999;
  644. margin: 0 30rpx;
  645. .title {
  646. color: #666666;
  647. font-size: 26rpx;
  648. padding: 30rpx 0 0 30rpx;
  649. }
  650. .payMoney {
  651. font-size: 28rpx;
  652. color: #333333;
  653. text-align: center;
  654. margin-top: 50rpx;
  655. .font-color {
  656. margin-left: 10rpx;
  657. .money {
  658. font-size: 40rpx;
  659. }
  660. }
  661. }
  662. }
  663. .payment.on {
  664. transform: translate3d(0, 0, 0);
  665. }
  666. .icon-xuanzhong11 {
  667. color: #E93323 !important;
  668. }
  669. .payment .item {
  670. border-bottom: 1rpx solid #eee;
  671. height: 130rpx;
  672. margin-left: 30rpx;
  673. padding-right: 30rpx;
  674. }
  675. .payment .item:last-child {
  676. border-bottom: none;
  677. }
  678. .payment .item .left {
  679. flex: 1;
  680. }
  681. .payment .item .left .text {
  682. flex: 1;
  683. }
  684. .payment .item .left .text .name {
  685. font-size: 30rpx;
  686. color: #333;
  687. }
  688. .payment .item .left .text .info {
  689. font-size: 22rpx;
  690. color: #999;
  691. }
  692. .payment .item .left .text .info .money {
  693. color: #ff9900;
  694. }
  695. .payment .item .left .iconfont {
  696. font-size: 50rpx;
  697. color: #09bb07;
  698. margin-right: 28rpx;
  699. }
  700. .payment .item .left .iconfont.icon-zhifubao {
  701. color: #00aaea;
  702. }
  703. .payment .item .left .iconfont.icon-yuezhifu {
  704. color: #ff9900;
  705. }
  706. .payment .item .left .iconfont.icon-yuezhifu1 {
  707. color: #eb6623;
  708. }
  709. .payment .item .left .iconfont.icon-tonglianzhifu1 {
  710. color: #305fd8;
  711. }
  712. .payment .item .iconfont {
  713. font-size: 40rpx;
  714. color: #ccc;
  715. }
  716. .icon-haoyoudaizhifu {
  717. color: #F34C3E !important;
  718. }
  719. .btn {
  720. position: fixed;
  721. left: 30rpx;
  722. display: flex;
  723. flex-direction: column;
  724. align-items: center;
  725. bottom: 30rpx;
  726. bottom: calc(30rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  727. bottom: calc(30rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  728. }
  729. .wait-pay {
  730. color: #aaa;
  731. font-size: 24rpx;
  732. padding-top: 20rpx;
  733. }
  734. .button {
  735. width: 690rpx;
  736. height: 90rpx;
  737. border-radius: 45rpx;
  738. color: #FFFFFF;
  739. background-color: #E93323;
  740. }
  741. }
  742. </style>