|
|
@ -5,6 +5,7 @@ Page({ |
|
|
|
applyDoctorInfo: null, |
|
|
|
applyDoctorInfo: null, |
|
|
|
applyHostipalInfo: null, |
|
|
|
applyHostipalInfo: null, |
|
|
|
inviteName: "", |
|
|
|
inviteName: "", |
|
|
|
|
|
|
|
RejectReason: "", |
|
|
|
DoctorLevel: {}, |
|
|
|
DoctorLevel: {}, |
|
|
|
DoctorTitleType: {}, |
|
|
|
DoctorTitleType: {}, |
|
|
|
|
|
|
|
|
|
|
@ -19,18 +20,13 @@ Page({ |
|
|
|
RegisterImg: "", |
|
|
|
RegisterImg: "", |
|
|
|
PositionImg: "", |
|
|
|
PositionImg: "", |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
onLoad() { |
|
|
|
if (options.hid) { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
HospitalId: options.hid, |
|
|
|
|
|
|
|
HospitalName: options.hname, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
app.waitLogin(true).then(() => { |
|
|
|
app.waitLogin(true).then(() => { |
|
|
|
this.getApplyDoctor(); |
|
|
|
this.getApplyDoctor(); |
|
|
|
this.getLoastApplyHostipal(); |
|
|
|
this.getLoastApplyHostipal(); |
|
|
|
this.getDoctorDict(); |
|
|
|
this.getDoctorDict(); |
|
|
|
const doctorId = app.globalData.scene?.doctorId; |
|
|
|
const doctorId = app.globalData.scene?.doctorId; |
|
|
|
|
|
|
|
|
|
|
|
if (doctorId) { |
|
|
|
if (doctorId) { |
|
|
|
this.getDoctorInfo(doctorId); |
|
|
|
this.getDoctorInfo(doctorId); |
|
|
|
} |
|
|
|
} |
|
|
@ -55,6 +51,8 @@ Page({ |
|
|
|
QualificationImg: res.QualificationImg, |
|
|
|
QualificationImg: res.QualificationImg, |
|
|
|
RegisterImg: res.RegisterImg, |
|
|
|
RegisterImg: res.RegisterImg, |
|
|
|
PositionImg: res.PositionImg, |
|
|
|
PositionImg: res.PositionImg, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RejectReason: res.AuditStatus === 2 ? res.RejectReason : "", |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -102,8 +100,17 @@ Page({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleHostipal() { |
|
|
|
handleHostipal() { |
|
|
|
wx.redirectTo({ |
|
|
|
wx.navigateTo({ |
|
|
|
url: `/module1/pages/sHostipal/index?prev=${encodeURIComponent("/module1/pages/setInfo/index")}`, |
|
|
|
url: "/module1/pages/sHostipal/index", |
|
|
|
|
|
|
|
events: { |
|
|
|
|
|
|
|
acceptDataFromOpenedPage: (data) => { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
HospitalId: data.hid, |
|
|
|
|
|
|
|
HospitalName: data.hname, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
success: () => {}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleTitleType(e) { |
|
|
|
handleTitleType(e) { |
|
|
@ -113,7 +120,7 @@ Page({ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleSubmit() { |
|
|
|
handleSubmit() { |
|
|
|
const { |
|
|
|
let { |
|
|
|
AuditId, |
|
|
|
AuditId, |
|
|
|
Name, |
|
|
|
Name, |
|
|
|
HospitalId, |
|
|
|
HospitalId, |
|
|
@ -125,6 +132,11 @@ Page({ |
|
|
|
RegisterImg, |
|
|
|
RegisterImg, |
|
|
|
PositionImg, |
|
|
|
PositionImg, |
|
|
|
} = this.data; |
|
|
|
} = this.data; |
|
|
|
|
|
|
|
const scene = app.globalData.scene; |
|
|
|
|
|
|
|
if (scene?.doctorId) { |
|
|
|
|
|
|
|
InviteDoctorId = scene.doctorId; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!Name) { |
|
|
|
if (!Name) { |
|
|
|
wx.showToast({ |
|
|
|
wx.showToast({ |
|
|
|
title: "请输入姓名", |
|
|
|
title: "请输入姓名", |
|
|
@ -189,11 +201,17 @@ Page({ |
|
|
|
PositionImg, |
|
|
|
PositionImg, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}).then((res) => { |
|
|
|
}).then((res) => { |
|
|
|
wx.navigateTo({ |
|
|
|
app.globalData.scene = null; |
|
|
|
|
|
|
|
wx.reLaunch({ |
|
|
|
url: `/module1/pages/setInfoResult/index?isf=${res.isFollow}&iname=${res.InviteDoctorName}`, |
|
|
|
url: `/module1/pages/setInfoResult/index?isf=${res.isFollow}&iname=${res.InviteDoctorName}`, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleChangeHostipal() { |
|
|
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
|
|
url: "/module1/pages/cHostipal/index", |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
export {}; |
|
|
|
export {}; |
|
|
|