|
@@ -22,7 +22,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="bp_r">1.0.0</div>
|
|
<div class="bp_r">1.0.0</div>
|
|
</div>
|
|
</div>
|
|
- <div class="b_pre adfacjb" @tap="exitLogin">
|
|
|
|
|
|
+ <div class="b_pre adfacjb" @tap="exitLogin" v-if="logined">
|
|
<div class="bp_l adfac">
|
|
<div class="bp_l adfac">
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/4d10c9ef-8a13-4502-adfd-d388628446ab.png"></image>
|
|
<image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/4d10c9ef-8a13-4502-adfd-d388628446ab.png"></image>
|
|
<text>退出登录</text>
|
|
<text>退出登录</text>
|
|
@@ -31,6 +31,15 @@
|
|
<u-icon name="arrow-right" color="#D3D2D2" size="32"></u-icon>
|
|
<u-icon name="arrow-right" color="#D3D2D2" size="32"></u-icon>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="b_pre adfacjb" @tap="toLogin" v-else>
|
|
|
|
+ <div class="bp_l adfac">
|
|
|
|
+ <image src="https://transcend.ringzle.com/xiaozhi-app/profile/2025/06/16/4d10c9ef-8a13-4502-adfd-d388628446ab.png"></image>
|
|
|
|
+ <text>立即登录</text>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="bp_r">
|
|
|
|
+ <u-icon name="arrow-right" color="#D3D2D2" size="32"></u-icon>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<Tabbar :tabbarIndex="1"></Tabbar>
|
|
<Tabbar :tabbarIndex="1"></Tabbar>
|
|
</view>
|
|
</view>
|
|
@@ -45,11 +54,13 @@
|
|
userName:'',
|
|
userName:'',
|
|
mobile:'',
|
|
mobile:'',
|
|
enterpriseName:'',
|
|
enterpriseName:'',
|
|
- teamName:''
|
|
|
|
|
|
+ teamName:'',
|
|
|
|
+ logined:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
if(uni.getStorageSync('userInfo')){
|
|
if(uni.getStorageSync('userInfo')){
|
|
|
|
+ this.logined = true;
|
|
this.userName = JSON.parse(uni.getStorageSync('userInfo')).realName||'';
|
|
this.userName = JSON.parse(uni.getStorageSync('userInfo')).realName||'';
|
|
this.mobile = JSON.parse(uni.getStorageSync('userInfo')).mobile||'';
|
|
this.mobile = JSON.parse(uni.getStorageSync('userInfo')).mobile||'';
|
|
this.enterpriseName = JSON.parse(uni.getStorageSync('userInfo')).enterpriseName||'';
|
|
this.enterpriseName = JSON.parse(uni.getStorageSync('userInfo')).enterpriseName||'';
|
|
@@ -63,6 +74,11 @@
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url:'/pages/login'
|
|
url:'/pages/login'
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+ toLogin(){
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url:'/pages/login'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|