|
@@ -6,6 +6,9 @@
|
|
<view class="logoBox">
|
|
<view class="logoBox">
|
|
<!-- <image src="../../static/img2/indexlogo.png" mode="" class="logoImg"></image> -->
|
|
<!-- <image src="../../static/img2/indexlogo.png" mode="" class="logoImg"></image> -->
|
|
<image v-if="appletHomeSetting.showImageType==0" :src="appletHomeSetting.showImage" mode="" class="logoImg"></image>
|
|
<image v-if="appletHomeSetting.showImageType==0" :src="appletHomeSetting.showImage" mode="" class="logoImg"></image>
|
|
|
|
+ <view class="showTitleBox">
|
|
|
|
+ {{appletHomeSetting.showTitle}}
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
@@ -126,7 +129,7 @@
|
|
<!-- 无车 -->
|
|
<!-- 无车 -->
|
|
|
|
|
|
</view>
|
|
</view>
|
|
- <view v-if="!carInfo" style="margin-top: -80rpx;"></view>
|
|
|
|
|
|
+ <!-- <view v-if="!carInfo" style="margin-top: -80rpx;"></view> -->
|
|
<view class="contBox">
|
|
<view class="contBox">
|
|
<!-- 服务顾问 -->
|
|
<!-- 服务顾问 -->
|
|
<view v-if="homeCardList.openMUsers">
|
|
<view v-if="homeCardList.openMUsers">
|
|
@@ -203,7 +206,7 @@
|
|
<scroll-view class="goodsTabBox" scroll-x="true" enable-flex="true" >
|
|
<scroll-view class="goodsTabBox" scroll-x="true" enable-flex="true" >
|
|
<view class="goodsTab " :class="{goodsACt:tabIndex==index}" v-for="(item,index) in navigationList">
|
|
<view class="goodsTab " :class="{goodsACt:tabIndex==index}" v-for="(item,index) in navigationList">
|
|
<view @click="tabFn(index,item.showType,item.id)">{{item.title}}</view>
|
|
<view @click="tabFn(index,item.showType,item.id)">{{item.title}}</view>
|
|
- <image v-if="tabIndex==index" class="activeGoodsIcon" src="../../static/img2/tab.svg" mode=""></image>
|
|
|
|
|
|
+ <image v-if="tabIndex==index" class="activeGoodsIcon" src="../../static/img2/tab.png" mode=""></image>
|
|
<!-- <image v-if="tabIndex==index" class="activeGoodsIcon" src="http://dmsphoto.66km.com.cn/thFiles/DABE4EFB-5699-4515-A4D4-59AF13F8D2F4.png" mode=""></image> -->
|
|
<!-- <image v-if="tabIndex==index" class="activeGoodsIcon" src="http://dmsphoto.66km.com.cn/thFiles/DABE4EFB-5699-4515-A4D4-59AF13F8D2F4.png" mode=""></image> -->
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -257,7 +260,7 @@
|
|
</view>
|
|
</view>
|
|
<!-- 商品区 -->
|
|
<!-- 商品区 -->
|
|
<!-- 热门商品 -->
|
|
<!-- 热门商品 -->
|
|
- <view v-if="OpenMGoods&&tabType==2">
|
|
|
|
|
|
+ <view v-if="OpenMGoods&&tabType==2" class="qiehuanBox">
|
|
<view class="" v-if="OpenMGoods.goodsList&&OpenMGoods.goodsList.length>0">
|
|
<view class="" v-if="OpenMGoods.goodsList&&OpenMGoods.goodsList.length>0">
|
|
<view class="Hot" ><!-- v-if="OpenMGoods.showType==1" -->
|
|
<view class="Hot" ><!-- v-if="OpenMGoods.showType==1" -->
|
|
<!-- <view class="hotTop">
|
|
<!-- <view class="hotTop">
|
|
@@ -322,7 +325,9 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 热门活动 -->
|
|
<!-- 热门活动 -->
|
|
- <view v-if="openMActivity&&openMActivity.openCollectingList&&tabType==3">
|
|
|
|
|
|
+ <view class="qiehuanBox" v-if="openMActivity&&tabType==3">
|
|
|
|
+ <view v-if="openMActivity.openCollectingList">
|
|
|
|
+
|
|
<view class="Hot" v-if="openMActivity.openCollectingList.length>0">
|
|
<view class="Hot" v-if="openMActivity.openCollectingList.length>0">
|
|
<!-- <view class="hotTop">
|
|
<!-- <view class="hotTop">
|
|
<view class="hotLeft">
|
|
<view class="hotLeft">
|
|
@@ -350,6 +355,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -357,13 +363,13 @@
|
|
|
|
|
|
<view style="height: 60rpx;"></view>
|
|
<view style="height: 60rpx;"></view>
|
|
<!-- 手机号授权 -->
|
|
<!-- 手机号授权 -->
|
|
- <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide"><!-- -->
|
|
|
|
|
|
+ <view class="authorizBox" v-if="authorizShow" @click="authorizShowHide"><!-- -->
|
|
<view class="authorizCont" @click.stop="">
|
|
<view class="authorizCont" @click.stop="">
|
|
<view class="authorizName">{{wxOpenData.miniAppName}}</view>
|
|
<view class="authorizName">{{wxOpenData.miniAppName}}</view>
|
|
<view class="authorizMs">未注册的手机号登录后将自动创会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
|
|
<view class="authorizMs">未注册的手机号登录后将自动创会员账号,如果您不同意授权获取手机号,会影响您使用我们的产品和服务。</view>
|
|
<view class="sqLine">
|
|
<view class="sqLine">
|
|
- <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
|
|
|
|
- <view class="sqRefuse" @click="authorizShowHide">拒绝</view>
|
|
|
|
|
|
+ <view class="sqRefuse" @click="authorizShowHide">拒绝</view>
|
|
|
|
+ <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -534,6 +540,9 @@
|
|
this.jsTime()
|
|
this.jsTime()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(this.userInfo){
|
|
|
|
+ this.queryManagerInfo()
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -853,8 +862,8 @@
|
|
console.log(item)
|
|
console.log(item)
|
|
|
|
|
|
if(!this.userInfo){
|
|
if(!this.userInfo){
|
|
- //this.authorizShow=true;
|
|
|
|
-
|
|
|
|
|
|
+ this.authorizShow=true;
|
|
|
|
+ //if(false){
|
|
}else{
|
|
}else{
|
|
if(item.bizType==0){
|
|
if(item.bizType==0){
|
|
if(item.name=='新车'){ //
|
|
if(item.name=='新车'){ //
|
|
@@ -992,7 +1001,8 @@
|
|
url:'../user/addCar/cailist'
|
|
url:'../user/addCar/cailist'
|
|
})
|
|
})
|
|
}else if(item.bizType==20){
|
|
}else if(item.bizType==20){
|
|
-
|
|
|
|
|
|
+ console.log("做保养")
|
|
|
|
+ uni.removeStorageSync('byCar');
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url:'../subPack/maintain?maintainProjectID='+item.maintainProjectID
|
|
url:'../subPack/maintain?maintainProjectID='+item.maintainProjectID
|
|
})
|
|
})
|
|
@@ -1175,7 +1185,13 @@
|
|
this.customerInfo=data.loginInfo.customerInfo
|
|
this.customerInfo=data.loginInfo.customerInfo
|
|
this.$store.commit('mutationsuserInfo', this.userInfo);
|
|
this.$store.commit('mutationsuserInfo', this.userInfo);
|
|
this.$store.commit('mutationswxOpenData', data);
|
|
this.$store.commit('mutationswxOpenData', data);
|
|
-
|
|
|
|
|
|
+ uni.setStorage({
|
|
|
|
+ key: 'customerInfo',
|
|
|
|
+ data: this.customerInfo,
|
|
|
|
+ success: function () {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
uni.setStorage({
|
|
uni.setStorage({
|
|
key: 'userInfo',
|
|
key: 'userInfo',
|
|
data: data.loginInfo.openUser,
|
|
data: data.loginInfo.openUser,
|
|
@@ -1214,6 +1230,7 @@
|
|
if(!this.customerInfo.wxMiniV2OpenID){
|
|
if(!this.customerInfo.wxMiniV2OpenID){
|
|
this.seeQr()
|
|
this.seeQr()
|
|
}
|
|
}
|
|
|
|
+ this.queryManagerInfo()
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -1525,6 +1542,17 @@
|
|
}
|
|
}
|
|
.logoBox{
|
|
.logoBox{
|
|
height: 78rpx;
|
|
height: 78rpx;
|
|
|
|
+ position: relative;
|
|
|
|
+}
|
|
|
|
+.showTitleBox{
|
|
|
|
+ line-height: 78rpx;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;top: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-size: 36rpx;
|
|
|
|
+ color: #fff;
|
|
|
|
+ font-weight: 500;
|
|
}
|
|
}
|
|
.logoBox{
|
|
.logoBox{
|
|
padding-left: 20rpx;
|
|
padding-left: 20rpx;
|
|
@@ -1561,7 +1589,10 @@
|
|
line-height: 42rpx;
|
|
line-height: 42rpx;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
padding-left: 12rpx;
|
|
padding-left: 12rpx;
|
|
- max-width: 270rpx;
|
|
|
|
|
|
+ max-width: 270rpx;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
}
|
|
}
|
|
.carTop{
|
|
.carTop{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1651,11 +1682,11 @@
|
|
/* padding: 12rpx 15rpx; */
|
|
/* padding: 12rpx 15rpx; */
|
|
}
|
|
}
|
|
.activeGoodsIcon{
|
|
.activeGoodsIcon{
|
|
- width: 55rpx;height: 19rpx;
|
|
|
|
|
|
+ width: 51rpx;height: 16rpx;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
margin-top: 8rpx;
|
|
margin-top: 8rpx;
|
|
- margin-bottom: 20rpx;
|
|
|
|
- display: block;
|
|
|
|
|
|
+ margin-bottom: 26rpx;
|
|
|
|
+ display: block;
|
|
}
|
|
}
|
|
.goodsTabBox{
|
|
.goodsTabBox{
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1688,11 +1719,18 @@
|
|
.goodsLine{
|
|
.goodsLine{
|
|
display: flex;
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
+.byBox{
|
|
|
|
+ min-height: 600rpx;
|
|
|
|
+}
|
|
|
|
+.qiehuanBox{
|
|
|
|
+ min-height: 600rpx;
|
|
|
|
+}
|
|
.byBox .goodsName{
|
|
.byBox .goodsName{
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
color: #222222;
|
|
color: #222222;
|
|
line-height: 40rpx;
|
|
line-height: 40rpx;
|
|
|
|
+
|
|
}
|
|
}
|
|
.goodsRight{
|
|
.goodsRight{
|
|
padding-left: 24rpx;
|
|
padding-left: 24rpx;
|
|
@@ -1861,8 +1899,6 @@ margin-top: 10rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size:30rpx;
|
|
font-size:30rpx;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
-
|
|
|
|
- margin-left:40rpx;
|
|
|
|
}
|
|
}
|
|
.sqRefuse{
|
|
.sqRefuse{
|
|
width: 210rpx;
|
|
width: 210rpx;
|
|
@@ -1872,7 +1908,7 @@ margin-top: 10rpx;
|
|
border-radius: 36rpx;
|
|
border-radius: 36rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
font-size:30rpx;
|
|
font-size:30rpx;
|
|
- margin-right:40rpx;
|
|
|
|
|
|
+ margin-left:40rpx;
|
|
color: #999999;
|
|
color: #999999;
|
|
}
|
|
}
|
|
.sqLine{
|
|
.sqLine{
|
|
@@ -2154,7 +2190,7 @@ margin-top: 10rpx;
|
|
height: 280rpx;
|
|
height: 280rpx;
|
|
}
|
|
}
|
|
.hotLine{
|
|
.hotLine{
|
|
- margin-top: 20rpx;
|
|
|
|
|
|
+ margin-bottom: 20rpx;
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
background: #FFFFFF;
|
|
background: #FFFFFF;
|
|
overflow: hidden;
|
|
overflow: hidden;
|