diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..51b7e15 --- /dev/null +++ b/.env.development @@ -0,0 +1,11 @@ +# 页面标题 +VUE_APP_TITLE = 海威物联官网 + +# 开发环境配置 +ENV = 'development' + +# 若依管理系统/开发环境 +VUE_APP_BASE_API = '/dev-api' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..fe42e55 --- /dev/null +++ b/.env.production @@ -0,0 +1,9 @@ +# 页面标题 +VUE_APP_TITLE = 海威物联官网 + +# 生产环境配置 +ENV = 'production' + +# 若依管理系统/生产环境 +VUE_APP_BASE_API = '/prod-api' + diff --git a/src/App.vue b/src/App.vue index 1273865..fc8946e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -23,6 +23,8 @@ body { &::-webkit-scrollbar { display: none } + + margin: 0; } #app { @@ -31,7 +33,7 @@ body { -moz-osx-font-smoothing: grayscale; text-align: center; color: #2c3e50; - margin-top: 60px; + //margin-top: 60px; } diff --git a/src/components/editEl/editEl1.vue b/src/components/editEl/editEl1.vue new file mode 100644 index 0000000..1ef6610 --- /dev/null +++ b/src/components/editEl/editEl1.vue @@ -0,0 +1,136 @@ + + + + + {{ data.title }} + + + + + {{ data.subTitle }} + + + + + + + + + {{ i.title }} + {{ i.value }} + + + + + + + + + + + + + + + diff --git a/src/components/editEl/editEl2.vue b/src/components/editEl/editEl2.vue new file mode 100644 index 0000000..c6f0ff2 --- /dev/null +++ b/src/components/editEl/editEl2.vue @@ -0,0 +1,130 @@ + + + + + {{ data.title }} + + + + + {{ data.subTitle }} + + + + + + {{ data.contentSubTitle }} + + + {{ data.contentTitle }} + + + {{ data.contentInfo }} + + + + + + + + + + + + diff --git a/src/components/editEl/editEl3.vue b/src/components/editEl/editEl3.vue new file mode 100644 index 0000000..049d982 --- /dev/null +++ b/src/components/editEl/editEl3.vue @@ -0,0 +1,125 @@ + + + + + {{ data.title }} + + + + + {{ data.subTitle }} + + + + + + + + {{ i.itemTitle }} + {{ i.itemInfo }} + + + + + + + + + + + + + diff --git a/src/components/editEl/editEl4.vue b/src/components/editEl/editEl4.vue new file mode 100644 index 0000000..2ec857d --- /dev/null +++ b/src/components/editEl/editEl4.vue @@ -0,0 +1,129 @@ + + + + + + + + + {{ i.productInfoDetailTitle }} + + {{ i.productInfoDetailDesc }} + + + + + + + + + + + diff --git a/src/components/editEl/uploadEl.vue b/src/components/editEl/uploadEl.vue new file mode 100644 index 0000000..9f34aa2 --- /dev/null +++ b/src/components/editEl/uploadEl.vue @@ -0,0 +1,65 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 460e030..d21bd02 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,6 +6,9 @@ Vue.use(Router) export default new Router({ routes: [ + { + path: '/editor', component: () => import('@/views/pageEditor/index.vue'), + }, { path: '/', component: Layout, diff --git a/src/views/pageEditor/index.vue b/src/views/pageEditor/index.vue new file mode 100644 index 0000000..1a2fb08 --- /dev/null +++ b/src/views/pageEditor/index.vue @@ -0,0 +1,196 @@ + + + + + 页面编辑器 + + + + + + + + + + + + + + \ No newline at end of file