Commit 9ab5f6e0 by LJM

add

parent 80ed84f1
Showing with 15 additions and 12 deletions
......@@ -563,20 +563,23 @@
} else {
uni.showToast({
title: '未识别到匹配的内容',
icon: 'error'
icon: 'none'
});
}
//匹配到内容才开始调接口
if (!result) {
this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: result, code_type: code_type }, true).then(res => {
if (res.code === 0) {
this.searchParams.goods_name = res.data.sn; //赋值检索出来的型号
this.getData();
} else {
uni.showToast({
title: '识别错误',
icon: 'error'
});
}
});
}
this.request(API.identifyQrCodeNumAndSn, 'POST', { code_str: result, code_type: code_type }, true).then(res => {
if (res.code === 0) {
this.searchParams.goods_name = res.data.sn; //赋值检索出来的型号
this.getData();
} else {
uni.showToast({
title: '识别错误',
icon: 'error'
});
}
});
},
/**
* 获取列表数据 支持分页
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment