Commit 4f13f8cb authored by xxx's avatar xxx

1

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