- 项目迁移部署环境后调不起微信用户收货地址(editAddress),有哪些原因会导致出现这种情况?
wx.config({ appId: "<?php echo $addressData['appId'];?>", timestamp: <?php echo $addressData['timestamp'];?>, nonceStr: "<?php echo $addressData['nonceStr'];?>", signature: "<?php echo $addressData['signature'];?>", jsApiList: [ 'checkJsApi', 'openAddress', 'closeWindow' ] }); wx.ready(function () { wx.checkJsApi({ jsApiList: [ 'openAddress', ], // 需要检测的JS接口列表,所有JS接口列表见附录2, success: function (res) { // 以键值对的形式返回,可用的api值true,不可用为false // alert('你的微信版本低,请升级再参与..'); } }); }); wx.openAddress({ trigger: function (res) { //alert('用户开始拉出地址'); }, success: function (res) { //alert('用户成功拉出地址'); //alert(JSON.stringify(res)); if (res.errMsg == 'openAddress:ok') { var username = res.userName; var provice = res.provinceName; var city = res.cityName; var counties = res.countryName; var detail = res.detailInfo; var phone = res.telNumber; var html = '<p>收货人 :<span>' + username + '</span></p><p>联系电话:<span>' + phone + '</span></p><p>地区信息:<span>' + provice + ' ' + city + ' ' + counties + '</span></p><p>详细地址:<span>' + detail + '</span></p><span class="goto">›</span>'; $(".addr").html(html); $("#pay").show(); } }, cancel: function (res) { //alert('用户取消拉出地址'); }, fail: function (res) { //alert(JSON.stringify(res)); } });
2022-12-16 - H5打开公众号的action有几种?
H5打开公众号的action有几种? https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=MzI2********5OA==#wechat_redirect ,这个方式里面的action取值是固定“home",还是还有其它一些选项?
2022-12-16