index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <template>
  2. <view class="wallet">
  3. <view v-if="XCXIsSelect != '否'">
  4. <view class="bg bg1">
  5. <view class="flex align-center justify-between">
  6. <view style="font-size: 32rpx;color: #222222;">当前余额</view>
  7. <view v-if="jsczSel != '否'" class="text-lg" style="text-decoration:underline;color: #2FB57A;"
  8. @tap="goMyLB">我的老板</view>
  9. </view>
  10. <view class="flex margin-top-sm">
  11. <!-- <view class="text-xxl"></view> -->
  12. <view style="font-size: 48rpx;color: #222222;font-weight: bold;">¥{{money}}元</view>
  13. </view>
  14. </view>
  15. <view class="bg">
  16. <view style="font-size: 32rpx;color: #222222;margin-bottom: 28rpx;">提现金额</view>
  17. <view class="padding-bottom-sm">
  18. <input style="font-size: 36rpx;color: #222222;font-weight: bold;" type="number" placeholder="请输入提现金额" placeholder-style="color:#AAAAAA;font-weight: 500;" v-model="moneyNum">
  19. </view>
  20. <view style="width: 654upx;margin: 0 auto;height: 1upx;background: #E6E6E6;"></view>
  21. <view style="font-size: 24rpx;color: #AAAAAA;margin-top: 24rpx;">{{placeholder}}</view>
  22. <view style="font-size: 24rpx;color: #F24E4E;margin-top: 24rpx;" v-if="txMsg">*{{txMsg}}</view>
  23. </view>
  24. <view class="bg">
  25. <view>
  26. <view v-for="(item,index) in openLists" :key='index'>
  27. <view style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;"
  28. v-if="item.text === '微信' && wxTxSel != '否'">
  29. <image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;"></image>
  30. <view style="font-size: 30upx;margin-left: 20upx;width: 80%;">{{item.text}}
  31. </view>
  32. <radio-group name="openWay" style="margin-left: 20upx;transform: scale(.7);" @tap='selectWay(item)'>
  33. <label class="tui-radio">
  34. <radio color="#1EDA94" :checked="openWay === item.id ? true : false" />
  35. </label>
  36. </radio-group>
  37. </view>
  38. <view style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;"
  39. v-if="item.text === '银联' && ylTxSel != '否'">
  40. <image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;"></image>
  41. <view style="font-size: 30upx;margin-left: 20upx;width: 80%;">{{item.text}}
  42. </view>
  43. <radio-group name="openWay" style="margin-left: 20upx;transform: scale(.7);" @tap='selectWay(item)'>
  44. <label class="tui-radio">
  45. <radio color="#1EDA94" :checked="openWay === item.id ? true : false" />
  46. </label>
  47. </radio-group>
  48. </view>
  49. <view style="display: flex;height: 100upx;align-items: center;padding: 20upx 0;"
  50. v-if="item.text === '支付宝'">
  51. <image :src="item.image" style="width: 55upx;height: 55upx;border-radius: 50upx;"></image>
  52. <view style="font-size: 30upx;margin-left: 20upx;width: 80%;">{{item.text}}
  53. </view>
  54. <radio-group name="openWay" style="margin-left: 20upx;transform: scale(.7);" @tap='selectWay(item)'>
  55. <label class="tui-radio">
  56. <radio color="#1EDA94" :checked="openWay === item.id ? true : false" />
  57. </label>
  58. </radio-group>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="btn" @click="cashMoney">立即提现</view>
  64. </view>
  65. <view class="icon-box" v-if="XCXIsSelect != '否'">
  66. <view class="icon-item" @click="goNav('/my/wallet/zhifubao')">
  67. <image class="icon" src="/my/static/icon1.png" mode=""></image>
  68. <view class="label">提现账号</view>
  69. </view>
  70. <view class="icon-item" @click="goNav('/my/wallet/mymoneydetail')">
  71. <image class="icon" src="/my/static/icon2.png" mode=""></image>
  72. <view class="label">钱包明细</view>
  73. </view>
  74. <view class="icon-item" @click="goNav('/my/wallet/cashList')">
  75. <image class="icon" src="/my/static/icon3.png" mode=""></image>
  76. <view class="label">提现记录</view>
  77. </view>
  78. <view class="icon-item" @click="goNav('/my/wallet/yinhangka')" v-if="ylTxSel != '否'">
  79. <image class="icon" src="/my/static/icon4.png" mode=""></image>
  80. <view class="label">银行卡账号</view>
  81. </view>
  82. </view>
  83. </view>
  84. </template>
  85. <script>
  86. var jwx = require('../../js_sdk/jweixin-1.6.0.js')
  87. export default {
  88. data() {
  89. return {
  90. XCXIsSelect: '否',
  91. tablist: [{
  92. id: 1,
  93. name: '我的余额'
  94. }, {
  95. id: 2,
  96. name: '我的收益'
  97. }],
  98. bankCard: '',
  99. title_color: 2,
  100. // bgCol1: '#1E1F31',
  101. bgCol2: '#2FB57A',
  102. money: 0,
  103. avatar: '',
  104. Profit: 0,
  105. openLists: [
  106. // {
  107. // image: '../static/zhifubao.png',
  108. // text: '支付宝',
  109. // id: 1
  110. // },
  111. {
  112. image: '../static/icon_weixin.png',
  113. text: '微信',
  114. id: 3
  115. }, {
  116. image: '../static/union.png',
  117. text: '银联',
  118. id: 2
  119. }],
  120. wxTxSel: '否',
  121. ylTxSel: '否',
  122. jsczSel: '否',
  123. openWay: 3,
  124. wallet: [{
  125. id: 1,
  126. num: '5',
  127. price: '5',
  128. isSelect: true
  129. },
  130. {
  131. id: 2,
  132. num: '20',
  133. price: '20',
  134. isSelect: false
  135. },
  136. {
  137. id: 3,
  138. num: '50',
  139. price: '50',
  140. isSelect: false
  141. },
  142. {
  143. id: 4,
  144. num: '100',
  145. price: '100',
  146. isSelect: false
  147. },
  148. {
  149. id: 5,
  150. num: '200',
  151. price: '200',
  152. isSelect: false
  153. },
  154. {
  155. id: 6,
  156. num: '500',
  157. price: '500',
  158. isSelect: false
  159. }
  160. ],
  161. moneyNum: null,
  162. thisSelect: {
  163. id: 1,
  164. num: '5',
  165. price: '5',
  166. isSelect: true
  167. },
  168. ylSel: '否',
  169. charge: 0, //提现手续费
  170. maxMoney: 0, //最高提现额度
  171. minMoney: 0, //最低提现额度
  172. ratio: '', //金元比例
  173. placeholder: '',
  174. renzheng: 0,
  175. sp: 0,
  176. txMsg: ''
  177. }
  178. },
  179. onLoad() {
  180. this.wxTxSel = this.$queue.getData('wxTxSel');
  181. this.ylTxSel = this.$queue.getData('ylTxSel');
  182. this.jsczSel = this.$queue.getData('jsczSel');
  183. this.XCXIsSelect = this.$queue.getData("XCXIsSelect");
  184. if (this.XCXIsSelect != '否') {
  185. uni.setNavigationBarTitle({
  186. title: '我的钱包'
  187. })
  188. } else {
  189. uni.setNavigationBarTitle({
  190. title: '我的信息'
  191. })
  192. }
  193. this.txMsg = this.$queue.getData('txMsg');
  194. this.avatar = uni.getStorageSync('avatar')
  195. this.renzheng = uni.getStorageSync("renzheng")
  196. },
  197. onShow() {
  198. this.ylSel = this.$queue.getData('ylSel');
  199. this.getMoney()
  200. this.getCharge()
  201. this.getMinMoney()
  202. this.getMaxMoney()
  203. this.getRatio()
  204. this.getUserInfo()
  205. },
  206. methods: {
  207. goMyLB() {
  208. uni.navigateTo({
  209. url: '/my/wallet/therapist'
  210. });
  211. },
  212. //退保证金
  213. TuiPrice() {
  214. let that = this
  215. let zhiFuBao = uni.getStorageSync('zhiFuBao')
  216. let zhiFuBaoName = uni.getStorageSync('zhiFuBaoName')
  217. if (!zhiFuBao && !zhiFuBaoName) {
  218. uni.navigateTo({
  219. url: '/my/wallet/zhifubao'
  220. })
  221. } else {
  222. let renzheng = uni.getStorageSync("renzheng")
  223. console.log(renzheng)
  224. if (renzheng == 2 || renzheng == 5) {
  225. uni.showModal({
  226. title: '提示',
  227. content: '是否确定退还保证金?退还后将不能发布订单',
  228. success: function(res) {
  229. if (res.confirm) {
  230. console.log('用户点击确定');
  231. that.$Request.post("/app/userCertification/exitMoney").then(res => {
  232. console.log(res)
  233. if (res.msg == '您还有未下架的订单,请先下架!') {
  234. uni.showToast({
  235. title: res.msg,
  236. icon: 'none'
  237. });
  238. } else if (res.msg == '您还有未服务的订单,请先完成!') {
  239. uni.showToast({
  240. title: res.msg,
  241. icon: 'none'
  242. });
  243. } else if (res.msg == 'success') {
  244. uni.showToast({
  245. title: '退还成功',
  246. icon: 'none'
  247. });
  248. uni.switchTab({
  249. url: '/pages/my/index'
  250. })
  251. }
  252. });
  253. } else if (res.cancel) {
  254. console.log('用户点击取消');
  255. }
  256. }
  257. });
  258. }
  259. }
  260. },
  261. getUserInfo() {
  262. this.$Request.get("/app/user/selectUserById").then(res => {
  263. if (res.code == 0) {
  264. this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png'
  265. uni.setStorageSync('avatar', res.data.avatar)
  266. if (res.data.bankCard) {
  267. this.bankCard = res.data.bankCard
  268. }
  269. }
  270. });
  271. },
  272. // 提现手续费
  273. getCharge() {
  274. this.$Request.get("/app/common/type/152").then(res => {
  275. if (res.code == 0) {
  276. this.charge = res.data.value
  277. this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
  278. this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
  279. }
  280. });
  281. },
  282. // 最低提现额度
  283. getMinMoney() {
  284. this.$Request.get("/app/common/type/112").then(res => {
  285. if (res.code == 0) {
  286. this.minMoney = res.data.value
  287. this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
  288. this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
  289. }
  290. });
  291. },
  292. // 最高提现额度
  293. getMaxMoney() {
  294. this.$Request.get("/app/common/type/153").then(res => {
  295. if (res.code == 0) {
  296. this.maxMoney = res.data.value
  297. this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
  298. this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
  299. }
  300. });
  301. },
  302. // 金元比例
  303. getRatio() {
  304. this.$Request.get("/app/common/type/154").then(res => {
  305. if (res.code == 0 && res.data.value) {
  306. this.ratio = res.data.value
  307. this.placeholder = '服务费:' + this.charge * 100 + '%' + ',最低提现:' +
  308. this.minMoney * 1 + ',最高提现:' + this.maxMoney * 1
  309. this.wallet.forEach(re => {
  310. re.num = re.price * res.data.value
  311. })
  312. }
  313. });
  314. },
  315. cut(e) {
  316. this.title_color = e
  317. },
  318. goNav(url) {
  319. uni.navigateTo({
  320. url
  321. })
  322. },
  323. active(e) {
  324. this.wallet.forEach(res => {
  325. if (res.id == e.id) {
  326. res.isSelect = true
  327. this.thisSelect = e
  328. } else {
  329. res.isSelect = false
  330. }
  331. })
  332. },
  333. // 我的余额
  334. getMoney() {
  335. this.$Request.get("/app/userMoney/selectMyMoney").then(res => {
  336. if (res.code == 0 && res.data) {
  337. console.log(res.data.money)
  338. this.money = res.data.money
  339. }
  340. });
  341. },
  342. selectWay: function(item) {
  343. this.openWay = item.id;
  344. },
  345. pay() {
  346. let data = {
  347. money: this.thisSelect.price
  348. }
  349. console.log(data)
  350. // 获取订单编号
  351. this.$Request.post("/app/appOrder/insertOrder", data).then(res => {
  352. console.log(res, '********')
  353. uni.showLoading({
  354. title: '支付中...'
  355. });
  356. if (res.code == 0) {
  357. // this.Profit = res.data
  358. if (this.openWay == 2) {
  359. // #ifdef APP-PLUS
  360. // 微信APP支付 根据订单id获取支付信息
  361. this.$Request.post("/app/wxPay/payAppOrder", {
  362. id: res.data.id
  363. }).then(ret => {
  364. this.isCheckPay(ret.code, 'wxpay', JSON.stringify(ret.data));
  365. });
  366. // #endif
  367. // #ifdef MP-WEIXIN
  368. // 微信小程序支付
  369. this.$Request.post('/app/wxPay/wxPayJsApiOrder', {
  370. orderId: res.data.id
  371. }).then(ret => {
  372. uni.hideLoading()
  373. uni.requestPayment({
  374. provider: 'wxpay',
  375. timeStamp: ret.data.timestamp,
  376. nonceStr: ret.data.noncestr,
  377. package: ret.data.package,
  378. signType: ret.data.signType,
  379. paySign: ret.data.sign,
  380. success: function(suc) {
  381. console.log('success:' + JSON.stringify(suc));
  382. uni.showToast({
  383. title: '支付成功',
  384. icon: 'success'
  385. })
  386. setTimeout(d => {
  387. uni.navigateBack(1)
  388. }, 1000);
  389. },
  390. fail: function(err) {
  391. console.log('fail:' + JSON.stringify(err));
  392. uni.showToast({
  393. title: '支付失败',
  394. icon: 'none'
  395. })
  396. }
  397. });
  398. });
  399. // #endif
  400. // #ifdef H5
  401. let ua = navigator.userAgent.toLowerCase();
  402. if (ua.indexOf('micromessenger') !== -1) {
  403. this.$Request.post('/app/wxPay/wxPayMpOrder?orderId=' + res.data.id).then(res => {
  404. if (res.code == 0) {
  405. this.callPay(res.data);
  406. } else {
  407. uni.showToast({
  408. icon: 'none',
  409. title: '支付失败!'
  410. });
  411. }
  412. });
  413. } else {
  414. this.$Request.post('/app/aliPay/payOrder?orderId=' + res.data.id).then(
  415. res => {
  416. if (res.code === 0) {
  417. const div = document.createElement('div')
  418. div.innerHTML = res.data //此处form就是后台返回接收到的数据
  419. document.body.appendChild(div)
  420. document.forms[0].submit()
  421. uni.showToast({
  422. title: '支付成功',
  423. icon: 'success'
  424. })
  425. setTimeout(d => {
  426. uni.navigateBack(1)
  427. }, 1000);
  428. } else {
  429. uni.showToast({
  430. icon: 'none',
  431. title: '支付失败!'
  432. });
  433. }
  434. });
  435. }
  436. // #endif
  437. } else {
  438. // APP支付宝支付
  439. this.$Request.post("/app/aliPay/payApp", {
  440. id: res.data.id
  441. }).then(ret => {
  442. console.log(ret)
  443. this.isCheckPay(ret.code, 'alipay', ret.data);
  444. });
  445. }
  446. }
  447. });
  448. },
  449. callPay: function(response) {
  450. if (typeof WeixinJSBridge === "undefined") {
  451. if (document.addEventListener) {
  452. document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady(response), false);
  453. } else if (document.attachEvent) {
  454. document.attachEvent('WeixinJSBridgeReady', this.onBridgeReady(response));
  455. document.attachEvent('onWeixinJSBridgeReady', this.onBridgeReady(response));
  456. }
  457. } else {
  458. this.onBridgeReady(response);
  459. }
  460. },
  461. onBridgeReady: function(response) {
  462. let that = this;
  463. if (!response.package) {
  464. return;
  465. }
  466. console.log(response, '++++++++')
  467. WeixinJSBridge.invoke(
  468. 'getBrandWCPayRequest', {
  469. "appId": response.appid, //公众号名称,由商户传入
  470. "timeStamp": response.timestamp, //时间戳,自1970年以来的秒数
  471. "nonceStr": response.noncestr, //随机串
  472. "package": response.package,
  473. "signType": response.signType, //微信签名方式:
  474. "paySign": response.sign //微信签名
  475. },
  476. function(res) {
  477. console.log(res, '/*-/*-/*-')
  478. if (res.err_msg === "get_brand_wcpay_request:ok") {
  479. // 使用以上方式判断前端返回,微信团队郑重提示:
  480. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  481. uni.showLoading({
  482. title: '支付成功'
  483. });
  484. setTimeout(function() {
  485. uni.hideLoading();
  486. }, 1000);
  487. } else {
  488. uni.hideLoading();
  489. }
  490. WeixinJSBridge.log(response.err_msg);
  491. }
  492. );
  493. },
  494. isCheckPay(status, name, order) {
  495. if (status == 0) {
  496. this.setPayment(name, order);
  497. } else {
  498. uni.hideLoading();
  499. uni.showToast({
  500. title: '支付信息有误',
  501. icon: 'none'
  502. });
  503. }
  504. },
  505. setPayment(name, order) {
  506. console.log('*-*-*')
  507. uni.requestPayment({
  508. provider: name,
  509. orderInfo: order, //微信、支付宝订单数据
  510. success: function(res) {
  511. console.log(res)
  512. uni.hideLoading();
  513. uni.showLoading({
  514. title: '支付成功'
  515. });
  516. setTimeout(d => {
  517. uni.navigateBack(1)
  518. }, 1000);
  519. },
  520. fail: function(err) {
  521. console.log(err)
  522. uni.hideLoading();
  523. },
  524. complete() {
  525. uni.hideLoading();
  526. }
  527. });
  528. },
  529. // 提现
  530. cashMoney() {
  531. if (!this.moneyNum) {
  532. uni.showToast({
  533. icon: 'none',
  534. title: '请输入提现金额'
  535. })
  536. return
  537. }
  538. if (this.moneyNum < this.minMoney * 1) {
  539. uni.showToast({
  540. icon: 'none',
  541. title: '最低可提现'+this.minMoney+'元'
  542. })
  543. return
  544. }
  545. if (this.moneyNum > this.money * 1) {
  546. uni.showToast({
  547. icon: 'none',
  548. title: '您的余额不足'
  549. })
  550. return
  551. }
  552. // if (this.moneyNum*1+this.charge*this.moneyNum > this.money*1) {
  553. // uni.showToast({
  554. // icon: 'none',
  555. // title: '您的手续费不足'
  556. // })
  557. // return
  558. // }
  559. let zhiFuBao = uni.getStorageSync('zhiFuBao')
  560. let zhiFuBaoName = uni.getStorageSync('zhiFuBaoName')
  561. if (!zhiFuBao && !zhiFuBaoName && this.openWay == 1) {
  562. uni.navigateTo({
  563. url: '/my/wallet/zhifubao'
  564. })
  565. return
  566. }
  567. if (!this.bankCard && this.openWay == 2) {
  568. uni.navigateTo({
  569. url: '/my/wallet/yinhangka'
  570. })
  571. return
  572. }
  573. let that = this
  574. that.sp = (that.moneyNum * this.charge).toFixed(2)
  575. uni.showModal({
  576. title: '提示',
  577. content: '本次提现' + that.moneyNum + '元,服务费' + this.sp + '元,是否确认提现?',
  578. success: function(res1) {
  579. if (res1.confirm) {
  580. uni.showLoading({
  581. title:'提现中'
  582. })
  583. that.$Request.get("/app/cash/cashMoney", {
  584. money: that.moneyNum,
  585. userType: 2,
  586. classify: that.openWay
  587. }).then(res => {
  588. if (res.code == 0) {
  589. that.openWay==3&&that.$Request.get("/app/wxTransfer/wxMerchantTransferToUser", {
  590. orderNumber:res.orderNumber
  591. }).then(r=>{
  592. that.$Request.get("/app/wxTransfer/wxConfig", {
  593. url:'https://master.dstapp.cn/sqx_fast/app/wxTransfer/wxConfig'||window.location.href
  594. }).then(data=>{
  595. uni.hideLoading()
  596. if(data.code == 0){
  597. let {timestamp,appId,nonceStr,signature} = data
  598. jwx.config({
  599. debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
  600. appId, // 必填,服务号的唯一标识
  601. timestamp, // 必填,生成签名的时间戳
  602. nonceStr, // 必填,生成签名的随机串
  603. signature,// 必填,签名
  604. jsApiList: ['chooseWXPay','checkJsApi'] // 必填,需要使用的JS接口列表
  605. });
  606. }
  607. })
  608. jwx.ready(function () {
  609. jwx.checkJsApi({
  610. jsApiList: ['requestMerchantTransfer'],
  611. success: function (res) {
  612. console.log('checkJsApi',res);
  613. if (res.checkResult['requestMerchantTransfer']) {
  614. WeixinJSBridge.invoke('requestMerchantTransfer', {
  615. mchId: '1723757626',
  616. appId: 'wxbcba29ef4f698074',
  617. package: r.data.package_info,
  618. },
  619. function (res) {
  620. if (res.err_msg === 'requestMerchantTransfer:ok') {
  621. // res.err_msg将在页面展示成功后返回应用时返回success,并不代表付款成功
  622. uni.showToast({
  623. icon: 'none',
  624. title: '提现申请成功,请耐心等待!'
  625. })
  626. that.moneyNum = null
  627. }
  628. }
  629. );
  630. } else {
  631. alert('你的微信版本过低,请更新至最新版本。');
  632. }
  633. }
  634. });
  635. });
  636. })
  637. // uni.showToast({
  638. // icon: 'none',
  639. // title: '提现申请成功,请耐心等待!'
  640. // })
  641. // that.moneyNum = null
  642. } else {
  643. uni.hideLoading()
  644. uni.showToast({
  645. icon: 'none',
  646. title: res.msg
  647. })
  648. }
  649. that.getMoney()
  650. });
  651. } else if (res1.cancel) {
  652. console.log('用户点击取消');
  653. }
  654. }
  655. });
  656. }
  657. }
  658. }
  659. </script>
  660. <style lang="scss">
  661. .wallet {
  662. background: #F5F6F6;
  663. padding: 20rpx 32rpx;
  664. min-height: 100vh;
  665. .icon-box{
  666. display: flex;
  667. justify-content: space-between;
  668. padding: 28rpx;
  669. background: #FFFFFF;
  670. border-radius: 32rpx 32rpx 32rpx 32rpx;
  671. margin-top: 20rpx;
  672. .icon-item{
  673. width: 20%;
  674. text-align: center;
  675. .icon{
  676. width: 40rpx;
  677. height: 40rpx;
  678. }
  679. .label{
  680. font-size: 24rpx;
  681. color: #222222;
  682. margin-top: 20rpx;
  683. }
  684. }
  685. }
  686. }
  687. .bg.bg1{
  688. background: linear-gradient( 90deg, #FFC8D6 0%, #BAFFF3 63%, #FFE6ED 100%);
  689. }
  690. .bg {
  691. background-color: #FFFFFF;
  692. padding: 28rpx;
  693. border-radius: 32rpx;
  694. margin-bottom: 20rpx;
  695. }
  696. .active {
  697. border: 1px solid #2FB57A !important;
  698. color: #2FB57A !important;
  699. }
  700. .title_btn {
  701. height: 78upx;
  702. line-height: 78upx;
  703. /* background: #f7f7f7; */
  704. }
  705. .btn {
  706. width: 686rpx;
  707. height: 100rpx;
  708. line-height: 100rpx;
  709. text-align: center;
  710. background: #1EDA94;
  711. border-radius: 86rpx 86rpx 86rpx 86rpx;
  712. font-weight: bold;
  713. font-size: 32rpx;
  714. color: #FFFFFF;
  715. }
  716. .bgCol2 {
  717. color: #2FB57A;
  718. }
  719. </style>