File: /www/wwwroot/www.baofufacai.com/wx.html
<!doctype html><html lang="zh-cn"><head><meta charset="UTF-8"/><br><br><br>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<div id="app">
<div id="launch-btn" username="gh_86fabe849f95" path="pages/index/index.html">
<div>
<a href="https://t.tulcn.cn/cLDbGq" target="_blank"> <button class="btn" style=" height: 50px;
width: 280px;
background: #040367;
color: #fff;
border: 0px;
font-size: 20px;
border-radius: 10px;
margin: 0 auto;">点击弹出小程序加微信</button></a>
</div>
</div>
</div>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script type="text/javascript">
let url = window.location.href;
//如果url中包含code,说明授权成功,开始注册微信config
if(url.includes(code)) {
//通过接口拿到appId,nonceStr,signature,timestamp
wx.config({
debug: false,
appId,
timestamp,
nonceStr,
signature,
jsApiList: ['chooseImage', 'previewImage'], //必写,否则不显示
openTagList: ['wx-open-launch-weapp']//必写,否则不显示
});
} else {
// window.location.href = " "
}
</script>