推送修复
This commit is contained in:
parent
eac42fd42c
commit
5073bdd82e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user