[图片] [图片]
微信浏览器打开h5页面使用wx-open-launch-weapp没有按钮显示是什么问题?1、之前已经上线过,页面可以显示按钮,也可以正常跳转,但是突然用户反应没有按钮了,所有手机都不出现按钮,打印会走到wx.ready里边 2、去掉<script type="text/wxtag-template">之后页面按钮又出现了,但是点击没反应。 3、公众号的白名单配置和域名配置检查过没有问题,三个链接下都放置了txt文件。 4、代码不去掉<script>会报warning,去掉之后会报另一个%%相关的warning,一般来说,warning不会影响使用啊。 [图片] 4、目前找不到按钮突然不显示的原因,各位大佬帮忙看看 <wx-open-launch-weapp id="launch-btn" username={`gh_13bc2`} //username 是要跳往的小程序的原始id gh开头的 path={`pages/index/index.html?agent=${props.query.agentId}`} // 跳转到小程序的路径 一定要在后面加.html 这是一个坑 style={{ marginLeft: "auto", width: "100px", height: "30px", lineHeight: "30px", textAlign: "center", color: "#eee", borderRadius: "15px", }} > {/* <script type="text/wxtag-template"> */} <div style={{ boxSizing: "border-box", padding: "4px", fontSize: "13px", width: "100px", height: "30px", backgroundColor: "#4da6ff", lineHeight: "23px", textAlign: "center", color: "#eee", borderRadius: "30px", }} > 小程序打开 </div> {/* </script> */} </wx-open-launch-weapp> wx.config({ debug: false, // 调试时可开启 appId: "wx0265feb6", // <!-- replace --> timestamp: timestamp, // 必填,填任意数字即可 nonceStr: "d3971f5dfaef", // 必填,填任意非空字符串即可 signature: signature, // 必填,填任意非空字符串即可 jsApiList: ['previewImage','chooseImage'],// 必填,随意一个接口即可 openTagList: ["wx-open-launch-weapp"], // 填入打开小程序的开放标签名 });
2022-08-18遇到了同样的问题,请问你们是怎么解决的呀?
同一开放平台下APP分享小程序不成功。提示:由于应用和小程序未绑定在同一微信开放平台账号?1、小程序: APPID:wxc99f1138ff87a3ed 帐号类型:小程序 原始ID gh_c9031bb42fea 资质认证 资质审核通过 2、APP: AppID:wxee5513c09dfeba2c 3、开放平台已认证 相关截图如下: 小程序 [图片] APP [图片] 开发者资质已认证; [图片] 日志已上传,微信号:jianweicool 时间:2020-11-04 10:53
2021-12-20你好,请问最后是怎么解决的啊?
ts在预览或者真机调试报错- 当前 Bug 的表现(可附上截图) [图片] 工具栏和日志中报错 0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'tsc' ] 2 info using npm@5.6.0 3 info using node@v10.0.0 4 verbose run-script [ 'pretsc', 'tsc', 'posttsc' ] 5 info lifecycle demo@1.0.1~pretsc: demo@1.0.1 6 info lifecycle demo@1.0.1~tsc: demo@1.0.1 7 verbose lifecycle demo@1.0.1~tsc: unsafe-perm in lifecycle true 8 verbose lifecycle demo@1.0.1~tsc: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/zhans.dong/data/workspace4/iCard/node_modules/.bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin 9 verbose lifecycle demo@1.0.1~tsc: CWD: /Users/zhans.dong/data/workspace4/iCard 10 silly lifecycle demo@1.0.1~tsc: Args: [ '-c', 'node ./node_modules/typescript/lib/tsc.js' ] 11 silly lifecycle demo@1.0.1~tsc: Returned: code: 2 signal: null 12 info lifecycle demo@1.0.1~tsc: Failed to exec tsc script 13 verbose stack Error: demo@1.0.1 tsc: `node ./node_modules/typescript/lib/tsc.js` 13 verbose stack Exit status 2 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16) 13 verbose stack at EventEmitter.emit (events.js:182:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:182:13) 13 verbose stack at maybeClose (internal/child_process.js:947:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:236:5) 14 verbose pkgid demo@1.0.1 15 verbose cwd /Users/zhans.dong/data/workspace4/iCard 16 verbose Darwin 18.6.0 17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "tsc" 18 verbose node v10.0.0 19 verbose npm v5.6.0 20 error code ELIFECYCLE 21 error errno 2 22 error demo@1.0.1 tsc: `node ./node_modules/typescript/lib/tsc.js` 22 error Exit status 2 23 error Failed at the demo@1.0.1 tsc script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 2, true ] - 预期表现 没有报错,出现正常二维码 - 复现路径 - 提供一个最简复现 Demo 新建自动生成的demo就有该错误。
2019-09-09你好,请问问题解决了吗?我也是用typescript开发小程序,请问你知道怎么正确引入插件吗?
小程序的typescript项目如何引入第三方库(非标准npm库)如题
2019-09-09