index.vue 20 KB

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