tianyi 3 days ago
parent
commit
a528ed32a0
  1. 5
      App.vue

5
App.vue

@ -74,8 +74,7 @@
// //
// #ifdef APP-PLUS // #ifdef APP-PLUS
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) { plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
console.log(widgetInfo.version)
console.log(widgetInfo.name)
// uni.request({ // uni.request({
// url: '', // url: '',
// data: { // data: {
@ -138,7 +137,7 @@
plus.runtime.setBadgeNumber(0); plus.runtime.setBadgeNumber(0);
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)
if(result.notificationEventType == 'notificationArrived'){ if(result.notificationEventType == 'notificationArrived'){
if (result.content.includes('订单出餐已超时')) { if (result.content.includes('订单出餐已超时')) {
this.onPlayAudio(2) this.onPlayAudio(2)

Loading…
Cancel
Save