This commit is contained in:
parent
ffb8f67bbf
commit
f2ddeba6fd
|
@ -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);
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<!-- #ifdef APP-PLUS -->
|
||||
<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' @click="register">手机号登录</button>
|
||||
<!-- <button v-if="!weixinLogin" class='confirm-btn' @click="register">手机号登录</button> -->
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef H5 -->
|
||||
<button class='confirm-btn' v-if="isopen" @click="bingwx">微信一键登录</button>
|
||||
|
|
Loading…
Reference in New Issue