index.vue 22 KB

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