Sfoglia il codice sorgente

feat(ui): 登录前首页热门商品移除收起切换,查看更多直达浠艾福商城

Agnes Agent 1 settimana fa
parent
commit
0465afce97
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      cfc-frontend/pages/index-home/index.vue

+ 3 - 4
cfc-frontend/pages/index-home/index.vue

@@ -399,13 +399,13 @@
       </view>
       </view>
     </view>
     </view>
 
 
-    <!-- 热门商品(默认收起,点击查看更多后展开,与热门活动同款交互) -->
+    <!-- 热门商品(精选展示,点击查看更多进入浠艾福商城) -->
     <view class="section">
     <view class="section">
       <view class="section-header">
       <view class="section-header">
         <text class="section-title">🛒 热门商品</text>
         <text class="section-title">🛒 热门商品</text>
-        <text class="section-more" :class="!showProducts ? 'blink' : ''" @click="showProducts = !showProducts">{{ showProducts ? '收起 ‹' : '查看更多 ›' }}</text>
+        <text class="section-more" @click="goMoreProducts">查看更多 ›</text>
       </view>
       </view>
-      <view v-if="showProducts">
+      <view>
         <view v-if="hotProducts.length === 0" class="empty-state" style="padding: 40rpx 0;">
         <view v-if="hotProducts.length === 0" class="empty-state" style="padding: 40rpx 0;">
           <text class="empty-text">暂无商品</text>
           <text class="empty-text">暂无商品</text>
         </view>
         </view>
@@ -570,7 +570,6 @@ components: {
         { id: 3, name: '电解还原水机', coverImage: '', desc: '日常饮水升级,守护全家长期健康', price: null },
         { id: 3, name: '电解还原水机', coverImage: '', desc: '日常饮水升级,守护全家长期健康', price: null },
         { id: 2, name: 'DAN 测评', coverImage: '', desc: '多维能力评估,精准定位成长方向', price: null }
         { id: 2, name: 'DAN 测评', coverImage: '', desc: '多维能力评估,精准定位成长方向', price: null }
       ],
       ],
-      showProducts: true,
       showArticles: true,
       showArticles: true,
       // 登录前能量沙盘演示数据(mock,登录后由真实接口数据替换)
       // 登录前能量沙盘演示数据(mock,登录后由真实接口数据替换)
       wuxingSandboxMock: wuxingSandboxMock,
       wuxingSandboxMock: wuxingSandboxMock,