优化
This commit is contained in:
+44
-19
@@ -33,6 +33,7 @@ Page({
|
||||
default_dialog_show: false,//只弹框一次
|
||||
dialog_visible: false,
|
||||
dialog_content: "请您先完成实名认证",
|
||||
dialog_url: "",
|
||||
/*
|
||||
case_module取值
|
||||
新问诊 0
|
||||
@@ -57,27 +58,32 @@ Page({
|
||||
{
|
||||
case_status: 0,
|
||||
case_module: [0,1,2,3,4,5,6,7,8],
|
||||
case_text: "请您先完成实名认证"
|
||||
case_text: "请您先完成实名认证",
|
||||
case_url: "/Pages/yishi/identity/index"
|
||||
},
|
||||
{
|
||||
case_status: 1,
|
||||
case_module: [0,1,2,3,4,5,6,7,8],
|
||||
case_text: "请您先医师身份认证"
|
||||
case_text: "请您先医师身份认证",
|
||||
case_url: "/Pages/yishi/identity/index?selected_tab=1"
|
||||
},
|
||||
{
|
||||
case_status: 2,
|
||||
case_module: [0,1,2,3,4,5,6,7,8],
|
||||
case_text: "请您先绑定结算银行卡"
|
||||
case_text: "请您先绑定结算银行卡",
|
||||
case_url: "/Pages/yishi/bankcard/index"
|
||||
},
|
||||
{
|
||||
case_status: 3,
|
||||
case_module: [7],
|
||||
case_text: "请您先进行多点执业认证"
|
||||
case_text: "请您先进行多点执业认证",
|
||||
case_url: "/Pages/yishi/zhiye_identity/index"
|
||||
},
|
||||
{
|
||||
case_status: 4,
|
||||
case_module: [7],
|
||||
case_text: "请您先进行多点执业认证"
|
||||
case_text: "请您先进行多点执业认证",
|
||||
case_url: "/Pages/yishi/zhiye_identity/index"
|
||||
},
|
||||
{
|
||||
case_status: 5,
|
||||
@@ -147,6 +153,8 @@ Page({
|
||||
})
|
||||
wx.setStorageSync('overlay_show', "1")
|
||||
}
|
||||
|
||||
app.go("/Pages/yishi/manual_detail/index?manual_id=1")
|
||||
},
|
||||
cancelJieSuanDialog(){
|
||||
this.setData({
|
||||
@@ -208,6 +216,12 @@ Page({
|
||||
return
|
||||
},
|
||||
onShow: function () {
|
||||
|
||||
//初始化默认值
|
||||
this.setData({
|
||||
skeleton_loading: true,
|
||||
});
|
||||
|
||||
wx.onCopyUrl(this.Copylistener);
|
||||
if (typeof this.getTabBar === 'function' && this.getTabBar()) {
|
||||
this.getTabBar().setData({
|
||||
@@ -366,11 +380,14 @@ Page({
|
||||
}
|
||||
app.go(e.currentTarget.dataset.url);
|
||||
},
|
||||
confirmDialog(){
|
||||
confirmDialog(e){
|
||||
console.log(e)
|
||||
let url = e.currentTarget.dataset.url;
|
||||
console.log("confirmDialog: ", url)
|
||||
this.setData({
|
||||
dialog_visible: false
|
||||
})
|
||||
app.go(this.data.shiming_status_url);
|
||||
app.go(url);
|
||||
},
|
||||
cancelDialog(){
|
||||
this.setData({
|
||||
@@ -409,6 +426,7 @@ Page({
|
||||
this.setData({
|
||||
dialog_content: "请您先完成实名认证",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_url: "/Pages/yishi/identity/index",
|
||||
default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
@@ -424,6 +442,7 @@ Page({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index",
|
||||
dialog_url: "/Pages/yishi/identity/index",
|
||||
dialog_content: "实名认证失败",
|
||||
default_dialog_show: true
|
||||
});
|
||||
@@ -440,6 +459,7 @@ Page({
|
||||
"info.info_shiming_status_txt": "前往医师身份认证",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_content: "请您先医师身份认证",
|
||||
default_dialog_show: true
|
||||
});
|
||||
@@ -455,6 +475,7 @@ Page({
|
||||
"info.info_shiming_status_txt": "审核中",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
// dialog_content: "您的医师身份认证正在审核中",
|
||||
// default_dialog_show: true
|
||||
});
|
||||
@@ -470,6 +491,7 @@ Page({
|
||||
"info.info_shiming_status_txt": "认证失败",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_url: "/Pages/yishi/identity/index?selected_tab=1",
|
||||
dialog_content: "您的医师身份认证失败",
|
||||
// default_dialog_show: true
|
||||
});
|
||||
@@ -487,6 +509,7 @@ Page({
|
||||
"info.info_shiming_status_txt": "绑定结算银行卡",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/bankcard/index",
|
||||
dialog_url: "/Pages/yishi/bankcard/index",
|
||||
dialog_content: "请您先绑定结算银行卡",
|
||||
default_dialog_show: true
|
||||
});
|
||||
@@ -505,7 +528,7 @@ Page({
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "请您先进行多点执业认证",
|
||||
default_dialog_show: true
|
||||
// default_dialog_show: true
|
||||
});
|
||||
// return false;
|
||||
}
|
||||
@@ -521,7 +544,7 @@ Page({
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "您的多点执业认证正在审核中",
|
||||
default_dialog_show: true
|
||||
// default_dialog_show: true
|
||||
});
|
||||
// return false;
|
||||
}
|
||||
@@ -537,11 +560,19 @@ Page({
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/zhiye_identity/index",
|
||||
dialog_content: "您的多点执业认证失败",
|
||||
default_dialog_show: true
|
||||
// default_dialog_show: true
|
||||
});
|
||||
// return false;
|
||||
}
|
||||
|
||||
const jiesuan_dialog_show = wx.getStorageSync('jiesuan_dialog_show');
|
||||
if(!jiesuan_dialog_show){
|
||||
this.setData({
|
||||
jiesuan_dialog_visible: true,
|
||||
});
|
||||
wx.setStorageSync('jiesuan_dialog_show', true);
|
||||
}
|
||||
|
||||
if((is_img_expert_reception + is_img_quick_reception + is_img_welfare_reception) == 0){
|
||||
if(!this.data.default_dialog_show){
|
||||
this.setData({
|
||||
@@ -552,7 +583,6 @@ Page({
|
||||
"info.info_shiming_status_txt": "开启在线问诊",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/onlinesetup/index",
|
||||
dialog_content: "您的多点执业认证失败",
|
||||
// default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
@@ -568,7 +598,6 @@ Page({
|
||||
"info.info_shiming_status_txt": "去接诊",
|
||||
"info.info_shiming_status": "info_shiming_status_yes",
|
||||
shiming_status_url: "/Pages/yishi/wenzhen_v2/wenzhen",
|
||||
dialog_content: "您的多点执业认证失败",
|
||||
// default_dialog_show: true
|
||||
});
|
||||
return false;
|
||||
@@ -594,12 +623,7 @@ Page({
|
||||
// return false;
|
||||
// }
|
||||
|
||||
if(!app.globalData.jiesuan_dialog_show){
|
||||
this.setData({
|
||||
jiesuan_dialog_visible: true,
|
||||
});
|
||||
app.globalData.jiesuan_dialog_show = true
|
||||
}
|
||||
|
||||
|
||||
this.setData({
|
||||
"info.info_shiming_status_txt": "去接诊",
|
||||
@@ -688,7 +712,8 @@ Page({
|
||||
if(now_moudle != undefined){
|
||||
this.setData({
|
||||
dialog_content: now_case.case_text,
|
||||
dialog_visible: true
|
||||
dialog_visible: true,
|
||||
dialog_url: now_case.case_url
|
||||
});
|
||||
retult = false;
|
||||
return;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</view>
|
||||
<view class="info_shiming" bindtap="go" data-url="{{shiming_status_url}}" wx:if="{{!skeleton_loading}}">
|
||||
<view class="info_shiming_status {{info.info_shiming_status}}" wx:if="{{!skeleton_loading}}">{{info.info_shiming_status_txt}}</view>
|
||||
<t-skeleton theme="text" row-col="{{[1]}}" animation="gradient" loading="{{skeleton_loading}}" />
|
||||
<t-skeleton theme="text" row-col="{{[{ width: '50rpx' }]}}" animation="gradient" loading="{{skeleton_loading}}" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="info_wenzhen">
|
||||
@@ -181,7 +181,7 @@
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelDialog">
|
||||
取消
|
||||
</view>
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog">
|
||||
<view slot="confirm-btn" class="dialog dialog_confirm_btn" bindtap="confirmDialog" data-url="{{dialog_url}}">
|
||||
确定
|
||||
</view>
|
||||
</t-dialog>
|
||||
@@ -189,7 +189,7 @@
|
||||
<t-dialog
|
||||
visible="{{ jiesuan_dialog_visible }}"
|
||||
title="温馨提示"
|
||||
content="您是否了解费用结算规则?"
|
||||
content="快速了解在线问诊、公益问诊和快速问诊"
|
||||
>
|
||||
<view slot="cancel-btn" class="dialog dialog_cancel_btn" bindtap="cancelJieSuanDialog">
|
||||
已了解
|
||||
|
||||
Reference in New Issue
Block a user