From 45efb3621da6180d1caad28cb5e98d9afefbc21f Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 03 九月 2025 15:33:56 +0800 Subject: [PATCH] feat: 钱包 --- apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue | 65 ++++++++++++++++++++------------ 1 files changed, 41 insertions(+), 24 deletions(-) diff --git a/apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue b/apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue index 28ae10b..986f7e9 100644 --- a/apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/wallet/mineWallet/InnerPage.vue @@ -1,27 +1,22 @@ <template> + <div class="mine-wallet-balance"> + <WithdrawMoneyCard :money="100" title="璐︽埛浣欓(鍏�)"></WithdrawMoneyCard> + <nut-button type="primary" class="mine-wallet-balance-btn" @click="goWithdraw">鎻愮幇</nut-button> + </div> <List> <ListItem title="鏀跺叆鏄庣粏" @click="goIncomeDetail"> </ListItem> - <ListItem title="閾惰鍗�" @click="goBankBind"> - <template #extra> - <div class="bind-bank-card"> - {{ isBinding ? '宸茬粦瀹�' : '鏈粦瀹氥�佺珛鍗崇粦瀹�' }} - </div> - </template> - </ListItem> </List> </template> <script setup lang="ts"> -import { List, ListItem } from '@12333/components'; -import { useUserStore } from '@/stores/modules/user'; +import { List, ListItem, WithdrawMoneyCard } from '@12333/components'; import Taro from '@tarojs/taro'; -import { Message } from '@12333/utils'; defineOptions({ name: 'InnerPage', }); -const userStore = useUserStore(); +const { isCertified } = useUser(); const isBinding = ref(false); @@ -30,23 +25,45 @@ url: `${RouterPath.incomeDetail}`, }); } -function goBankBind() { - // Message.confirm({ message: '瀹屾垚瀹炲悕璁よ瘉鍚庢墠鍙繘琛岄摱琛屽崱缁戝畾' }).then(() => { - // Taro.navigateTo({ - // url: `${RouterPath.authenticationHome}`, - // }); - // }); - Taro.navigateTo({ - url: `${isBinding.value ? RouterPath.bindBankCard : RouterPath.unboundBankCard}`, - }); -} + +const goWithdraw = useAccessReal( + () => { + Taro.navigateTo({ + url: `${RouterPath.withdraw}`, + }); + }, + { message: '瀹屾垚瀹炲悕璁よ瘉鍚庢墠鍙彁鐜�' } +); +// const goBankBind = useAccessReal( +// () => { +// Taro.navigateTo({ +// url: `${isBinding.value ? RouterPath.bindBankCard : RouterPath.unboundBankCard}`, +// }); +// }, +// { message: '瀹屾垚瀹炲悕璁よ瘉鍚庢墠鍙繘琛岄摱琛屽崱缁戝畾' } +// ); </script> <style lang="scss"> @import '@/styles/common.scss'; -.bind-bank-card { - color: boleGetCssVar('text-color', 'regular'); - font-size: 24px; +.mine-wallet-balance { + text-align: center; + padding-bottom: 60px; + + .mine-wallet-balance-item { + font-size: 28px; + font-weight: 500; + margin-bottom: 40px; + + &.money { + font-size: 48px; + font-weight: 500; + } + } + + .mine-wallet-balance-btn { + width: 60%; + } } </style> -- Gitblit v1.9.1