diff --git a/pages/index/index.vue b/pages/index/index.vue
index 69a7a7c..4c842b5 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -308,10 +308,10 @@
import commonConfig from 'common/config.js';
import * as webMap from 'utils/webMap.js';
- import permision from "@/components/permission.js";
+ // import permision from "@/components/permission.js";
// 调用手机系统权限
// #ifdef APP-PLUS
- // import permision from "@/components/permission.js";
+ import permision from "@/components/permission.js";
// #endif
let audo = uni.createInnerAudioContext()
audo.loop = true
@@ -474,10 +474,12 @@
that.longitude = res.longitude
uni.setStorageSync('latitude', res.latitude)
uni.setStorageSync('longitude', res.longitude)
+ that.getHomeNearbyList();
that.selectCity(that.longitude,that.latitude)
},
fail: function(e) {
- this.cuowu=e
+ that.cuowu=e
+ that.getHomeNearbyList();
console.log("获取信息失败,请重试!",e)
// #ifdef APP-PLUS
that.checkPermission();
@@ -499,21 +501,20 @@
that.latitude = location[1]
console.log("location=========>",location)
}
- this.getTpMy();
- this.getTpCount();
+ that.getTpMy();
+ that.getTpCount();
// this.checkNewUser();
// #ifdef MP-WEIXIN
//订阅
- if (this.showModal) {
- this.openMsg()
+ if (that.showModal) {
+ that.openMsg()
}
// #endif
// this.city = uni.getStorageSync('city')//测试用的 测试结束关闭
- this.getIsVip()
- this.getKTCityList();
- this.getHomeArtificerList();
- this.getHomeNearbyList();
-
+ that.getIsVip()
+ that.getKTCityList();
+ that.getHomeArtificerList();
+ that.getHomeNearbyList();
}else{
uni.navigateTo({
url: '/pages/public/login'
@@ -527,6 +528,7 @@
}
},
methods: {
+
guanbi(){
this.playShow=false;
const videoContext = uni.createVideoContext('myVideo', this);
diff --git a/pages/public/login.vue b/pages/public/login.vue
index 687b241..71525fe 100644
--- a/pages/public/login.vue
+++ b/pages/public/login.vue
@@ -47,7 +47,7 @@
-
+