tianyi 2 weeks ago
parent
commit
2dd7653506
  1. 6
      pages/index/index.vue

6
pages/index/index.vue

@ -1339,7 +1339,6 @@
this.checkYongjin = false this.checkYongjin = false
this.searchForm.order = '' this.searchForm.order = ''
} }
console.log("shuaxin")
this.searchForm.pageNum = 1 this.searchForm.pageNum = 1
this.getDelivery(); this.getDelivery();
}, },
@ -1350,16 +1349,13 @@
type: 'gcj02', // type: 'gcj02', //
isHighAccuracy:true, isHighAccuracy:true,
success: (res) => { success: (res) => {
console.log('位置', res)
that.latitude = res.latitude; that.latitude = res.latitude;
that.longitude = res.longitude; that.longitude = res.longitude;
that.tui.request('/worker/admin/editLocation', "POST", {workerId:id,geolocation:that.latitude + ',' + that.longitude}, false, false,true).then((res) => { that.tui.request('/worker/admin/editLocation', "POST", {workerId:id,geolocation:that.latitude + ',' + that.longitude}, false, false,true).then((res) => {
}).catch((res) => {}); }).catch((res) => {});
}, },
fail: (err) => { fail: (err) => {}
console.log('获取位置失败', err);
}
}); });
}, },
checkTab1(type) { checkTab1(type) {

Loading…
Cancel
Save