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

3
App.vue

@ -108,6 +108,7 @@
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.notificationEventType == 'notificationArrived'){
if (result.content.includes('订单出餐已超时')) { if (result.content.includes('订单出餐已超时')) {
this.onPlayAudio(2) this.onPlayAudio(2)
} else { } else {
@ -125,6 +126,8 @@
this.processPrintQueue() this.processPrintQueue()
} }
} }
}
}); });
jpushModule.isPushStopped(res => { jpushModule.isPushStopped(res => {

Loading…
Cancel
Save