index.vue 20 KB

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