医生3.1
This commit is contained in:
@@ -38,7 +38,8 @@ Page({
|
||||
]
|
||||
},
|
||||
sub_visible: false,
|
||||
showSetting:false
|
||||
showSetting:false,
|
||||
difficultSetting:false
|
||||
},
|
||||
onLoad(){
|
||||
|
||||
@@ -94,7 +95,12 @@ Page({
|
||||
'config_setting.service_process':result.service_process,
|
||||
'config_setting.service_period':result.service_period,
|
||||
'config_setting.service_rounds':result.service_rounds,
|
||||
'config_setting.config_service_id':result.config_service_id
|
||||
'config_setting.config_service_id':result.config_service_id,
|
||||
difficultSetting:true
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
difficultSetting:false
|
||||
})
|
||||
}
|
||||
}).catch(errors => {console.error(errors);})
|
||||
@@ -116,6 +122,15 @@ Page({
|
||||
})
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(this.data.active==2){
|
||||
if(!this.data.difficultSetting){
|
||||
wx.showToast({
|
||||
title: '请先设置服务设置',
|
||||
icon:'none'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
}
|
||||
this.setData({ note: this.data.open_note });
|
||||
wx.vibrateShort({
|
||||
|
||||
Reference in New Issue
Block a user