|
@ -88,7 +88,7 @@ |
|
|
<text class="time-reward-title">时间奖励</text> |
|
|
<text class="time-reward-title">时间奖励</text> |
|
|
<view class="time-reward-stats"> |
|
|
<view class="time-reward-stats"> |
|
|
<text class="time-reward-number">{{ |
|
|
<text class="time-reward-number">{{ |
|
|
userInfo && userInfo.token ? userInfo.hourValue||0:0 |
|
|
userInfo && userInfo.token ? (userInfo.hourValue||0):0 |
|
|
}}</text> |
|
|
}}</text> |
|
|
<text class="time-reward-unit">点</text> |
|
|
<text class="time-reward-unit">点</text> |
|
|
</view> |
|
|
</view> |
|
@ -112,7 +112,7 @@ |
|
|
style="display: flex;align-items: center;font-size: 26rpx;font-weight: bold;display: flex;align-items: center;margin-top: 20rpx;"> |
|
|
style="display: flex;align-items: center;font-size: 26rpx;font-weight: bold;display: flex;align-items: center;margin-top: 20rpx;"> |
|
|
<view class="" style="width: 200rpx;"> |
|
|
<view class="" style="width: 200rpx;"> |
|
|
时长:{{ |
|
|
时长:{{ |
|
|
userInfo && userInfo.token ? userInfo.hour: 0 |
|
|
userInfo && userInfo.token ? userInfo.hour||0: 0 |
|
|
}}h |
|
|
}}h |
|
|
</view> |
|
|
</view> |
|
|
<view class=""> |
|
|
<view class=""> |
|
@ -360,12 +360,13 @@ |
|
|
// 更新标题显示用户昵称 |
|
|
// 更新标题显示用户昵称 |
|
|
if (this.userInfo && this.userInfo.nickname) { |
|
|
if (this.userInfo && this.userInfo.nickname) { |
|
|
this.currentTitle = `Hi!${this.userInfo.nickname},欢迎回来~`; |
|
|
this.currentTitle = `Hi!${this.userInfo.nickname},欢迎回来~`; |
|
|
|
|
|
this.Post({}, '/framework/points/getLastBalance', 'DES').then(res => { |
|
|
|
|
|
if (res.code === 200) { |
|
|
|
|
|
this.totalPoints = res.data.balance || 0; |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
this.Post({}, '/framework/points/getLastBalance', 'DES').then(res => { |
|
|
|
|
|
if (res.code === 200) { |
|
|
|
|
|
this.totalPoints = res.data.balance || 0; |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
console.warn("获取用户信息失败:", e); |
|
|
console.warn("获取用户信息失败:", e); |
|
|
this.userInfo = {}; |
|
|
this.userInfo = {}; |
|
|