This commit is contained in:
parent
ffb8f67bbf
commit
f2ddeba6fd
|
@ -308,10 +308,10 @@
|
||||||
import commonConfig from 'common/config.js';
|
import commonConfig from 'common/config.js';
|
||||||
|
|
||||||
import * as webMap from 'utils/webMap.js';
|
import * as webMap from 'utils/webMap.js';
|
||||||
import permision from "@/components/permission.js";
|
// import permision from "@/components/permission.js";
|
||||||
// 调用手机系统权限
|
// 调用手机系统权限
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
// import permision from "@/components/permission.js";
|
import permision from "@/components/permission.js";
|
||||||
// #endif
|
// #endif
|
||||||
let audo = uni.createInnerAudioContext()
|
let audo = uni.createInnerAudioContext()
|
||||||
audo.loop = true
|
audo.loop = true
|
||||||
|
@ -474,10 +474,12 @@
|
||||||
that.longitude = res.longitude
|
that.longitude = res.longitude
|
||||||
uni.setStorageSync('latitude', res.latitude)
|
uni.setStorageSync('latitude', res.latitude)
|
||||||
uni.setStorageSync('longitude', res.longitude)
|
uni.setStorageSync('longitude', res.longitude)
|
||||||
|
that.getHomeNearbyList();
|
||||||
that.selectCity(that.longitude,that.latitude)
|
that.selectCity(that.longitude,that.latitude)
|
||||||
},
|
},
|
||||||
fail: function(e) {
|
fail: function(e) {
|
||||||
this.cuowu=e
|
that.cuowu=e
|
||||||
|
that.getHomeNearbyList();
|
||||||
console.log("获取信息失败,请重试!",e)
|
console.log("获取信息失败,请重试!",e)
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
that.checkPermission();
|
that.checkPermission();
|
||||||
|
@ -499,21 +501,20 @@
|
||||||
that.latitude = location[1]
|
that.latitude = location[1]
|
||||||
console.log("location=========>",location)
|
console.log("location=========>",location)
|
||||||
}
|
}
|
||||||
this.getTpMy();
|
that.getTpMy();
|
||||||
this.getTpCount();
|
that.getTpCount();
|
||||||
// this.checkNewUser();
|
// this.checkNewUser();
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
//订阅
|
//订阅
|
||||||
if (this.showModal) {
|
if (that.showModal) {
|
||||||
this.openMsg()
|
that.openMsg()
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
// this.city = uni.getStorageSync('city')//测试用的 测试结束关闭
|
// this.city = uni.getStorageSync('city')//测试用的 测试结束关闭
|
||||||
this.getIsVip()
|
that.getIsVip()
|
||||||
this.getKTCityList();
|
that.getKTCityList();
|
||||||
this.getHomeArtificerList();
|
that.getHomeArtificerList();
|
||||||
this.getHomeNearbyList();
|
that.getHomeNearbyList();
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/public/login'
|
url: '/pages/public/login'
|
||||||
|
@ -527,6 +528,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
guanbi(){
|
guanbi(){
|
||||||
this.playShow=false;
|
this.playShow=false;
|
||||||
const videoContext = uni.createVideoContext('myVideo', this);
|
const videoContext = uni.createVideoContext('myVideo', this);
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<!-- #ifdef APP-PLUS -->
|
<!-- #ifdef APP-PLUS -->
|
||||||
<button v-if="weixinLogin" class="confirm-btn" @click="weixinLo">微信登录</button>
|
<button v-if="weixinLogin" class="confirm-btn" @click="weixinLo">微信登录</button>
|
||||||
<button v-if="weixinLogin" class='confirm-btn-weixin' @click="register">手机号登录</button>
|
<button v-if="weixinLogin" class='confirm-btn-weixin' @click="register">手机号登录</button>
|
||||||
<button v-if="!weixinLogin" class='confirm-btn' @click="register">手机号登录</button>
|
<!-- <button v-if="!weixinLogin" class='confirm-btn' @click="register">手机号登录</button> -->
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 -->
|
||||||
<button class='confirm-btn' v-if="isopen" @click="bingwx">微信一键登录</button>
|
<button class='confirm-btn' v-if="isopen" @click="bingwx">微信一键登录</button>
|
||||||
|
|
Loading…
Reference in New Issue