myWallet.vue 19 KB

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