mall-uniapp/sheep/components/s-block-item/s-block-item.vue

80 lines
3.0 KiB
Vue
Raw Normal View History

2022-11-22 07:45:36 +00:00
<template>
<view>
2023-11-08 11:27:28 +00:00
<!-- 基础组件搜索框 -->
2023-11-04 14:06:40 +00:00
<s-search-block v-if="type === 'SearchBar'" :data="data" :styles="styles" :navbar="false" />
2023-11-08 11:27:28 +00:00
<!-- 基础组件公告栏 -->
<s-notice-block v-if="type === 'NoticeBar'" :data="data" />
<!-- 基础组件菜单导航 -->
2022-11-22 07:45:36 +00:00
<s-menu-button v-if="type === 'menuButton'" :data="data" :styles="styles" />
2023-11-08 11:27:28 +00:00
<!-- 基础组件列表导航 -->
2022-11-22 07:45:36 +00:00
<s-menu-list v-if="type === 'menuList'" :data="data" />
2023-11-08 11:27:28 +00:00
<!-- 基础组件宫格导航 -->
2022-11-22 07:45:36 +00:00
<s-menu-grid v-if="type === 'menuGrid'" :data="data" />
2023-11-08 11:27:28 +00:00
<!-- 图文组件图片展示 -->
<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" />
2022-11-22 07:45:36 +00:00
2023-11-08 11:27:28 +00:00
<!-- 商品组件商品卡片 -->
2022-11-22 07:45:36 +00:00
<s-goods-card v-if="type === 'goodsCard'" :data="data" :styles="styles" />
2023-11-08 11:27:28 +00:00
<!-- 商品组件商品栏 -->
2022-11-22 07:45:36 +00:00
<s-goods-shelves v-if="type === 'goodsShelves'" :data="data" :styles="styles" />
2023-11-08 11:27:28 +00:00
<!-- 营销组件拼团 -->
<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'" />
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>