登录
This commit is contained in:
parent
5d2fa7524b
commit
18aac9467a
@ -23,6 +23,17 @@ Page({
|
||||
checked: false,
|
||||
static_host: api.getStaticHost()
|
||||
},
|
||||
onShow(){
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
this.setData({
|
||||
beforeClose: this.data.beforeClose.bind(this),
|
||||
})
|
||||
if(!usertype){
|
||||
wx.navigateTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
};
|
||||
},
|
||||
onLoad(){
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
this.setData({
|
||||
|
||||
@ -24,6 +24,14 @@ Page({
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow(){
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
if(!usertype){
|
||||
wx.navigateTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
}
|
||||
},
|
||||
onChange(event) {
|
||||
this.setData({
|
||||
checked: event.detail,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user