完善个人资料修改

This commit is contained in:
2025-05-02 17:03:32 +08:00
parent c7b6aacafb
commit 436a519966
285 changed files with 18545 additions and 5087 deletions

View File

@ -5,10 +5,10 @@
<view class="u-text-center text-fff lg" :style="{paddingTop: statusBar + 'px'}">我的</view>
<!-- #endif -->
<view class="u-p-t-60 px32 row-between">
<view class="text-fff">
<view v-if="isLogin">
<navigator class="row u-col-top" url="/pages/my/profile" hover-class="none">
<view class="u-p-t-60 px32 text-fff">
<navigator class="row-between" :url="isLogin ? '/pages/my/profile' : '/pages/login/login'" hover-class="none">
<view>
<view v-if="isLogin" class="row u-col-top">
<view>
<u-avatar :src="userInfo.avatar ? userInfo.avatar : cloudPath + 'img/icon_avatar_empty2.png'" size="112"></u-avatar>
</view>
@ -16,11 +16,9 @@
<view>{{ userInfo.nickname }}</view>
<view class="u-m-t-16">{{userInfo.mobile || userInfo.sn}}</view>
</view>
</navigator>
</view>
<view v-if="!isLogin">
<navigator class="row u-col-top" url="/pages/login/login" hover-class="none">
</view>
<view v-if="!isLogin" class="row u-col-top">
<view>
<u-avatar :src="cloudPath + 'img/icon_avatar_empty2.png'" size="112"></u-avatar>
</view>
@ -28,12 +26,12 @@
<view>点击登录</view>
<view class="u-m-t-16">登录体验更多功能</view>
</view>
</navigator>
</view>
</view>
</view>
<view>
<u-icon name="arrow-right" size="40" color="#fff"></u-icon>
</view>
<view>
<u-icon name="arrow-right" size="40" color="#fff"></u-icon>
</view>
</navigator>
</view>
</view>
@ -42,7 +40,7 @@
<view class="u-flex u-row-center" @click="toWallet">
<u-image :src="cloudPath + 'img/icon_balance.png'" width="52" height="52"></u-image>
<view class="u-m-l-60 u-text-center">
<view class="nr">0.00</view>
<view class="nr">{{userInfo.user_money || 0.00}}</view>
<view class="xs">余额</view>
</view>
</view>
@ -52,7 +50,7 @@
<view class="u-flex u-row-center">
<u-image :src="cloudPath + 'img/icon_points.png'" width="52" height="52"></u-image>
<view class="u-m-l-60 u-text-center">
<view class="nr">0.00</view>
<view class="nr">{{ userInfo.user_integral || 0}}</view>
<view class="xs">积分</view>
</view>
</view>
@ -62,7 +60,7 @@
<view class="u-flex u-row-center">
<u-image :src="cloudPath + 'img/icon_coupon.png'" width="52" height="52"></u-image>
<view class="u-m-l-60 u-text-center">
<view class="nr">0</view>
<view class="nr">{{ userInfo.coupon || 0}}</view>
<view class="xs u-text-center">券</view>
</view>
</view>
@ -109,12 +107,17 @@
}
},
onShow() {
this.getUser()
},
onLoad() {
console.log(this.isLogin)
console.log(this.userInfo)
},
methods: {
...mapActions(['getUser']),
// 跳转个人信息
toProfile() {
uni.navigateTo({