2022-11-22 07:45:36 +00:00
|
|
|
<template>
|
|
|
|
<view>
|
2023-11-05 12:42:49 +00:00
|
|
|
<s-image-block v-if="type === 'ImageBar'" :data="data" :styles="styles" />
|
2023-11-06 01:31:41 +00:00
|
|
|
<s-image-banner v-if="type === 'Carousel'" :data="data" :styles="styles" />
|
2023-11-05 14:53:29 +00:00
|
|
|
<s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
|
2022-11-22 07:45:36 +00:00
|
|
|
<s-image-cube v-if="type === 'imageCube'" :data="data" :styles="styles" />
|
|
|
|
|
2023-11-03 01:18:03 +00:00
|
|
|
<s-notice-block v-if="type === 'NoticeBar'" :data="data" />
|
2023-11-04 14:06:40 +00:00
|
|
|
<s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
|
2022-11-22 07:45:36 +00:00
|
|
|
<s-title-block v-if="type === 'titleBlock'" :data="data" :styles="styles" />
|
|
|
|
<s-line-block v-if="type === 'lineBlock'" :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-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>
|
2023-03-09 10:45:09 +00:00
|
|
|
<s-live-block v-if="type === 'mplive'" :data="data" :styles="styles"></s-live-block>
|
2022-11-22 07:45:36 +00:00
|
|
|
<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>
|
2023-09-04 06:12:16 +00:00
|
|
|
<s-hotzone-block v-if="type === 'hotzone'" :data="data" :styles="styles"></s-hotzone-block>
|
|
|
|
|
2022-11-22 07:45:36 +00:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
/**
|
|
|
|
* 装修组件 - 组件集
|
|
|
|
*/
|
|
|
|
const props = defineProps({
|
|
|
|
type: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
data: {
|
|
|
|
type: Object,
|
|
|
|
default() {},
|
|
|
|
},
|
|
|
|
styles: {
|
|
|
|
type: Object,
|
|
|
|
default() {},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
function onSearch() {}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style></style>
|