tianyi 4 weeks ago
parent
commit
59c217f939
  1. 33
      App.vue

33
App.vue

@ -108,23 +108,26 @@
let notificationEventType = result.notificationEventType let notificationEventType = result.notificationEventType
let woopId = result.extras && result.extras.dataType === 'woop' && result.extras.value; let woopId = result.extras && result.extras.dataType === 'woop' && result.extras.value;
console.log("通知", result) console.log("通知", result)
if (result.content.includes('订单出餐已超时')) { if(result.notificationEventType == 'notificationArrived'){
this.onPlayAudio(2) if (result.content.includes('订单出餐已超时')) {
} else { this.onPlayAudio(2)
if (result.content.includes('您有一笔新的订单')) { } else {
this.onPlayAudio(4) if (result.content.includes('您有一笔新的订单')) {
} else if (result.content.includes('您有一笔新的到店订单')) { this.onPlayAudio(4)
this.onPlayAudio(3) } else if (result.content.includes('您有一笔新的到店订单')) {
} else if (result.content.includes('您有一笔订单申请退款')) { this.onPlayAudio(3)
this.onPlayAudio(1) } else if (result.content.includes('您有一笔订单申请退款')) {
} this.onPlayAudio(1)
// }
this.globalData.printData.push(JSON.parse(result.android.inAppExtras)) //
// this.globalData.printData.push(JSON.parse(result.android.inAppExtras))
if (!this.globalData.isPrinting) { //
this.processPrintQueue() if (!this.globalData.isPrinting) {
this.processPrintQueue()
}
} }
} }
}); });
jpushModule.isPushStopped(res => { jpushModule.isPushStopped(res => {

Loading…
Cancel
Save