Showing
1 changed file
with
3 additions
and
1 deletions
| @@ -21,8 +21,9 @@ Page({ | @@ -21,8 +21,9 @@ Page({ | ||
| 21 | chat.send('人工服务') | 21 | chat.send('人工服务') |
| 22 | setTimeout(()=>{ | 22 | setTimeout(()=>{ |
| 23 | let msg=this.getMsg() | 23 | let msg=this.getMsg() |
| 24 | + console.log('chat.msg',msg) | ||
| 24 | if(msg){ | 25 | if(msg){ |
| 25 | - chat.send() | 26 | + chat.send(msg) |
| 26 | } | 27 | } |
| 27 | },300) | 28 | },300) |
| 28 | }, | 29 | }, |
| @@ -57,6 +58,7 @@ Page({ | @@ -57,6 +58,7 @@ Page({ | ||
| 57 | getMsg(){ | 58 | getMsg(){ |
| 58 | switch (this.options.act){ | 59 | switch (this.options.act){ |
| 59 | //act: "reserve", seller: "陕西风味面馆", date: "2020-10-22", section: "night", room: "6人间" | 60 | //act: "reserve", seller: "陕西风味面馆", date: "2020-10-22", section: "night", room: "6人间" |
| 61 | + //act=reserve&seller=陕西风味面馆&date=2020-10-23§ion=noon&room=6人间 | ||
| 60 | case 'reserve'://预订的时候 | 62 | case 'reserve'://预订的时候 |
| 61 | let dur={'morning':'早餐','noon':'午餐','night':'晚餐','midnight':'夜宵'} | 63 | let dur={'morning':'早餐','noon':'午餐','night':'晚餐','midnight':'夜宵'} |
| 62 | return `预订:${this.options.seller}/${this.options.date} ${dur[this.options.section]}/${this.options.room}` | 64 | return `预订:${this.options.seller}/${this.options.date} ${dur[this.options.section]}/${this.options.room}` |
-
Please register or login to post a comment