早睡早起,方能养生
Sleep early rise early, way to keep healthy

h5跳转小程序,不显示跳转按钮wx-open-launch-weapp

super
2022-12-18 23:29
views 2226

排查:

 

1)wx.config AppID是否使用的是已经认证过的主体的(非个人)

 

2)JSAPI列表需要有API

 

wx.config({
	debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印
	appId: 'wx123456789abcdefg',
	timestamp: 0,
	nonceStr: 'nonceStr',
	signature: 'signature',
	jsApiList: ['chooseImage', 'previewImage'],
	openTagList:['wx-open-launch-weapp'],
})

 

3)打开wx.config  打开debug,是否提示ok

 

如果不是ok,那么表示AppID多少有点问题

 

4)是否是服务号

 

5)H5页面所在服务器是否在IP白名单中(若是静态资源托管无需配置)

 

6)引入的微信版本是否是1.6.0

 

<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>

 

7)必须是真机调试

 

官方文档:https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/staticstorage/jump-miniprogram.html

 

排错参考:https://developers.weixin.qq.com/community/develop/article/doc/0006ac9d35cc38455deb68ee350813?page=1#comment-list



分享
0 条讨论
top