问题修复
This commit is contained in:
@@ -210,10 +210,33 @@ onLoad(async (opt) => {
|
||||
Object.assign(option, opt);
|
||||
console.log(option);
|
||||
});
|
||||
onShow(async() => {
|
||||
onShow(async () => {
|
||||
await getArea();
|
||||
getTable();
|
||||
});
|
||||
|
||||
/**
|
||||
* 扫码上传
|
||||
*/
|
||||
async function saomaDicanCan() {
|
||||
uni.scanCode({
|
||||
success: async (res) => {
|
||||
console.log("条码类型:" + res.scanType);
|
||||
console.log("条码内容:" + res.result);
|
||||
const paramStr = url.split("?")[1];
|
||||
const paramObj = {};
|
||||
paramStr.split("&").forEach((item) => {
|
||||
const [key, value] = item.split("=");
|
||||
paramObj[key] = value;
|
||||
});
|
||||
if (paramObj.tableCode) {
|
||||
go.to("PAGES_CREATE_ORDER", {
|
||||
tableCode: paramObj.tableCode,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user