个人中心登录触发
parent
445902516d
commit
ec729dcb4e
|
@ -9,7 +9,7 @@
|
||||||
<view class="disjbac">
|
<view class="disjbac">
|
||||||
<view class="disac colf">
|
<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="mar-z30">
|
||||||
<!-- 昵称 -->
|
<!-- 昵称 -->
|
||||||
<view class="disac">
|
<view class="disac">
|
||||||
|
@ -269,6 +269,20 @@
|
||||||
this.checkSwi()
|
this.checkSwi()
|
||||||
},
|
},
|
||||||
methods: {
|
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){//拨打电话
|
countCustomer(phone){//拨打电话
|
||||||
const res = uni.getSystemInfoSync();
|
const res = uni.getSystemInfoSync();
|
||||||
if(res.platform=='ios'){
|
if(res.platform=='ios'){
|
||||||
|
|
Loading…
Reference in New Issue