From fe8db66f46bfc862014ca776396e4da8fda59e56 Mon Sep 17 00:00:00 2001
From: suixy <2277317060@qq.com>
Date: Tue, 19 May 2026 18:01:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=B3=E4=BA=8E=E6=B5=B7?=
=?UTF-8?q?=E5=A8=81=E6=A0=BC=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/el/industrySolutionsEl/el1.vue | 2 +-
src/components/el/industrySolutionsEl/el3.vue | 27 +++--
src/components/global/index.js | 13 +++
src/components/global/title.vue | 37 ++++++
src/main.js | 1 +
src/views/index/classicCase1.vue | 32 +++--
src/views/index/newsCenter.vue | 109 +++++++++++++++---
src/views/index/productCenter.vue | 62 +++++-----
8 files changed, 214 insertions(+), 69 deletions(-)
create mode 100644 src/components/global/index.js
create mode 100644 src/components/global/title.vue
diff --git a/src/components/el/industrySolutionsEl/el1.vue b/src/components/el/industrySolutionsEl/el1.vue
index 1cb346e..76da781 100644
--- a/src/components/el/industrySolutionsEl/el1.vue
+++ b/src/components/el/industrySolutionsEl/el1.vue
@@ -47,7 +47,7 @@ export default {
}
.value {
- width: 62vw;
+ width: 85vw;
margin: 2vw auto 4vw auto;
text-align: left;
font-size: 1vw;
diff --git a/src/components/el/industrySolutionsEl/el3.vue b/src/components/el/industrySolutionsEl/el3.vue
index cfe18aa..3e7e3fe 100644
--- a/src/components/el/industrySolutionsEl/el3.vue
+++ b/src/components/el/industrySolutionsEl/el3.vue
@@ -7,18 +7,20 @@
-
-
-
-
+
+
- {{ i.title }}
-
-
+
@@ -66,8 +68,9 @@ export default {
.list {
- width: 62vw;
+ width: 85vw;
margin: 3vw auto 0;
+ text-align: left;
.item {
margin-right: 3vw;
@@ -131,7 +134,7 @@ export default {
}
&:nth-child(2n) {
- margin-right: 0%;
+ margin-right: 0;
}
}
}
diff --git a/src/components/global/index.js b/src/components/global/index.js
new file mode 100644
index 0000000..8982359
--- /dev/null
+++ b/src/components/global/index.js
@@ -0,0 +1,13 @@
+import Vue from 'vue'
+
+const components = require.context('./', false, /\.vue$/)
+
+components.keys().forEach(fileName => {
+ const componentConfig = components(fileName)
+ const componentName = fileName
+ .replace(/^\.\//, '')
+ .replace(/\.\w+$/, '')
+ .replace(/(^|-)(\w)/g, (match, separator, char) => char.toUpperCase())
+
+ Vue.component(componentName, componentConfig.default || componentConfig)
+})
diff --git a/src/components/global/title.vue b/src/components/global/title.vue
new file mode 100644
index 0000000..7df9b02
--- /dev/null
+++ b/src/components/global/title.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
diff --git a/src/main.js b/src/main.js
index d3ad7a7..1440b62 100644
--- a/src/main.js
+++ b/src/main.js
@@ -12,6 +12,7 @@ import 'swiper/css/bundle';
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
+import "@/components/global";
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(Vue2Editor);
diff --git a/src/views/index/classicCase1.vue b/src/views/index/classicCase1.vue
index 322a939..cca9b91 100644
--- a/src/views/index/classicCase1.vue
+++ b/src/views/index/classicCase1.vue
@@ -1,22 +1,20 @@
-
-
典型案例
+
-
+
{{ i.caseInfoTitle }}
{{ i.caseInfoDesc }}
-
查看详情 >>
- 想了解更多?
+ 查看详情
@@ -25,8 +23,7 @@
+ :src="i.caseInfoPic">
@@ -39,9 +36,11 @@