诊断信息录入增加open——id
This commit is contained in:
parent
71ffeb1912
commit
4491ed5548
@ -323,7 +323,7 @@ Page({
|
||||
|
||||
handleUpload(e) {
|
||||
uploadFileToOSS().then((imageUrls) => {
|
||||
wx.showToast({ title: '上传成功,正在识别内容!', icon: 'none' });
|
||||
wx.showLoading({ title: '正在识别内容!', icon: 'none' });
|
||||
this.setData({
|
||||
imageFile: imageUrls
|
||||
})
|
||||
|
||||
@ -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()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user