s-block-item.vue 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view>
  3. <!-- 基础组件:搜索框 -->
  4. <s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
  5. <!-- 基础组件:公告栏 -->
  6. <s-notice-block v-if="type === 'NoticeBar'" :data="data" />
  7. <!-- 基础组件:菜单导航 -->
  8. <s-menu-button v-if="type === 'MenuSwiper'" :data="data" :styles="styles" />
  9. <!-- 基础组件:列表导航 -->
  10. <s-menu-list v-if="type === 'MenuList'" :data="data" />
  11. <!-- 基础组件:宫格导航 -->
  12. <s-menu-grid v-if="type === 'MenuGrid'" :data="data" />
  13. <!-- 图文组件:图片展示 -->
  14. <s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
  15. <!-- 图文组件:图片轮播 -->
  16. <s-image-banner v-if="type === 'Carousel'" :data="data" :styles="styles" />
  17. <!-- 基础组件:标题栏 -->
  18. <s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
  19. <!-- 图文组件:广告魔方 -->
  20. <s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
  21. <!-- 图文组件:视频播放 -->
  22. <s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
  23. <!-- 基础组件:辅助线 -->
  24. <s-line-block v-if="type === 'lineBlock'" :data="data" />
  25. <!-- 图文组件:富文字 -->
  26. <s-richtext-block v-if="type === 'richtext'" :data="data" :styles="styles" />
  27. <!-- 图文组件:热区 -->
  28. <s-hotzone-block v-if="type === 'hotzone'" :data="data" :styles="styles" />
  29. <!-- 商品组件:商品卡片 -->
  30. <s-goods-card v-if="type === 'goodsCard'" :data="data" :styles="styles" />
  31. <!-- 商品组件:商品栏 -->
  32. <s-goods-shelves v-if="type === 'goodsShelves'" :data="data" :styles="styles" />
  33. <!-- 营销组件:拼团 -->
  34. <s-groupon-block v-if="type === 'groupon'" :data="data" :styles="styles" />
  35. <!-- 营销组件:秒杀 -->
  36. <s-seckill-block v-if="type === 'seckill'" :data="data" :styles="styles" />
  37. <!-- 营销组件:积分商城 -->
  38. <s-score-block v-if="type === 'scoreGoods'" :data="data" :styles="styles" />
  39. <!-- 营销组件:小程序直播 -->
  40. <s-live-block v-if="type === 'mplive'" :data="data" :styles="styles" />
  41. <!-- 营销组件:优惠券 -->
  42. <s-coupon-block v-if="type === 'coupon'" :data="data" :styles="styles" />
  43. <!-- 会员组件:会员卡片 -->
  44. <s-user-card v-if="type === 'userCard'" />
  45. <!-- 会员组件:订单卡片 -->
  46. <s-order-card v-if="type === 'orderCard'" :data="data" />
  47. <!-- 会员组件:资产卡片 -->
  48. <s-wallet-card v-if="type === 'walletCard'" />
  49. <!-- 会员组件:卡券卡片 -->
  50. <s-coupon-card v-if="type === 'couponCard'" />
  51. </view>
  52. </template>
  53. <script setup>
  54. /**
  55. * 装修组件 - 组件集
  56. */
  57. const props = defineProps({
  58. type: {
  59. type: String,
  60. default: '',
  61. },
  62. data: {
  63. type: Object,
  64. default() {},
  65. },
  66. styles: {
  67. type: Object,
  68. default() {},
  69. },
  70. });
  71. function onSearch() {}
  72. </script>
  73. <style></style>