1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <template>
- <view>
-
-
- <s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
-
- <s-notice-block v-if="type === 'NoticeBar'" :data="data" />
-
- <s-menu-button v-if="type === 'MenuSwiper'" :data="data" :styles="styles" />
-
- <s-menu-list v-if="type === 'MenuList'" :data="data" />
-
- <s-menu-grid v-if="type === 'MenuGrid'" :data="data" />
-
- <s-popup-image v-if="type === 'Popover'" :data="data" />
-
- <s-float-menu v-if="type === 'FloatingActionButton'" :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 === 'TitleBar'" :data="data" :styles="styles" />
-
- <s-image-cube v-if="type === 'MagicCube'" :data="data" :styles="styles" />
-
- <s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
-
- <s-line-block v-if="type === 'Divider'" :data="data" />
-
- <s-hotzone-block v-if="type === 'HotZone'" :data="data" :styles="styles" />
-
- <s-goods-card v-if="type === 'ProductCard'" :data="data" :styles="styles" />
-
- <s-goods-shelves v-if="type === 'ProductList'" :data="data" :styles="styles" />
-
- <s-groupon-block v-if="type === 'PromotionCombination'" :data="data" :styles="styles" />
-
- <s-seckill-block v-if="type === 'PromotionSeckill'" :data="data" :styles="styles" />
-
- <s-live-block v-if="type === 'MpLive'" :data="data" :styles="styles" />
-
- <s-coupon-block v-if="type === 'CouponCard'" :data="data" :styles="styles" />
-
- <s-richtext-block v-if="type === 'PromotionArticle'" :data="data" :styles="styles" />
-
- <s-user-card v-if="type === 'UserCard'" />
-
- <s-order-card v-if="type === 'UserOrder'" :data="data" />
-
- <s-wallet-card v-if="type === 'UserWallet'" />
-
- <s-coupon-card v-if="type === 'UserCoupon'" />
- </view>
- </template>
- <script setup>
-
- const props = defineProps({
- type: {
- type: String,
- default: '',
- },
- data: {
- type: Object,
- default() {},
- },
- styles: {
- type: Object,
- default() {},
- },
- });
- function onSearch() {}
- </script>
- <style></style>
|