zhengyiming
2 天以前 b626d79c65da6f5e269fdc2af9c71dcd1823bac1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<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>
  </List>
</template>
 
<script setup lang="ts">
import { List, ListItem, WithdrawMoneyCard } from '@12333/components';
import Taro from '@tarojs/taro';
 
defineOptions({
  name: 'InnerPage',
});
 
const { isCertified } = useUser();
 
const isBinding = ref(false);
 
function goIncomeDetail() {
  Taro.navigateTo({
    url: `${RouterPath.incomeDetail}`,
  });
}
 
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';
 
.mine-wallet-balance {
  text-align: center;
  padding: 40px 0 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>