Explorar o código

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
详情修改

1004749546@qq.com %!s(int64=4) %!d(string=hai) anos
pai
achega
1c4f77ebd4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pages/store/storeDetail.vue

+ 2 - 2
pages/store/storeDetail.vue

@@ -85,8 +85,8 @@
 			uni.getLocation({
 				type: 'wgs84', // 默认wgs84
 				success: function(res) {
-					_this.currentPosition.lat = res.latitude.toFixed(8);
-					_this.currentPosition.lng = res.longitude.toFixed(8);
+					_this.currentPosition.lat = res.latitude;
+					_this.currentPosition.lng = res.longitude;
 					// 查询门店信息
 					if (option.id) {
 						_this.getStoreDetail(option.id)