优化
This commit is contained in:
+33
-12
@@ -29,21 +29,21 @@ Component({
|
||||
"list2":[
|
||||
{
|
||||
"pagePath": "/Pages/yishi/index/index",
|
||||
"text": "首页(Y)",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/index.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/index_select.png",
|
||||
"info": ""
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yishi/wenzhen_v2/wenzhen",
|
||||
"text": "问诊(Z)",
|
||||
"text": "问诊",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/wenzhen.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/wenzhen_select.png",
|
||||
"info": "99"
|
||||
},
|
||||
{
|
||||
"pagePath": "/Pages/yishi/my/index",
|
||||
"text": "我的(Y)",
|
||||
"text": "我的",
|
||||
"iconPath": "/static/images/yishi/tabbar_icon/my.png",
|
||||
"selectedIconPath": "/static/images/yishi/tabbar_icon/my_select.png",
|
||||
"info": ""
|
||||
@@ -56,6 +56,7 @@ Component({
|
||||
index_info: "",
|
||||
wenzhen_info: "",
|
||||
my_info: "",
|
||||
next_url: "/Pages/yishi/identity/index"
|
||||
},
|
||||
attached() {
|
||||
const usertype = wx.getStorageSync('usertype')
|
||||
@@ -102,27 +103,45 @@ Component({
|
||||
// },
|
||||
onChange(e) {
|
||||
console.log("custom tab bar onChange");
|
||||
|
||||
let idcard_status = wx.getStorageSync('idcard_status');
|
||||
let iden_auth_status = wx.getStorageSync('iden_auth_status');
|
||||
let userID = wx.getStorageSync('user_id');
|
||||
let idcard_status = wx.getStorageSync(userID+'_idcard_status');
|
||||
let iden_auth_status = wx.getStorageSync(userID+'_iden_auth_status');
|
||||
let multi_point_status = wx.getStorageSync(userID+'_multi_point_status');
|
||||
let is_bind_bank = wx.getStorageSync(userID+'_is_bind_bank');
|
||||
const usertype = wx.getStorageSync('usertype');
|
||||
|
||||
console.log("idcard_status: ", idcard_status);
|
||||
console.log("iden_auth_status: ", iden_auth_status);
|
||||
if(idcard_status != 1){
|
||||
console.log("multi_point_status: ", iden_auth_status);
|
||||
console.log("is_bind_bank: ", is_bind_bank);
|
||||
|
||||
if(idcard_status != 1 && usertype != 3){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先实名认证"
|
||||
dialog_content: "请您先实名认证",
|
||||
next_url: "/Pages/yishi/identity/index",
|
||||
})
|
||||
return;
|
||||
}
|
||||
if(iden_auth_status != 1){
|
||||
console.log(111);
|
||||
if(iden_auth_status != 1 && usertype != 3){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先医师身份认证"
|
||||
dialog_content: "请您先医师身份认证",
|
||||
next_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
})
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(222);
|
||||
if(is_bind_bank != 1 && usertype != 3){
|
||||
this.setData({
|
||||
dialog_visible: true,
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
next_url: "/Pages/yishi/bankcard/index"
|
||||
})
|
||||
return;
|
||||
}
|
||||
console.log(333);
|
||||
let url = this.data.items[e.detail].pagePath;
|
||||
console.log(url);
|
||||
wx.switchTab({
|
||||
@@ -133,7 +152,9 @@ Component({
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
app.go("/Pages/yishi/identity/index");
|
||||
console.log("next_url: ", this.data.next_url);
|
||||
let next_url = this.data.next_url;
|
||||
app.go(next_url);
|
||||
},
|
||||
cancelDialog(){
|
||||
this.setData({
|
||||
|
||||
Reference in New Issue
Block a user