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