为何“静态网站 H5 跳小程序”无法成功打开小程序?
https://developers.weixin.qq.com/miniprogram/dev/wxcloud/guide/staticstorage/jump-miniprogram.html 依据此文档,制作的一个小程序无法正常打开小程序。 <html>
<head>
<meta charset="utf-8">
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
</head>
<body>
<script>
wx.config({
debug: false, // 调试时可开启
appId: 'wxd947200f82267e58',
timestamp: 1609430400, // 必填,填任意数字即可
nonceStr: 'nonceStr', // 必填,填任意非空字符串即可,随便填写的
signature: 'signature', // 必填,填任意非空字符串即可,随便填写的
jsApiList: ["openTagList","onMenushareTimeline","onMenuShareAppMessage","onShareQQ","onMenuShareQZone","hideOptionMenu"],
openTagList:['wx-open-launch-weapp'], // 填入打开小程序的开放标签名
});
</script>
<h1>Hello World</h1>
<!-- 跳转小程序的开放标签。文档 https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html -->
<wx-open-launch-weapp id="weapp" weappid="wxd947200f82267e58" path="pages/index/index">
<template>
<button style="width: 200px; height: 45px; line-height: 45px; text-align: center; font-size: 17px; border-radius: 22.5px; color:cornflowerblue;">打开小程序</button>
</template>
</wx-open-launch-weapp>
</body>
</html>