问题修复

This commit is contained in:
2025-11-27 19:01:45 +08:00
parent 3bb09ef0b1
commit fd55c815d3
11 changed files with 83 additions and 42 deletions

View File

@@ -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>

View File

@@ -1,11 +1,10 @@
export const tableStatus = {
unbound: { label: "未绑定", type: "#909090" },
// unbound: { label: "未绑定", type: "#909090" },
settled: { label: "待清台", type: "#FAAD14" },
ordering: { label: "点餐中", type: "#FF4D4F" },
unsettled: { label: "未结账", type: "#DD3F41" },
cleaning: { label: "清理中", type: "#909090" },
cleaning: { label: "清理中", type: "#909090" },
idle: { label: "空闲", type: "#3F9EFF" },
closed: { label: "关台", type: "#DDDDDD" },
subscribe: { label: "预定", type: "#52C41A" },
};

View File

@@ -293,9 +293,15 @@ const vdata = reactive({
loginType: "merchant",
},
});
vdata.formData.merchantName = "19107220837";
vdata.formData.username = "19111112222";
vdata.formData.pwd = "123456";
vdata.formData.code = "666666";
// #ifdef H5
vdata.formData.username = "xpc";
vdata.formData.pwd = "123";
// vdata.formData.merchantName = "19191703856";
// vdata.formData.username = "18888888888";
// vdata.formData.pwd = "123456";
// vdata.formData.code = "666666";
// #endif
// #ifdef MP-WEIXIN
// vdata.formData.username = '15699991111'
@@ -305,14 +311,9 @@ vdata.formData.pwd = "123";
function accountTypeChange(e) {
// #ifdef H5
if (e == 1) {
vdata.formData.merchantName = "19191703856";
vdata.formData.username = "18888888888";
vdata.formData.pwd = "123456";
vdata.formData.code = "666666";
} else {
}
// #endif
}
const getCode = async () => {