index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. <template>
  2. <view class="content" :class="{ blueBg: actionInd!=1,greenBg:actionInd==1}">
  3. <view class="coupon_transfer" >
  4. <view class="user">
  5. <view class="imgbox"><image class="img" :src="userinfo.avatar" mode=" scaleToFill"></image></view>
  6. <view class="niceName">{{ userinfo.nickname }}</view>
  7. </view>
  8. <view class="erwema">
  9. <view class="qrbox">
  10. <view class="payMoney" v-if="actionInd == 1">收款码</view>
  11. <view class="payMoney" v-if="actionInd == 0">付款码</view>
  12. <tki-qrcodes
  13. :cid="cid"
  14. ref="qrcode"
  15. :val="val"
  16. :size="size"
  17. :unit="unit"
  18. :background="background"
  19. :foreground="foreground"
  20. :pdground="pdground"
  21. :icon="icon"
  22. :iconSize="iconSize"
  23. :lv="lv"
  24. :onval="onval"
  25. :loadMake="loadMake"
  26. :usingComponents="usingComponents"
  27. @result="qrR"
  28. ></tki-qrcodes>
  29. <!-- <view class="setMoney" @click="openApp">
  30. 设置金额
  31. </view> -->
  32. <view class="setType flex" v-if="actionInd == 0" @click="showChooseType">
  33. <image :src="showType[showPayType].img" mode="" class="type-logo"></image>
  34. <view class="type-wrapper">
  35. <view class="type-tit">{{showType[showPayType].tit}}</view>
  36. <view class="type-info">使用{{showType[showPayType].tit}}支付</view>
  37. </view>
  38. <view class="sele-wrap">
  39. <image src="../../static/img/back.png" mode="" class="selecte-ic"></image>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="bottomTab flex">
  46. <view class="item1" @click="clickItem(0)" :class="{ action: actionInd == 0 }">
  47. <view><image class="img" src="../../static/icon/pay2.png" mode=" widthFix"></image></view>
  48. <view class="text">付款码</view>
  49. </view>
  50. <view class="item1" @click="clickItem(1)" :class="{ action: actionInd == 1 }">
  51. <view><image class="img" src="../../static/icon/pay1.png" mode=" widthFix"></image></view>
  52. <view class="text">收款码</view>
  53. </view>
  54. <view class="item1" @click="clickItem(2)" :class="{ action: actionInd == 2 }">
  55. <view><image class="img" src="../../static/icon/pay3.png" mode=" widthFix"></image></view>
  56. <view class="text">扫一扫</view>
  57. </view>
  58. <view class="item1" @click="openList" :class="{ action: actionInd == 3 }">
  59. <view><image class="img" src="../../static/icon/pay4.png" mode=" widthFix"></image></view>
  60. <view class="text">记录</view>
  61. </view>
  62. </view>
  63. <uniPopup ref="popup1" type="dialog">
  64. <uni-popup-dialog
  65. :isSkm="isSkm"
  66. mode="input"
  67. type="input"
  68. title="支付"
  69. placeholder="请输入支付金额"
  70. :duration="2000"
  71. :before-close="true"
  72. @close="close"
  73. @confirm="confirm"
  74. @changeShowPayType="changeShowPayType"
  75. ></uni-popup-dialog>
  76. </uniPopup>
  77. <uniPopup ref="popup2" type="message"><uni-popup-message type="success" message="支付成功" :duration="2000"></uni-popup-message></uniPopup>
  78. <uniPopup ref="popupPay" type="bottom">
  79. <view class="popup-box">
  80. <view class="popup-pay">
  81. <view class="paybox-top flex">
  82. <view class="type">选择支付方式</view>
  83. <view class="image" @click="close"><image src="../../static/img/x.png" mode="aspectFill"></image></view>
  84. </view>
  85. <view class="paybox-main flex" @click="changePayType(0)">
  86. <view class="zftype flex">
  87. <image src="../../static/img/yue.png" mode="aspectFill"></image>
  88. <view class="zf">余额支付</view>
  89. </view>
  90. <label class="radio" >
  91. <radio style="transform:scale(0.7)" class="rad" value="" :checked="payType == 0" color="#5dbc7c"></radio>
  92. </label>
  93. </view>
  94. <view class="paybox-main flex" @click="changePayType(2)">
  95. <view class="zftype flex">
  96. <image src="../../static/icon/jf.png" mode="aspectFill"></image>
  97. <view class="zf">积分支付</view>
  98. </view>
  99. <label class="radio1" ><radio style="transform:scale(0.7)" value="" :checked="payType == 2" color="#5dbc7c"></radio></label>
  100. </view>
  101. <view class="paybox-main flex" @click="changePayType(1)">
  102. <view class="zftype flex">
  103. <image src="../../static/icon/xfq.png" mode="aspectFill"></image>
  104. <view class="zf">消费券支付</view>
  105. </view>
  106. <label class="radio1" ><radio style="transform:scale(0.7)" value="" :checked="payType == 1" color="#5dbc7c"></radio></label>
  107. </view>
  108. <view class="paybtn" @click="qrchange">
  109. 确定切换
  110. </view>
  111. </view>
  112. </view>
  113. </uniPopup>
  114. </view>
  115. </template>
  116. <script>
  117. import tkiQrcodes from '@/components/tki-qrcode/tki-qrcode.vue';
  118. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  119. import uniPopupDialog from '@/components/uni-popup/uni-popup-dialog.vue';
  120. import uniPopupMessage from '@/components/uni-popup/uni-popup-message.vue';
  121. import { getUserInfo } from '@/api/login.js';
  122. import { receivedCollectionCode, receivedPaymentCode, receivedCodeState, receivedPaymentCreate, receivedLst, collectionLst, collectionSetTip } from '@/api/received.js';
  123. // #ifdef H5
  124. import { mapState } from 'vuex';
  125. import { weixindata } from '@/utils/wxAuthorized';
  126. // #endif
  127. import Voice from '@/utils/QS-baiduyy.js';
  128. export default {
  129. components: { tkiQrcodes, uniPopup, uniPopupDialog, uniPopupMessage },
  130. // #ifdef H5
  131. computed: {
  132. ...mapState(['weichatObj'])
  133. },
  134. // #endif
  135. data() {
  136. return {
  137. isSkm: false,
  138. showPayType: 0,
  139. payType: 0,//付款码type 0-余额 1-消费券 2-积分
  140. payTypeShow:0,//付款码type 0-余额 1-消费券 2-积分
  141. url: '',
  142. uid: '',
  143. qrsize: 80, // 二维码大小
  144. cid: 'tki-qrcode-canvas', //canvasId,页面存在多个二维码组件时需设置不同的ID
  145. size: 500, //生成的二维码大小
  146. unit: 'upx', //大小单位尺寸
  147. // show: true,//默认使用组件中的image标签显示二维码
  148. val: '', //要生成的内容
  149. background: '#ffffff', //二维码背景色
  150. foreground: '#333333', //二维码前景色
  151. pdground: '#333333', //二维码角标色
  152. icon: '', //二维码图标URL(必须是本地图片,网络图需要先下载至本地)
  153. iconSize: 40, //二维码图标大小
  154. lv: 3, //容错级别
  155. onval: true, //监听val值变化自动重新生成二维码
  156. loadMake: false, //组件初始化完成后自动生成二维码,val需要有值
  157. usingComponents: false, //是否使用了自定义组件模式(主要是为了修复非自定义组件模式时 v-if 无法生成二维码的问题)
  158. showLoading: false, //是否显示loading
  159. loadingText: '二维码生成中', //loading文字
  160. src: '', // 二维码生成后的图片地址或base64
  161. ratio: 1, //页面比例用于计算
  162. ctxSrc: '', //要显示的图片
  163. loading: true, //是否载入图片中
  164. canHeight: '',
  165. canWeidth: '',
  166. userinfo: {}, //用户信息
  167. actionInd: 1, //默认展示收款码
  168. setTimeOutPay: null, //付款倒计时
  169. getMoneyList: null, //收款记录倒计时倒计时
  170. showSqr: true,
  171. code: '', //保存扫码code
  172. indexNum: 0, //默认没有商品
  173. showType: [
  174. {
  175. type: 0,
  176. tit: '余额',
  177. img: '../../static/img/yue.png'
  178. },
  179. {
  180. type: 1,
  181. tit: '消费券',
  182. img: '../../static/icon/xfq.png'
  183. },
  184. {
  185. type: 2,
  186. tit: '积分',
  187. img: '../../static/icon/jf.png'
  188. }
  189. ]
  190. };
  191. },
  192. onLoad(option) {
  193. this.loadlist;
  194. this.userinfo = uni.getStorageSync('userInfo');
  195. // 加载用户数据
  196. this.getUserInfo();
  197. // #ifdef H5
  198. // 获取是否为微信内核浏览器
  199. this.showSqr = uni.getStorageSync('weichatBrowser') || false;
  200. weixindata();
  201. // #endif
  202. },
  203. onReady() {
  204. // Voice('成功收款100000000元')
  205. },
  206. onShow() {
  207. // 开启倒计时
  208. this.setTimePay();
  209. },
  210. onHide() {
  211. this.outInterval()
  212. },
  213. // 监听页面卸载
  214. onUnload() {
  215. // 关闭倒计时
  216. this.outInterval()
  217. },
  218. // 监听页面后退
  219. onBackPress() {
  220. // 关闭倒计时
  221. this.outInterval()
  222. },
  223. methods: {
  224. // 关闭倒计时
  225. outInterval(){
  226. clearInterval(this.setTimeOutPay);
  227. clearInterval(this.getMoneyList);
  228. },
  229. // 获取收款记录
  230. collectionLst() {
  231. collectionLst()
  232. .then(e => {
  233. console.log(e);
  234. // 循环处理播报语音
  235. e.data.data.forEach((d, ind) => {
  236. Voice({
  237. voiceSet: {
  238. tex: '满园春收款' + (+d.amount - d.service_charge) + '元'
  239. },
  240. audioSet: {
  241. volume: 1
  242. },
  243. lineUp: true // 加入语音队列
  244. });
  245. //清除记录
  246. collectionSetTip({ id: d.id });
  247. });
  248. })
  249. .catch(e => {});
  250. },
  251. // 获取用户信息
  252. getUserInfo() {
  253. let obj = this;
  254. getUserInfo({})
  255. .then(({ data }) => {
  256. obj.userinfo = data;
  257. // 加载收款码
  258. obj.receivedCollectionCode();
  259. // 调用循环
  260. // obj.setTimePay();
  261. // #ifdef H5
  262. uni.showModal({
  263. title: '提示',
  264. content: '打开支付提示成功!',
  265. showCancel: false,
  266. });
  267. // #endif
  268. })
  269. .catch(e => {
  270. console.log(e);
  271. });
  272. },
  273. /**
  274. * 点击取消按钮触发
  275. * @param {Object} done
  276. */
  277. close(done) {
  278. // TODO 做一些其他的事情,before-close 为true的情况下,手动执行 done 才会关闭对话框
  279. // ...
  280. done();
  281. },
  282. /**
  283. * 点击确认按钮触发
  284. * @param {Object} done
  285. * @param {Object} value
  286. */
  287. confirm(done, value) {
  288. // 输入框的值
  289. receivedPaymentCreate({
  290. code: this.code,
  291. amount: value,
  292. type:this.payTypeShow
  293. })
  294. .then(e => {
  295. console.log(e,"123456")
  296. uni.showModal({
  297. title: '提示',
  298. content: '成功',
  299. showCancel: false
  300. });
  301. })
  302. .catch(e => {
  303. uni.showModal({
  304. title: '提示',
  305. content: e.message,
  306. showCancel: false
  307. });
  308. console.log(e);
  309. });
  310. // TODO 做一些其他的事情,手动执行 done 才会关闭对话框
  311. // ...
  312. done();
  313. },
  314. // payVdeo(){
  315. // var mess = document.getElementById('ttsText').value;
  316. // var msg = new SpeechSynthesisUtterance(mess);
  317. // msg.volume = 100;
  318. // msg.rate = 1;
  319. // msg.pitch = 1.5;
  320. // console.log(msg);
  321. // window.speechSynthesis.speak(msg);
  322. // },
  323. // 开启循环倒计时
  324. setTimePay() {
  325. // 判断当前是否为付款码
  326. if (this.actionInd == 0) {
  327. this.setTimeOutPay = setInterval(() => {
  328. this.receivedCodeState();
  329. }, 5000);
  330. }
  331. // 获取首付款信息
  332. this.getMoneyList = setInterval(e => {
  333. this.collectionLst();
  334. }, 5000);
  335. },
  336. // 判断付款码是否可以使用
  337. receivedCodeState() {
  338. let obj = this;
  339. // 查询是否过期
  340. receivedCodeState({
  341. code: obj.val
  342. })
  343. .then(e => {
  344. // 无效
  345. if (e.msg == 'overdue') {
  346. obj.receivedPaymentCode();
  347. }
  348. // 已使用
  349. else if (e.msg == 'use') {
  350. uni.showModal({
  351. title: '提示',
  352. content: '已支付成功',
  353. showCancel: false
  354. });
  355. obj.receivedPaymentCode();
  356. }
  357. })
  358. .catch(e => {
  359. console.log(e);
  360. });
  361. },
  362. // 开启验证是否已经过期或使用付款成功
  363. // receivedCodeState(){
  364. // },
  365. // 跳转到记录页面
  366. openList() {
  367. clearInterval(this.setTimeOutPay);
  368. clearInterval(this.getMoneyList);
  369. // this.$refs.popup1.open();
  370. // uni.navigateTo({
  371. // url: '/pages/wallet/wallet'
  372. // });
  373. uni.navigateTo({
  374. url: './list'
  375. });
  376. },
  377. //点击首付款事件
  378. clickItem(item) {
  379. // 更新付款码
  380. if (item === 0) {
  381. this.receivedPaymentCode();
  382. this.outInterval();
  383. this.setTimePay();
  384. uni.setNavigationBarColor({
  385. backgroundColor:'#4b8fdb',
  386. frontColor:'#ffffff',
  387. success:(e) => {
  388. console.log(e);
  389. },
  390. fail:function (e) {
  391. console.log(e);
  392. }
  393. })
  394. }
  395. // 更新收款码
  396. if (item === 1) {
  397. clearInterval(this.setTimeOutPay);
  398. uni.setNavigationBarColor({
  399. backgroundColor:'#5DBC7C',
  400. frontColor:'#ffffff',
  401. success:(e) => {
  402. console.log(e);
  403. },
  404. fail:function (e) {
  405. console.log(e);
  406. }
  407. })
  408. this.receivedCollectionCode();
  409. }
  410. // 扫码收付款
  411. if (item === 2) {
  412. clearInterval(this.setTimeOutPay);
  413. this.ToChangeInto();
  414. return;
  415. }
  416. // 赋值
  417. this.actionInd = item;
  418. },
  419. // 扫码
  420. ToChangeInto() {
  421. let obj = this;
  422. // #ifdef H5
  423. this.weichatObj.scanQRCode({
  424. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  425. scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
  426. success: function(res) {
  427. let i = res.resultStr.split(",");
  428. obj.code = i[0];
  429. obj.payTypeShow = i[1]*1
  430. obj.isSkm = /^\d+$/.test(obj.code);
  431. obj.$refs.popup1.open();
  432. }
  433. });
  434. // #endif
  435. // #ifndef H5
  436. uni.scanCode({
  437. onlyFromCamera: true,
  438. success: function(e) {
  439. let i = e.result.split(",");
  440. obj.code = i[0];
  441. obj.isSkm = /^\d+$/.test(obj.code);
  442. console.log(obj.isSkm)
  443. obj.payTypeShow = i[1]*1
  444. obj.$refs.popup1.open();
  445. }
  446. });
  447. // #endif
  448. },
  449. // 扫码成功数据处理
  450. scanQR(e) {},
  451. // 获取付款码
  452. receivedPaymentCode() {
  453. receivedPaymentCode({
  454. type: this.payType
  455. })
  456. .then(e => {
  457. this.val = e.data.code;
  458. let code = "," + this.payType
  459. this.val += code
  460. console.log(e);
  461. })
  462. .catch(e => {
  463. console.log(e);
  464. });
  465. },
  466. // 获取收款码
  467. receivedCollectionCode() {
  468. receivedCollectionCode()
  469. .then(e => {
  470. this.val = e.msg;
  471. console.log(e);
  472. })
  473. .catch(e => {
  474. console.log(e);
  475. });
  476. },
  477. // 創建二维码
  478. creatQrcode() {
  479. console.log(this.$refs.qrcode._makeCode);
  480. this.$refs.qrcode._makeCode();
  481. },
  482. // 保存二维码到图库
  483. saveQrcode() {
  484. this.$refs.qrcode._saveCode();
  485. },
  486. // 生成二维码后返回base64
  487. qrR(res) {
  488. this.src = res;
  489. },
  490. //清空二维码(清空二维码会触发result回调 返回值为空)
  491. clearQrcode(e) {
  492. this.$refs.qrcode._clearCode();
  493. this.val = '';
  494. },
  495. // 保存二维码
  496. upload() {
  497. this.$refs.qrcode._saveCode();
  498. },
  499. openApp() {
  500. let weixinObj = require('jweixin-module');
  501. },
  502. showChooseType() {
  503. this.$refs.popupPay.open()
  504. },
  505. changePayType(index) {
  506. this.payType = index
  507. },
  508. qrchange() {
  509. this.showPayType = this.payType
  510. this.$refs.popupPay.close()
  511. console.log(this.payType)
  512. this.clickItem(0)
  513. },
  514. changeShowPayType(e) {
  515. this.payTypeShow = e
  516. }
  517. }
  518. };
  519. </script>
  520. <style lang="scss">
  521. .content,
  522. page {
  523. // border-top: 2rpx solid #f2f3f5;
  524. background-color: $base-color;
  525. height: 100%;
  526. }
  527. // 共有底部高度
  528. $btHeight: 100rpx;
  529. .btHeight {
  530. height: $btHeight;
  531. }
  532. .greenBg{
  533. background-color: $base-color;
  534. }
  535. .blueBg{
  536. background-color: #4b8fdb;
  537. }
  538. .coupon_transfer {
  539. // background-color: #ffffff;
  540. padding: 20rpx 25rpx;
  541. padding-top: 50rpx;
  542. // padding-bottom: 130rpx;
  543. width: 100%;
  544. // margin-top: 25rpx;
  545. .user {
  546. margin-bottom: -125rpx;
  547. height: 200rpx;
  548. line-height: 1;
  549. .imgbox {
  550. margin: 0 auto;
  551. text-align: center;
  552. .img {
  553. width: 150rpx;
  554. height: 150rpx;
  555. border-radius: 999rpx;
  556. }
  557. }
  558. .niceName {
  559. text-align: center;
  560. font-size: $font-lg;
  561. margin-top: 15rpx;
  562. font-weight: bold;
  563. color: $font-color-dark;
  564. }
  565. }
  566. }
  567. .erwema {
  568. width: 686rpx;
  569. // height: 817rpx;
  570. height: 900rpx;
  571. background-color: #ffffff;
  572. padding-top: 100rpx;
  573. display: flex;
  574. justify-content: center;
  575. align-items: center;
  576. margin: 0rpx auto;
  577. .setType {
  578. height: 130rpx;
  579. justify-content: flex-start;
  580. .type-wrapper {
  581. text-align: left;
  582. flex-grow: 1;
  583. }
  584. .type-logo {
  585. width: 56rpx;
  586. height: 54rpx;
  587. flex-shrink: 0;
  588. margin-right: 10rpx;
  589. }
  590. .sele-wrap {
  591. width: 50rpx;
  592. height: 100%;
  593. flex-shrink: 0;
  594. display: flex;
  595. align-items: center;
  596. .selecte-ic {
  597. justify-items: flex-end;
  598. width: 13rpx;
  599. height: 36rpx;
  600. transform: rotate(-90deg);
  601. }
  602. }
  603. }
  604. .qrbox {
  605. width: 500rpx;
  606. text-align: center;
  607. font-weight: bold;
  608. .payMoney {
  609. font-size: 50rpx;
  610. // margin-top: 80rpx;
  611. color: $font-color-dark;
  612. font-weight: bold;
  613. }
  614. .setMoney {
  615. font-size: $font-base;
  616. color: $base-color;
  617. margin-top: 20rpx;
  618. }
  619. }
  620. }
  621. /deep/ .qrbox .img {
  622. margin-top: -500rpx !important;
  623. }
  624. /deep/ .tki-qrcode {
  625. // height: 500rpx;
  626. line-height: 0;
  627. margin-top: 10rpx;
  628. }
  629. .bottomTab {
  630. padding: 50rpx;
  631. padding-top: 20rpx;
  632. // position: fixed;
  633. // padding-bottom: 50rpx;
  634. // left: 0;
  635. // bottom: 0;
  636. width: 100%;
  637. .item1 {
  638. text-align: center;
  639. color: #ffffff;
  640. opacity: 0.7;
  641. flex-grow: 1;
  642. line-height: 1;
  643. .img {
  644. width: 80rpx;
  645. height: 80rpx;
  646. }
  647. .text {
  648. font-size: $font-lg;
  649. }
  650. &.action {
  651. opacity: 1;
  652. }
  653. }
  654. }
  655. .popup-box {
  656. position: relative;
  657. z-index: 100;
  658. width: 100%;
  659. height: auto;
  660. background: #ffffff;
  661. .popup-pay {
  662. position: relative;
  663. justify-content: space-between;
  664. // padding: 0rpx 25rpx 32rpx 25rpx;
  665. .paybox-top {
  666. padding-top: 38rpx;
  667. padding-left: 32rpx;
  668. width: 100%;
  669. .type {
  670. font-size: 28rpx;
  671. font-family: PingFang SC;
  672. font-weight: bold;
  673. color: #333333;
  674. }
  675. .image {
  676. padding-right: 24rpx;
  677. padding-bottom: 10rpx;
  678. image {
  679. width: 16rpx;
  680. height: 16rpx;
  681. }
  682. }
  683. }
  684. .paybox-main {
  685. padding-left: 40rpx;
  686. width: 100%;
  687. margin-top: 54rpx;
  688. margin-bottom: 54rpx;
  689. .zftype {
  690. padding-left: 5rpx;
  691. image {
  692. width: 38rpx;
  693. height: 40rpx;
  694. }
  695. .zf {
  696. padding-left: 18rpx;
  697. font-size: 28rpx;
  698. font-family: PingFang SC;
  699. font-weight: 400;
  700. color: #3f454b;
  701. }
  702. }
  703. }
  704. .paybtn {
  705. width: 750rpx;
  706. line-height: 93rpx;
  707. background: #75BA82;
  708. font-size: 32rpx;
  709. font-family: PingFang SC;
  710. font-weight: bold;
  711. color: #FFFFFF;
  712. text-align: center;
  713. }
  714. }
  715. .buttom {
  716. position: relative;
  717. z-index: 100;
  718. width: 100%;
  719. height: 113rpx;
  720. padding-top: 20rpx;
  721. align-items: center;
  722. .heji {
  723. height: 100%;
  724. width: 50%;
  725. padding-left: 23rpx;
  726. padding-top: 20rpx;
  727. font-size: 28rpx;
  728. font-family: PingFang SC;
  729. font-weight: 400;
  730. color: #3f454b;
  731. text {
  732. font-size: 24rpx;
  733. font-family: PingFang SC;
  734. font-weight: bold;
  735. color: #ff0000;
  736. .money {
  737. font-size: 36rpx;
  738. }
  739. }
  740. }
  741. .zhifu {
  742. width: 50%;
  743. height: 92rpx;
  744. background: #5dbc7c;
  745. text-align: center;
  746. line-height: 92rpx;
  747. font-size: 32rpx;
  748. font-family: PingFang SC;
  749. font-weight: bold;
  750. color: #ffffff;
  751. }
  752. }
  753. }
  754. </style>