通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
#### 获取微信共享地址 >[info]weixin-1.1.0.js,JS-SDK支持了 openAddress-收货地址共享接口,替换之前的 WeixinJSBridge 调用方式,新版的共享收货地址无需再调用PHP端代码,直接通过JS-SDK调用 注意事项: 1. 必须更新微擎系统最新版 (2015年5月19日更新) 2. 模板页面必须引入公共的头部和尾部文件 调用方式如下: ``` {template 'common/header'} <script type="text/javascript"> <!-- wx.ready(function () { wx.openAddress({ success : function(result){ //此处获取到地址信息,可做自己的业务操作 alert('收货人姓名' + result.userName); alert('收货人电话' + result.telNumber); alert('邮编' + result.postalCode); alert('国标收货地址第一级地址' + result.provinceName); alert('国标收货地址第二级地址' + result.cityName); alert('国标收货地址第三级地址' + result.countryName); alert('详细收货地址信息' + result.detailInfo); alert('收货地址国家码' + result.nationalCode); ) }); }); --> </script> {template 'common/footer'} ``` 参考资料: https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_8&index=7