diff --git a/components/diy/custom.vue b/components/diy/custom.vue new file mode 100644 index 00000000..d923f0e1 --- /dev/null +++ b/components/diy/custom.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/components/diy/data-magic.vue b/components/diy/data-magic.vue index 5bdb7a07..f4496cdb 100644 --- a/components/diy/data-magic.vue +++ b/components/diy/data-magic.vue @@ -317,22 +317,4 @@ .gap-20 { gap: 40rpx; } -// 轮播高度自适应 -:deep(.el-carousel) { - height: 100%; - .el-carousel__container { - height: 100%; - } -} - -:deep(.el-image) { - height: 100%; - width: 100%; - .el-image__inner { - object-fit: cover; - } - .image-slot img { - width: 6rem; - } -} diff --git a/components/diy/diy.vue b/components/diy/diy.vue index b016abf5..cd4f398b 100644 --- a/components/diy/diy.vue +++ b/components/diy/diy.vue @@ -6,6 +6,7 @@ + {{ item.key }} @@ -18,6 +19,7 @@ + @@ -57,7 +59,8 @@ import componentNavGroup from '@/components/diy/nav-group.vue'; import componentGoodsList from '@/components/diy/goods-list.vue'; import componentGoodsTabs from '@/components/diy/goods-tabs.vue'; - import componentDataMagic from '@/components/diy/data-magic.vue' + import componentDataMagic from '@/components/diy/data-magic.vue'; + import componentCustom from '@/components/diy/custom.vue' export default { name: 'diy', props: { @@ -85,12 +88,19 @@ componentNavGroup, componentGoodsList, componentGoodsTabs, - componentDataMagic + componentDataMagic, + componentCustom }, data() { return { // 底部菜单导航高度计算 padding_footer_computer: 140, + // 是否有选项卡 + is_tabs: false, + // 选项卡数据 + tabs_data: {}, + // 是否是模块数据或者是九宫格商品分类样式数据, 默认模块数据 + is_tabs_type: true, }; }, diff --git a/components/diy/modules/custom/model-image.vue b/components/diy/modules/custom/model-image.vue new file mode 100644 index 00000000..095d85e9 --- /dev/null +++ b/components/diy/modules/custom/model-image.vue @@ -0,0 +1,81 @@ + + + diff --git a/components/diy/modules/custom/model-lines.vue b/components/diy/modules/custom/model-lines.vue new file mode 100644 index 00000000..3408f319 --- /dev/null +++ b/components/diy/modules/custom/model-lines.vue @@ -0,0 +1,44 @@ + + + diff --git a/components/diy/modules/custom/model-text.vue b/components/diy/modules/custom/model-text.vue new file mode 100644 index 00000000..ab10418e --- /dev/null +++ b/components/diy/modules/custom/model-text.vue @@ -0,0 +1,101 @@ + + +