首页跳转以及药品tip
This commit is contained in:
+12
-10
@@ -25,25 +25,27 @@ Page({
|
||||
},
|
||||
onShow(){
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
if(!usertype){
|
||||
wx.redirectTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
};
|
||||
this.setData({
|
||||
beforeClose: this.data.beforeClose.bind(this),
|
||||
})
|
||||
if(!usertype){
|
||||
wx.navigateTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
};
|
||||
|
||||
},
|
||||
onLoad(){
|
||||
let usertype = wx.getStorageSync('usertype');
|
||||
if(!usertype){
|
||||
wx.redirectTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
};
|
||||
this.setData({
|
||||
beforeClose: this.data.beforeClose.bind(this),
|
||||
})
|
||||
if(!usertype){
|
||||
wx.navigateTo({
|
||||
url: "/Pages/index/index"
|
||||
})
|
||||
};
|
||||
|
||||
wx.getPrivacySetting({
|
||||
success: res => {
|
||||
console.log(res) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }
|
||||
|
||||
Reference in New Issue
Block a user