index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  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. uni.hideLoading();
  313. uni.reLaunch({
  314. url: goPages
  315. })
  316. return ;
  317. }
  318. if (paytype == 'huijupay' && that.orderId) {
  319. setTimeout(()=>{
  320. uni.hideLoading();
  321. uni.reLaunch({
  322. url:goPages
  323. })
  324. },3000)
  325. return
  326. }
  327. switch (status) {
  328. case 'ORDER_EXIST':
  329. case 'EXTEND_ORDER':
  330. uni.hideLoading();
  331. return that.$util.Tips({
  332. title: res.msg
  333. }, {
  334. tab: 5,
  335. url: goPages
  336. });
  337. case 'ALLINPAY_PAY':
  338. uni.hideLoading();
  339. // #ifdef MP
  340. this.initIn = true
  341. wx.openEmbeddedMiniProgram({
  342. appId: 'wxef277996acc166c3',
  343. extraData: {
  344. cusid: jsConfig.cusid,
  345. appid: jsConfig.appid,
  346. version: jsConfig.version,
  347. trxamt: jsConfig.trxamt,
  348. reqsn: jsConfig.reqsn,
  349. notify_url: jsConfig.notify_url,
  350. body: jsConfig.body,
  351. remark: jsConfig.remark,
  352. validtime: jsConfig.validtime,
  353. randomstr: jsConfig.randomstr,
  354. paytype: jsConfig.paytype,
  355. sign: jsConfig.sign,
  356. signtype: jsConfig.signtype
  357. }
  358. })
  359. this.jumpData = {
  360. orderId: res.data.result.order_id,
  361. msg: res.msg,
  362. }
  363. // #endif
  364. // #ifdef APP-PLUS
  365. plus.runtime.openURL(jsConfig.payinfo);
  366. setTimeout(e => {
  367. uni.reLaunch({
  368. url: goPages
  369. })
  370. }, 1000)
  371. // #endif
  372. // #ifdef H5
  373. this.formpost(res.data.result.pay_url, jsConfig)
  374. // #endif
  375. break;
  376. case 'PAY_ERROR':
  377. uni.hideLoading();
  378. return that.$util.Tips({
  379. title: res.msg
  380. }, {
  381. tab: 5,
  382. url: goPages
  383. });
  384. break;
  385. case 'SUCCESS':
  386. uni.hideLoading();
  387. if (paytype !== 'friend') {
  388. return that.$util.Tips({
  389. title: res.msg,
  390. icon: 'success'
  391. }, {
  392. tab: 4,
  393. url: goPages
  394. });
  395. } else {
  396. return that.$util.Tips({
  397. title: res.msg,
  398. icon: 'success'
  399. }, {
  400. tab: 4,
  401. url: friendPay
  402. });
  403. }
  404. break;
  405. case 'WECHAT_PAY':
  406. that.toPay = true;
  407. // #ifdef MP
  408. /* that.toPay = true; */
  409. let mp_pay_name = ''
  410. if (uni.requestOrderPayment) {
  411. mp_pay_name = 'requestOrderPayment'
  412. } else {
  413. mp_pay_name = 'requestPayment'
  414. }
  415. uni[mp_pay_name]({
  416. timeStamp: jsConfig.timestamp,
  417. nonceStr: jsConfig.nonceStr,
  418. package: jsConfig.package,
  419. signType: jsConfig.signType,
  420. paySign: jsConfig.paySign,
  421. success: function(res) {
  422. uni.hideLoading();
  423. if (that.BargainId || that.combinationId || that.pinkId ||
  424. that
  425. .seckillId || that.discountId)
  426. return that.$util.Tips({
  427. title: that.$t(`支付成功`),
  428. icon: 'success'
  429. }, {
  430. tab: 4,
  431. url: goPages
  432. });
  433. return that.$util.Tips({
  434. title: that.$t(`支付成功`),
  435. icon: 'success'
  436. }, {
  437. tab: 5,
  438. url: goPages
  439. });
  440. },
  441. fail: function(e) {
  442. uni.hideLoading();
  443. return that.$util.Tips({
  444. title: that.$t(`取消支付`)
  445. }, {
  446. tab: 5,
  447. url: goPages + '&status=2'
  448. });
  449. },
  450. complete: function(e) {
  451. uni.hideLoading();
  452. //关闭当前页面跳转至订单状态
  453. if (res.errMsg == 'requestPayment:cancel' || e.errMsg ==
  454. 'requestOrderPayment:cancel') return that.$util
  455. .Tips({
  456. title: that.$t(`取消支付`)
  457. }, {
  458. tab: 5,
  459. url: goPages + '&status=2'
  460. });
  461. },
  462. })
  463. // #endif
  464. // #ifdef H5
  465. this.$wechat.pay(res.data.result.jsConfig).then(res => {
  466. return that.$util.Tips({
  467. title: that.$t(`支付成功`),
  468. icon: 'success'
  469. }, {
  470. tab: 5,
  471. url: goPages
  472. });
  473. }).catch(res => {
  474. if (!this.$wechat.isWeixin()) {
  475. uni.redirectTo({
  476. url: goPages + '&msg=' + that.$t(`支付失败`) +
  477. '&status=2'
  478. // '&msg=支付失败&status=2'
  479. })
  480. }
  481. if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
  482. title: that.$t(`取消支付`)
  483. }, {
  484. tab: 5,
  485. url: goPages + '&status=2'
  486. });
  487. })
  488. // #endif
  489. // #ifdef APP-PLUS
  490. uni.requestPayment({
  491. provider: 'wxpay',
  492. orderInfo: jsConfig,
  493. success: (e) => {
  494. let url = goPages;
  495. uni.showToast({
  496. title: that.$t(`支付成功`)
  497. })
  498. setTimeout(res => {
  499. uni.redirectTo({
  500. url: url
  501. })
  502. }, 2000)
  503. },
  504. fail: (e) => {
  505. let url = '/pages/goods/order_pay_status/index?order_id=' +
  506. orderId +
  507. '&msg=' + that.$t(`支付失败`);
  508. uni.showModal({
  509. content: that.$t(`支付失败`),
  510. showCancel: false,
  511. success: function(res) {
  512. if (res.confirm) {
  513. uni.redirectTo({
  514. url: url
  515. })
  516. } else if (res.cancel) {}
  517. }
  518. })
  519. },
  520. complete: () => {
  521. uni.hideLoading();
  522. },
  523. });
  524. // #endif
  525. break;
  526. case 'PAY_DEFICIENCY':
  527. uni.hideLoading();
  528. //余额不足
  529. return that.$util.Tips({
  530. title: res.msg
  531. }, {
  532. tab: 5,
  533. url: goPages + '&status=1'
  534. });
  535. break;
  536. case "WECHAT_H5_PAY":
  537. uni.hideLoading();
  538. that.$util.Tips({
  539. title: that.$t(`等待支付中`)
  540. }, {
  541. tab: 4,
  542. url: goPages + '&status=0'
  543. });
  544. setTimeout(() => {
  545. location.href = res.data.result.jsConfig.h5_url;
  546. }, 1500);
  547. break;
  548. case 'ALIPAY_PAY':
  549. //#ifdef H5
  550. uni.hideLoading();
  551. that.$util.Tips({
  552. title: that.$t(`等待支付中`)
  553. }, {
  554. tab: 4,
  555. url: goPages + '&status=0'
  556. });
  557. that.formContent = res.data.result.jsConfig;
  558. setTimeout(() => {
  559. document.getElementById('alipaysubmit').submit();
  560. }, 1500);
  561. //#endif
  562. // #ifdef MP
  563. uni.navigateTo({
  564. url: `/pages/users/alipay_invoke/index?id=${orderId}&link=${jsConfig.qrCode}`
  565. });
  566. // #endif
  567. // #ifdef APP-PLUS
  568. uni.requestPayment({
  569. provider: 'alipay',
  570. orderInfo: jsConfig,
  571. success: (e) => {
  572. uni.showToast({
  573. title: that.$t(`支付成功`)
  574. })
  575. let url = '/pages/goods/order_pay_status/index?order_id=' +
  576. orderId +
  577. '&msg=' + that.$t(`支付成功`);
  578. setTimeout(res => {
  579. uni.redirectTo({
  580. url: url
  581. })
  582. }, 2000)
  583. },
  584. fail: (e) => {
  585. let url = '/pages/goods/order_pay_status/index?order_id=' +
  586. orderId +
  587. '&msg=' + that.$t(`支付失败`);
  588. uni.showModal({
  589. content: that.$t(`支付失败`),
  590. showCancel: false,
  591. success: function(res) {
  592. if (res.confirm) {
  593. uni.redirectTo({
  594. url: url
  595. })
  596. } else if (res.cancel) {}
  597. }
  598. })
  599. },
  600. complete: () => {
  601. uni.hideLoading();
  602. },
  603. });
  604. // #endif
  605. break;
  606. }
  607. }).catch(err => {
  608. uni.hideLoading();
  609. if (paytype == 'huijupay') {
  610. if(err=='无签约记录'){
  611. uni.showModal({
  612. title: '错误',
  613. content: '您未签约是否立即签约',
  614. success: res => {
  615. if(res.confirm){
  616. uni.reLaunch({
  617. url:'/pages/users/user_bind/index'
  618. })
  619. }
  620. },
  621. });
  622. }
  623. }
  624. return that.$util.Tips({
  625. title: err
  626. }, () => {
  627. that.$emit('onChangeFun', {
  628. action: 'pay_fail'
  629. });
  630. });
  631. })
  632. }
  633. }
  634. }
  635. </script>
  636. <style lang="scss" scoped>
  637. .page {
  638. .pay-price {
  639. display: flex;
  640. justify-content: center;
  641. flex-direction: column;
  642. align-items: center;
  643. padding: 50rpx 0 40rpx 0;
  644. .price {
  645. color: #E93323;
  646. margin-bottom: 20rpx;
  647. display: flex;
  648. align-items: flex-end;
  649. .unit {
  650. font-size: 34rpx;
  651. font-weight: 500;
  652. line-height: 41rpx;
  653. }
  654. .num {
  655. font-size: 50rpx;
  656. font-weight: 600;
  657. }
  658. }
  659. .count-down {
  660. display: flex;
  661. align-items: center;
  662. background-color: #fff;
  663. padding: 8rpx 28rpx;
  664. border-radius: 40rpx;
  665. font-size: 24rpx;
  666. color: #E93323;
  667. .time {
  668. margin-top: 0 !important;
  669. }
  670. /deep/.red {
  671. margin: 0 !important;
  672. }
  673. }
  674. }
  675. .payment {
  676. width: 690rpx;
  677. border-radius: 14rpx 14rpx;
  678. background-color: #fff;
  679. z-index: 999;
  680. margin: 0 30rpx;
  681. .title {
  682. color: #666666;
  683. font-size: 26rpx;
  684. padding: 30rpx 0 0 30rpx;
  685. }
  686. .payMoney {
  687. font-size: 28rpx;
  688. color: #333333;
  689. text-align: center;
  690. margin-top: 50rpx;
  691. .font-color {
  692. margin-left: 10rpx;
  693. .money {
  694. font-size: 40rpx;
  695. }
  696. }
  697. }
  698. }
  699. .payment.on {
  700. transform: translate3d(0, 0, 0);
  701. }
  702. .icon-xuanzhong11 {
  703. color: #E93323 !important;
  704. }
  705. .payment .item {
  706. border-bottom: 1rpx solid #eee;
  707. height: 130rpx;
  708. margin-left: 30rpx;
  709. padding-right: 30rpx;
  710. }
  711. .payment .item:last-child {
  712. border-bottom: none;
  713. }
  714. .payment .item .left {
  715. flex: 1;
  716. }
  717. .payment .item .left .text {
  718. flex: 1;
  719. }
  720. .payment .item .left .text .name {
  721. font-size: 30rpx;
  722. color: #333;
  723. }
  724. .payment .item .left .text .info {
  725. font-size: 22rpx;
  726. color: #999;
  727. }
  728. .payment .item .left .text .info .money {
  729. color: #ff9900;
  730. }
  731. .payment .item .left .iconfont {
  732. font-size: 50rpx;
  733. color: #09bb07;
  734. margin-right: 28rpx;
  735. }
  736. .payment .item .left .iconfont.icon-zhifubao {
  737. color: #00aaea;
  738. }
  739. .payment .item .left .iconfont.icon-yuezhifu {
  740. color: #ff9900;
  741. }
  742. .payment .item .left .iconfont.icon-yuezhifu1 {
  743. color: #eb6623;
  744. }
  745. .payment .item .left .iconfont.icon-tonglianzhifu1 {
  746. color: #305fd8;
  747. }
  748. .payment .item .iconfont {
  749. font-size: 40rpx;
  750. color: #ccc;
  751. }
  752. .icon-haoyoudaizhifu {
  753. color: #F34C3E !important;
  754. }
  755. .btn {
  756. position: fixed;
  757. left: 30rpx;
  758. display: flex;
  759. flex-direction: column;
  760. align-items: center;
  761. bottom: 30rpx;
  762. bottom: calc(30rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  763. bottom: calc(30rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  764. }
  765. .wait-pay {
  766. color: #aaa;
  767. font-size: 24rpx;
  768. padding-top: 20rpx;
  769. }
  770. .button {
  771. width: 690rpx;
  772. height: 90rpx;
  773. border-radius: 45rpx;
  774. color: #FFFFFF;
  775. background-color: #E93323;
  776. }
  777. }
  778. </style>