diff --git a/pages/oaHome/oaHome.vue b/pages/oaHome/oaHome.vue index 0f837d6..3abb4ae 100644 --- a/pages/oaHome/oaHome.vue +++ b/pages/oaHome/oaHome.vue @@ -256,7 +256,7 @@ this.showToask(); // this.initOaHomeDada(); this.getOrderList(); - this.test() + this.noticeFn() }, computed: { @@ -278,14 +278,9 @@ } }, methods: { - test() { - // const audioContext = uni.createInnerAudioContext() - // // // 设置音频文件地址 - // audioContext.src = '/static/mp3/order.mp3' - // audioContext.play() - // console.log("sdsdsd") + // 通知 + noticeFn() { const audioContext = uni.createInnerAudioContext() - // 设置音频文件地址 audioContext.src = '/static/mp3/order.mp3' jpushModule.addNotificationListener(res => { if (res.notificationEventType == 'notificationOpened') return