From 47d56a8b0f22fb15a46b69dfd46fac23560ad2cd Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 12 五月 2026 09:07:49 +0800
Subject: [PATCH] 改bug

---
 mini-program/pages/index/index.vue |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/mini-program/pages/index/index.vue b/mini-program/pages/index/index.vue
index 48a91e5..df667fc 100644
--- a/mini-program/pages/index/index.vue
+++ b/mini-program/pages/index/index.vue
@@ -16,7 +16,7 @@
 			<view class="banner">
 				<u-swiper :list="list" keyName="imgurl" height="150" indicator indicatorMode="dot" @click="jumpBanner"></u-swiper>
 			</view>
-			<swiper class="cate" @change="changeCate">
+			<swiper class="cate" @change="changeCate" v-if="labels.length > 0" :style="{ height: labels[0].length <= 4 ? '150rpx' : '' }">
 				<swiper-item v-for="(item, index) in labels" :key="index">
 					<view class="cate-list">
 						<view class="cate-item" v-for="(child, a) in item" :key="a" @click="jumpSearch1(child, 1)">
@@ -48,7 +48,7 @@
 			<view class="title">
 				<view class="title-left">閫傜敤鍝佺墝</view>
 			</view>
-			<swiper class="pingpai" @change="changeBrand">
+			<swiper class="pingpai" @change="changeBrand" v-if="brand.length > 0" :style="{ height: brand[0].length <= 2 ? '130rpx' : '' }">
 				<swiper-item v-for="(item, index) in brand" :key="index">
 					<view class="pingpai-list">
 						<view class="pingpai-item" v-for="(child, a) in item" :key="a" @click="jumpSearch1(child, 2)">
@@ -114,7 +114,7 @@
 								<text>.{{item.minPrice[1]}}</text>
 							</view>
 							<view class="commodity-item-box-price-b">
-								楼{{item.price}}
+								楼{{item.linePrice || 0}}
 							</view>
 						</view>
 						<view class="commodity-item-shou">
@@ -624,6 +624,7 @@
 								font-weight: 400;
 								font-size: 22rpx;
 								color: #999999;
+								text-decoration: line-through;
 							}
 						}
 
@@ -680,7 +681,7 @@
 				margin-top: 40rpx;
 				.cate-list {
 					width: 100%;
-					height: 300rpx;
+					// height: 300rpx;
 					display: flex;
 					align-items: flex-start;
 					justify-content: space-between;

--
Gitblit v1.9.3