twt 5 月之前
父節點
當前提交
b368b26d8a
共有 4 個文件被更改,包括 41 次插入13 次删除
  1. 11 4
      pages.json
  2. 21 1
      pages/index/index.vue
  3. 9 8
      pages/index/shopList.vue
  4. 0 0
      pages/subPack/newCar.vue

+ 11 - 4
pages.json

@@ -257,7 +257,8 @@
 			"path": "pages/index/paintShopList",
 			"style": {
 				"navigationBarTitleText": "选择门店",
-				"enablePullDownRefresh": true
+				"enablePullDownRefresh": true,
+				"navigationBarBackgroundColor": "#FFFFFF"
 			}
 		},
 		/* {
@@ -292,12 +293,12 @@
 				"enablePullDownRefresh": true
 			}
 		},
-		{
+		/* {
 			"path": "pages/index/newCar",
 			"style": {
 				"navigationBarTitleText": "新车"
 			}
-		},
+		}, */
 		{
 			"path": "pages/index/usedCar",
 			"style": {
@@ -604,6 +605,12 @@
 						"style": {
 							"navigationBarTitleText": "意见反馈"
 						}
+					},
+					{
+						"path": "newCar",
+						"style": {
+							"navigationBarTitleText": "新车"
+						}
 					}
 				]
 				
@@ -650,7 +657,7 @@
 		"globalStyle": {
 			"navigationBarTextStyle": "black",
 			"navigationBarTitleText": "uni-app",
-			"navigationBarBackgroundColor": "#F8F8F8",
+			"navigationBarBackgroundColor": "#FFFFFF",
 			"backgroundColor": "#F8F8F8"
 		},
 		"uniIdRouter": {}

+ 21 - 1
pages/index/index.vue

@@ -171,6 +171,26 @@
 					</swiper-item>
 				</swiper>
 			</view>
+			<view class="advertisement" v-if="homeCardList.ad2.length>0">
+				<swiper class="swiper2" 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.ad2">
+						<view class="swiper-item2" @click="goRoter(item)">
+							<image class="swiper-item2Img" :src="item.icon" mode=""></image>
+						</view>	
+					</swiper-item>
+				</swiper>
+			</view>
+			<view class="advertisement" v-if="homeCardList.ad3.length>0">
+				<swiper class="swiper2" 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.ad3">
+						<view class="swiper-item2" @click="goRoter(item)">
+							<image class="swiper-item2Img" :src="item.icon" mode=""></image>
+						</view>	
+					</swiper-item>
+				</swiper>
+			</view>
 			<!-- 广告区 -->
 			
 			<!-- 商品区 -->
@@ -662,7 +682,7 @@
 					if(item.bizType==0){
 						if(item.name=='新车'){ //
 							uni.navigateTo({
-								url:'newCar'
+								url:'../subPack/newCar'
 							})
 						}else if(item.name=='二手车'){
 							uni.navigateTo({

+ 9 - 8
pages/index/shopList.vue

@@ -36,7 +36,7 @@
 		<view class="shopline" v-for="(item,index) in queryShopList">
 			<view class="newdistance" v-if="item.distance&&item.distance!= '0.00'">
 				 <image src="../../static/img2/dh.png" mode="" class="dhImg"></image>
-				<view><span >{{item.distance}}km</span></view>
+				<view style="padding-top: 6rpx;"><span >{{item.distance}}km</span></view>
 			</view>
 				
 			<view class="shoplineLeft">
@@ -577,7 +577,7 @@
 	width: 400rpx;
 	height: 50rpx;
 	line-height: 50rpx;
-	font-size: 28rpx;
+	font-size: 26rpx;
 	padding-left: 16rpx;
 }
 .newTopSSRight{
@@ -657,14 +657,14 @@
 		padding-bottom: 60rpx;
 	}
 	.shopdhBox{
-		display: flex;padding-top: 16rpx;
+		display: flex;padding-top: 20rpx;
 		justify-content: space-between;
 	}
 	.shopcall{
 		display: flex;
 	}
 	.shopcallIcon{
-		width: 26rpx;height: 26rpx;margin-top: 5rpx;
+		width: 26rpx;height: 26rpx;margin-top: 2rpx;
 	}
 	.shopcallTxt{
 	font-size: 24rpx;
@@ -683,7 +683,7 @@
 
 	.shopline {
 		margin: 0rpx 24rpx 20rpx;
-		padding: 20rpx;
+		padding: 24rpx 20rpx;
 		background-color: #FFFFFF;
 		border-radius: 10rpx;
 		display: flex;
@@ -759,7 +759,7 @@
 	.brandsBg {
 		display: flex;
 		align-items: center;
-		padding: 5rpx 0rpx;
+		padding: 10rpx 0rpx;
 		flex-wrap: wrap;
 		    height: 36rpx;
 		/* 隐藏文字显示 ...不换行 */
@@ -776,7 +776,7 @@
 		height: 28rpx;
 		border: 1px solid #F19D01;
 		font-size: 22rpx;
-		line-height: 28rpx;
+		line-height: 30rpx;
 		margin: 5rpx 10rpx 5rpx 0rpx;
 	}
 
@@ -887,7 +887,7 @@
 		font-size: 25rpx;
 		color: #666666;
 		line-height: 30rpx;
-		padding-top: 10rpx;
+		padding-top: 8rpx;
 		display: flex;
 		justify-content: space-between;
 		padding-right: 10rpx;
@@ -899,6 +899,7 @@
 		overflow: hidden;
 		text-overflow: ellipsis;
 		white-space: nowrap;
+		color: #999999;
 	}
 
 	.noMore {

pages/index/newCar.vue → pages/subPack/newCar.vue