更新:ios支付

This commit is contained in:
2025-12-11 17:30:45 +08:00
parent b3d9b0c100
commit d98e1ef024
8 changed files with 176 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
<template>
<view class="user-page" :style="{ paddingTop: getNotchHeight() + 30 + 'px' }" v-if="userStore.token">
<view class="user-page" :style="{ paddingTop: getNotchHeight() + 30 + 'px' }" v-if="userStore.token && uni.getStorageSync('token')">
<!-- 设置图标 -->
<view class="settings-icon" :style="{ top: getNotchHeight() + 30 + 'px' }" @click="goSettings">
<wd-icon name="setting1" size="24px" color="#666" />
@@ -98,7 +98,6 @@
// 默认头像
const defaultAvatar = '/static/logo.png'
// 用户信息
const userInfo = computed(() => userStore.userInfo)
@@ -276,20 +275,17 @@
}
onShow(() => {
console.log(userInfo, 'userInfo');
if (userStore.token) {
if (uni.getStorageSync('token')) {
getData()
}
})
onMounted(() => {
console.log(userInfo, 'userInfo');
if (userStore.token) {
if (uni.getStorageSync('token')) {
getPlatform()
getHufen()
}
}
})
</script>