个人中心登录触发

master
Lee 2023-01-04 15:41:16 +08:00
parent 445902516d
commit ec729dcb4e
1 changed files with 15 additions and 1 deletions

View File

@ -9,7 +9,7 @@
<view class="disjbac">
<view class="disac colf">
<!-- 头像 -->
<image @tap="openXiao" class="mar-sx30" :src="userInfo.headimgurl || appletImg" mode="aspectFill"></image>
<image @tap="improveDataEv" class="mar-sx30" :src="userInfo.headimgurl || appletImg" mode="aspectFill"></image>
<view class="mar-z30">
<!-- 昵称 -->
<view class="disac">
@ -269,6 +269,20 @@
this.checkSwi()
},
methods: {
//
improveDataEv(){
if(uni.getStorageSync('authorization')==0){
if(uni.getStorageSync('phone_active')==0||uni.getStorageSync('is_active')==0){
uni.navigateTo({
url:'/pages/login/login'
})
}else{
return false;
}
}else{
return false;
}
},
countCustomer(phone){//
const res = uni.getSystemInfoSync();
if(res.platform=='ios'){