<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script>
let url = encodeURIComponent('https://qcjbdemo.ugetme.cn/ceshi.html');
console.log(url)
document.write('<script src="https://open.esurl.cn/jsapi/wxconfig/135?http_referer=' + url + '"><\/script>');
document.write('<script src="https://files.esurl.cn/public/js/eruda.min.js"><\/script>');
document.write('<script>eruda.init();<\/script>');
</script>
</head>
<body>
<div class="banner2">
<wx-open-launch-weapp id="launch-btn" username="gh_7b088044c6c6" path="/pages/market/activity/index?activityId=1102587782&activityType=10">
<template>
<button class="btns">打开小程序<button>
</template>
</wx-open-launch-weapp>
</div>
</body>
<script>
wx.config({
debug: true,
appId: js_appid,
timestamp: timestamp,
nonceStr: nonceStr,
signature: signature,
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'hideOptionMenu'],
openTagList: ['wx-open-launch-weapp']
});
</script>
</html>
你好,请参考下知识库:https://developers.weixin.qq.com/community/develop/doc/000ce0403bc9d0ea1a0a67f415b409?highLine=sdk