From f81a0c041876074353e8ab53f75aa42549b91f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=A5=A5=E6=96=AF?= <9068149@qq.com> Date: Wed, 29 Sep 2021 17:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=B0=E5=BB=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2/=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=B1=8F=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.js | 2 +- src/components/createTemplate/index.vue | 153 +++--- src/layout/screen/index.vue | 689 ++++++++++++++++++++++++ src/views/establishShop/index.vue | 42 +- 4 files changed, 764 insertions(+), 122 deletions(-) create mode 100644 src/layout/screen/index.vue diff --git a/src/api/api.js b/src/api/api.js index e2ce58d..85f2234 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -121,7 +121,7 @@ class httpApi { method: 'post' }) - //设置为系统模板 + //设置为模板 saveDefaultTemplate = data => httpAjax({ url: '/adm/shopTemplate/saveDefaultTemplate', data, diff --git a/src/components/createTemplate/index.vue b/src/components/createTemplate/index.vue index d8607fd..56f1e00 100644 --- a/src/components/createTemplate/index.vue +++ b/src/components/createTemplate/index.vue @@ -12,63 +12,55 @@ - -
-
- -

- 使用空白模板 -

- -
- 使用模板 -
-
-
-
-
- - -

- {{ item.name }} -

- -
- + + + 使用模板 -
-
-
+ /> +
空白模板
+ + + + + +
+ + 使用模板 +
+
+
+
- -
@@ -141,47 +133,28 @@ export default { overflow-x: scroll; display: flex; padding: 10px; - /* 模板列表 */ - .templateList { - width: 184px; - height: 380px; - position: relative; - transition: all 1s; - transform: translateY(0); - margin-top: 10px; - margin-left: 20px; - border-radius: 4px 4px 0 0; - border: 1px solid #f2f2f2; + } + } + /deep/.el-row { + width: 896px; + .el-card { + margin-bottom: 30px; + .el-card__body { + height: 385px; display: flex; justify-content: center; align-items: center; flex-direction: column; - - .entyTemplate { - width: 185px; + .bottom { + width: 100%; display: flex; - flex-direction: column; - justify-content: center; + justify-content: space-between; align-items: center; - } - .hove { - display: none; - } - - &:hover { - transform: translateY(-5px); - margin-top: -10px; - /* 进入事件 */ - .hove { - position: absolute; - left: 0; - top: 0; - width: 100%; - height: 100%; - background-color: rgba(0, 0, 0, 0.6); - display: flex; - justify-content: center; - align-items: center; + .name{ + width: 70%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; } } } diff --git a/src/layout/screen/index.vue b/src/layout/screen/index.vue new file mode 100644 index 0000000..a832dd0 --- /dev/null +++ b/src/layout/screen/index.vue @@ -0,0 +1,689 @@ + + + diff --git a/src/views/establishShop/index.vue b/src/views/establishShop/index.vue index bd0fb83..3ce6c39 100644 --- a/src/views/establishShop/index.vue +++ b/src/views/establishShop/index.vue @@ -116,9 +116,9 @@ {{ props.row.name }} - + {{ props.row.createTime }} @@ -167,7 +167,7 @@ - + - 设置为系统模板设置为模板 导出配置 - - @@ -337,8 +316,8 @@ - - 配置管理 + + @@ -354,6 +333,7 @@