|
@@ -217,8 +217,10 @@
|
|
|
this.isLoading = true;
|
|
|
WxJsApi.getLocation().then((res) => {
|
|
|
this.isLoading = false;
|
|
|
- this.tjForm.latitude = res.latitude;
|
|
|
- this.tjForm.longitude = res.longitude;
|
|
|
+ this.tjForm.latitude = parseFloat(res.latitude);
|
|
|
+ this.tjForm.longitude = parseFloat(res.longitude);
|
|
|
+
|
|
|
+ console.log(this.tjForm)
|
|
|
|
|
|
//获取定位地址
|
|
|
this.getPositionByLonLats()
|