查看: 777|回复: 0

微信小程序一键获取收货地址

[复制链接]

748

主题

39

回帖

3907

积分

管理员

总舵主

积分
3907
QQ
发表于 2024-8-12 16:01:39 | 显示全部楼层 |阅读模式
  1. //一键获取微信地址
  2.                         getAuthAddress() {
  3.                                 var that = this;
  4.                                 uni.chooseAddress({
  5.                                         success(res) {
  6.                                                 console.log(res)
  7.                                                 that.realname = res.userName;
  8.                                                 that.mobile = res.telNumber;
  9.                                                 that.province = res.provinceName;
  10.                                                 that.city = res.cityName;
  11.                                                 that.district = res.countyName;
  12.                                                 that.address = res.detailInfo;
  13.                                         }
  14.                                 })
  15.                         }
复制代码


道不同,不相为谋!理想要有,万一实现了呢?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:2513533699@qq.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|鲁ICP备19000917号|鲁公网安备37078302000320号

在本版发帖
关注公众号
QQ客服返回顶部