uni.chooseLocation地址列表空白问题

uni.chooseLocation地址列表空白问题_第1张图片

         changeRegion() {
				let that = this
				uni.getLocation({
					type: 'wgs84',
					success: function(res) {
						that.lat = res.latitude
						that.lng = res.longitude
					},

				});
				uni.chooseLocation({
					latitude: that.lat,
					longitude: that.lng,
					success: res => {
						console.log('位置名称:' + res.name);
						console.log('详细地址:' + res.address);
						console.log('纬度:' + res.latitude);
						console.log('经度:' + res.longitude);
					},
				});
			},

             

你可能感兴趣的:(javascript,前端,vue.js)