index.vue 20 KB

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