|
|
|
注意事项: - 必须更新微擎系统最新版 (2015年5月19日更新)
- 模板页面必须引入公共的头部和尾部文件
调用方式如下: - {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'}
复制代码
|
|