|
|
@@ -7,8 +7,9 @@ import { jsonp } from 'vue-jsonp';
|
|
|
const wx = Vue.prototype.wx;
|
|
|
// 腾讯位置服务 key
|
|
|
const TxMapKey = 'WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6';
|
|
|
-// 是否为移动端
|
|
|
-const isPC = localStorage.getItem('isPC');
|
|
|
+// 当前设备
|
|
|
+const isDevice = !localStorage.getItem('isDevice');
|
|
|
+console.log(isDevice);
|
|
|
|
|
|
/**
|
|
|
* 获取当前定位 调用之前确保当前页面已经授权(getTicketFun)
|
|
|
@@ -29,7 +30,7 @@ export function getPosition() {
|
|
|
localStorage.setItem('lon', TXisBD.lon);
|
|
|
toastLoading().clear();
|
|
|
resolve({ TXisBD: TXisBD, resData: resData });
|
|
|
- } else if (isPC) {
|
|
|
+ } else if (isDevice == 'PC') {
|
|
|
localStorage.setItem('lat', '');
|
|
|
localStorage.setItem('lon', '');
|
|
|
toastLoading().clear();
|