2025-10-23
支付页面
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user