且之前说是可以监测到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"事件的监听不起作用
1 个回复
二福
我这边直接是白板 请问解决了吗 小程序或者微信公众号需要配置什么嘛