|
...
|
...
|
@@ -21,8 +21,9 @@ Page({ |
|
|
|
chat.send('人工服务')
|
|
|
|
setTimeout(()=>{
|
|
|
|
let msg=this.getMsg()
|
|
|
|
console.log('chat.msg',msg)
|
|
|
|
if(msg){
|
|
|
|
chat.send()
|
|
|
|
chat.send(msg)
|
|
|
|
}
|
|
|
|
},300)
|
|
|
|
},
|
|
...
|
...
|
@@ -57,6 +58,7 @@ Page({ |
|
|
|
getMsg(){
|
|
|
|
switch (this.options.act){
|
|
|
|
//act: "reserve", seller: "陕西风味面馆", date: "2020-10-22", section: "night", room: "6人间"
|
|
|
|
//act=reserve&seller=陕西风味面馆&date=2020-10-23§ion=noon&room=6人间
|
|
|
|
case 'reserve'://预订的时候
|
|
|
|
let dur={'morning':'早餐','noon':'午餐','night':'晚餐','midnight':'夜宵'}
|
|
|
|
return `预订:${this.options.seller}/${this.options.date} ${dur[this.options.section]}/${this.options.room}`
|
...
|
...
|
|