|
|
@@ -8,13 +8,13 @@ const wx = Vue.prototype.wx;
|
|
|
// 腾讯位置服务 key
|
|
|
const TxMapKey = 'WLCBZ-HRM6L-YOMPV-ME62B-AQOG6-JUBW6';
|
|
|
// 当前设备
|
|
|
-const isDevice = !localStorage.getItem('isDevice');
|
|
|
-console.log(isDevice);
|
|
|
+// const isDevice = localStorage.getItem('isDevice');
|
|
|
+// console.log(isDevice);
|
|
|
|
|
|
/**
|
|
|
* 获取当前定位 调用之前确保当前页面已经授权(getTicketFun)
|
|
|
* */
|
|
|
-export function getPosition() {
|
|
|
+export function getPosition(isDevice) {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
toastLoading(0, '定位中...', true);
|
|
|
// PC端没有定位权限依然可以访问
|