This commit is contained in:
Mr.jiang 2024-08-12 22:44:27 +08:00
parent ffb8f67bbf
commit f2ddeba6fd
2 changed files with 15 additions and 13 deletions

View File

@ -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);

View File

@ -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>