检查 wx.config() 的 jsApiList 和 openTagList 配置项,其中 jsApiList 有帖子称即使不需要用到,也要随意指定一个。
wx-open-launch-app 报错e.detail 打印出来是空对象?急 急 急 !1、已核对微信公众号AppID:wxef25f758e91d3bac 正常! 2、已核对微信开放平台移动应用AppID:wx26c05d5d5814393f 正常! 3、已核对微信开放平台-->公众号绑定:正常! 4、已核对微信公众号JS接口安全域名及业务域名,授权域名,白名单:正常! 5、已核对微信公众号以及微信开放平台主体信息:正常同一主体! 6、 {errMsg: "config:ok”}--》wx.config配置项: 正常! 7、已核对wx-open-launch-app弹出显示按钮:正常! 8、wx.checkJsApi-->{"checkResult":{"wx-open-launch-app":false},"errMsg":"checkJsApi:ok"}:false未知! 9、已用收藏连接跳转方式:无效;通过生成连接二维码,扫码打开:无效! 10、wx-open-launch-app显示按钮点击:报错如下; <wx-open-launch-app class="launch-button" id="launch-btn" appid="wxef25f758e91d3bac" :extinfo="app.url" @launch="onWxLaunch" @error="onWxError" @ready='onWxReady' > <script type="text/wxtag-template"> <style> .btn{ width: 320px; background: #EE6C41; border:0; color: #fff; text-align: center; height: 50px; font-size:18px; font-weight:600; line-height: 50px; border-radius:20px; outline:none; } </style> <button class="btn">APP内查看</button> </script> </wx-open-launch-app> onWxError报错: {type: "error", timeStamp: 5863.000000012107, detail: {}, target: {id: "", offsetLeft: 0, offsetTop: 0, dataset: {}}, currentTarget: { id: "launch-btn", offsetLeft: 40, offsetTop: 25, dataset: {}}, touches: [], changedTouches: [], preventDefault: preventDefault(), stopPropagation: stopPropagation(), mp: {@warning: "mp is deprecated", type: "error", timeStamp: 5863.000000012107, detail: (Circular Object), target: (Circular Object), currentTarget: (Circular Object), touches: (Circular Array), changedTouches: (Circular Array), preventDefault: preventDefault(), stopPropagation: stopPropagation()}, _processed: true} [图片][图片][图片] 连接:https://www.kokoni.ltd/home/#/pages/share/index?id=5
2022-12-02没有大佬解惑吗?
请问下 data-miniprogram-servicetype 是什么意思?微信图文中,提供了「文字」、「图片」、「小程序卡片」三种形式来唤起小程序。 细看之下,发现其中有一个 data-miniprogram-servicetype 属性,一个是「空字符串」,一个是「0」。 <a data-miniprogram-appid="wxc0e8fba930df8406" data-miniprogram-path="pages/home/home" data-miniprogram-nickname="主题菌" href="" data-miniprogram-type="text" data-miniprogram-servicetype="" _href="" >点击跳转至小程序</a> <mp-miniprogram data-miniprogram-appid="wxc0e8fba930df8406" data-miniprogram-path="pages/home/home" data-miniprogram-nickname="主题菌" data-miniprogram-avatar="http://mmbiz.qpic.cn/mmbiz_png/jkLkl2MMHs6L9HUWFhsZUdUSMibawPX3MbRGO0icZJtMngKdo7wib52KlWW6W92s2Krwnqbric3SPe8BS4surX5FRQ/640?wx_fmt=png&wxfrom=200" data-miniprogram-title="主题菌" data-miniprogram-imageurl="http://mmbiz.qpic.cn/mmbiz_jpg/Tf57CQjDpibkJpGrO9Yljmwl7f5pnIsBqW5H5WgkODBibjjq1P2hbyb4ctYVsLLmZeuSvsCqkSLzMdTEMjw1YOeQ/0?wx_fmt=jpeg" data-miniprogram-type="card" data-miniprogram-servicetype="0" class="" ></mp-miniprogram> 想了解下 data-miniprogram-servicetype 表示的具体意思,服务类型??? 谢谢~
2022-09-22应该是坐标系选错了,wx.getLocation 返回的是 wgs84 坐标系,而 wx.chooseLocation 的经纬度参数是指 gcj02 坐标系,那肯定会有偏差啊。
wx.chooseLocation中显示的不是我传入的位置?为什么我使用wx.getLocation获取我当前的位置传入wx.chooseLocation中显示的不是我当前的位置,基础库没问题。 wx.getLocation({ type: 'wgs84', success(getLocationRes) { let latitude = getLocationRes.latitude; let longitude = getLocationRes.longitude; // 打开地图选择位置 wx.chooseLocation({ latitude : latitude, longitude : longitude, success(chooseLocationRes){ console.info("选择结果:"+JSON.stringify(chooseLocationRes)); } }) })
2022-04-28在小程序里,rpx 的横向宽度总是对应 750rpx,而 px 在 iPhone 6 的横向宽度为 375px,因此在 iPhone 6 机型上(即常说的 750 设计稿就是参考此机型的),px 表现出来的是 rpx 的两倍,即 1px = 2rpx。
相同机型iphone6模拟导入外部样式时px和rpx大小不同?微信小程序引入外部样式时, @import "../../styles/common.wxss" common.wxss中 view{ color:aqua; font-size: 80px; } 用80px与80rpx再iphone6上模拟的大小不一样是为什么
2022-03-01