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" />
|
|
|
|
|
<!-- 基础组件:菜单导航 -->
|
2023-11-09 01:18:45 +00:00
|
|
|
|
<s-menu-button v-if="type === 'MenuSwiper'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 基础组件:列表导航 -->
|
2023-11-08 13:10:04 +00:00
|
|
|
|
<s-menu-list v-if="type === 'MenuList'" :data="data" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 基础组件:宫格导航 -->
|
2024-08-12 03:03:39 +00:00
|
|
|
|
<s-menu-grid v-if="type === 'MenuGrid'" :data="data" :styles="styles" />
|
2023-12-09 07:37:24 +00:00
|
|
|
|
<!-- 基础组件:弹窗广告 -->
|
|
|
|
|
<s-popup-image v-if="type === 'Popover'" :data="data" />
|
2023-12-09 13:33:46 +00:00
|
|
|
|
<!-- 基础组件:悬浮按钮 -->
|
|
|
|
|
<s-float-menu v-if="type === 'FloatingActionButton'" :data="data" />
|
2022-11-22 07:45:36 +00:00
|
|
|
|
|
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" />
|
|
|
|
|
<!-- 基础组件:标题栏 -->
|
2023-12-15 05:26:27 +00:00
|
|
|
|
<s-title-block v-if="type === 'TitleBar'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 图文组件:广告魔方 -->
|
2023-11-12 11:29:24 +00:00
|
|
|
|
<s-image-cube v-if="type === 'MagicCube'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 图文组件:视频播放 -->
|
|
|
|
|
<s-video-block v-if="type === 'VideoPlayer'" :data="data" :styles="styles" />
|
2023-12-01 16:51:58 +00:00
|
|
|
|
<!-- 基础组件:分割线 -->
|
|
|
|
|
<s-line-block v-if="type === 'Divider'" :data="data" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 图文组件:热区 -->
|
2023-12-14 12:22:51 +00:00
|
|
|
|
<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
|
|
|
|
<!-- 商品组件:商品卡片 -->
|
2023-11-17 01:56:50 +00:00
|
|
|
|
<s-goods-card v-if="type === 'ProductCard'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 商品组件:商品栏 -->
|
2023-11-19 10:27:24 +00:00
|
|
|
|
<s-goods-shelves v-if="type === 'ProductList'" :data="data" :styles="styles" />
|
2023-09-04 06:12:16 +00:00
|
|
|
|
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 营销组件:拼团 -->
|
2023-12-01 13:00:39 +00:00
|
|
|
|
<s-groupon-block v-if="type === 'PromotionCombination'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 营销组件:秒杀 -->
|
2023-12-01 12:24:54 +00:00
|
|
|
|
<s-seckill-block v-if="type === 'PromotionSeckill'" :data="data" :styles="styles" />
|
2024-09-28 07:39:03 +00:00
|
|
|
|
<!-- 营销组件:积分商城 -->
|
2024-09-28 03:37:22 +00:00
|
|
|
|
<s-point-block v-if="type === 'PromotionPoint'" :data="data" :styles="styles" />
|
2023-12-01 12:24:54 +00:00
|
|
|
|
<!-- 营销组件:小程序直播(暂时没有这个功能) -->
|
|
|
|
|
<s-live-block v-if="type === 'MpLive'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
<!-- 营销组件:优惠券 -->
|
2023-11-22 08:57:59 +00:00
|
|
|
|
<s-coupon-block v-if="type === 'CouponCard'" :data="data" :styles="styles" />
|
2023-11-25 07:53:06 +00:00
|
|
|
|
<!-- 营销组件:文章 -->
|
|
|
|
|
<s-richtext-block v-if="type === 'PromotionArticle'" :data="data" :styles="styles" />
|
2023-11-08 11:27:28 +00:00
|
|
|
|
|
2023-12-01 15:34:18 +00:00
|
|
|
|
<!-- 用户组件:用户卡片 -->
|
2024-08-11 06:03:20 +00:00
|
|
|
|
<s-user-card v-if="type === 'UserCard'" :data="data" :styles="styles" />
|
2023-12-01 15:34:18 +00:00
|
|
|
|
<!-- 用户组件:用户订单 -->
|
2024-08-11 06:59:08 +00:00
|
|
|
|
<s-order-card v-if="type === 'UserOrder'" :data="data" :styles="styles" />
|
2023-12-01 15:40:06 +00:00
|
|
|
|
<!-- 用户组件:用户资产 -->
|
2024-08-12 02:05:39 +00:00
|
|
|
|
<s-wallet-card v-if="type === 'UserWallet'" :data="data" :styles="styles" />
|
2023-12-01 15:40:06 +00:00
|
|
|
|
<!-- 用户组件:用户卡券 -->
|
2024-08-12 02:15:51 +00:00
|
|
|
|
<s-coupon-card v-if="type === 'UserCoupon'" :data="data" :styles="styles" />
|
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>
|