lhl před 4 roky
rodič
revize
5480d3138c
1 změnil soubory, kde provedl 22 přidání a 13 odebrání
  1. 22 13
      pages/index/index.vue

+ 22 - 13
pages/index/index.vue

@@ -286,10 +286,10 @@
 				<!-- #ifdef MP-TOUTIAO -->
 				<view class="hot-img" style="margin-top:20rpx" v-if="power">
 					<navigator :url="item.url" class="item" v-for="(item,index) in hot" :key="index" hover-class="none">
-						<image src="../../static/img/dhbg.png" mode="" class="dhbg"></image>
+						<!-- <image src="../../static/img/dhbg.png" mode="" class="dhbg"></image>
 						<view class="title area-row">{{item.title}}</view>
-						<view class="msg area-row" :style="'color:'+item.color+';'">{{item.s_title}}</view>
-						<view class="img">
+						<view class="msg area-row" :style="'color:'+item.color+';'">{{item.s_title}}</view> -->
+						<view class="dhbg">
 							<image :src="item.pic" mode=""></image>
 						</view>
 					</navigator>
@@ -299,10 +299,10 @@
 				<!-- #ifndef MP-TOUTIAO -->
 				<view class="hot-img" style="margin-top:20rpx">
 					<navigator :url="item.url" class="item" v-for="(item,index) in hot" :key="index" hover-class="none">
-						<image src="../../static/img/dhbg.png" mode="" class="dhbg"></image>
+						<!-- <image src="../../static/img/dhbg.png" mode="" class="dhbg"></image>
 						<view class="title area-row">{{item.title}}</view>
-						<view class="msg area-row" :style="'color:'+item.color+';'">{{item.s_title}}</view>
-						<view class="img">
+						<view class="msg area-row" :style="'color:'+item.color+';'">{{item.s_title}}</view> -->
+						<view class="dhbg">
 							<image :src="item.pic" mode=""></image>
 						</view>
 					</navigator>
@@ -327,7 +327,7 @@
 							</view>
 							<view class="pro-box">
 								<navigator :url="`/pages/goods_details/index?id=${itemn.product_id}`" hover-class="none" class="pro-item" v-for="(itemn,indexn) in item.recommend"
-								 :key='indexn' v-if="item.recommend.length<=3">
+								 :key='indexn' v-if="item.recommend.length<=4">
 									<image :src="itemn.image" mode=""></image>
 									<!-- #ifdef MP-TOUTIAO -->
 									<view class="price" v-if="power">
@@ -617,6 +617,7 @@
 				//记录推广人uid
 				if (value.spid) {
 					that.currSpid = value.spid
+					
 					app.globalData.spid = value.spid;
 				}
 			}
@@ -840,7 +841,9 @@
 					limit: 3,
 					is_best: 1
 				}).then(res => {
+					
 					this.brandList = res.data.list;
+					console.log(this.brandList,'this.brandList++++++++++')
 				})
 			},
 			// 获取秒杀截止时间
@@ -2049,16 +2052,22 @@
 					flex-direction: column;
 					align-items: center;
 					width: 170rpx;
-					background-color: #FEFEFF;
+					// background-color: #FEFEFF;
 					padding: 20rpx 0 4rpx;
 					border-radius: 8rpx;
 					box-shadow: 2px 1px 6px 1px rgba(0, 0, 0, 0.03);
 					position: relative;
 					.dhbg {
-						position: absolute;
-						top: 0;
+						// position: absolute;
+						// top: 0;
 						width: 170rpx;
-						height: 245rpx;	
+						height: 245rpx;
+						// background-color: red;
+						image {
+							width: 100%;
+							height: 100%;
+							// background-color: red;
+						}
 							
 					}
 					.title {
@@ -2168,12 +2177,12 @@
 							padding: 20rpx 20rpx 30rpx;
 
 							.pro-item {
-								width: 218rpx;
+								width: 25%;
 								margin-right: 14rpx;
 
 								image {
 									width: 100%;
-									height: 214rpx;
+									height: 157rpx;
 								}
 
 								.price {