From cfffb723f188166106924b9616755f5571b8c06b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Thu, 19 Sep 2024 16:46:09 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E8=BF=81=E7=A7=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/custom.vue | 78 ++++++++++++++
components/diy/data-magic.vue | 18 ----
components/diy/diy.vue | 14 ++-
components/diy/modules/custom/model-image.vue | 81 ++++++++++++++
components/diy/modules/custom/model-lines.vue | 44 ++++++++
components/diy/modules/custom/model-text.vue | 101 ++++++++++++++++++
6 files changed, 316 insertions(+), 20 deletions(-)
create mode 100644 components/diy/custom.vue
create mode 100644 components/diy/modules/custom/model-image.vue
create mode 100644 components/diy/modules/custom/model-lines.vue
create mode 100644 components/diy/modules/custom/model-text.vue
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 @@
+
+
+
+
+
+
+
+ {{ text_title }}
+
+
+
+
+
+