|
@@ -7,10 +7,11 @@ function mount() {
|
|
|
handle()
|
|
|
|
|
|
function handle() {
|
|
|
- uni.getLocation({
|
|
|
- altitude: true,
|
|
|
+ /* altitude: true,
|
|
|
highAccuracyExpireTime: 8000,
|
|
|
- isHighAccuracy: true,
|
|
|
+ isHighAccuracy: true, */
|
|
|
+ uni.getLocation({
|
|
|
+
|
|
|
success: res => {
|
|
|
console.log("获取定位", res)
|
|
|
if (isReverseGeocoder) {
|
|
@@ -98,6 +99,7 @@ function mount() {
|
|
|
}
|
|
|
}
|
|
|
Vue.prototype.tovw = (num) => (num * 100 / 375).toFixed(3) + "vw";
|
|
|
+ Vue.prototype.getCity = (obj, isAll = true) => (obj.province || '') + (obj.city || '') + (obj.county || '') + isAll ? (obj.address || '') : '';
|
|
|
Vue.prototype.getApps = (appRemark, route) => {
|
|
|
const list = Object.values(uni.getStorageSync('authList')[appRemark])
|
|
|
return route ? list.find(v => v.path == route || v.pathDetail == route) : list
|