myWallet.vue 19 KB

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