问题修复
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>
|
||||
|
||||
@@ -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" },
|
||||
};
|
||||
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user