This commit is contained in:
hayu 2025-09-18 11:45:55 +08:00
parent d1831e7428
commit a94ddc0a70
1 changed files with 8 additions and 0 deletions

View File

@ -416,6 +416,10 @@ export default {
// //
async onHandleConfirm() { async onHandleConfirm() {
console.log(this.codeData.maId) console.log(this.codeData.maId)
uni.showLoading({
title: '提交中...',
mask: true //
});
if (this.codeData.maId == undefined) { if (this.codeData.maId == undefined) {
uni.showToast({ uni.showToast({
title: '请先识别编码!', title: '请先识别编码!',
@ -444,6 +448,8 @@ export default {
method: 'post', method: 'post',
data: param, data: param,
success: (res) => { success: (res) => {
// 3. Loading
uni.hideLoading();
if (!res.data.code) { if (!res.data.code) {
res = JSON.parse(decryptWithSM4(res.data)) res = JSON.parse(decryptWithSM4(res.data))
} else { } else {
@ -463,6 +469,8 @@ export default {
} }
}, },
fail: (err) => { fail: (err) => {
// 3. Loading
uni.hideLoading();
console.log(err) console.log(err)
}, },
}) })