This commit is contained in:
cclu 2023-04-23 18:43:56 +08:00
parent 1e78c73715
commit c887146ee8
2 changed files with 12 additions and 1 deletions

View File

@ -24,6 +24,17 @@ export default {
if (query.type){
this.type = 'index'
}
let userInfo = uni.getStorageSync('vuex')
userInfo = JSON.parse(userInfo)
console.log('userInfo',userInfo)
console.log(userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee'])
if (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){
setTimeout(()=>{
uni.switchTab({
url:`/pages/index/index`
})
},200)
}
},
onUnload() {
this.$util.addUserBehavior()

View File

@ -15,7 +15,7 @@
</picker>
</view>
</div>
<view class="other">
<view class="other">
<view v-if="user.Membership_Id" >
<view class="topTitle">
<p class="title">对客营收</p>