|
|
|
@ -23,8 +23,8 @@
|
|
|
|
|
></u-tabs> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<FxxPage v-if="tabCheck === 'fxx'" :padding-top="false"></FxxPage> |
|
|
|
|
<AdvisorPage v-if="tabCheck === 'advisor'" :padding-top="false" :is-edit="true"></AdvisorPage> |
|
|
|
|
<FxxPage v-if="tabCheck === 'fxx' && userInfo?.fxx?.id" :padding-top="false"></FxxPage> |
|
|
|
|
<AdvisorPage v-if="tabCheck === 'advisor' && userInfo?.advisor?.id" :padding-top="false" :is-edit="true"></AdvisorPage> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
@ -47,11 +47,9 @@ export default {
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
title:'编辑资料', |
|
|
|
|
list:[ |
|
|
|
|
{name:'丰行侠',id:'fxx'}, |
|
|
|
|
{name:'社区顾问',id:'advisor'}, |
|
|
|
|
], |
|
|
|
|
list:[], |
|
|
|
|
tabCheck:'fxx', |
|
|
|
|
userInfo:{}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
@ -61,7 +59,24 @@ export default {
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
if(uni.getStorageSync('user')){ |
|
|
|
|
this.userInfo = uni.getStorageSync('user'); |
|
|
|
|
}else{ |
|
|
|
|
userDetail().then((res)=>{ |
|
|
|
|
this.userInfo = res.data; |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(this.userInfo){ |
|
|
|
|
let list = []; |
|
|
|
|
if(this.userInfo?.fxx?.id){ |
|
|
|
|
list.push({name:'丰行侠',id:'fxx'}) |
|
|
|
|
} |
|
|
|
|
if(this.userInfo?.advisor?.id){ |
|
|
|
|
list.push({name:'社区顾问',id:'advisor'}); |
|
|
|
|
} |
|
|
|
|
this.list = list; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
tabsChange(e){ |
|
|
|
|