uniapp中使用wx-open-launch-weapp开放标签,功能可实现,但是无法监测到事件?
发布于 4 年前 作者 guiying89 13153 次浏览 来自 官方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](/user/launch)="onLaunch"

[@error](/user/error)="onError"

[@ready](/user/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](/user/launch)="onLaunch"

[@error](/user/error)="onError"

[@ready](/user/ready)="onReady"事件的监听不起作用

回到顶部