|
@@ -19,7 +19,7 @@
|
|
|
<view class="carLeft">
|
|
|
<view class="carTop" @click="changeCar">
|
|
|
<image :src="carInfo.brandLogo" mode="" class="carLogo"></image>
|
|
|
- <view class="carInfomodel">{{carInfo.brand}} {{carInfo.series}}</view>
|
|
|
+ <view class="carInfomodel">{{carInfo.brand?carInfo.brand:''}} {{carInfo.series?carInfo.series:''}}</view>
|
|
|
<image src="../../static/img2/xia.png" mode="" class="carXia"></image>
|
|
|
<view class="plateNumber" v-if="carInfo.plateNumber">
|
|
|
<span class="plateNumberSpan1">{{carInfo.plateNumber.slice(0, 2)}}</span>
|
|
@@ -162,31 +162,31 @@
|
|
|
|
|
|
<!-- 广告区 -->
|
|
|
<view class="advertisement" v-if="homeCardList.ad1.length>0">
|
|
|
- <swiper class="swiper2" circular :autoplay="true" :interval="interval"
|
|
|
+ <swiper class="swiper2" :style="{height: appletHomeSetting.adHeightSize1 + 'rpx'}" circular :autoplay="true" :interval="interval"
|
|
|
:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
|
|
|
<swiper-item v-for="(item,index) in homeCardList.ad1">
|
|
|
- <view class="swiper-item2" @click="goRoter(item)">
|
|
|
- <image class="swiper-item2Img" :src="item.icon" mode=""></image>
|
|
|
+ <view class="swiper-item2" @click="goRoter(item)">
|
|
|
+ <image class="swiper-item2Img" :style="{height: appletHomeSetting.adHeightSize1 + 'rpx'}" :src="item.icon" mode=""></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<view class="advertisement" v-if="homeCardList.ad2.length>0">
|
|
|
- <swiper class="swiper2" circular :autoplay="true" :interval="interval"
|
|
|
+ <swiper class="swiper2" circular :autoplay="true" :interval="interval" :style="{height: appletHomeSetting.adHeightSize2 + 'rpx'}"
|
|
|
:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
|
|
|
<swiper-item v-for="(item,index) in homeCardList.ad2">
|
|
|
<view class="swiper-item2" @click="goRoter(item)">
|
|
|
- <image class="swiper-item2Img" :src="item.icon" mode=""></image>
|
|
|
+ <image class="swiper-item2Img" :src="item.icon" :style="{height: appletHomeSetting.adHeightSize2 + 'rpx'}" mode=""></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
</view>
|
|
|
<view class="advertisement" v-if="homeCardList.ad3.length>0">
|
|
|
- <swiper class="swiper2" circular :autoplay="true" :interval="interval"
|
|
|
+ <swiper class="swiper2" circular :autoplay="true" :interval="interval" :style="{height: appletHomeSetting.adHeightSize3 + 'rpx'}"
|
|
|
:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
|
|
|
<swiper-item v-for="(item,index) in homeCardList.ad3">
|
|
|
<view class="swiper-item2" @click="goRoter(item)">
|
|
|
- <image class="swiper-item2Img" :src="item.icon" mode=""></image>
|
|
|
+ <image class="swiper-item2Img" :src="item.icon" mode="" :style="{height: appletHomeSetting.adHeightSize3 + 'rpx'}"></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
@@ -196,18 +196,13 @@
|
|
|
<!-- 商品区 -->
|
|
|
<view class="goodsBox">
|
|
|
<view class="goodsTabBox">
|
|
|
- <view class="goodsTab goodsACt">
|
|
|
- <view>做保养</view>
|
|
|
- <image class="activeGoodsIcon" src="../../static/img2/activeGoods.png" mode=""></image>
|
|
|
- </view>
|
|
|
- <view class="goodsTab">
|
|
|
- <view>换轮胎</view>
|
|
|
- <image class="activeGoodsIcon" src="../../static/img2/activeGoods.png" mode=""></image>
|
|
|
- </view>
|
|
|
- <view class="goodsTab">
|
|
|
- <view>其他</view>
|
|
|
- <image class="activeGoodsIcon" src="../../static/img2/activeGoods.png" mode=""></image>
|
|
|
+ <view class="goodsTab " :class="{goodsACt:tabIndex==index}" v-for="(item,index) in appletHomeSetting.sortSettingList">
|
|
|
+ <view @click="tabFn(index)" v-if="item.type==2">热销商品</view>
|
|
|
+ <view @click="tabFn(index)" v-if="item.type==1">热门活动</view>
|
|
|
+ <view @click="tabFn(index)" v-if="item.type==3&&homeCardList.isShowMaintain==1">{{homeCardList.maintainTitle}}</view>
|
|
|
+ <image v-if="tabIndex==index" class="activeGoodsIcon" src="../../static/img2/activeGoods.png" mode=""></image>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
<view class="goodsLIneBox">
|
|
|
<view class="goodsLine">
|
|
@@ -288,7 +283,7 @@
|
|
|
:duration="duration" :indicator-dots="true" indicator-color="#CCCCCC" :indicator-active-color="'#'+themeColor">
|
|
|
<swiper-item v-for="(item,index) in homeCardList.activityModules">
|
|
|
<view class="swiper-itemTk" @click="goRoter(item)">
|
|
|
- <image class="tkHdImg" :src="item.icon" mode="aspectFit"></image>
|
|
|
+ <image class="tkHdImg" :src="item.icon" mode="widthFix"></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
@@ -340,6 +335,9 @@
|
|
|
exitNum:'',
|
|
|
appletHomeSetting:'',
|
|
|
activityModulesShow:false,
|
|
|
+ tabIndex:0,
|
|
|
+ OpenMGoods:'',
|
|
|
+ OpenMActivity:'',
|
|
|
}
|
|
|
},
|
|
|
onLoad(opt) {
|
|
@@ -384,6 +382,7 @@
|
|
|
this.getCarList();
|
|
|
this.queryHomeCardList()
|
|
|
this.queryManagerInfo()
|
|
|
+
|
|
|
}else{
|
|
|
this.uniLogin()
|
|
|
|
|
@@ -391,6 +390,7 @@
|
|
|
//版本更新
|
|
|
this.UpdateManager();
|
|
|
|
|
|
+
|
|
|
},
|
|
|
onShow() {
|
|
|
|
|
@@ -433,6 +433,21 @@
|
|
|
}, 1000);
|
|
|
},
|
|
|
methods: {
|
|
|
+ tabData(){
|
|
|
+ this.$http('openHome/queryOpenMGoods', {
|
|
|
+ unionId:this.unionId
|
|
|
+ },'GET').then(res => {
|
|
|
+
|
|
|
+ })
|
|
|
+ this.$http('openHome/queryOpenMActivity', {
|
|
|
+ unionId:this.unionId
|
|
|
+ },'GET').then(res => {
|
|
|
+
|
|
|
+ })
|
|
|
+ },
|
|
|
+ tabFn(index){
|
|
|
+ this.tabIndex=index
|
|
|
+ },
|
|
|
activityModulesHide(){
|
|
|
this.activityModulesShow=false
|
|
|
},
|
|
@@ -936,6 +951,7 @@
|
|
|
this.$store.commit('mutationsuserInfo', that.wxOpenData.loginInfo.openUser)
|
|
|
this.userInfo=that.wxOpenData.loginInfo.openUser
|
|
|
that.queryManagerInfo()
|
|
|
+ that.tabData()
|
|
|
uni.setStorage({
|
|
|
key: 'userInfo',
|
|
|
data: that.wxOpenData.loginInfo.openUser,
|
|
@@ -1331,7 +1347,8 @@
|
|
|
}
|
|
|
.topCont{
|
|
|
padding: 8rpx 20rpx;
|
|
|
- padding-bottom: 210rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ /* padding-bottom: 210rpx; */
|
|
|
}
|
|
|
.carBox{
|
|
|
background: #FFFFFF;
|
|
@@ -1381,7 +1398,7 @@
|
|
|
height: 47rpx;
|
|
|
background: #FBF0E4;
|
|
|
border-radius: 10rpx;
|
|
|
- margin-top: 18rpx;
|
|
|
+ margin-top: 22rpx;
|
|
|
}
|
|
|
.carDui{
|
|
|
width: 24rpx;height: 24rpx;
|
|
@@ -1421,24 +1438,26 @@
|
|
|
}
|
|
|
.contBox{
|
|
|
padding: 20rpx;
|
|
|
- margin-top: -200rpx;
|
|
|
+ margin-top: 160rpx;
|
|
|
+/* margin-top: -200rpx; */
|
|
|
}
|
|
|
.swiper2{
|
|
|
height: 200rpx;
|
|
|
}
|
|
|
.swiper-item2Img{
|
|
|
- height: 200rpx;width: 100%;
|
|
|
+ height: 200rpx;
|
|
|
+ width: 100%;
|
|
|
border-radius: 10rpx;
|
|
|
}
|
|
|
-.swiper-item2{
|
|
|
+/* .swiper-item2{
|
|
|
height: 200rpx;
|
|
|
|
|
|
-}
|
|
|
+} */
|
|
|
.advertisement{
|
|
|
background: #FFFFFF;
|
|
|
margin-top: 20rpx;
|
|
|
border-radius: 16rpx;
|
|
|
- height: 200rpx;
|
|
|
+/* height: 200rpx; */
|
|
|
/* padding: 12rpx 15rpx; */
|
|
|
}
|
|
|
.activeGoodsIcon{
|
|
@@ -1748,8 +1767,7 @@ color: #EC0F0A;margin-right: 10rpx;
|
|
|
}
|
|
|
.bxline{
|
|
|
display: flex;
|
|
|
-
|
|
|
- padding-top: 22rpx;
|
|
|
+ padding-bottom: 20rpx;
|
|
|
}
|
|
|
.bxline1{
|
|
|
width: 40%;
|
|
@@ -1781,8 +1799,8 @@ color: #EC0F0A;margin-right: 10rpx;
|
|
|
/* margin-left: 24rpx; */
|
|
|
}
|
|
|
.carTimeBox{
|
|
|
- border-top: 1px solid #EEEEEE;
|
|
|
- padding-bottom: 15rpx;
|
|
|
+ /* border-top: 1px solid #EEEEEE; */
|
|
|
+ /* padding-bottom: 15rpx; */
|
|
|
}
|
|
|
.plateNumberSpan1{
|
|
|
background: #0041FF;
|
|
@@ -1798,14 +1816,19 @@ color: #EC0F0A;margin-right: 10rpx;
|
|
|
border-radius: 0rpx 4rpx 4rpx 0rpx;
|
|
|
}
|
|
|
.swiperTk{
|
|
|
- height: 30vh;
|
|
|
+ height: 50vh;
|
|
|
width: 100vw;
|
|
|
}
|
|
|
.swiper-itemTk{
|
|
|
- height: auto;
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ height: 50vh;
|
|
|
+ padding-bottom: 50rpx;
|
|
|
}
|
|
|
.tkHdImg{
|
|
|
- width: 80vw;
|
|
|
+ width: 80vw;margin-bottom: 10px;
|
|
|
}
|
|
|
.swiper-itemTk{
|
|
|
text-align: center;
|