This commit is contained in:
xiaozhiyong
2023-04-17 11:35:27 +08:00
parent 98af2a90fc
commit 0049dd2f2d
5 changed files with 32 additions and 26 deletions

View File

@@ -59,7 +59,7 @@
<button class="cu-btn margin-top round lg" @tap="refuseEmpower">
输入手机号码登录
</button>
<button class="cu-btn margin-top bg-0 round lg" @tap="refuseLogin">
<button v-if="isShow" class="cu-btn margin-top bg-0 round lg" @tap="refuseLogin">
跳过
</button>
</view>
@@ -95,7 +95,8 @@
loginRes: {},
sessionKey: '',
nickName: '',
loginOut: uni.getStorageSync('loginOut') ? true : false
loginOut: uni.getStorageSync('loginOut') ? true : false,
isShow:true
}
},
onLoad(option) {
@@ -134,7 +135,10 @@
let siteId = uni.getStorageSync('siteId')
uni.clearStorageSync();
if(isJump) uni.setStorageSync('isJump',isJump)
if(siteId) uni.setStorageSync('siteId',siteId)
if(siteId) {
this.isShow = false
uni.setStorageSync('siteId',siteId)
}
this.refreshLocation()
let _that = this
uni.login({