|
@@ -272,6 +272,7 @@
|
|
|
|
|
|
this.report.latitude = parseFloat(res.latitude);
|
|
|
this.report.longitude = parseFloat(res.longitude);
|
|
|
+ mui.toast("经纬度已经获取,正在转换地址...");
|
|
|
|
|
|
//获取定位地址
|
|
|
this.getPositionByLonLats()
|
|
@@ -290,6 +291,7 @@
|
|
|
let geocoder = new AMap.Geocoder({});
|
|
|
geocoder.getAddress(lnglatXY, function(status, result) {
|
|
|
console.log(lnglatXY);
|
|
|
+ mui.toast("定位成功!");
|
|
|
console.log(status, result);
|
|
|
if (status === 'complete' && result.info === 'OK') {
|
|
|
var address = result.regeocode.formattedAddress;
|
|
@@ -432,6 +434,11 @@
|
|
|
this.send = true;
|
|
|
this.isLoading = false;
|
|
|
|
|
|
+ if(this.student.url&&this.student.url!='#'&&this.student.url!=''){
|
|
|
+ setTimeout(()=>{
|
|
|
+ window.location=this.student.url;
|
|
|
+ }, 2000);
|
|
|
+ }
|
|
|
}).catch(error => {
|
|
|
this.isLoading = false;
|
|
|
mui.toast(error);
|