uni.chooseLocation({
					latitude: this.lat || '',  //坐标
					longitude: this.lng || '', //坐标
					success: (res) => {
						console.log(res)
						this.lat = res.latitude;
						this.lng = res.longitude;
						this.location = res.name;
					},
					fail: function(err) {
						console.log('取消按钮', err)
					}
				});

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐