myWallet.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. <template>
  2. <!-- 主容器:钱包管理页面 -->
  3. <view class="page">
  4. <!-- 模块1:余额概览 -->
  5. <view class="dis f-c a-c walletBalance">
  6. <!-- 余额卡片容器 -->
  7. <view class="box">
  8. <!-- 卡片主体 -->
  9. <view class="card dis f-c">
  10. <text>我的余额</text> <!-- 标题 -->
  11. <!-- 金额展示行 -->
  12. <view class="mt-2 mb-1 dis a-c j-s">
  13. <text class="sum">{{walletInfo.walletBalanceRemoveWithdraw}}</text> <!-- 当前余额 -->
  14. <view class="cashOut-btn" @click="goWithdrawal">提现</view> <!-- 提现操作入口 -->
  15. </view>
  16. <text>还有{{walletInfo.withdrawingBalance}}元待审核</text> <!-- 状态提示 -->
  17. </view>
  18. </view>
  19. <!-- 收支统计面板 -->
  20. <view class="drawer dis f-c ">
  21. <!-- 收支标题+箭头 -->
  22. <view class=" dis j-s a-c">
  23. <text style="color: #333;font-size: 30rpx;">今日收支</text>
  24. <view class="todayFinanceBtn dis a-c" @click="incomeExpenseRecord">
  25. <text>全部</text>
  26. <image src="/static/icon/my/arrowRight1.png" mode=""></image>
  27. </view>
  28. </view>
  29. <!-- 收支数据网格 -->
  30. <view class="statistics dis j-s mt-2">
  31. <view class="price dis f-c a-c">
  32. <text>¥{{walletInfo.todayIncome}}</text>
  33. <text>收入</text>
  34. </view>
  35. <view class="price dis f-c a-c">
  36. <text>¥{{walletInfo.todayExpense}}</text>
  37. <text>支出</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 模块2:银行卡管理头部 -->
  43. <view class="bank-block mt-2 mb-2 dis a-c">
  44. <text class="title">我的银行卡</text>
  45. <!-- 添加银行卡按钮 -->
  46. <view class="addbank dis a-c" @click="addBankCard">
  47. <text style="font-size: 25px;line-height: 0.8;">+</text>
  48. <text>添加新卡</text>
  49. </view>
  50. </view>
  51. <!-- 模块3:银行卡列表 -->
  52. <view class="bankCardAuditList">
  53. <!-- 状态筛选选项卡 -->
  54. <u-tabs :list="bankstatuslist" @click="click" :scrollable="false" lineWidth="32" :current="currentTab"
  55. :activeStyle="{ color: '#333', fontWeight: 'bold' }" :inactiveStyle="{ color: '#999' }"
  56. style="border-bottom: 1rpx solid #eee;">
  57. </u-tabs>
  58. <!-- 银行卡列表内容 -->
  59. <view class="bank-content dis f-c">
  60. <!-- 单张银行卡示例 -->
  61. <view class="bankCard mb-2 dis f-c" :style="{background:item.stylelist.background}"
  62. @click="bankCardDetails(item)" v-for="item in cardPackList1" v-if="currentTab==0" :key="item.id">
  63. <!-- 装饰性背景图案 -->
  64. <image class="decor" src="/static/image/my/bank-decorImage.png" mode=""></image>
  65. <!-- 银行信息行 -->
  66. <view class="header dis a-c">
  67. <image :src="item.stylelist.logo" mode=""></image> <!-- 银行LOGO -->
  68. <text>{{item.bankName}}</text> <!-- 银行名称 -->
  69. </view>
  70. <!-- 卡号(实际项目建议做隐私处理) -->
  71. <view class="cardNumber dis a-c j-s ">
  72. <text v-for="(card,index) in item.bankArray" :key="index">{{card}}</text>
  73. </view>
  74. <!-- 操作按钮组 -->
  75. <view class="action dis j-s">
  76. <!-- 设为默认 -->
  77. <view class="btn dis a-c j-c" @click.stop="setDefault(item.id)">
  78. <u-radio-group v-model="item.isDefault" @change="val=>setDefaultCard(val,item.id)"
  79. iconPlacement="right" style="flex: none;">
  80. <u-radio activeColor="#FDE935" iconColor="#333" labelSize="15px" shape="circle"
  81. :name="true" size="28rpx"></u-radio>
  82. </u-radio-group>
  83. <text>设为默认卡</text>
  84. </view>
  85. <!-- 复制卡号 -->
  86. <view class="btn dis a-c j-c" @click.stop="copyCardNumber(item.bankCardNumber)">
  87. <image src="/static/icon/my/copy.png" mode=""></image>
  88. <text>复制卡号</text>
  89. </view>
  90. <!-- 删除 -->
  91. <view class="btn dis a-c j-c" @click.stop="delbank(item.id)">
  92. <image src="/static/icon/my/del.png" mode=""></image>
  93. <text>删除</text>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="bankCard mb-2 dis f-c" :style="{background:item.stylelist.background}"
  98. @click="bankCardDetails(item)" v-for="item in cardPackList2" v-if="currentTab==1" :key="item.id">
  99. <!-- 装饰性背景图案 -->
  100. <image class="decor" src="/static/image/my/bank-decorImage.png" mode=""></image>
  101. <!-- 银行信息行 -->
  102. <view class="header dis a-c">
  103. <image :src="item.stylelist.logo" mode=""></image> <!-- 银行LOGO -->
  104. <text>{{item.bankName}}</text> <!-- 银行名称 -->
  105. </view>
  106. <!-- 卡号(实际项目建议做隐私处理) -->
  107. <view class="cardNumber dis a-c j-s ">
  108. <text v-for="(card,index) in item.bankArray" :key="index">{{card}}</text>
  109. </view>
  110. <!-- 操作按钮组 -->
  111. <view class="action dis j-s">
  112. <!-- 设为默认 -->
  113. <view class="btn dis a-c j-c" @click.stop="setDefault(item.id)">
  114. <u-radio-group v-model="item.isDefault" @change="val=>setDefaultCard(val,item.id)"
  115. iconPlacement="right" style="flex: none;">
  116. <u-radio activeColor="#FDE935" iconColor="#333" labelSize="15px" shape="circle"
  117. :name="true" size="28rpx"></u-radio>
  118. </u-radio-group>
  119. <text>设为默认卡</text>
  120. </view>
  121. <!-- 复制卡号 -->
  122. <view class="btn dis a-c j-c" @click.stop="copyCardNumber(item.bankCardNumber)">
  123. <image src="/static/icon/my/copy.png" mode=""></image>
  124. <text>复制卡号</text>
  125. </view>
  126. <!-- 删除 -->
  127. <view class="btn dis a-c j-c" @click.stop="delbank(item.id)">
  128. <image src="/static/icon/my/del.png" mode=""></image>
  129. <text>删除</text>
  130. </view>
  131. </view>
  132. </view>
  133. <view class="bankCard mb-2 dis f-c" :style="{background:item.stylelist.background}"
  134. @click="bankCardDetails(item)" v-for="item in cardPackList3" v-if="currentTab==2" :key="item.id">
  135. <!-- 装饰性背景图案 -->
  136. <image class="decor" src="/static/image/my/bank-decorImage.png" mode=""></image>
  137. <!-- 银行信息行 -->
  138. <view class="header dis a-c">
  139. <image :src="item.stylelist.logo" mode=""></image> <!-- 银行LOGO -->
  140. <text>{{item.bankName}}</text> <!-- 银行名称 -->
  141. </view>
  142. <!-- 卡号(实际项目建议做隐私处理) -->
  143. <view class="cardNumber dis a-c j-s ">
  144. <text v-for="(card,index) in item.bankArray" :key="index">{{card}}</text>
  145. </view>
  146. <!-- 操作按钮组 -->
  147. <view class="action dis j-s">
  148. <!-- 设为默认 -->
  149. <view class="btn dis a-c j-c" @click.stop="setDefault(item.id)">
  150. <u-radio-group v-model="item.isDefault" @change="val=>setDefaultCard(val,item.id)"
  151. iconPlacement="right" style="flex: none;">
  152. <u-radio activeColor="#FDE935" iconColor="#333" labelSize="15px" shape="circle"
  153. :name="true" size="28rpx"></u-radio>
  154. </u-radio-group>
  155. <text>设为默认卡</text>
  156. </view>
  157. <!-- 复制卡号 -->
  158. <view class="btn dis a-c j-c" @click.stop="copyCardNumber(item.bankCardNumber)">
  159. <image src="/static/icon/my/copy.png" mode=""></image>
  160. <text>复制卡号</text>
  161. </view>
  162. <!-- 删除 -->
  163. <view class="btn dis a-c j-c" @click.stop="delbank(item.id)">
  164. <image src="/static/icon/my/del.png" mode=""></image>
  165. <text>删除</text>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. </view>
  172. </template>
  173. <script>
  174. import {
  175. mapState,
  176. mapMutations
  177. } from "vuex"
  178. export default {
  179. data() {
  180. return {
  181. defaultCard: false, // 控制默认银行卡的单选状态
  182. currentTab: 1, // 当前激活的选项卡索引
  183. // 银行卡状态筛选选项
  184. bankstatuslist: [{
  185. name: '待审核',
  186. value: 0
  187. },
  188. {
  189. name: '审核通过',
  190. value: 1
  191. },
  192. {
  193. name: '审核不通过',
  194. value: 2
  195. }
  196. ],
  197. //银行卡样式匹配列表
  198. bankList: [{
  199. bankName: "中国邮政储蓄银行",
  200. logo: "/static/image/bankLogo/youzheng.png",
  201. background: "linear-gradient(90deg, rgba(39, 219, 168, 0.7) 0%, #27DBA8 100%)"
  202. },
  203. {
  204. bankName: "中国工商银行",
  205. logo: "/static/image/bankLogo/gongshang.png",
  206. background: "linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%)"
  207. },
  208. {
  209. bankName: "中国农业银行",
  210. logo: "/static/image/bankLogo/nongye.png",
  211. background: "linear-gradient(90deg, rgba(39, 219, 168, 0.7) 0%, #27DBA8 100%)"
  212. },
  213. {
  214. bankName: "中国银行",
  215. logo: "/static/image/bankLogo/zhongguo.png",
  216. background: "linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%)"
  217. },
  218. {
  219. bankName: "中国建设银行",
  220. logo: "/static/image/bankLogo/jianshe.png",
  221. background: "linear-gradient(90deg, rgba(29, 118, 243, 0.7) 0%, #1D76F3 100%)"
  222. },
  223. {
  224. bankName: "招商银行",
  225. logo: "/static/image/bankLogo/zhaoshang.png",
  226. background: "linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%)"
  227. },
  228. {
  229. bankName: "中国民生银行",
  230. logo: "/static/image/bankLogo/minsheng.png",
  231. background: "linear-gradient(90deg, rgba(39, 219, 168, 0.7) 0%, #27DBA8 100%)"
  232. },
  233. {
  234. bankName: "中国光大银行",
  235. logo: "/static/image/bankLogo/guangda.png",
  236. background: "linear-gradient(90deg, rgba(141, 37, 246, 0.7) 0%, #8D25F6 100%)"
  237. },
  238. {
  239. bankName: "中信银行",
  240. logo: "/static/image/bankLogo/zhongxin.png",
  241. background: "linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%)"
  242. },
  243. {
  244. bankName: "华夏银行",
  245. logo: "/static/image/bankLogo/huaxia.png",
  246. background: "linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%)"
  247. },
  248. {
  249. bankName: "中国交通银行",
  250. logo: "/static/image/bankLogo/jiaotong.png",
  251. background: "linear-gradient(90deg, rgba(29, 118, 243, 0.7) 0%, #1D76F3 100%)"
  252. },
  253. {
  254. bankName: "晋商银行",
  255. logo: "/static/image/bankLogo/jinshang.png",
  256. background: "linear-gradient(90deg, rgba(141, 37, 246, 0.7) 0%, #8D25F6 100%)"
  257. },
  258. {
  259. bankName: "山西银行",
  260. logo: "/static/image/bankLogo/shanxi.png",
  261. background: "linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%)"
  262. },
  263. {
  264. bankName: "农村商业银行",
  265. logo: "/static/image/bankLogo/nongcun.png",
  266. background: "linear-gradient(90deg, rgba(39, 219, 168, 0.7) 0%, #27DBA8 100%)"
  267. },
  268. ],
  269. cardPackList1: [], //审核中
  270. cardPackList2: [], //审核通过
  271. cardPackList3: [], //不通过
  272. }
  273. },
  274. computed: {
  275. ...mapState(['userInfo']),
  276. },
  277. async onShow() {
  278. let res = await this.$http.get('/userAccount/userWallet'); //获取钱包信息
  279. if (res.code == '200') {
  280. this.walletInfo = res.data;
  281. }
  282. await this.getcardPack();
  283. },
  284. async onLoad(options) {
  285. if (options) {
  286. this.walletInfo = JSON.parse(options.info) //钱包余额信息
  287. }
  288. },
  289. methods: {
  290. //删除银行卡
  291. async delbank(id) {
  292. let res = await this.$http.post('/userBankCard/deleteBankCard', {
  293. id: id,
  294. });
  295. if (res.code == 200) {
  296. uni.showToast({ //提示
  297. icon: 'none',
  298. title: res.msg
  299. })
  300. this.getcardPack() //刷新银行卡列表
  301. }
  302. },
  303. //复制卡号
  304. copyCardNumber(value) {
  305. uni.setClipboardData({
  306. data: value, //要被复制的内容
  307. success: () => { //复制成功的回调函数
  308. uni.showToast({ //提示
  309. icon: 'none',
  310. title: '已复制'
  311. })
  312. }
  313. });
  314. },
  315. //跳转收支记录
  316. incomeExpenseRecord() {
  317. uni.navigateTo({
  318. url: '/pages/wallet/incomeExpenseRecord'
  319. })
  320. },
  321. //跳转银行卡详情
  322. bankCardDetails(item) {
  323. console.log(item);
  324. let params = {
  325. auditStatus: item.auditStatus,
  326. userJzgInfoId: this.userInfo.sysUser.infoId,
  327. cardHolderName: item.cardHolderName,
  328. cardHolderMobile: item.cardHolderMobile,
  329. bankCardNumber: item.bankCardNumber,
  330. bankAddress: item.bankAddress,
  331. bankName: item.bankName,
  332. sysUserJzgInfoBankCardRecordList: item.sysUserJzgInfoBankCardRecordList,
  333. }
  334. uni.navigateTo({
  335. url: '/pages/wallet/bankCardDetails?info=' + JSON.stringify(params)
  336. })
  337. },
  338. //设置默认
  339. async setDefault(id) {
  340. console.log(id);
  341. let res = await this.$http.post('/userBankCard/setDefaultCard', {
  342. userId: '1943149846892429313',
  343. id: id,
  344. });
  345. },
  346. //跳转添加银行卡
  347. addBankCard() {
  348. uni.navigateTo({
  349. url: '/pages/wallet/addBankCard'
  350. })
  351. },
  352. //跳转提现页面
  353. goWithdrawal() {
  354. uni.navigateTo({
  355. url: '/pages/wallet/withdrawal?amount=' + this.walletInfo.walletBalance
  356. })
  357. },
  358. /**
  359. * 选项卡切换事件
  360. * @param {Object} tab - 被点击的tab对象,包含value属性
  361. */
  362. click(tab) {
  363. console.log(tab);
  364. this.currentTab = tab.value;
  365. // 实际项目这里应加载对应状态的银行卡列表
  366. },
  367. /**
  368. * 设置默认银行卡
  369. * @param {Boolean} val - 单选按钮的选中状态
  370. */
  371. async setDefaultCard(val, id) {
  372. this.defaultCard = val;
  373. let res = await this.$http.post('/userBankCard/setDefaultCard', {
  374. userId: '1943149846892429313',
  375. id: id,
  376. });
  377. // 实际项目这里应调用API更新默认卡
  378. },
  379. async getcardPack() {
  380. let res = await this.$http.post('/userBankCard/queryUserBankCardList', {
  381. userId: this.userInfo.sysUser.userId,
  382. });
  383. let list1 = [];
  384. let list2 = [];
  385. let list3 = [];
  386. if (res.code == '200' && res.data.records) {
  387. res.data.records.map(val => {
  388. let name = this.bankList.find(ele => ele.bankName === val.bankName || ele.bankName
  389. .includes(val.bankName))
  390. if (name) {
  391. val.stylelist = {
  392. ...name
  393. };
  394. } else {
  395. val.stylelist = {
  396. logo: "/static/image/bindBank/img1.png",
  397. background: 'linear-gradient(90deg, rgba(255, 192, 18, 0.7) 0%, #FFC012 100%)',
  398. }
  399. }
  400. val.isDefault == 1 ? val.isDefault = true : val.isDefault = false
  401. const resultArray = [];
  402. for (let i = 0; i < val.bankCardNumber.length; i += 4) {
  403. resultArray.push(val.bankCardNumber.substring(i, i + 4));
  404. }
  405. val.bankArray = resultArray;
  406. switch (val.auditStatus) {
  407. case "0":
  408. list1.push(val);
  409. break;
  410. case "1":
  411. list2.push(val);
  412. break;
  413. case "2":
  414. list3.push(val);
  415. break;
  416. }
  417. })
  418. this.cardPackList1 = list1;
  419. this.cardPackList2 = list2;
  420. this.cardPackList3 = list3;
  421. console.log(this.cardPackList1);
  422. console.log(this.cardPackList2);
  423. console.log(this.cardPackList3);
  424. }
  425. },
  426. }
  427. }
  428. </script>
  429. <style lang="scss" scoped>
  430. .page {
  431. background-color: #f8f8f8;
  432. height: calc(100vh - 88rpx);
  433. padding: 20rpx;
  434. box-sizing: border-box;
  435. }
  436. .walletBalance {
  437. width: 100%;
  438. .box {
  439. padding: 20rpx 20rpx 0;
  440. box-sizing: border-box;
  441. width: 100%;
  442. position: relative;
  443. ::after {
  444. content: "";
  445. width: 0;
  446. height: 0;
  447. position: absolute;
  448. bottom: 70rpx;
  449. left: 0;
  450. border-left: 20rpx solid transparent;
  451. border-bottom: 10rpx solid #E3D76F;
  452. }
  453. ::before {
  454. content: "";
  455. width: 0;
  456. height: 0;
  457. position: absolute;
  458. bottom: 70rpx;
  459. right: 0;
  460. border-right: 20rpx solid transparent;
  461. border-bottom: 10rpx solid #E3D76F;
  462. }
  463. }
  464. .card {
  465. width: 100%;
  466. height: 283rpx;
  467. border-radius: 20rpx 20rpx 0 0;
  468. padding: 20rpx 30rpx;
  469. box-sizing: border-box;
  470. color: #333;
  471. background-image: url('/static/image/my/wallet-bg1.png');
  472. background-size: 100% 100%;
  473. text:nth-child(1) {
  474. font-size: 32rpx;
  475. }
  476. view:nth-child(2) {
  477. .sum {
  478. font-size: 50rpx;
  479. font-weight: bold;
  480. }
  481. .cashOut-btn {
  482. background: #333;
  483. border-radius: 30rpx 30rpx 30rpx 30rpx;
  484. padding: 6rpx 40rpx;
  485. box-sizing: border-box;
  486. font-size: 28rpx;
  487. color: #fff;
  488. }
  489. }
  490. text:nth-child(3) {
  491. font-size: 28rpx;
  492. }
  493. }
  494. .drawer {
  495. width: 100%;
  496. margin-top: -70rpx;
  497. background: linear-gradient(to top,
  498. #fff 50%,
  499. #FEF5AC 100%);
  500. backdrop-filter: blur(50rpx);
  501. border-radius: 0rpx 0rpx 10rpx 10rpx;
  502. padding: 25rpx;
  503. box-sizing: border-box;
  504. .todayFinanceBtn {
  505. padding: 4rpx 20rpx;
  506. box-sizing: border-box;
  507. background: rgba(253, 234, 62, 0.5);
  508. border-radius: 20rpx 20rpx 20rpx 20rpx;
  509. font-size: 24rpx;
  510. color: #333;
  511. image {
  512. width: 22rpx;
  513. height: 22rpx;
  514. }
  515. }
  516. .statistics {
  517. width: 100%;
  518. display: grid;
  519. grid-template-columns: repeat(2, 1fr);
  520. grid-template-rows: auto;
  521. .price {
  522. text:first-child {
  523. font-size: 36rpx;
  524. color: #333;
  525. font-weight: bold;
  526. }
  527. text:last-child {
  528. font-size: 24rpx;
  529. color: #666;
  530. margin-top: 10rpx;
  531. }
  532. }
  533. .price:first-child {
  534. border-right: 1rpx solid #eee;
  535. }
  536. }
  537. }
  538. }
  539. .bank-block {
  540. padding: 20rpx;
  541. box-sizing: border-box;
  542. background-color: #fff;
  543. border-radius: 10rpx;
  544. .title {
  545. font-size: 32rpx;
  546. color: #333;
  547. font-weight: bold;
  548. }
  549. .addbank {
  550. background: #FDEA3E;
  551. border-radius: 30rpx 30rpx 30rpx 30rpx;
  552. padding: 6rpx 30rpx;
  553. box-sizing: border-box;
  554. font-size: 28rpx;
  555. color: #333;
  556. margin-left: auto;
  557. }
  558. }
  559. .bankCardAuditList {
  560. background: #fff;
  561. border-radius: 10rpx;
  562. .tabs {}
  563. .bank-content {
  564. padding: 20rpx;
  565. box-sizing: border-box;
  566. overflow-y: auto;
  567. height: calc(100vh - 778rpx);
  568. .bankCard {
  569. width: 100%;
  570. // background: linear-gradient(90deg, rgba(242, 38, 46, 0.7) 0%, #F2262E 100%);
  571. // background: linear-gradient(90deg, rgba(39, 219, 168, 0.7) 0%, #27DBA8 100%);
  572. // background: linear-gradient(90deg, rgba(141, 37, 246, 0.7) 0%, #8D25F6 100%);
  573. // background: linear-gradient(90deg, rgba(29, 118, 243, 0.7) 0%, #1D76F3 100%);
  574. // background: linear-gradient(90deg, rgba(255, 192, 18, 0.7) 0%, #FFC012 100%);
  575. padding: 32rpx 0 0;
  576. box-sizing: border-box;
  577. border-radius: 10rpx;
  578. position: relative;
  579. .decor {
  580. width: 198rpx;
  581. height: 178rpx;
  582. position: absolute;
  583. bottom: 0;
  584. right: 0;
  585. }
  586. .header {
  587. padding: 0 30rpx;
  588. box-sizing: border-box;
  589. image {
  590. width: 54rpx;
  591. height: 54rpx;
  592. margin-right: 20rpx;
  593. }
  594. text {
  595. font-size: 32rpx;
  596. color: #fff;
  597. }
  598. }
  599. .cardNumber {
  600. padding: 0 30rpx;
  601. box-sizing: border-box;
  602. font-size: 36rpx;
  603. margin-top: 25rpx;
  604. margin-bottom: 10rpx;
  605. color: #fff;
  606. width: 100%;
  607. }
  608. .action {
  609. width: 100%;
  610. background: rgba(0, 0, 0, 0.1);
  611. backdrop-filter: blur(20rpx);
  612. border-radius: 0 0 10rpx 10rpx;
  613. padding: 16rpx 0;
  614. box-sizing: border-box;
  615. text {
  616. font-size: 28rpx;
  617. color: #fff;
  618. }
  619. .btn {
  620. width: 33.33%;
  621. text {
  622. margin-left: 8rpx;
  623. }
  624. image {
  625. width: 26rpx;
  626. height: 26rpx;
  627. }
  628. }
  629. .btn:nth-child(2) {
  630. border-left: 1rpx solid #fff;
  631. border-right: 1px solid #fff;
  632. }
  633. }
  634. }
  635. }
  636. }
  637. ::v-deep .u-tabs__wrapper__nav__line {
  638. background: #FDEA3E !important;
  639. border-radius: 6rpx;
  640. }
  641. </style>