From 7b09a9950f13521190a4aef9bbc2a6163445566c Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期二, 03 三月 2026 18:01:03 +0800
Subject: [PATCH] 小程序   接口开发

---
 mini-program/pages/mall/mall.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/mini-program/pages/mall/mall.vue b/mini-program/pages/mall/mall.vue
index 31f3356..fb5a7a6 100644
--- a/mini-program/pages/mall/mall.vue
+++ b/mini-program/pages/mall/mall.vue
@@ -12,7 +12,7 @@
 					</view>
 				</view>
 				<view class="head-tabs">
-					<u-tabs lineColor="#E4001D" :list="list" @click="clickCate"></u-tabs>
+					<u-tabs lineColor="#E4001D" :itemStyle="{ height: '100rpx' }" :list="list" @click="clickCate"></u-tabs>
 				</view>
 			</view>
 			
@@ -78,7 +78,7 @@
 						</view>
 					</view>
 					<view class="commodity-item-shou">
-						<text>宸插敭{{item.saleNum + item.realSaleNum}}</text>
+						<text>宸插敭{{(item.saleNum ||0)+ (item.realSaleNum||0)}}</text>
 						<view class="commodity-item-shou-add" @click.stop="addCard(item)">+</view>
 					</view>
 				</view>
@@ -216,7 +216,7 @@
 					num: 1
 				}).then(res => {
 					if (res.code === 200) {
-						uni.showToast({ title: '娣诲姞鎴愬姛', icon: 'success' })
+						uni.showToast({ title: '娣诲姞鎴愬姛', icon: 'success', mask: true })
 						this.getCartNum()
 					}
 				})
@@ -422,6 +422,7 @@
 					justify-content: center;
 					image {
 						width: 100%;
+						max-height:330rpx;
 					}
 				}
 				.commodity-item-box {
@@ -519,8 +520,8 @@
 				.head-tabs {
 					width: 100%;
 					height: 100rpx;
-					display: flex;
-					align-items: flex-end;
+					// display: flex;
+					// align-items: flex-end;
 					border-bottom: 1rpx solid #E5E5E5;
 				}
 			}

--
Gitblit v1.9.3