uniapp中使用wx-open-launch-weapp开放标签,功能可实现,但是无法监测到事件?

发布于 5 年前作者 guiying8913473 次浏览最后编辑 5 年前来自 issues

且之前说是可以监测到launch事件,但是最近什么都没改,莫名其妙不可以了,附代码如上:

_this.wxOpenTags =

`<wx-open-launch-weapp

id="launch-wxapp"

username="gh_8f2c9fdbdecd"

appid="your-appid"

extinfo="your-extinfo"

path="pages/index/index?scene=9d05cb95da"

@launch="onLaunch"

@error="onError"

@ready="onReady"

.btn-open-weapp{ display: inline-block; width: 260px; height: 300px; border-radius: 10px; background-image: url(`+_this.image+`); background-size: 100% 100%; text-align: center; margin: 0 auto; outline:none; border:none; }`;
_this.show();
_this.$forceUpdate();

可正常显示,并实现跳转小程序功能,但是在methods中对@launch="onLaunch"

@error="onError"

@ready="onReady"事件的监听不起作用

1 回复