|
...
|
...
|
@@ -1096,9 +1096,11 @@ Page({ |
|
|
|
"{桌位}": resultString,
|
|
|
|
"{客人姓名}": data.detail.rname ? data.detail.rname : '',
|
|
|
|
"{称呼}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '',
|
|
|
|
"{客人姓氏}": data.detail.rname ? data.detail.rname : '',
|
|
|
|
"{性别}": data.detail.sex == 1 ? '先生' : data.detail.sex == 2 ? '女士' : data.detail.sex == 3 ? '公司' : data.detail.sex == 4 ? '贵宾' : '',
|
|
|
|
"{用餐类型}": data.detail.reserve_type || '',
|
|
|
|
};
|
|
|
|
let newStr = content.replace(/{店铺名}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) {
|
|
|
|
let newStr = content.replace(/{店铺名}|{客人姓氏}|{性别}|{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名\+称呼}|{客人姓名}|{称呼}|{用餐类型}/g, function (matched) {
|
|
|
|
return replacements[matched];
|
|
|
|
});
|
|
|
|
console.log('newStr---', newStr);
|
...
|
...
|
|