|
...
|
...
|
@@ -246,7 +246,8 @@ Page({ |
|
|
|
}
|
|
|
|
let yearMonthDay = util.unixtoTime(reserev.ddate, 'YYYY年MM月DD日')
|
|
|
|
let yearMonth = util.unixtoTime(reserev.ddate, 'MM月DD日')
|
|
|
|
let dateStr = util.unixtoTime(reserev.ddate, 'HH点II分')
|
|
|
|
let dateStr = util.unixtoTime(reserev.ddate, 'HH点')
|
|
|
|
let dateStrDivide = util.unixtoTime(reserev.ddate, 'II分')
|
|
|
|
console.log('dateSmart', dateSmart);
|
|
|
|
this.setData({
|
|
|
|
detail: this.formatDatail(reserev, dateSmart),
|
|
...
|
...
|
@@ -274,6 +275,7 @@ Page({ |
|
|
|
yearMonth,
|
|
|
|
dateStr,
|
|
|
|
deskStr,
|
|
|
|
dateStrDivide:dateStrDivide == '00分' ? '' : dateStrDivide,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
console.log('reserev reserev', reserev);
|
|
...
|
...
|
@@ -558,13 +560,15 @@ Page({ |
|
|
|
"{年月日}": data.seller.yearMonthDay,
|
|
|
|
"{月日}": data.seller.yearMonth,
|
|
|
|
"{餐段}": data.seller.soltName,
|
|
|
|
"{就餐时间}": data.seller.dateStr,
|
|
|
|
"{就餐时间}": data.seller.dateStr + data.seller.dateStrDivide,
|
|
|
|
"{包间名}": data.seller.deskStr,
|
|
|
|
"{区域名+包间名}": data.seller.tablesText,
|
|
|
|
"{经理名字}": data.staffinfo.name,
|
|
|
|
"{客人姓名}": data.detail.rname + str,
|
|
|
|
"{预订日期}": data.seller.yearMonthDay,
|
|
|
|
"{桌位}": data.seller.deskStr,
|
|
|
|
};
|
|
|
|
let newStr = voice_info.replace(/{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名}/g, function (matched) {
|
|
|
|
let newStr = voice_info.replace(/{预订日期}|{桌位}|{年月日}|{月日}|{餐段}|{就餐时间}|{包间名}|{区域名\+包间名}|{经理名字}|{客人姓名}/g, function (matched) {
|
|
|
|
return replacements[matched];
|
|
|
|
});
|
|
|
|
console.log('newStr', newStr);
|
...
|
...
|
|