2025-10-23

支付页面
This commit is contained in:
2025-10-23 10:18:06 +08:00
parent 12910d0a1d
commit 1f4c2c75eb
18 changed files with 581 additions and 113 deletions

View File

@@ -9,6 +9,10 @@
</view>
<view class="header-username u-m-l-20">
{{user.real_name}}
<view>
<u-tag class="u-m-r-20 u-m-t-10" :text="Math.abs(user.balance)" type="warning"></u-tag>
<u-tag :text="user.points"></u-tag>
</view>
</view>
</view>
<view class="header-setting">
@@ -144,6 +148,12 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { getImageUrl } from '../../util/common';
import {
authAPI
} from '../../api/auth.js';
import {
onShow
} from '@dcloudio/uni-app'
const user = ref()
@@ -153,8 +163,17 @@
})
}
const loadData = () => {
authAPI.me().then(res => {
user.value = res.user
})
}
onShow(() => {
loadData()
})
onMounted(() => {
user.value = uni.getStorageSync("user")
})
const loginOut = () => {