| | |
| | | <template> |
| | | <div class="mine-wallet-balance"> |
| | | <WithdrawMoneyCard :money="userDetail.balance" 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> |
| | | |
| | | <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 { isCertified } = useUser(); |
| | | const { userDetail } = useUser(); |
| | | |
| | | const isBinding = ref(false); |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | const goWithdraw = useAccessReal( |
| | | () => { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.withdraw}`, |
| | | }); |
| | | }, |
| | | { message: '完成实名认证后才可提现' } |
| | | ); |
| | | const goBankBind = useAccessReal( |
| | | () => { |
| | | Taro.navigateTo({ |
| | |
| | | <style lang="scss"> |
| | | @import '@/styles/common.scss'; |
| | | |
| | | .bind-bank-card { |
| | | color: boleGetCssVar('text-color', 'regular'); |
| | | font-size: 24px; |
| | | .mineWallet-page-wrapper { |
| | | .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%; |
| | | } |
| | | } |
| | | |
| | | .bind-bank-card { |
| | | color: boleGetCssVar('text-color', 'regular'); |
| | | font-size: 24px; |
| | | } |
| | | } |
| | | </style> |