完善添加银行卡功能

This commit is contained in:
cbb
2025-12-27 17:52:08 +08:00
parent 20455490f8
commit 3b9b142c21
44 changed files with 3434 additions and 28 deletions

View File

@@ -1,8 +1,14 @@
<script setup>
import { useAuthUser } from '@/composables/useAuthUser'
import { onLoad } from '@dcloudio/uni-app'
import { navigateTo } from '@/utils/router'
const bottomList = [
{ name: '我的钱包', icon: 'wallet' },
{
name: '我的钱包',
icon: 'wallet',
url: '/pages/my-index/wallet/index'
},
{ name: '我的团队', icon: 'team' },
{ name: '会议记录', icon: 'meeting' },
{ name: '我的朋友圈', icon: 'circle' },
@@ -11,11 +17,19 @@
{ name: '系统设置', icon: 'system' }
]
const { userInfo } = useAuthUser()
onLoad(() => {
// 获取用户信息
console.log(userInfo.value, '===获取用户信息')
})
</script>
<template>
<view class="my-index">
<view class="top-info">
<view
class="top-info"
@click="navigateTo('/pages/my-index/personal-center/index')"
>
<view class="left-box">
<image
src="https://wx1.sinaimg.cn/mw690/92eeb099gy1i29hl0ne80j21jk2bcash.jpg"
@@ -38,7 +52,7 @@
<view class="top-box">
<view class="left-name">
<text>账户积分</text>
<text>2933</text>
<text>{{ userInfo?.totalPoints }}</text>
</view>
<view class="right-btn">
<button>充值</button>
@@ -50,6 +64,7 @@
v-for="(item, index) in bottomList"
:key="index"
class="item-box"
@click="item.url && navigateTo(item.url)"
>
<view class="item-name">
<image
@@ -82,7 +97,6 @@
.top-info {
padding: 32rpx 46rpx;
background: #ffffff;
height: 192rpx;
border-radius: 16rpx;
display: flex;
justify-content: space-between;