This commit is contained in:
haomingming
2023-05-05 11:44:37 +08:00
parent e7be139b04
commit 97a504c6d2
55 changed files with 1961 additions and 249 deletions
+70 -12
View File
@@ -21,8 +21,7 @@ class API extends HTTP {
method: 'GET',
data: {
...params
},
showLoading: false
}
})
}
//获取城市信息
@@ -32,8 +31,7 @@ class API extends HTTP {
method: 'GET',
data: {
...params
},
showLoading: false
}
})
}
//获取区县信息
@@ -43,8 +41,7 @@ class API extends HTTP {
method: 'GET',
data: {
...params
},
showLoading: false
}
})
}
//获取医院数据
@@ -54,8 +51,7 @@ class API extends HTTP {
method: 'GET',
data: {
...params
},
showLoading: false
}
})
}
//获取自定义科室数据
@@ -65,8 +61,7 @@ class API extends HTTP {
method: 'GET',
data: {
...params
},
showLoading: false
}
})
}
//获取医生专长列表
@@ -76,8 +71,7 @@ class API extends HTTP {
method: 'GET',
data: {
...params
},
showLoading: false
}
})
}
//使用微信手机号登陆
@@ -542,6 +536,24 @@ class API extends HTTP {
}
//获取im签名数据
getSignIM(params) {
let usertype = wx.getStorageSync('usertype');
let userID = wx.getStorageSync('user_id_'+usertype);
let imsign = wx.getStorageSync(userID + '_imsign');
console.log("缓存中的imsign:", imsign)
if(imsign){
const date = imsign.date;
var minute = 1000 * 60;
var hour = minute *60;
var day = hour *24;
if(new Date().getTime() - date < day){
console.log("小于一天从缓存中获取imsign")
return new Promise((resolve, reject) => {
resolve({"data": imsign.sign,"from":"cache"})
})
}
}
return this.request({
url: `${this.baseUrl}/sign/im`,
method: 'GET',
@@ -550,6 +562,7 @@ class API extends HTTP {
}
})
}
//药师基本资料
getPharmacistInfo(params) {
return this.request({
@@ -729,6 +742,51 @@ class API extends HTTP {
return this.request({
url: `${this.baseUrl}/doctor/inquiry/finish/message`,
method: 'GET',
data: {
...params
},
showLoading: false
})
}
//获取协议内容
getBasicAgreement(params) {
let agreement_id = params.agreement_id;
params = {}
return this.request({
url: `${this.baseUrl}/basic/agreement/`+agreement_id,
method: 'GET',
data: {
...params
}
})
}
//获取弹窗
getPopup(params) {
let agreement_id = params.agreement_id;
params = {}
return this.request({
url: `${this.baseUrl}/popup`,
method: 'GET',
data: {
...params
}
})
}
//检测是否可以开具处方
getDoctorPrescriptionCheck(params) {
return this.request({
url: `${this.baseUrl}/doctor/prescription/check`,
method: 'GET',
data: {
...params
}
})
}
//获取医生职称数据
getBasicDoctorTitle(params) {
return this.request({
url: `${this.baseUrl}/basic/doctor/title`,
method: 'GET',
data: {
...params
}