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 @@
-
-
-
- +
@@ -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 @@