X***@163.com
X***@163.com
  • 发布:2021-05-19 16:20
  • 更新:2022-04-22 09:51
  • 阅读:882

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

分类:uni-app

且之前说是可以监测到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"

<script type="text/wxtag-template">
<style>
.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;
}
</style>
<button class="btn-open-weapp"></button>
</script>
</wx-open-launch-weapp>`;
_this.show();
_this.$forceUpdate();

可正常显示,并实现跳转小程序功能,但是在methods中对@launch="onLaunch"
@error="onError"
@ready="onReady"事件的监听不起作用

2021-05-19 16:20 负责人:无 分享
已邀请:
二福

二福

我这边直接是白板 请问解决了吗 小程序或者微信公众号需要配置什么嘛

该问题目前已经被锁定, 无法添加新回复