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

View File

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