|
@@ -10,16 +10,27 @@
|
|
|
|
|
|
</view>
|
|
|
<view class="zdyNavTitle">车型件</view>
|
|
|
- <!-- <view class="zdyNavRight"></view> -->
|
|
|
- <view style="width: 50px;"></view>
|
|
|
+ <view class="zdyNavRight"></view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
|
|
|
<view style="height: 44px;"></view>
|
|
|
|
|
|
|
|
|
- <view class="mainBox">
|
|
|
- <image class="barner" src="../../static/img/banner_chexingjian.png" mode=""></image>
|
|
|
+ <view class="mainBox">
|
|
|
+ <!-- 轮播图 -->
|
|
|
+ <swiper class="swiper" :circular="true" :indicator-dots="true" indicator-active-color="#FF4F00">
|
|
|
+ <swiper-item v-for="(item,index) in bannerArr">
|
|
|
+
|
|
|
+ <image :src="item" mode="" class="swpImg"></image>
|
|
|
+
|
|
|
+ </image>
|
|
|
+
|
|
|
+ </swiper-item>
|
|
|
+
|
|
|
+ </swiper>
|
|
|
+
|
|
|
<image @click="goIndex()" class="searchBtn" src="../../static/img/button_search.png" mode=""></image>
|
|
|
|
|
|
<image class="title" src="../../static/img/text_zhongjian.png" mode=""></image>
|
|
@@ -38,12 +49,14 @@
|
|
|
export default {
|
|
|
components: {
|
|
|
searchBox
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
iStatusBarHeight: '',
|
|
|
-
|
|
|
- searchValue: '',
|
|
|
+ bannerArr:['../../static/img/home_banner1.png','../../static/img/home_banner2.png','../../static/img/home_banner3.png'],
|
|
|
+ searchValue: '',
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -109,14 +122,13 @@
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
-
|
|
|
+ padding: 0 24rpx;
|
|
|
}
|
|
|
|
|
|
.backImg {
|
|
|
- width: 44rpx;
|
|
|
- height: 44rpx;
|
|
|
- margin-left: 10rpx;
|
|
|
- margin-right: 20rpx;
|
|
|
+ width: 22rpx;
|
|
|
+ height: 40rpx;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.homeImg {
|
|
@@ -127,7 +139,8 @@
|
|
|
|
|
|
.zdyNavLeft {
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ align-items: center;
|
|
|
+ width: 44rpx;
|
|
|
}
|
|
|
|
|
|
.zdyNavTitle {
|
|
@@ -146,7 +159,7 @@
|
|
|
font-size: 28rpx;
|
|
|
line-height: 44px;
|
|
|
color: #3F90F7;
|
|
|
- margin-right: 24rpx;
|
|
|
+ width: 44rpx;
|
|
|
}
|
|
|
|
|
|
|
|
@@ -157,9 +170,12 @@
|
|
|
width: 100vw;
|
|
|
}
|
|
|
|
|
|
- .barner{
|
|
|
- height: 390rpx;
|
|
|
+ .swiper,
|
|
|
+ .swiper-item,
|
|
|
+ .swpImg {
|
|
|
width: 100%;
|
|
|
+ height: 390rpx;
|
|
|
+
|
|
|
}
|
|
|
.searchBtn{
|
|
|
padding: 30rpx 24rpx 0;
|