s-block-item.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view>
  3. <s-image-block v-if="type === 'imageBlock'" :data="data" :styles="styles" />
  4. <s-image-banner v-if="type === 'imageBanner'" :data="data" :styles="styles" />
  5. <s-video-block v-if="type === 'videoPlayer'" :data="data" :styles="styles" />
  6. <s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
  7. <s-notice-block v-if="type === 'noticeBlock'" :data="data" />
  8. <s-search-block v-if="type === 'searchBlock'" :data="data" :navbar="false" />
  9. <s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
  10. <s-line-block v-if="type === 'lineBlock'" :data="data" />
  11. <s-menu-button v-if="type === 'menuButton'" :data="data" :styles="styles" />
  12. <s-menu-list v-if="type === 'menuList'" :data="data" />
  13. <s-menu-grid v-if="type === 'menuGrid'" :data="data" />
  14. <s-user-card v-if="type === 'userCard'" />
  15. <s-wallet-card v-if="type === 'walletCard'" />
  16. <s-order-card v-if="type === 'orderCard'" :data="data" />
  17. <s-coupon-card v-if="type === 'couponCard'" />
  18. <s-goods-card v-if="type === 'goodsCard'" :data="data" :styles="styles" />
  19. <s-score-block v-if="type === 'scoreGoods'" :data="data" :styles="styles" />
  20. <s-goods-shelves v-if="type === 'goodsShelves'" :data="data" :styles="styles" />
  21. <s-coupon-block v-if="type === 'coupon'" :data="data" :styles="styles"></s-coupon-block>
  22. <s-live-block v-if="type === 'mplive'" :data="data" :styles="styles"></s-live-block>
  23. <s-seckill-block v-if="type === 'seckill'" :data="data" :styles="styles"></s-seckill-block>
  24. <s-groupon-block v-if="type === 'groupon'" :data="data" :styles="styles"></s-groupon-block>
  25. <s-richtext-block v-if="type === 'richtext'" :data="data" :styles="styles"></s-richtext-block>
  26. <s-hotzone-block v-if="type === 'hotzone'" :data="data" :styles="styles"></s-hotzone-block>
  27. </view>
  28. </template>
  29. <script setup>
  30. /**
  31. * 装修组件 - 组件集
  32. */
  33. const props = defineProps({
  34. type: {
  35. type: String,
  36. default: '',
  37. },
  38. data: {
  39. type: Object,
  40. default() {},
  41. },
  42. styles: {
  43. type: Object,
  44. default() {},
  45. },
  46. });
  47. function onSearch() {}
  48. </script>
  49. <style></style>