This commit is contained in:
@zuopngfei 2025-07-30 14:35:48 +08:00
parent 8cd91d92cf
commit c288a88104

View File

@ -123,6 +123,9 @@ Page({
}); });
return; return;
} }
wx.showLoading({
title: '正在提交...',
})
const body = { const body = {
username: this.data.form.username, username: this.data.form.username,
mmp_7: this.data.form.mmp_7, mmp_7: this.data.form.mmp_7,
@ -132,10 +135,41 @@ Page({
portal_vein_branch_image: this.data.form.portal_vein_branch_image, portal_vein_branch_image: this.data.form.portal_vein_branch_image,
portal_vein_cross_image: this.data.form.portal_vein_cross_image portal_vein_cross_image: this.data.form.portal_vein_cross_image
} }
const res = await request('patient/diagnostic', 'post', body) try{
const res = await request('patient/diagnostic', 'post', body)
wx.hideLoading()
wx.showLoading({
title: '正在查询结果...',
})
setTimeout(() => {
this.searchDiagnostic(res)
}, 1000)
} catch(e) {
wx.hideLoading()
}
},
async searchDiagnostic(data) {
const resd = await request('patient/diagnostic/search', 'post', {
mobile: this.data.form.mobile,
user_id: data.user_id,
username: this.data.form.username
})
if(resd.success == true){
wx.hideLoading()
this.setData({
msg: resd.message,
visible: true
})
} else {
this.searchDiagnostic(data)
}
},
onClose(){
this.setData({ this.setData({
msg: res.message, imageVisible: false
visible: true
}) })
}, },
confirm() { confirm() {