- 微信开放标签wx-open-launch-weapp在iframe框架页面不显示?
在H5页面中,父页面使用了iframe框架嵌套子页面,子页面的wx-open-launch-weapp标签没有显示出来;如果单独访问子页面是可以显示的 // 父页面代码 <div> <iframe src="./xxx.html" frameborder="0" style="width: 100%; height: 100vh;"></iframe> </div> // 子页面代码 <div id="wechat-web-container" class="hidden"> <p>点击以下按钮打开“小程序名字”</p> <!-- username:必填,所需跳转的小程序原始id,即小程序对应的以gh_开头的id; path:非必填,所需跳转的小程序内页面路径及参数(默认小程序的初始页面【即首页】) --> <wx-open-launch-weapp id="launch-btn" username="gh_XXX" path="/pages/XXX"> <!-- 第一种: 不适用于Vue.js开发的项目,template标签会冲突 --> <template> <style> .open-btn { display: block; margin: 0 auto; padding: 8px 24px; width: 200px; height: 45px; border: none; border-radius: 4px; background-color: #07c160; color: #fff; font-size: 18px; text-align: center; } </style> <button class="open-btn">打开小程序</button> </template> <!-- 第二种:几乎适用于所有前端框架开发的项目 --> <!-- <script type="text/wxtag-template"> <style> .open-btn { display: block; margin: 0 auto; padding: 8px 24px; width: 200px; height: 45px; border: none; border-radius: 4px; background-color: #07c160; color: #fff; font-size: 18px; text-align: center; } </style> <button class="open-btn">打开小程序</button> </script> --> </wx-open-launch-weapp> </div> [图片][图片]
2024-03-12 - 为啥小游戏的小程序管理后台中【功能】【客服】模块找不到【微信客服】?
框架类型:小游戏、API名称:wx.openCustomerServiceChat 在小游戏的小程序管理后台中【功能】【客服】模块找不到【微信客服】来填写同一主体的微信客服对应的企业ID,完成不了微信客服和企业ID的绑定😔;导致在小游戏中调用wx.openCustomerServiceChat打开微信客服时,一直提示corpId is not bound to current miniprogram😭 [图片] [图片] [图片]
2024-03-04