index.vue 19 KB

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