|
|
@ -1,16 +1,16 @@ |
|
|
|
<template> |
|
|
|
<view class="forth-menu"> |
|
|
|
<!-- 后端: account-> 如果有手机号就显示手机号 没有的话显示username, 都没有的话就空好了 --> |
|
|
|
<mine-header |
|
|
|
@on:munted="menuPackageLoaded = true" |
|
|
|
:is-login="loginState" |
|
|
|
@click:login="loginBtn" |
|
|
|
:nickname="userInfo.nickname" |
|
|
|
:name="userInfo.actual_name" |
|
|
|
:account="userInfo.mobile || userInfo.username || ''" |
|
|
|
:photo="userInfo.avatar_url" |
|
|
|
@on:munted="menuPackageLoaded = true" |
|
|
|
@click:login="loginBtn" |
|
|
|
@click:update="updateUser" |
|
|
|
></mine-header> |
|
|
|
<!-- 后端: account-> 如果有手机号就显示手机号 没有的话显示username, 都没有的话就空好了 --> |
|
|
|
<block v-if="menuPackageLoaded"> |
|
|
|
<line-tab :icon-num='0'> |
|
|
|
<template slot="default">账号管理</template> |
|
|
@ -36,8 +36,6 @@ |
|
|
|
</view> |
|
|
|
</line-tab> |
|
|
|
</block> |
|
|
|
|
|
|
|
|
|
|
|
<line-tab :icon-num='5' @click="toComplaint">投诉建议</line-tab> |
|
|
|
<line-tab :icon-num='6' v-if="loginState" @click="unBindBtn">解绑退出</line-tab> |
|
|
|
</block> |
|
|
@ -69,6 +67,7 @@ export default { |
|
|
|
data(){ |
|
|
|
return { |
|
|
|
brand_id: '', |
|
|
|
// 异步组件加载完成状态 |
|
|
|
menuPackageLoaded: false, |
|
|
|
userInfo: {}, |
|
|
|
deadData: { |
|
|
@ -159,9 +158,7 @@ export default { |
|
|
|
this.showAuthor(); |
|
|
|
}, |
|
|
|
showAuthor(){ |
|
|
|
this.$refs?.authorizationLogin?.alert?.({ |
|
|
|
success: this.getUserInfo |
|
|
|
}); |
|
|
|
this.$refs?.authorizationLogin?.alert?.({ success: this.getUserInfo }); |
|
|
|
}, |
|
|
|
getUserInfo(){ |
|
|
|
showLoad(); |
|
|
|