现状:wx.showModel点击不了确定 弹窗消失不了
observers: {
'show': function (show) {
if (show) {
wordList.filter(e => {
if (this.data.content == e.content) {
this.setData({
pron: e.pron,
definition: e.definition
})
myaudio= wx.createInnerAudioContext({
useWebAudioImplement: true
});
myaudio.src = 'https://dict.youdao.com/dictvoice?audio='+e.content+'&type=2'
console.log("read")
myaudio.play();
}else{
this.setData({
show: false
})
wx.showModal({
title: '提示',
content: '对不起,查询不到该词信息',
showCancel: false,
success: function (res) {
if (res.confirm) {
console.log('用户点击确定')
}
}
})
}
})
}
},
},
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。