Browse Source

🗑️ fix(cart): 删除购物车页面遮挡商品的广告组件

移除购物车页面中的广告区域,该广告会遮挡商品列表,影响用户体验。

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
yourname 4 weeks ago
parent
commit
1872bb45e2
2 changed files with 0 additions and 30 deletions
  1. 0 22
      mini/src/pages/cart/index.css
  2. 0 8
      mini/src/pages/cart/index.tsx

+ 0 - 22
mini/src/pages/cart/index.css

@@ -325,28 +325,6 @@
   cursor: pointer;
 }
 
-/* 广告区域样式 */
-.cart-advertisement {
-  position: fixed;
-  bottom: 280rpx; /* 在结算栏上方,为结算栏和TabBar预留空间 */
-  right: 3%;
-  width: 70%;
-  padding: 20rpx;
-  box-sizing: border-box;
-  z-index: 10;
-  background-color: white;
-  box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.1);
-  border-radius: 8rpx;
-}
-
-.ad-image {
-  width: 100%;
-  height: 200rpx;
-  border-radius: 8rpx;
-  background-color: #f5f5f5;
-  object-fit: cover;
-  display: block;
-}
 
 /* 底部留白 */
 .cart-bottom-gap {

+ 0 - 8
mini/src/pages/cart/index.tsx

@@ -241,14 +241,6 @@ export default function CartPage() {
               ))}
             </View>
 
-            {/* 广告区域 */}
-            <View className="cart-advertisement">
-              <Image
-                src="https://via.placeholder.com/300x150"
-                className="ad-image"
-                mode="aspectFill"
-              />
-            </View>
 
             {/* 底部留白 */}
             <View className="cart-bottom-gap" />