Quellcode durchsuchen

营销:整理商城装修组件

owen vor 1 Jahr
Ursprung
Commit
4af42e2949
1 geänderte Dateien mit 43 neuen und 20 gelöschten Zeilen
  1. 43 20
      sheep/components/s-block-item/s-block-item.vue

+ 43 - 20
sheep/components/s-block-item/s-block-item.vue

@@ -1,34 +1,57 @@
 <template>
   <view>
-    <s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
-    <s-image-banner v-if="type === 'Carousel'" :data="data" :styles="styles" />
-    <s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
-    <s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
-
-    <s-notice-block v-if="type === 'NoticeBar'" :data="data" />
+    <!-- 基础组件:搜索框 -->
     <s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
-    <s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
-    <s-line-block v-if="type === 'lineBlock'" :data="data" />
-
+    <!-- 基础组件:公告栏 -->
+    <s-notice-block v-if="type === 'NoticeBar'" :data="data" />
+    <!-- 基础组件:菜单导航 -->
     <s-menu-button v-if="type === 'menuButton'" :data="data" :styles="styles" />
+    <!-- 基础组件:列表导航 -->
     <s-menu-list v-if="type === 'menuList'" :data="data" />
+    <!-- 基础组件:宫格导航 -->
     <s-menu-grid v-if="type === 'menuGrid'" :data="data" />
 
-    <s-user-card v-if="type === 'userCard'" />
-    <s-wallet-card v-if="type === 'walletCard'" />
-    <s-order-card v-if="type === 'orderCard'" :data="data" />
+    <!-- 图文组件:图片展示 -->
+    <s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
+    <!-- 图文组件:图片轮播 -->
+    <s-image-banner v-if="type === 'Carousel'" :data="data" :styles="styles" />
+    <!-- 基础组件:标题栏 -->
+    <s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
+    <!-- 图文组件:广告魔方 -->
+    <s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
+    <!-- 图文组件:视频播放 -->
+    <s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
+    <!-- 基础组件:辅助线 -->
+    <s-line-block v-if="type === 'lineBlock'" :data="data" />
+    <!-- 图文组件:富文字 -->
+    <s-richtext-block v-if="type === 'richtext'" :data="data" :styles="styles" />
+    <!-- 图文组件:热区 -->
+    <s-hotzone-block v-if="type === 'hotzone'" :data="data" :styles="styles" />
 
-    <s-coupon-card v-if="type === 'couponCard'" />
+    <!-- 商品组件:商品卡片 -->
     <s-goods-card v-if="type === 'goodsCard'" :data="data" :styles="styles" />
-    <s-score-block v-if="type === 'scoreGoods'" :data="data" :styles="styles" />
+    <!-- 商品组件:商品栏 -->
     <s-goods-shelves v-if="type === 'goodsShelves'" :data="data" :styles="styles" />
-    <s-coupon-block v-if="type === 'coupon'" :data="data" :styles="styles"></s-coupon-block>
-    <s-live-block v-if="type === 'mplive'" :data="data" :styles="styles"></s-live-block>
-    <s-seckill-block v-if="type === 'seckill'" :data="data" :styles="styles"></s-seckill-block>
-    <s-groupon-block v-if="type === 'groupon'" :data="data" :styles="styles"></s-groupon-block>
-    <s-richtext-block v-if="type === 'richtext'" :data="data" :styles="styles"></s-richtext-block>
-    <s-hotzone-block v-if="type === 'hotzone'" :data="data" :styles="styles"></s-hotzone-block>
 
+    <!-- 营销组件:拼团 -->
+    <s-groupon-block v-if="type === 'groupon'" :data="data" :styles="styles" />
+    <!-- 营销组件:秒杀 -->
+    <s-seckill-block v-if="type === 'seckill'" :data="data" :styles="styles" />
+    <!-- 营销组件:积分商城 -->
+    <s-score-block v-if="type === 'scoreGoods'" :data="data" :styles="styles" />
+    <!-- 营销组件:小程序直播 -->
+    <s-live-block v-if="type === 'mplive'" :data="data" :styles="styles" />
+    <!-- 营销组件:优惠券 -->
+    <s-coupon-block v-if="type === 'coupon'" :data="data" :styles="styles" />
+
+    <!-- 会员组件:会员卡片 -->
+    <s-user-card v-if="type === 'userCard'" />
+    <!-- 会员组件:订单卡片 -->
+    <s-order-card v-if="type === 'orderCard'" :data="data" />
+    <!-- 会员组件:资产卡片 -->
+    <s-wallet-card v-if="type === 'walletCard'" />
+    <!-- 会员组件:卡券卡片 -->
+    <s-coupon-card v-if="type === 'couponCard'" />
   </view>
 </template>