admin 发表于 2024-8-12 16:01:39

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

//一键获取微信地址
                        getAuthAddress() {
                                var that = this;
                                uni.chooseAddress({
                                        success(res) {
                                                console.log(res)
                                                that.realname = res.userName;
                                                that.mobile = res.telNumber;
                                                that.province = res.provinceName;
                                                that.city = res.cityName;
                                                that.district = res.countyName;
                                                that.address = res.detailInfo;
                                        }
                                })
                        }

页: [1]
查看完整版本: 微信小程序一键获取收货地址