Commit 4f13f8cb authored by xxx's avatar xxx

1

parent a168d6fc
......@@ -346,7 +346,7 @@ export default {
This.reclog((isUserNotAllow?"UserNotAllow,":"")+"打开失败:"+msg,1);
This.$notify({
title: '录音权限未打开,请手动开启!',
type: 'success',
type: 'warning',
duration: 5000
});
});
......@@ -356,7 +356,7 @@ export default {
This.reclog("打开失败:权限请求被忽略,用户主动点击的弹窗",1);
This.$notify({
title: '录音权限未打开,请手动开启!',
type: 'success',
type: 'warning',
duration: 5000
});
};
......
......@@ -139,7 +139,6 @@ export default {
this.setNowTimes();
}, 1000)
this.zongTimer3 = setInterval(() => {
console.log('equipmentName',this.equipmentName);
if(this.equipmentName){
this.getCarLoaction();
}
......@@ -259,13 +258,11 @@ export default {
//获取该车位置并上传到后端
getCarLoaction(){
let that = this;
console.log('进入getCarLoaction()');
if(navigator.geolocation) {
console.log('有navigator.geolocation');
navigator.geolocation.getCurrentPosition(
//locationSuccess 获取成功的话
function(position) {
console.log(position.coords.longitude,position.coords.latitude);
//console.log(position.coords.longitude,position.coords.latitude);
let LoaObj1 = {};
let LoaObj1xy = {};
LoaObj1xy.x = position.coords.longitude;
......@@ -284,6 +281,11 @@ export default {
function(error) {
var errorType = ['您拒绝共享位置信息', '获取不到位置信息', '获取位置信息超时'];
console.log(errorType[error.code - 1]);
that.$notify({
title: errorType[error.code - 1] + '!',
type: 'warning',
duration: 5000
});
}
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment