接入真实数据显示

This commit is contained in:
Searchstars
2024-07-16 21:45:35 +08:00
parent e46d234e65
commit edc5e37e7d
+6 -15
View File
@@ -4,7 +4,7 @@
<image src="/common/switch.png"></image>
<text style="font-weight: 600; font-size: 30px; margin-left: 15px">我的</text>
</div>
<image src="{{accountInfo.face}}" alt="/common/default_profile_img.png" class="profimg" style="margin-top: 30px">
<image src="{{accountInfo.face}}@106w_106h" alt="/common/default_profile_img.png" class="profimg" style="margin-top: 30px">
</image>
<text class="{{name_text_class}}" style="margin-top: 15px">{{ accountInfo.uname }}</text>
<div class="tagbar" style="margin-top: 5px">
@@ -41,27 +41,17 @@ export default {
name_text_class: "name",
is_vip: false,
is_senior_member: false,
accountInfo: {
uname: "测试用户",
vip_pay_type: 1,
level_info: {
current_level: 7
},
vip_label: {
label_theme: "annual_vip"
},
is_senior_member: 1
}
accountInfo: {}
},
SwitchPage() {
router.replace({
uri: "pages/arealist"
})
},
WIPTips(){
WIPTips() {
prompt.showToast({
message: "该功能还在开发中"
})
message: "该功能还在开发中"
})
},
UpdateShow() {
if (this.accountInfo.vip_pay_type) {
@@ -73,6 +63,7 @@ export default {
}
},
onInit() {
this.accountInfo = this.$app.$def.biliclient.accountInfo
this.UpdateShow()
}
}