优化页面
This commit is contained in:
+38
-20
@@ -72,10 +72,11 @@ Component({
|
||||
})
|
||||
}
|
||||
let _this = this;
|
||||
let userID = wx.getStorageSync('user_id');
|
||||
setInterval(() => {
|
||||
let index_info = wx.getStorageSync('index_info');
|
||||
let wenzhen_info = wx.getStorageSync('wenzhen_info');
|
||||
let my_info = wx.getStorageSync('my_info');
|
||||
let index_info = wx.getStorageSync(userID+'_index_info');
|
||||
let wenzhen_info = wx.getStorageSync(userID+'_wenzhen_info');
|
||||
let my_info = wx.getStorageSync(userID+'_my_info');
|
||||
_this.setData({
|
||||
index_info: index_info,
|
||||
wenzhen_info: wenzhen_info,
|
||||
@@ -100,28 +101,45 @@ Component({
|
||||
// }
|
||||
// },
|
||||
onChange(e) {
|
||||
// this.setData({
|
||||
// dialog_visible: true,
|
||||
// dialog_content: "测试"
|
||||
// })
|
||||
console.log("custom tab bar onChange");
|
||||
// return;
|
||||
|
||||
let idcard_status = wx.getStorageSync('idcard_status');
|
||||
let iden_auth_status = wx.getStorageSync('iden_auth_status');
|
||||
|
||||
console.log("idcard_status: ", idcard_status);
|
||||
console.log("iden_auth_status: ", iden_auth_status);
|
||||
if(idcard_status != 1){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先实名认证"
|
||||
})
|
||||
return;
|
||||
}
|
||||
if(iden_auth_status != 1){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先医师身份认证"
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
let url = this.data.items[e.detail].pagePath;
|
||||
console.log(url);
|
||||
wx.switchTab({
|
||||
url: url,
|
||||
})
|
||||
},
|
||||
confirmDialog(){
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
},
|
||||
cancelDialog(){
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
confirmDialog(){
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
app.go("/Pages/yishi/identity/index");
|
||||
},
|
||||
cancelDialog(){
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user