withdraw.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <!-- 提现 -->
  2. <template>
  3. <view class="">
  4. <view style="color: #000000;">
  5. <tn-nav-bar backgroundColor="#ffffff" :bottomShadow="false">提现</tn-nav-bar>
  6. <view :style="{height: tobheight+'px'}"></view>
  7. </view>
  8. <view class="draw-money-wrap" style="background: #f6f6f6;height: 100%;">
  9. <view class="head-box">
  10. <!-- <shopro-navbar :background="{ background: 'none' }" :backTextStyle="{ color: '#fff' }" backText="提现" backIconColor="#fff"></shopro-navbar> -->
  11. <!-- 可提现 -->
  12. <view class="wallet-num-box u-flex u-col-center u-row-between">
  13. <view class="">
  14. <view class="num-title">可提现金额(元)</view>
  15. <view class="wallet-num">{{ okmoney || '0.00' }}</view>
  16. </view>
  17. <button class="u-reset-button log-btn" @tap="$Router.push({ path: '/pages/user/commission/withdraw-log' })">提现记录</button>
  18. <!-- <button class="u-reset-button log-btn">提现记录</button> -->
  19. </view>
  20. </view>
  21. <!-- 提现输入卡片-->
  22. <view class="draw-card">
  23. <view class="card-title">提现金额</view>
  24. <view class="input-box u-flex u-col-center">
  25. <view calss="unit">¥</view>
  26. <input class="u-flex-1 u-p-l-10" type="number" @input="onWithdrawInput" v-model="money" :placeholder-style="placeholderStyle" placeholder="请输入提现金额" />
  27. </view>
  28. <view class="bank-box u-flex u-col-center u-row-between u-m-b-30">
  29. <view class="name">提现至</view>
  30. <!-- <view class="bank-list u-flex" @tap="showWithdrawList = true">
  31. <view class="empty-text" v-if="!withdrawType">请选择提现方式</view>
  32. <view class="sel-box u-flex u-col-center" v-else>
  33. <image class="item-img" :src="withdrawList[withdrawType].icon" mode=""></image>
  34. <view class="item-title u-m-l-20">{{ withdrawList[withdrawType].title }}</view>
  35. </view>
  36. <text class="u-iconfont uicon-arrow-right" style="#C4C4C4;"></text>
  37. </view> -->
  38. <view class="bank-list u-flex">
  39. <view class="sel-box u-flex u-col-center">
  40. <image class="item-img" src="https://file.shopro.top/imgs/wallet/wx_type.png" mode=""></image>
  41. <view class="item-title u-m-l-20">微信</view>
  42. </view>
  43. <!-- <text class="u-iconfont uicon-arrow-right" style="#C4C4C4;"></text> -->
  44. </view>
  45. </view>
  46. <!-- 提现信息 -->
  47. <view class="bank-info u-m-b-80">
  48. <view class="u-flex u-row-between u-col-center" v-if="withdrawType">
  49. <block v-if="withdrawType === 'wechat'">
  50. <view class="bank-info-title">
  51. {{ !withdrawInfo ? '暂无微信授权信息' : `${withdrawInfo.bank_name || ''} [${withdrawInfo.card_no || ''}] ${withdrawInfo.real_name || ''}` }}
  52. </view>
  53. <button v-if="!withdrawInfo" class="u-reset-button bind-btn u-m-l-20" @tap="bindThirdOauth()">绑定</button>
  54. </block>
  55. <block v-else>
  56. <view class="bank-info-title">
  57. {{
  58. !withdrawInfo
  59. ? `暂无${withdrawList[withdrawType].title}信息`
  60. : `${withdrawInfo.bank_name || ''} [${withdrawInfo.card_no || ''}] ${withdrawInfo.real_name || ''}`
  61. }}
  62. </view>
  63. <button class="u-reset-button bind-btn u-m-l-20" @tap="toBind">{{ withdrawInfo ? '修改' : '添加' }}</button>
  64. </block>
  65. </view>
  66. </view>
  67. <button class="u-reset-button save-btn" @tap="withdraw">确认提现</button>
  68. </view>
  69. <!-- 提现说明 -->
  70. <view class="draw-notice">
  71. <view class="title">{{ruleInfo.instructions}}</view>
  72. <view class="draw-list">1.单次最低提现 {{ruleInfo.extract_min_price}} 元。</view>
  73. <!-- <view class="draw-list">
  74. 2.每日最多可提现次数: {{ ruleInfo.perday_num ? ruleInfo.perday_num : '不限' }};每日最多提现金额(元):
  75. {{ ruleInfo.perday_amount ? ruleInfo.perday_amount : '不限' }};
  76. </view> -->
  77. <!-- <view class="draw-list">3.每笔收取提现手续费 {{ ruleInfo.extract_rate }}%;</view> -->
  78. <view class="draw-list">2.提现结果请查收对应渠道服务通知。</view>
  79. <view class="draw-list">3.如有疑问请及时联系客服。</view>
  80. <!-- <view class="draw-list">4.一级分佣比例为{{ruleInfo.first}}%。</view>
  81. <view class="draw-list">5.二级分佣比例为{{ruleInfo.second}}%。</view>
  82. <view class="draw-list">6.三级分佣比例为{{ruleInfo.third}}%。</view> -->
  83. </view>
  84. <!-- 提现方式 -->
  85. <!-- <u-popup v-if="ruleInfo && ruleInfo.methods.length" v-model="showWithdrawList" mode="bottom" safe-area-inset-bottom :closeable="false" border-radius="30">
  86. <view class="page_box withdraw-modal">
  87. <view class="modal-head u-flex u-row-center u-col-center">选择提现方式</view>
  88. <view class="content_box modal-content">
  89. <u-radio-group v-model="selectedWithdrawType" activeColor="#A36FFF" wrap>
  90. <view class="type-item u-p-x-24 u-p-y-30" v-if="ruleInfo.methods.includes(item.value)" v-for="(item, index) in withdrawList" :key="index">
  91. <u-radio shape="circle" iconSize="30" :name="item.value" labelWidth="100%">
  92. <view class="item-left u-flex u-col-center u-m-l-30">
  93. <image class="item-img" :src="item.icon" mode=""></image>
  94. <view class="item-title u-m-l-20">{{ item.title }}</view>
  95. </view>
  96. </u-radio>
  97. </view>
  98. </u-radio-group>
  99. </view>
  100. <view class="modal-bottom"><button class="u-reset-button modal-save-btn" @tap="onSaveWithdrawType">确定</button></view>
  101. </view>
  102. </u-popup> -->
  103. <u-popup :show="showBindForm" @close="showBindForm = false" :round="10">
  104. <view class="carmimodal">
  105. <view class="carmiclose" @click="showBindForm = false"><u-icon name="close-circle-fill" color="#fff" size="22"></u-icon></view>
  106. <view class="carmititle">添加提现信息</view>
  107. <view class="kf_qrcode tn-flex justify-center">
  108. <u--image :showLoading="true" :src="paymentcode" width="100px" height="100px" @click="clickuimage()"></u--image>
  109. </view>
  110. <view class="u-text-center">
  111. 点击上传微信收款码
  112. </view>
  113. <view class="carmiinput"><u--input placeholder="请输入您的真实姓名" border="surround" clearable v-model="realname"></u--input></view>
  114. <view @click="exchange" class="carmiexchange">立即保存</view>
  115. </view>
  116. </u-popup>
  117. <!-- 绑定修改银行信息 -->
  118. <!-- modal -->
  119. <u-modal
  120. ref="uModal"
  121. v-model="showModal"
  122. :show-cancel-button="true"
  123. confirm-color="#7063D2"
  124. cancel-color="#666666"
  125. @confirm="$Router.push('/pages/user/wallet/withdraw-log')"
  126. confirm-text="查看记录"
  127. cancel-text="继续提现"
  128. content="您的申请提现已提交"
  129. title="申请成功"
  130. ></u-modal>
  131. </view>
  132. <wike-loading-page :isLoading="isLoading"></wike-loading-page>
  133. </view>
  134. </template>
  135. <script>
  136. import { mapState, mapActions, mapGetters } from 'vuex';
  137. import { apiurl } from '@/common/request/request';
  138. // import FormValidate from '@/shopro/validate/form';
  139. // import wechat from '@/shopro/wechat/wechat';
  140. export default {
  141. data() {
  142. return {
  143. isLoading:true,
  144. tobheight:45,
  145. platform: this.$platform.get(),
  146. showModal: false,
  147. money: '', //提现金额
  148. ruleInfo: {}, //提现规则
  149. formTitle: '',
  150. withdrawType: '',
  151. showBindForm: false,
  152. selectedWithdrawType: '',
  153. withdrawInfo: {}, //提现信息
  154. showWithdrawList: false,
  155. withdrawList: {
  156. bank: {
  157. icon: this.$IMG_URL + '/imgs/wallet/bank_type.png',
  158. title: '银行卡转账',
  159. value: 'bank'
  160. },
  161. wechat: {
  162. icon: this.$IMG_URL + '/imgs/wallet/wx_type.png',
  163. title: '微信零钱',
  164. value: 'wechat'
  165. },
  166. alipay: {
  167. icon: this.$IMG_URL + '/imgs/wallet/ali_type.png',
  168. title: '支付宝账户',
  169. value: 'alipay'
  170. }
  171. },
  172. // 表单样式
  173. errorType: ['message'],
  174. labelStyle: {
  175. 'font-size': '30rpx',
  176. 'font-weight': '500',
  177. color: '#333'
  178. },
  179. placeholderStyle: 'font-size: 30rpx; font-weight: 500;color:#C2C7CF;',
  180. form: {
  181. data: {
  182. real_name: '',
  183. bank_name: '',
  184. card_no: ''
  185. },
  186. // bankRules: {
  187. // real_name: FormValidate.realName,
  188. // bank_name: FormValidate.bankName,
  189. // card_no: FormValidate.bankCode
  190. // },
  191. // alipayRules: {
  192. // real_name: FormValidate.realName,
  193. // card_no: FormValidate.alipayAccount
  194. // }
  195. },
  196. okmoney:0.00,
  197. extract_min_price:0,
  198. extract_rate:0,
  199. paymentcode:'',
  200. paymentcodeid:'',
  201. realname:'',
  202. qrcode_wechat:''
  203. };
  204. },
  205. computed: {
  206. ...mapGetters(['appInfo','userInfo'])
  207. },
  208. onLoad() {
  209. const that = this;
  210. if(this.platform == 'wxMiniProgram'){
  211. var menumtop = uni.getMenuButtonBoundingClientRect().top - uni.getSystemInfoSync().statusBarHeight
  212. var paddingtop = uni.getSystemInfoSync().statusBarHeight + menumtop
  213. this.tobheight = (menumtop+paddingtop+uni.getMenuButtonBoundingClientRect().height)
  214. }
  215. this.getCheck()
  216. this.getWithdrawRules();
  217. this.getGroupConf()
  218. // that.$store.dispatch('getUserInfo');
  219. },
  220. methods: {
  221. getCheck() {
  222. var that = this;
  223. that.$http('commission.auth').then(res => {
  224. if(res.code == 0){
  225. uni.setNavigationBarTitle({
  226. title: this.appInfo.site_name
  227. });
  228. that.okmoney = res.data.money
  229. that.qrcode_wechat = res.data.qrcode_wechat
  230. that.isLoading = false
  231. }
  232. })
  233. },
  234. getGroupConf() {
  235. var that = this;
  236. // that.$http('conf.getGroupConf',{group: 'system.commission_cashout'}).then(res => {
  237. // if(res.code == 0){
  238. // that.extract_min_price = res.data.extract_min_price
  239. // that.extract_rate = res.data.extract_rate
  240. // }
  241. // })
  242. },
  243. // 确认提现方式
  244. onSaveWithdrawType() {
  245. this.withdrawType = this.selectedWithdrawType;
  246. this.showWithdrawList = false;
  247. this.getWithdrawInfo();
  248. },
  249. async bindThirdOauth() {
  250. let that = this;
  251. wechat.bind();
  252. that.getWithdrawInfo();
  253. },
  254. exchange(){
  255. let that = this;
  256. if(!that.paymentcode&&that.paymentcodeid){
  257. uni.showToast({
  258. title:'请上传微信收款码',
  259. icon:'none'
  260. })
  261. return;
  262. }
  263. // if(!that.realname){
  264. // uni.showToast({
  265. // title:'请填写您的真实姓名',
  266. // icon:'none'
  267. // })
  268. // return;
  269. // }
  270. that.$http('commission.update',{real_name:that.realname,qrcode_wechat:that.paymentcodeid}).then(res => {
  271. if (res.code === 0) {
  272. uni.showToast({
  273. title:'保存成功'
  274. })
  275. that.showBindForm = false
  276. that.getCheck()
  277. }else{
  278. uni.showToast({
  279. title:'保存失败',
  280. icon:'none'
  281. })
  282. }
  283. });
  284. },
  285. //上传收款码
  286. clickuimage(){
  287. var that = this;
  288. uni.chooseImage({
  289. count: 1, //默认9
  290. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  291. sourceType: ['album', 'camera'], //从相册选择
  292. success: function(res) {
  293. uni.showLoading({
  294. title:'上传中...'
  295. })
  296. const tempFilePaths = res.tempFilePaths;
  297. //上传服务器将服务器;
  298. uni.uploadFile({
  299. url: apiurl('common/upload'),
  300. filePath: tempFilePaths[0],
  301. name: 'file',
  302. formData: {
  303. accept: 'image'
  304. },
  305. success: res2 => {
  306. uni.hideLoading();
  307. let a = JSON.parse(res2.data);
  308. if (a.code == 0) {
  309. that.paymentcode = a.data.path
  310. that.paymentcodeid = a.data.id
  311. }else{
  312. uni.showToast({
  313. title:'上传收款码失败',
  314. icon:'none'
  315. })
  316. }
  317. }
  318. });
  319. }
  320. });
  321. },
  322. // 提现检验
  323. onWithdrawInput(e) {
  324. let sVal = String(e.detail.value);
  325. sVal = sVal.replace(/\b(0+)/gi, '');
  326. sVal = sVal.replace(/[^\d]/g, '');
  327. this.money = sVal;
  328. },
  329. // 提现
  330. withdraw() {
  331. const that = this;
  332. if (!this.qrcode_wechat) {
  333. this.$u.toast('请上传提现信息');
  334. this.showBindForm = true
  335. return;
  336. }
  337. // console.log(that.money,that.ruleInfo.extract_min_price,that.okmoney);
  338. // if (that.okmoney == 0 && that.money > that.okmoney) {
  339. // that.$u.toast('金额不足');
  340. // return;
  341. // }
  342. console.log(Number(that.money),Number(that.ruleInfo.extract_min_price), Number(that.okmoney));
  343. if (Number(that.money) <= 0) {
  344. that.$u.toast('请输入提现金额');
  345. return;
  346. }
  347. if (Number(that.okmoney) == 0 ) {
  348. that.$u.toast('金额不足');
  349. return;
  350. }
  351. if (Number(that.okmoney) > 0 && Number(that.money) > Number(that.okmoney)) {
  352. that.$u.toast('金额不足');
  353. return;
  354. }
  355. if(Number(that.money) < Number(that.ruleInfo.extract_min_price)){
  356. that.$u.toast('最低提现金额'+that.ruleInfo.extract_min_price+'元');
  357. return;
  358. }
  359. that.$http(
  360. 'commission.extract',
  361. {
  362. // type: that.withdrawType,
  363. extract_price: that.money
  364. },
  365. '申请中...',
  366. false
  367. ).then(res => {
  368. if (res.code === 0) {
  369. // that.$u.toast(res.msg);
  370. that.money = '';
  371. // uni.showToast({
  372. // title:'提现成功'
  373. // })
  374. uni.showModal({
  375. confirmText:'继续提现',
  376. confirmColor:'#5e49c3',
  377. content:'提现成功',
  378. title:'提示',
  379. success(res) {
  380. }
  381. })
  382. that.getCheck()
  383. } else {
  384. that.money = '';
  385. // that.showModal = true;
  386. // #ifdef MP-WEIXIN
  387. // this.$store.commit('subscribeMessage', 'wallet');
  388. // #endif
  389. uni.showToast({
  390. title:'提现失败',
  391. icon:'none'
  392. })
  393. }
  394. });
  395. },
  396. initForm() {
  397. this.form.data = {
  398. real_name: '',
  399. bank_name: '',
  400. card_no: ''
  401. };
  402. },
  403. // 绑定,修改
  404. toBind() {
  405. this.showBindForm = true;
  406. this.form.data = {
  407. ...this.form.data,
  408. ...this.withdrawInfo
  409. };
  410. switch (this.withdrawType) {
  411. case 'bank':
  412. this.formTitle = this.withdrawInfo ? '修改银行卡' : '添加银行卡';
  413. this.$nextTick(() => {
  414. this.$refs.bank.setRules(this.form.bankRules);
  415. });
  416. break;
  417. case 'alipay':
  418. this.formTitle = this.withdrawInfo ? '修改支付宝' : '添加支付宝';
  419. this.$nextTick(() => {
  420. this.$refs.alipay.setRules(this.form.alipayRules);
  421. });
  422. break;
  423. default:
  424. break;
  425. }
  426. },
  427. // 确认提交表单
  428. saveForm() {
  429. let that = this;
  430. this.$refs[this.withdrawType].validate().then(res => {
  431. if (res) {
  432. that.$http(
  433. 'money.bankEdit',
  434. {
  435. type: that.withdrawType,
  436. ...that.form.data
  437. },
  438. '提交中...'
  439. ).then(res => {
  440. if (res.code === 1) {
  441. that.showBindForm = false;
  442. that.$u.toast(res.msg);
  443. that.initForm();
  444. that.getWithdrawInfo();
  445. }
  446. });
  447. }
  448. });
  449. },
  450. // 提现规则
  451. getWithdrawRules() {
  452. let that = this;
  453. that.$http('conf.getGroupConf',{group:'system.commission'}).then(res => {
  454. if (res.code === 0) {
  455. that.ruleInfo = res.data;
  456. // that.selectedWithdrawType = that.ruleInfo.methods[0];
  457. }
  458. });
  459. },
  460. // 获取提现信息
  461. getWithdrawInfo() {
  462. let that = this;
  463. that.$http(
  464. 'money.bankInfo',
  465. {
  466. type: that.withdrawType
  467. },
  468. '',
  469. false
  470. ).then(res => {
  471. that.withdrawInfo = res.code === 1 ? res.data : null;
  472. });
  473. }
  474. }
  475. };
  476. </script>
  477. <style lang="scss">
  478. .head-box {
  479. background: url('http://file.shopro.top/imgs/user/draw_money_head_bg.png') no-repeat;
  480. background-size: 100% auto;
  481. min-height: 400rpx;
  482. padding-bottom: var(--status-bar-height);
  483. // 可提现
  484. .wallet-num-box {
  485. padding: 20rpx 40rpx 0;
  486. .num-title {
  487. font-size: 26rpx;
  488. font-weight: 500;
  489. color: #ffffff;
  490. margin-bottom: 20rpx;
  491. }
  492. .wallet-num {
  493. font-size: 60rpx;
  494. font-weight: 500;
  495. color: #ffffff;
  496. }
  497. .log-btn {
  498. width: 170rpx;
  499. height: 60rpx;
  500. line-height: 60rpx;
  501. background: rgba(255, 255, 255, 0.1);
  502. border: 1rpx solid #eeeeee;
  503. border-radius: 30rpx;
  504. padding: 0;
  505. font-size: 26rpx;
  506. font-weight: 500;
  507. color: #ffffff;
  508. margin-right: 0;
  509. }
  510. }
  511. }
  512. // 提现输入卡片
  513. .draw-card {
  514. background-color: #fff;
  515. border-radius: 20rpx;
  516. width: 690rpx;
  517. min-height: 530rpx;
  518. margin: -70rpx auto 0;
  519. padding: 30rpx;
  520. .card-title {
  521. font-size: 30rpx;
  522. font-weight: 500;
  523. color: #333333;
  524. margin-bottom: 30rpx;
  525. }
  526. .input-box {
  527. width: 624rpx;
  528. border-bottom: 1rpx solid #eee;
  529. height: 100rpx;
  530. margin-bottom: 40rpx;
  531. .unit {
  532. font-size: 48rpx;
  533. color: #333;
  534. }
  535. }
  536. .bank-box {
  537. .name {
  538. font-size: 28rpx;
  539. font-weight: 500;
  540. color: #333333;
  541. }
  542. .bank-list {
  543. .empty-text {
  544. font-size: 28rpx;
  545. font-weight: 400;
  546. color: #999999;
  547. }
  548. .sel-box {
  549. .item-img {
  550. width: 36rpx;
  551. height: 36rpx;
  552. }
  553. .item-title {
  554. font-size: 28rpx;
  555. color: #333333;
  556. }
  557. }
  558. }
  559. }
  560. .bank-info {
  561. height: 50rpx;
  562. font-size: 28rpx;
  563. font-weight: 400;
  564. color: #999999;
  565. .bank-info-title {
  566. width: 500rpx;
  567. }
  568. .bind-btn {
  569. padding: 0 20rpx;
  570. line-height: 50rpx;
  571. background: #f5f6f8;
  572. border-radius: 20rpx;
  573. color: #999;
  574. }
  575. }
  576. .save-btn {
  577. width: 616rpx;
  578. height: 86rpx;
  579. line-height: 86rpx;
  580. background: linear-gradient(-90deg, #a36fff, #5336ff);
  581. box-shadow: 0px 7rpx 11rpx 2rpx rgba(124, 103, 214, 0.34);
  582. border-radius: 43rpx;
  583. font-size: 30rpx;
  584. font-weight: 500;
  585. color: #ffffff;
  586. }
  587. }
  588. // 提现说明
  589. .draw-notice {
  590. width: 684rpx;
  591. min-height: 327rpx;
  592. background: #ffffff;
  593. border-radius: 20rpx;
  594. padding: 30rpx 35rpx;
  595. margin: 20rpx auto;
  596. .title {
  597. font-size: 30rpx;
  598. font-weight: 500;
  599. color: #333333;
  600. margin-bottom: 30rpx;
  601. }
  602. .draw-list {
  603. font-size: 24rpx;
  604. font-weight: 400;
  605. color: #999999;
  606. margin-bottom: 10rpx;
  607. }
  608. }
  609. // 提现费方式
  610. .withdraw-modal {
  611. min-height: 600rpx;
  612. background-color: #fff;
  613. .modal-head {
  614. height: 80rpx;
  615. font-size: 30rpx;
  616. font-weight: 600;
  617. color: #333333;
  618. border-bottom: 1rpx solid rgba(#dfdfdf, 0.5);
  619. }
  620. .modal-content {
  621. .type-item {
  622. height: 100rpx;
  623. border-bottom: 1rpx solid rgba(#dfdfdf, 0.5);
  624. width: 750rpx;
  625. .item-img {
  626. width: 36rpx;
  627. height: 36rpx;
  628. }
  629. .item-title {
  630. font-size: 28rpx;
  631. color: #333333;
  632. }
  633. }
  634. }
  635. .modal-bottom {
  636. padding: 30rpx;
  637. .modal-save-btn {
  638. width: 690rpx;
  639. height: 80rpx;
  640. line-height: 80rpx;
  641. background: linear-gradient(90deg, #a36fff, #5336ff);
  642. box-shadow: 0 7rpx 11rpx 2rpx rgba(124, 103, 214, 0.34);
  643. border-radius: 40rpx;
  644. font-weight: 500;
  645. color: #ffffff;
  646. }
  647. }
  648. }
  649. // 绑定
  650. .form-box {
  651. .head-title {
  652. height: 100rpx;
  653. font-size: 34rpx;
  654. font-weight: 600;
  655. }
  656. .form-save-btn {
  657. width: 340rpx;
  658. height: 80rpx;
  659. line-height: 80rpx;
  660. background: linear-gradient(90deg, #a36fff, #5336ff);
  661. box-shadow: 0 7rpx 11rpx 2rpx rgba(124, 103, 214, 0.34);
  662. border-radius: 40rpx;
  663. font-weight: 500;
  664. color: #ffffff;
  665. }
  666. .form-cancel-btn {
  667. width: 340rpx;
  668. height: 80rpx;
  669. line-height: 80rpx;
  670. border: 1rpx solid #999;
  671. border-radius: 40rpx;
  672. font-weight: 500;
  673. color: #999;
  674. }
  675. }
  676. .carmimodal {
  677. // width: 600rpx;
  678. border-radius: 20rpx;
  679. position: relative;
  680. .carmiclose {
  681. position: absolute;
  682. right: 15rpx;
  683. top: 15rpx;
  684. }
  685. .carmititle {
  686. background: linear-gradient(-90deg, #a36fff, #5336ff);
  687. color: #fff;
  688. height: 120rpx;
  689. line-height: 120rpx;
  690. font-size: 32rpx;
  691. font-weight: bold;
  692. text-align: center;
  693. border-radius: 20rpx 20rpx 0 0;
  694. margin-bottom: 60rpx;
  695. }
  696. .carmiinput {
  697. margin: 30rpx;
  698. }
  699. .carmiexchange {
  700. margin: 80rpx 30rpx 90rpx 30rpx;
  701. background: linear-gradient(-90deg, #a36fff, #5336ff);
  702. color: #fff;
  703. border-radius: 80rpx;
  704. height: 80rpx;
  705. line-height: 80rpx;
  706. text-align: center;
  707. }
  708. .kf_qrcode{
  709. // margin-left: 200rpx;
  710. margin-bottom: 30rpx;
  711. }
  712. }
  713. </style>