From 5073bdd82ef8ff0431b327efcca06b333b58931f Mon Sep 17 00:00:00 2001 From: THK3121 Date: Tue, 29 Aug 2023 16:47:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/oaHome/oaHome.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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