index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <view>
  3. <form @submit="submitSub" :style="colorStyle">
  4. <view class="payment-top acea-row row-column row-center-wrapper" v-if="is_gq == 0">
  5. <span class="name">我的余额</span>
  6. <view class="pic">
  7. ¥<span class="pic-font">{{ userinfo.now_money || 0 }}</span>
  8. </view>
  9. </view>
  10. <view class="payment-top acea-row row-column row-center-wrapper" v-if="is_gq == 1">
  11. <span class="name">我的股权</span>
  12. <view class="pic">
  13. <span class="pic-font">{{ staffInfo.shareholding*1 || 0 }}</span>股
  14. </view>
  15. </view>
  16. <view class="payment-top acea-row row-column row-center-wrapper" v-if="is_gq == 2">
  17. <span class="name">我的股权</span>
  18. <view class="pic">
  19. <span class="pic-font">{{ userinfo.reward_share*1 || 0 }}</span>股
  20. </view>
  21. </view>
  22. <view class="payment">
  23. <view class="nav acea-row row-around row-middle" v-if="is_gq !=1 && is_gq != 2">
  24. <view class="item" :class="active==index?'on':''" v-for="(item,index) in navRecharge" :key="index"
  25. @click="navRecharges(index)">{{item}}</view>
  26. </view>
  27. <view class='tip picList' v-if='!active'>
  28. <view class="pic-box pic-box-color acea-row row-center-wrapper row-column"
  29. :class="activePic == index ? 'pic-box-color-active' : ''" v-for="(item, index) in picList"
  30. :key="index" @click="picCharge(index, item)" v-if="item.price">
  31. <view class="pic-number-pic">
  32. {{ item.price }}<span class="pic-number"> 元</span>
  33. </view>
  34. <view class="text_left">
  35. <view class="pic-number">赠送请客金:{{ item.give_money }} 元</view>
  36. <view class="pic-number">消费分红股:{{ item.reward_share }} 股</view>
  37. <view class="pic-number">会员等级卡:{{ item.level_up }}</view>
  38. <view class="pic-number">消费折扣率:{{ item.zk }}折</view>
  39. </view>
  40. </view>
  41. <view class="pic-box pic-box-color acea-row row-center-wrapper"
  42. :class="activePic == picList.length ? 'pic-box-color-active' : ''"
  43. @click="picCharge(picList.length)">
  44. <input type="digit" placeholder="其他" v-model="money" class="pic-box-money pic-number-pic"
  45. :class="activePic == picList.length ? 'pic-box-color-active' : ''" />
  46. </view>
  47. <view class="flex share-user">
  48. <view class="title">
  49. 邀请人:
  50. </view>
  51. <view class="input-box">
  52. <input type="text" placeholder="请输入邀请人会员码" v-model="verify_code" class="input-user" />
  53. </view>
  54. <!-- #ifdef H5 -->
  55. <view class="iconfont icon-saoma" @click="scanCode"></view>
  56. <!-- #endif -->
  57. <!-- #ifdef MP || MP-WEIXIN || APP -->
  58. <view class="iconfont icon-saoma" @click="scanCode">
  59. </view>
  60. <!-- #endif -->
  61. </view>
  62. <view class="tips-box">
  63. <view class="tips mt-30">注意事项:</view>
  64. <view class="tips-samll" v-for="item in rechargeAttention" :key="item">
  65. {{ item }}
  66. </view>
  67. </view>
  68. </view>
  69. <view class="tip" v-else>
  70. <view class='input' v-if="is_gq != 1 && is_gq != 2">
  71. <text>¥</text>
  72. <input @input='inputNum'
  73. :maxlength="moneyMaxLeng" placeholder="0.00" type='digit' placeholder-class='placeholder'
  74. :value="number" name="number"></input>
  75. </view>
  76. <view class='input' v-else>
  77. <input @input='inputNum' :maxlength="moneyMaxLeng"
  78. placeholder="0" type='number' placeholder-class='placeholder' :value="number"
  79. name="number"></input>
  80. <text>股</text>
  81. </view>
  82. <view class="tips-title" v-if="is_gq != 1 && is_gq != 2">
  83. <view style="font-weight: bold; font-size: 26rpx;">提示:</view>
  84. <view style="margin-top: 10rpx;">
  85. 当前可转入佣金为
  86. <text class='font-color'>¥{{userinfo.commissionCount || 0}}</text>,
  87. 冻结佣金为
  88. <text class='font-color'>¥{{userinfo.broken_commission}}</text>
  89. </view>
  90. </view>
  91. <view class="tips-box" v-if="is_gq != 1 && is_gq != 2">
  92. <view class="tips mt-30">注意事项:</view>
  93. <view class="tips-samll" v-for="item in rechargeAttention" :key="item">
  94. {{ item }}
  95. </view>
  96. </view>
  97. </view>
  98. <button class='but bg-color' formType="submit" v-if="is_gq != 1 && is_gq != 2"> {{active ? '立即转入': '立即充值' }}</button>
  99. <button class='but bg-color' formType="submit" v-else>提现</button>
  100. </view>
  101. </form>
  102. <payment :payMode="payMode" :pay_close="pay_close" :is-call="true" @changePayType="changePayType"
  103. @onChangeFun="onChangeFun" :order_id="pay_order_id" :totalPrice="totalPrice"></payment>
  104. <home v-if="navigation"></home>
  105. <view v-show="false" v-html="formContent"></view>
  106. <!-- #ifdef MP -->
  107. <!-- <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize> -->
  108. <!-- #endif -->
  109. </view>
  110. </template>
  111. <script>
  112. import {
  113. getUserInfo,
  114. rechargeRoutine,
  115. rechargeRecharge,
  116. rechargeWechat,
  117. getRechargeApi,
  118. memberCardCreate,
  119. getStaffInfo,
  120. equityWithdrawal,
  121. userEquityWithdrawal
  122. } from '@/api/user.js';
  123. import payment from '@/components/payment';
  124. import {
  125. toLogin
  126. } from '@/libs/login.js';
  127. import {
  128. orderOfflinePayType
  129. } from '@/api/order.js';
  130. import {
  131. mapGetters
  132. } from "vuex";
  133. import home from '@/components/home';
  134. import colors from "@/mixins/color";
  135. import {
  136. openPaySubscribe
  137. } from '@/utils/SubscribeMessage.js';
  138. export default {
  139. components: {
  140. home,
  141. payment
  142. },
  143. mixins: [colors],
  144. data() {
  145. let that = this;
  146. return {
  147. staffInfo: {},
  148. is_gq: 0,
  149. now_money: 0,
  150. navRecharge: ['账户充值', '佣金转入'],
  151. active: 0,
  152. number: '',
  153. userinfo: {},
  154. placeholder: "0.00",
  155. verify_code: '', //邀请会员码
  156. from: '',
  157. isAuto: false, //没有授权的不会自动授权
  158. isShowAuth: false, //是否隐藏授权
  159. picList: [],
  160. activePic: 0,
  161. money: "",
  162. numberPic: '',
  163. rechar_id: 0,
  164. password: '',
  165. goodsList: [],
  166. pay_order_id: '',
  167. payMode: [{
  168. name: '微信支付',
  169. icon: 'icon-weixinzhifu',
  170. value: 'weixin',
  171. title: '微信快捷支付',
  172. payStatus: true
  173. }
  174. // #ifdef H5 ||APP-PLUS
  175. ,
  176. {
  177. name: '支付宝支付',
  178. icon: 'icon-zhifubao',
  179. value: 'alipay',
  180. title: '支付宝支付',
  181. payStatus: true
  182. }
  183. // #endif
  184. ],
  185. pay_close: false,
  186. payType: '',
  187. totalPrice: '0',
  188. formContent: '',
  189. // #ifdef H5
  190. isWeixin: this.$wechat.isWeixin(),
  191. // #endif
  192. type: '',
  193. rechargeAttention: [],
  194. moneyMaxLeng: 8
  195. };
  196. },
  197. computed: mapGetters(['isLogin']),
  198. watch: {
  199. isLogin: {
  200. handler: function(newV, oldV) {
  201. if (newV) {
  202. this.getOrderPayType();
  203. this.getUserInfo();
  204. this.getRecharge();
  205. }
  206. },
  207. deep: true
  208. }
  209. },
  210. onLoad(options) {
  211. // #ifdef H5
  212. this.from = this.$wechat.isWeixin() ? "weixinh5" : "alipay"
  213. // #endif
  214. if (this.isLogin) {
  215. this.getOrderPayType();
  216. this.getUserInfo();
  217. this.getRecharge();
  218. } else {
  219. toLogin();
  220. }
  221. if (options.is_gq) {
  222. this.is_gq = options.is_gq
  223. this.active = 1
  224. }
  225. },
  226. onShow() {
  227. uni.removeStorageSync('form_type_cart');
  228. },
  229. methods: {
  230. goTx() {
  231. console.log(this.number)
  232. },
  233. scanCode() {
  234. var self = this;
  235. // #ifdef MP || APP
  236. uni.scanCode({
  237. scanType: ["qrCode", "barCode"],
  238. success(res) {
  239. self.verify_code = res.result
  240. },
  241. fail(res) {},
  242. })
  243. // #endif
  244. //#ifdef H5
  245. this.$wechat.wechatEvevt('scanQRCode', {
  246. needResult: 1,
  247. scanType: ["qrCode", "barCode"]
  248. }).then(res => {
  249. let result = res.resultStr;
  250. if (result.includes(',')) {
  251. result = result.split(",")[1]
  252. }
  253. this.verify_code = result
  254. });
  255. //#endif
  256. },
  257. onLunch() {
  258. this.getOrderPayType();
  259. this.getUserInfo();
  260. this.getRecharge();
  261. },
  262. inputNum: function(e) {
  263. let val = e.detail.value;
  264. let dot = val.indexOf('.');
  265. if (dot > -1) {
  266. this.moneyMaxLeng = dot + 3;
  267. } else {
  268. this.moneyMaxLeng = 8
  269. }
  270. },
  271. /**
  272. * 选择金额
  273. */
  274. picCharge(idx, item) {
  275. this.activePic = idx;
  276. if (item === undefined) {
  277. this.rechar_id = 0;
  278. this.numberPic = "";
  279. } else {
  280. this.money = "";
  281. this.rechar_id = item.id;
  282. this.numberPic = item.price;
  283. }
  284. },
  285. /**
  286. * 充值额度选择
  287. */
  288. getRecharge() {
  289. getRechargeApi()
  290. .then(res => {
  291. this.picList = res.data.recharge_quota.map((re)=>{
  292. re.zk = +(re.discount/10).toFixed(1)
  293. return re
  294. });
  295. if (this.picList[0]) {
  296. this.rechar_id = this.picList[0].id;
  297. this.numberPic = this.picList[0].price;
  298. }
  299. this.rechargeAttention = res.data.recharge_attention || [];
  300. })
  301. .catch(res => {
  302. this.$util.Tips({
  303. title: res
  304. })
  305. });
  306. },
  307. getOrderPayType() {
  308. orderOfflinePayType().then(res => {
  309. const {
  310. ali_pay_status,
  311. pay_weixin_open
  312. } = res.data;
  313. this.payMode[0].payStatus = !!pay_weixin_open;
  314. // #ifdef APP-PLUS || H5
  315. this.payMode[1].payStatus = !!ali_pay_status;
  316. // #endif
  317. }).catch(err => {
  318. uni.showToast({
  319. title: err,
  320. icon: 'none'
  321. });
  322. });
  323. },
  324. onLoadFun: function() {
  325. this.getOrderPayType();
  326. this.getUserInfo();
  327. this.getRecharge();
  328. this.isShowAuth = false;
  329. },
  330. // 授权关闭
  331. authColse: function(e) {
  332. this.isShowAuth = e
  333. },
  334. navRecharges: function(index) {
  335. this.active = index;
  336. },
  337. /**
  338. * 获取用户信息
  339. */
  340. getUserInfo: function() {
  341. let that = this;
  342. getUserInfo().then(res => {
  343. that.$set(that, 'userinfo', res.data);
  344. if (that.is_gq == 1) {
  345. that.getStaffInfo()
  346. }
  347. })
  348. },
  349. getStaffInfo() {
  350. let that = this
  351. getStaffInfo({
  352. uid: that.userinfo.uid
  353. }).then(res => {
  354. that.staffInfo = res.data;
  355. })
  356. },
  357. changePayType: function(e) {
  358. // #ifdef H5
  359. this.payType = e == 'alipay' ? 'alipay' : this.$wechat.isWeixin() ? 'weixin' : 'weixinh5'
  360. // #endif
  361. // #ifndef H5
  362. this.payType = e == 'alipay' ? 'alipay' : 'routine'
  363. // #endif
  364. console.log('双方各大华股份不报错', this.payType);
  365. },
  366. onChangeFun: function(e) {
  367. let opt = e;
  368. let action = opt.action || null;
  369. let value = opt.value != undefined ? opt.value : null;
  370. action && this[action] && this[action](value);
  371. },
  372. payClose: function() {
  373. this.pay_close = false;
  374. },
  375. payCheck: function(type) {
  376. this.createMemberCard(type);
  377. },
  378. createMemberCard(type) {
  379. uni.showLoading({
  380. title: '正在加载…'
  381. });
  382. // #ifdef MP || APP-PLUS
  383. uni.showLoading({
  384. title: '正在支付',
  385. })
  386. let that = this
  387. let money = parseFloat(this.money);
  388. if (this.rechar_id == 0) {
  389. if (Number.isNaN(money)) {
  390. return that.$util.Tips({
  391. title: '充值金额必须为数字'
  392. });
  393. }
  394. if (money <= 0) {
  395. return that.$util.Tips({
  396. title: '充值金额不能为0'
  397. });
  398. }
  399. } else {
  400. // money = this.numberPic
  401. }
  402. rechargeRecharge({
  403. price: parseFloat(this.totalPrice),
  404. type: 0,
  405. rechar_id: this.rechar_id,
  406. from: this.payType === 'alipay' ? 'alipay' : 'routine',
  407. bar_code: this.verify_code
  408. }).then(res => {
  409. uni.hideLoading();
  410. let data = res.data.data;
  411. let mp_pay_name = ''
  412. if (uni.requestOrderPayment) {
  413. mp_pay_name = 'requestOrderPayment'
  414. } else {
  415. mp_pay_name = 'requestPayment'
  416. }
  417. uni[mp_pay_name]({
  418. // #ifdef MP
  419. timeStamp: data.timestamp,
  420. nonceStr: data.nonceStr,
  421. package: data.package,
  422. signType: data.signType,
  423. paySign: data.paySign,
  424. // #endif
  425. // #ifdef APP-PLUS
  426. provider: this.payType === 'alipay' ? 'alipay' : 'wxpay',
  427. orderInfo: data,
  428. // #endif
  429. success: function(res) {
  430. return that.$util.Tips({
  431. title: '支付成功',
  432. icon: 'success'
  433. }, {
  434. tab: 5,
  435. url: '/pages/users/user_money/index'
  436. });
  437. },
  438. fail: function() {
  439. return that.$util.Tips({
  440. title: '支付失败'
  441. });
  442. },
  443. complete: function(res) {
  444. if (res.errMsg == 'requestPayment:cancel') return that.$util.Tips({
  445. title: '取消支付'
  446. });
  447. }
  448. })
  449. }).catch(err => {
  450. uni.hideLoading();
  451. return that.$util.Tips({
  452. title: err
  453. })
  454. });
  455. // #endif
  456. // #ifdef H5
  457. let that = this
  458. this.pay_close = true;
  459. this.totalPrice = this.rechar_id == 0 ? this.money : this.numberPic;
  460. if (!this.payType) {
  461. this.changePayType(type);
  462. }
  463. rechargeWechat({
  464. price: parseFloat(this.totalPrice),
  465. // from: this.payType == '' ? this.$wechat.isWeixin() ? 'weixin' :'weixinh5' : this.payType,
  466. from: this.payType,
  467. rechar_id: that.rechar_id,
  468. bar_code: that.verify_code
  469. }).then(res => {
  470. let data = res.data;
  471. if (data.type == "weixinh5") {
  472. uni.showToast({
  473. title: data.msg,
  474. success() {
  475. location.href = data.data.mweb_url;
  476. }
  477. });
  478. } else if (data.type == "alipay") {
  479. uni.hideLoading();
  480. uni.hideLoading();
  481. this.formContent = data.data;
  482. this.$nextTick(() => {
  483. document.getElementById('alipaysubmit').submit();
  484. });
  485. } else if (data.type == "weixin") {
  486. this.$wechat.pay(data.data).then(res => {
  487. this.$util.Tips({
  488. title: '支付成功',
  489. icon: 'success'
  490. }, {
  491. tab: 5,
  492. url: '/pages/users/user_money/index'
  493. });
  494. }).catch(err => {
  495. if (err.errMsg == 'chooseWXPay:cancel') {
  496. uni.showToast({
  497. title: '取消支付',
  498. icon: 'none'
  499. });
  500. }
  501. });
  502. }
  503. }).catch(err => {
  504. uni.hideLoading();
  505. return that.$util.Tips({
  506. title: err
  507. })
  508. })
  509. // #endif
  510. },
  511. /*
  512. * 用户充值
  513. */
  514. submitSub: function(e) {
  515. let that = this
  516. let value = e.detail.value.number;
  517. if (that.is_gq == 1) {
  518. console.log(value)
  519. if (parseFloat(value) < 0 || parseFloat(value) == NaN || value == undefined || value == "") {
  520. return that.$util.Tips({
  521. title: '请输入金额'
  522. });
  523. }
  524. if (parseFloat(value) % 1 !== 0) {
  525. return that.$util.Tips({
  526. title: '请输入整数'
  527. });
  528. }
  529. if (parseFloat(value) > parseFloat(that.staffInfo.shareholding)) {
  530. return that.$util.Tips({
  531. title: '您当前的股权不足'
  532. });
  533. }
  534. equityWithdrawal({
  535. shareholding: value,
  536. uid: that.userinfo.uid
  537. }).then(res => {
  538. that.$util.Tips({
  539. title: '提交成功',
  540. icon: 'success'
  541. })
  542. that.getStaffInfo()
  543. })
  544. } else if(that.is_gq == 2) {
  545. if (parseFloat(value) < 0 || parseFloat(value) == NaN || value == undefined || value == "") {
  546. return that.$util.Tips({
  547. title: '请输入金额'
  548. });
  549. }
  550. if (parseFloat(value) % 1 !== 0) {
  551. return that.$util.Tips({
  552. title: '请输入整数'
  553. });
  554. }
  555. if (parseFloat(value) > parseFloat(that.userinfo.reward_share)) {
  556. return that.$util.Tips({
  557. title: '您当前的股权不足'
  558. });
  559. }
  560. userEquityWithdrawal({
  561. reward_share: value,
  562. uid: that.userinfo.uid
  563. }).then(res => {
  564. that.$util.Tips({
  565. title: '提交成功',
  566. icon: 'success'
  567. })
  568. that.getUserInfo()
  569. })
  570. }else {
  571. // 转入余额
  572. if (that.active) {
  573. if (parseFloat(value) < 0 || parseFloat(value) == NaN || value == undefined || value == "") {
  574. return that.$util.Tips({
  575. title: '请输入金额'
  576. });
  577. }
  578. uni.showModal({
  579. title: '转入余额',
  580. content: '转入余额后无法再次转出,确认是否转入余额',
  581. success(res) {
  582. if (res.confirm) {
  583. // #ifdef MP || APP-PLUS
  584. rechargeRoutine({
  585. price: parseFloat(value),
  586. type: 1,
  587. bar_code: that.verify_code
  588. })
  589. // #endif
  590. // #ifdef H5
  591. rechargeWechat({
  592. price: parseFloat(value),
  593. from: that.from,
  594. type: 1,
  595. bar_code: that.verify_code
  596. })
  597. // #endif
  598. .then(res => {
  599. // that.$set(that, 'userinfo.now_money', that.$util.$h.Add(value, that.userinfo.now_money))
  600. return that.$util.Tips({
  601. title: '转入成功',
  602. icon: 'success'
  603. }, {
  604. tab: 5,
  605. url: '/pages/users/user_money/index'
  606. });
  607. }).catch(err => {
  608. return that.$util.Tips({
  609. title: err
  610. })
  611. });
  612. } else if (res.cancel) {
  613. return that.$util.Tips({
  614. title: '已取消'
  615. });
  616. }
  617. },
  618. })
  619. } else {
  620. // #ifdef MP
  621. this.pay_close = true;
  622. // #endif
  623. // #ifndef MP
  624. this.pay_close = true;
  625. // #endif
  626. this.totalPrice = this.rechar_id == 0 ? parseFloat(this.money) : parseFloat(this.numberPic);
  627. }
  628. }
  629. }
  630. }
  631. }
  632. </script>
  633. <style lang="scss">
  634. page {
  635. width: 100%;
  636. height: 100%;
  637. background-color: #fff;
  638. }
  639. .bgcolor {
  640. background-color: var(--view-theme)
  641. }
  642. .payment {
  643. position: relative;
  644. width: 100%;
  645. background-color: #fff;
  646. border-radius: 10rpx;
  647. padding-top: 25rpx;
  648. border-top-right-radius: 39rpx;
  649. border-top-left-radius: 39rpx;
  650. .share-user {
  651. width: 100%;
  652. align-items: center;
  653. line-height: 1;
  654. border-bottom: 1px solid #f3f3f3;
  655. padding-top: 20rpx;
  656. padding-bottom: 10rpx;
  657. .iconfont {
  658. &.icon-saoma {
  659. font-size: 50rpx;
  660. }
  661. }
  662. .title {
  663. font-size: 30rpx;
  664. color: #656565;
  665. font-weight: 800;
  666. flex-shrink: 0;
  667. }
  668. .input-box {
  669. flex-grow: 1;
  670. .input-user {
  671. width: 100%;
  672. height: 50rpx;
  673. font-size: 28rpx;
  674. }
  675. }
  676. }
  677. }
  678. .payment .nav {
  679. height: 75rpx;
  680. line-height: 75rpx;
  681. padding: 0 100rpx;
  682. }
  683. .payment .nav .item {
  684. font-size: 30rpx;
  685. color: #333;
  686. }
  687. .payment .nav .item.on {
  688. font-weight: bold;
  689. border-bottom: 4rpx solid var(--view-theme);
  690. }
  691. .payment .input {
  692. display: flex;
  693. align-items: center;
  694. justify-content: center;
  695. border-bottom: 1px dashed #dddddd;
  696. margin: 60rpx auto 0 auto;
  697. padding-bottom: 20rpx;
  698. font-size: 56rpx;
  699. color: #333333;
  700. flex-wrap: nowrap;
  701. }
  702. .payment .input text {
  703. padding-left: 106rpx;
  704. }
  705. .payment .input input {
  706. padding-right: 106rpx;
  707. width: 300rpx;
  708. height: 94rpx;
  709. text-align: center;
  710. font-size: 70rpx;
  711. }
  712. .payment .placeholder {
  713. color: #d0d0d0;
  714. height: 100%;
  715. line-height: 94rpx;
  716. }
  717. .payment .tip {
  718. font-size: 26rpx;
  719. color: #888888;
  720. padding: 0 30rpx;
  721. margin-top: 25rpx;
  722. }
  723. .payment .but {
  724. color: #fff;
  725. font-size: 30rpx;
  726. width: 700rpx;
  727. height: 86rpx;
  728. border-radius: 50rpx;
  729. margin: 46rpx auto 0 auto;
  730. line-height: 86rpx;
  731. }
  732. .payment-top {
  733. width: 100%;
  734. height: 350rpx;
  735. background-color: var(--view-theme);
  736. .name {
  737. font-size: 26rpx;
  738. color: rgba(255, 255, 255, 0.8);
  739. margin-top: -38rpx;
  740. margin-bottom: 30rpx;
  741. }
  742. .pic {
  743. font-size: 32rpx;
  744. color: #fff;
  745. }
  746. .pic-font {
  747. font-size: 78rpx;
  748. color: #fff;
  749. }
  750. }
  751. .picList {
  752. display: flex;
  753. flex-wrap: wrap;
  754. margin: 30rpx 0;
  755. .pic-box {
  756. width: 32%;
  757. height: auto;
  758. border-radius: 20rpx;
  759. margin-top: 21rpx;
  760. padding: 20rpx 0;
  761. margin-right: 12rpx;
  762. &:nth-child(3n) {
  763. margin-right: 0;
  764. }
  765. }
  766. .pic-box-color {
  767. background-color: #f4f4f4;
  768. color: #656565;
  769. }
  770. .pic-number {
  771. font-size: 22rpx;
  772. }
  773. .pic-number-pic {
  774. font-size: 38rpx;
  775. margin-right: 10rpx;
  776. text-align: center;
  777. }
  778. .pic-box-color-active {
  779. background-color: var(--view-theme) !important;
  780. color: #fff !important;
  781. }
  782. }
  783. .tips-box {
  784. .tips {
  785. font-size: 28rpx;
  786. color: #333333;
  787. font-weight: 800;
  788. margin-bottom: 14rpx;
  789. margin-top: 20rpx;
  790. }
  791. .tips-samll {
  792. font-size: 24rpx;
  793. color: #333333;
  794. margin-bottom: 14rpx;
  795. }
  796. .tip-box {
  797. margin-top: 30rpx;
  798. }
  799. }
  800. .tips-title {
  801. margin-top: 20rpx;
  802. font-size: 24rpx;
  803. color: #333;
  804. }
  805. </style>