诊断信息录入增加open——id

This commit is contained in:
@zuopngfei 2025-08-11 16:56:27 +08:00
parent 71ffeb1912
commit 4491ed5548
2 changed files with 9 additions and 3 deletions

View File

@ -323,7 +323,7 @@ Page({
handleUpload(e) {
uploadFileToOSS().then((imageUrls) => {
wx.showToast({ title: '上传成功,正在识别内容!', icon: 'none' });
wx.showLoading({ title: '正在识别内容!', icon: 'none' });
this.setData({
imageFile: imageUrls
})

View File

@ -266,18 +266,24 @@ Page({
if (mode == 'mdt_image') {
wx.showToast({ title: '上传成功!', icon: 'none' });
} else if (mode == 'b_mode_image') {
wx.showToast({ title: '上传成功,正在识别内容!', icon: 'none' });
wx.showLoading({ title: '正在识别内容!', icon: 'none' });
getBOcr(imageUrl).then(ocrRes => {
console.log(ocrRes)
wx.hideLoading()
wx.showToast({ title: '识别完成!', icon: 'none' })
this.setFormData(ocrRes, mode)
}).catch(err => {
wx.hideLoading()
})
} else {
wx.showToast({ title: '上传成功,正在识别内容!', icon: 'none' });
wx.showLoading({ title: '正在识别内容!', icon: 'none' });
getOcr(imageUrl).then(ocrRes => {
console.log(ocrRes)
wx.hideLoading()
wx.showToast({ title: '识别完成!', icon: 'none' })
this.setFormData(ocrRes, mode)
}).catch(err => {
wx.hideLoading()
})
}
})