|
@@ -87,7 +87,7 @@
|
|
|
<swiper class="swiper2" circular :autoplay="false" :interval="interval"
|
|
|
:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
|
|
|
<swiper-item v-for="(item,index) in homeCardList.ad1">
|
|
|
- <view class="swiper-item2">
|
|
|
+ <view class="swiper-item2" @click="goRoter('onlineBooking')">
|
|
|
<image class="swiper-item2Img" :src="item.icon" mode=""></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
@@ -165,9 +165,6 @@
|
|
|
<!-- 手机号授权 -->
|
|
|
<view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
|
|
|
<view class="authorizCont" @click.stop="">
|
|
|
- <view class="sqLogoBox">
|
|
|
- logo
|
|
|
- </view>
|
|
|
<view class="authorizName">这是小程序名称</view>
|
|
|
<view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
|
|
|
<button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
|
|
@@ -214,7 +211,8 @@
|
|
|
|
|
|
// }
|
|
|
// });
|
|
|
- this.userInfo = uni.getStorageSync("userInfo");
|
|
|
+ //this.userInfo = uni.getStorageSync("userInfo");
|
|
|
+ this.userInfo=this.$store.state.userInfo
|
|
|
if(this.userInfo){
|
|
|
//this.wxOpenData = uni.getStorageSync("wxOpenData");
|
|
|
this.getCarList();
|
|
@@ -252,6 +250,7 @@
|
|
|
console.log(e);
|
|
|
this.code=e.detail.code
|
|
|
this.wxPhoneLogin()
|
|
|
+ this.authorizShow=false;
|
|
|
},
|
|
|
wxgologin(){
|
|
|
var that=this;
|
|
@@ -296,6 +295,7 @@
|
|
|
|
|
|
that.queryHomeCardList()
|
|
|
//that.wxPhoneLogin()
|
|
|
+ this.$store.commit('mutationswxOpenData', that.wxOpenData)
|
|
|
uni.setStorage({
|
|
|
key: 'wxOpenData',
|
|
|
data: that.wxOpenData,
|
|
@@ -305,6 +305,8 @@
|
|
|
}
|
|
|
});
|
|
|
if(this.wxOpenData.loginInfo){
|
|
|
+ this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
|
|
|
+ this.userInfo=that.wxOpenData.loginInfo.openUser
|
|
|
uni.setStorage({
|
|
|
key: 'userInfo',
|
|
|
data: that.wxOpenData.loginInfo.openUser,
|
|
@@ -329,7 +331,8 @@
|
|
|
},'POST').then(res => {
|
|
|
var data = res.data;
|
|
|
if(data.loginInfo){
|
|
|
- this.userInfo=data.loginInfo.openUser
|
|
|
+ this.userInfo=data.loginInfo.openUser;
|
|
|
+ this.$store.commit('mutationsuserInfo', this.userInfo)
|
|
|
uni.setStorage({
|
|
|
key: 'userInfo',
|
|
|
data: data.loginInfo.openUser,
|
|
@@ -380,7 +383,7 @@
|
|
|
.authorizCont{
|
|
|
margin-top: 30vh;
|
|
|
width: 564rpx;
|
|
|
- height: 484rpx;
|
|
|
+ height: 408rpx;
|
|
|
background: #FFFFFF;
|
|
|
border-radius: 24rpx;
|
|
|
margin-left: 93rpx;
|
|
@@ -405,7 +408,7 @@
|
|
|
line-height: 42rpx;
|
|
|
font-size: 30rpx;
|
|
|
text-align: center;
|
|
|
- padding-top: 140rpx;
|
|
|
+ padding-top: 58rpx;
|
|
|
}
|
|
|
.authorizMs{
|
|
|
color: #999999;
|