index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  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. Voice('打开收款码成功')
  210. },
  211. onHide() {
  212. this.outInterval()
  213. },
  214. // 监听页面卸载
  215. onUnload() {
  216. // 关闭倒计时
  217. this.outInterval()
  218. },
  219. // 监听页面后退
  220. onBackPress() {
  221. // 关闭倒计时
  222. this.outInterval()
  223. },
  224. methods: {
  225. // 关闭倒计时
  226. outInterval(){
  227. clearInterval(this.setTimeOutPay);
  228. clearInterval(this.getMoneyList);
  229. },
  230. // 获取收款记录
  231. collectionLst() {
  232. collectionLst()
  233. .then(e => {
  234. console.log(e);
  235. // 循环处理播报语音
  236. e.data.data.forEach((d, ind) => {
  237. Voice({
  238. voiceSet: {
  239. tex: '满园春收款' + (+d.amount - d.service_charge) + '元'
  240. },
  241. audioSet: {
  242. volume: 1
  243. },
  244. lineUp: true // 加入语音队列
  245. });
  246. //清除记录
  247. collectionSetTip({ id: d.id });
  248. });
  249. })
  250. .catch(e => {});
  251. },
  252. // 获取用户信息
  253. getUserInfo() {
  254. let obj = this;
  255. getUserInfo({})
  256. .then(({ data }) => {
  257. obj.userinfo = data;
  258. // 加载收款码
  259. obj.receivedCollectionCode();
  260. // 调用循环
  261. // obj.setTimePay();
  262. // #ifdef H5
  263. uni.showModal({
  264. title: '提示',
  265. content: '打开支付提示成功!',
  266. showCancel: false,
  267. });
  268. // #endif
  269. })
  270. .catch(e => {
  271. console.log(e);
  272. });
  273. },
  274. /**
  275. * 点击取消按钮触发
  276. * @param {Object} done
  277. */
  278. close(done) {
  279. // TODO 做一些其他的事情,before-close 为true的情况下,手动执行 done 才会关闭对话框
  280. // ...
  281. done();
  282. },
  283. /**
  284. * 点击确认按钮触发
  285. * @param {Object} done
  286. * @param {Object} value
  287. */
  288. confirm(done, value) {
  289. // 输入框的值
  290. console.log(this.code,value,this.payTypeShow,'+++++++++++++++++++')
  291. receivedPaymentCreate({
  292. code: this.code,
  293. amount: value,
  294. type:this.payTypeShow
  295. })
  296. .then(e => {
  297. console.log(e,"123456")
  298. uni.showModal({
  299. title: '提示',
  300. content: '成功',
  301. showCancel: false
  302. });
  303. })
  304. .catch(e => {
  305. uni.showModal({
  306. title: '提示',
  307. content: e.message,
  308. showCancel: false
  309. });
  310. console.log(e);
  311. });
  312. // TODO 做一些其他的事情,手动执行 done 才会关闭对话框
  313. // ...
  314. done();
  315. },
  316. // payVdeo(){
  317. // var mess = document.getElementById('ttsText').value;
  318. // var msg = new SpeechSynthesisUtterance(mess);
  319. // msg.volume = 100;
  320. // msg.rate = 1;
  321. // msg.pitch = 1.5;
  322. // console.log(msg);
  323. // window.speechSynthesis.speak(msg);
  324. // },
  325. // 开启循环倒计时
  326. setTimePay() {
  327. // 判断当前是否为付款码
  328. if (this.actionInd == 0) {
  329. this.setTimeOutPay = setInterval(() => {
  330. this.receivedCodeState();
  331. }, 5000);
  332. }
  333. // 获取首付款信息
  334. this.getMoneyList = setInterval(e => {
  335. this.collectionLst();
  336. }, 5000);
  337. },
  338. // 判断付款码是否可以使用
  339. receivedCodeState() {
  340. let obj = this;
  341. // 查询是否过期
  342. receivedCodeState({
  343. code: obj.val
  344. })
  345. .then(e => {
  346. // 无效
  347. if (e.msg == 'overdue') {
  348. obj.receivedPaymentCode();
  349. }
  350. // 已使用
  351. else if (e.msg == 'use') {
  352. uni.showModal({
  353. title: '提示',
  354. content: '已支付成功',
  355. showCancel: false
  356. });
  357. obj.receivedPaymentCode();
  358. }
  359. })
  360. .catch(e => {
  361. console.log(e);
  362. });
  363. },
  364. // 开启验证是否已经过期或使用付款成功
  365. // receivedCodeState(){
  366. // },
  367. // 跳转到记录页面
  368. openList() {
  369. clearInterval(this.setTimeOutPay);
  370. clearInterval(this.getMoneyList);
  371. // this.$refs.popup1.open();
  372. // uni.navigateTo({
  373. // url: '/pages/wallet/wallet'
  374. // });
  375. uni.navigateTo({
  376. url: './list'
  377. });
  378. },
  379. //点击首付款事件
  380. clickItem(item) {
  381. // 更新付款码
  382. if (item === 0) {
  383. this.receivedPaymentCode();
  384. this.outInterval();
  385. this.setTimePay();
  386. uni.setNavigationBarColor({
  387. backgroundColor:'#4b8fdb',
  388. frontColor:'#ffffff',
  389. success:(e) => {
  390. console.log(e);
  391. },
  392. fail:function (e) {
  393. console.log(e);
  394. }
  395. })
  396. }
  397. // 更新收款码
  398. if (item === 1) {
  399. clearInterval(this.setTimeOutPay);
  400. uni.setNavigationBarColor({
  401. backgroundColor:'#5DBC7C',
  402. frontColor:'#ffffff',
  403. success:(e) => {
  404. console.log(e);
  405. },
  406. fail:function (e) {
  407. console.log(e);
  408. }
  409. })
  410. this.receivedCollectionCode();
  411. }
  412. // 扫码收付款
  413. if (item === 2) {
  414. clearInterval(this.setTimeOutPay);
  415. this.ToChangeInto();
  416. return;
  417. }
  418. // 赋值
  419. this.actionInd = item;
  420. },
  421. // 扫码
  422. ToChangeInto() {
  423. let obj = this;
  424. // #ifdef H5
  425. this.weichatObj.scanQRCode({
  426. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  427. scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有
  428. success: function(res) {
  429. let i = res.resultStr.split(",");
  430. obj.code = i[0];
  431. obj.payTypeShow = i[1]*1
  432. obj.isSkm = /^\d+$/.test(obj.code);
  433. obj.$refs.popup1.open();
  434. }
  435. });
  436. // #endif
  437. // #ifndef H5
  438. uni.scanCode({
  439. onlyFromCamera: true,
  440. success: function(e) {
  441. let i = e.result.split(",");
  442. obj.code = i[0];
  443. obj.isSkm = /^\d+$/.test(obj.code);
  444. console.log(obj.isSkm)
  445. obj.payTypeShow = i[1]*1
  446. obj.$refs.popup1.open();
  447. }
  448. });
  449. // #endif
  450. },
  451. // 扫码成功数据处理
  452. scanQR(e) {},
  453. // 获取付款码
  454. receivedPaymentCode() {
  455. receivedPaymentCode({
  456. type: this.payType
  457. })
  458. .then(e => {
  459. this.val = e.data.code;
  460. let code = "," + this.payType
  461. this.val += code
  462. console.log(e);
  463. })
  464. .catch(e => {
  465. console.log(e);
  466. });
  467. },
  468. // 获取收款码
  469. receivedCollectionCode() {
  470. receivedCollectionCode()
  471. .then(e => {
  472. this.val = e.msg;
  473. console.log(e);
  474. })
  475. .catch(e => {
  476. console.log(e);
  477. });
  478. },
  479. // 創建二维码
  480. creatQrcode() {
  481. console.log(this.$refs.qrcode._makeCode);
  482. this.$refs.qrcode._makeCode();
  483. },
  484. // 保存二维码到图库
  485. saveQrcode() {
  486. this.$refs.qrcode._saveCode();
  487. },
  488. // 生成二维码后返回base64
  489. qrR(res) {
  490. this.src = res;
  491. },
  492. //清空二维码(清空二维码会触发result回调 返回值为空)
  493. clearQrcode(e) {
  494. this.$refs.qrcode._clearCode();
  495. this.val = '';
  496. },
  497. // 保存二维码
  498. upload() {
  499. this.$refs.qrcode._saveCode();
  500. },
  501. openApp() {
  502. let weixinObj = require('jweixin-module');
  503. },
  504. showChooseType() {
  505. this.$refs.popupPay.open()
  506. },
  507. changePayType(index) {
  508. this.payType = index
  509. },
  510. qrchange() {
  511. this.showPayType = this.payType
  512. this.$refs.popupPay.close()
  513. console.log(this.payType)
  514. this.clickItem(0)
  515. },
  516. changeShowPayType(e) {
  517. this.payTypeShow = e
  518. }
  519. }
  520. };
  521. </script>
  522. <style lang="scss">
  523. .content,
  524. page {
  525. // border-top: 2rpx solid #f2f3f5;
  526. background-color: $base-color;
  527. height: 100%;
  528. }
  529. // 共有底部高度
  530. $btHeight: 100rpx;
  531. .btHeight {
  532. height: $btHeight;
  533. }
  534. .greenBg{
  535. background-color: $base-color;
  536. }
  537. .blueBg{
  538. background-color: #4b8fdb;
  539. }
  540. .coupon_transfer {
  541. // background-color: #ffffff;
  542. padding: 20rpx 25rpx;
  543. padding-top: 50rpx;
  544. // padding-bottom: 130rpx;
  545. width: 100%;
  546. // margin-top: 25rpx;
  547. .user {
  548. margin-bottom: -125rpx;
  549. height: 200rpx;
  550. line-height: 1;
  551. .imgbox {
  552. margin: 0 auto;
  553. text-align: center;
  554. .img {
  555. width: 150rpx;
  556. height: 150rpx;
  557. border-radius: 999rpx;
  558. }
  559. }
  560. .niceName {
  561. text-align: center;
  562. font-size: $font-lg;
  563. margin-top: 15rpx;
  564. font-weight: bold;
  565. color: $font-color-dark;
  566. }
  567. }
  568. }
  569. .erwema {
  570. width: 686rpx;
  571. // height: 817rpx;
  572. height: 900rpx;
  573. background-color: #ffffff;
  574. padding-top: 100rpx;
  575. display: flex;
  576. justify-content: center;
  577. align-items: center;
  578. margin: 0rpx auto;
  579. .setType {
  580. height: 130rpx;
  581. justify-content: flex-start;
  582. .type-wrapper {
  583. text-align: left;
  584. flex-grow: 1;
  585. }
  586. .type-logo {
  587. width: 56rpx;
  588. height: 54rpx;
  589. flex-shrink: 0;
  590. margin-right: 10rpx;
  591. }
  592. .sele-wrap {
  593. width: 50rpx;
  594. height: 100%;
  595. flex-shrink: 0;
  596. display: flex;
  597. align-items: center;
  598. .selecte-ic {
  599. justify-items: flex-end;
  600. width: 13rpx;
  601. height: 36rpx;
  602. transform: rotate(-90deg);
  603. }
  604. }
  605. }
  606. .qrbox {
  607. width: 500rpx;
  608. text-align: center;
  609. font-weight: bold;
  610. .payMoney {
  611. font-size: 50rpx;
  612. // margin-top: 80rpx;
  613. color: $font-color-dark;
  614. font-weight: bold;
  615. }
  616. .setMoney {
  617. font-size: $font-base;
  618. color: $base-color;
  619. margin-top: 20rpx;
  620. }
  621. }
  622. }
  623. /deep/ .qrbox .img {
  624. margin-top: -500rpx !important;
  625. }
  626. /deep/ .tki-qrcode {
  627. // height: 500rpx;
  628. line-height: 0;
  629. margin-top: 10rpx;
  630. }
  631. .bottomTab {
  632. padding: 50rpx;
  633. padding-top: 20rpx;
  634. // position: fixed;
  635. // padding-bottom: 50rpx;
  636. // left: 0;
  637. // bottom: 0;
  638. width: 100%;
  639. .item1 {
  640. text-align: center;
  641. color: #ffffff;
  642. opacity: 0.7;
  643. flex-grow: 1;
  644. line-height: 1;
  645. .img {
  646. width: 80rpx;
  647. height: 80rpx;
  648. }
  649. .text {
  650. font-size: $font-lg;
  651. }
  652. &.action {
  653. opacity: 1;
  654. }
  655. }
  656. }
  657. .popup-box {
  658. position: relative;
  659. z-index: 100;
  660. width: 100%;
  661. height: auto;
  662. background: #ffffff;
  663. .popup-pay {
  664. position: relative;
  665. justify-content: space-between;
  666. // padding: 0rpx 25rpx 32rpx 25rpx;
  667. .paybox-top {
  668. padding-top: 38rpx;
  669. padding-left: 32rpx;
  670. width: 100%;
  671. .type {
  672. font-size: 28rpx;
  673. font-family: PingFang SC;
  674. font-weight: bold;
  675. color: #333333;
  676. }
  677. .image {
  678. padding-right: 24rpx;
  679. padding-bottom: 10rpx;
  680. image {
  681. width: 16rpx;
  682. height: 16rpx;
  683. }
  684. }
  685. }
  686. .paybox-main {
  687. padding-left: 40rpx;
  688. width: 100%;
  689. margin-top: 54rpx;
  690. margin-bottom: 54rpx;
  691. .zftype {
  692. padding-left: 5rpx;
  693. image {
  694. width: 38rpx;
  695. height: 40rpx;
  696. }
  697. .zf {
  698. padding-left: 18rpx;
  699. font-size: 28rpx;
  700. font-family: PingFang SC;
  701. font-weight: 400;
  702. color: #3f454b;
  703. }
  704. }
  705. }
  706. .paybtn {
  707. width: 750rpx;
  708. line-height: 93rpx;
  709. background: #75BA82;
  710. font-size: 32rpx;
  711. font-family: PingFang SC;
  712. font-weight: bold;
  713. color: #FFFFFF;
  714. text-align: center;
  715. }
  716. }
  717. .buttom {
  718. position: relative;
  719. z-index: 100;
  720. width: 100%;
  721. height: 113rpx;
  722. padding-top: 20rpx;
  723. align-items: center;
  724. .heji {
  725. height: 100%;
  726. width: 50%;
  727. padding-left: 23rpx;
  728. padding-top: 20rpx;
  729. font-size: 28rpx;
  730. font-family: PingFang SC;
  731. font-weight: 400;
  732. color: #3f454b;
  733. text {
  734. font-size: 24rpx;
  735. font-family: PingFang SC;
  736. font-weight: bold;
  737. color: #ff0000;
  738. .money {
  739. font-size: 36rpx;
  740. }
  741. }
  742. }
  743. .zhifu {
  744. width: 50%;
  745. height: 92rpx;
  746. background: #5dbc7c;
  747. text-align: center;
  748. line-height: 92rpx;
  749. font-size: 32rpx;
  750. font-family: PingFang SC;
  751. font-weight: bold;
  752. color: #ffffff;
  753. }
  754. }
  755. }
  756. </style>