This commit is contained in:
haomingming
2023-03-23 15:52:15 +08:00
parent cfa69efd15
commit 12e4984a95
53 changed files with 661 additions and 193 deletions
+12
View File
@@ -436,6 +436,18 @@ class API extends HTTP {
...params
}
})
}
//删除常用语列表
delDoctorWords(params) {
let doctor_words_id = params.doctor_words_id;
params = {};
return this.request({
url: `${this.baseUrl}/doctor/words/`+doctor_words_id,
method: 'DELETE',
data: {
...params
}
})
}
//搜索疾病分类-系统
getBasicDiseaseSearch(params) {
+6 -3
View File
@@ -46,16 +46,16 @@ class HTTP {
url: app.globalData.login_url
})
} else {
reject(res.data.message)
reject(res.data.message);//向后传递错误信息,catch会拿到
this._show_error(showLoading, res.data.message)
}
} else {
reject(res.data)
reject(res.data)//向后传递错误信息,catch会拿到
this._show_error(showLoading, err.data.message)
}
},
fail: (err) => {
reject()
reject(err)//向后传递错误信息,catch会拿到
this._show_error(showLoading, err.data.message)
},
complete: (res) => {
@@ -70,6 +70,9 @@ class HTTP {
_show_error(showLoading, _message) {
if(showLoading) wx.hideLoading();
if(_message == undefined){
_message = "网络错误";
}
wx.showToast({
title: `${_message}`,
icon: 'none',