<template>
|
<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 Taro from '@tarojs/taro';
|
import { Message } from '@12333/utils';
|
|
defineOptions({
|
name: 'InnerPage',
|
});
|
|
const userStore = useUserStore();
|
|
const isBinding = ref(false);
|
|
function goIncomeDetail() {
|
Taro.navigateTo({
|
url: `${RouterPath.incomeDetail}`,
|
});
|
}
|
function goBankBind() {
|
// Message.confirm({ message: '完成实名认证后才可进行银行卡绑定' }).then(() => {
|
// Taro.navigateTo({
|
// url: `${RouterPath.authenticationHome}`,
|
// });
|
// });
|
Taro.navigateTo({
|
url: `${isBinding.value ? RouterPath.bindBankCard : RouterPath.unboundBankCard}`,
|
});
|
}
|
</script>
|
|
<style lang="scss">
|
@import '@/styles/common.scss';
|
|
.bind-bank-card {
|
color: boleGetCssVar('text-color', 'regular');
|
font-size: 24px;
|
}
|
</style>
|