From 6c1c47de1dc57c0870a580465a37138727ef1b3b Mon Sep 17 00:00:00 2001 From: 15386982806 Date: Fri, 2 Feb 2024 17:24:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AB=AF=E4=BC=98?= =?UTF-8?q?=E5=8C=96OSS=E8=B5=84=E6=BA=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/editor/upload-image.vue | 2 +- .../src/components/lili/upload-pic-input.vue | 2 +- manager/src/views/member/list/index.vue | 2 +- .../src/views/member/list/memberRecycle.vue | 2 +- .../page-decoration/modelList/carousel1.vue | 2 +- .../page-decoration/modelList/carousel2.vue | 2 +- .../views/page-decoration/wap/advertising.vue | 2 +- .../page-decoration/wap/alertAdvertising.vue | 2 +- .../views/page-decoration/wap/decorate.vue | 2 +- .../src/views/seller/shop/shopOperation.vue | 2 +- .../src/views/sys/oss-manage/ossManage.scss | 128 +++++ .../src/views/sys/oss-manage/ossManage.vue | 512 ++++++++++++------ .../setting-manage/setting/BASE_SETTING.vue | 2 +- 13 files changed, 479 insertions(+), 183 deletions(-) diff --git a/manager/src/components/editor/upload-image.vue b/manager/src/components/editor/upload-image.vue index fdfd5182..9e598731 100644 --- a/manager/src/components/editor/upload-image.vue +++ b/manager/src/components/editor/upload-image.vue @@ -57,7 +57,7 @@ - + diff --git a/manager/src/components/lili/upload-pic-input.vue b/manager/src/components/lili/upload-pic-input.vue index 1bcfe01f..3e7cab05 100644 --- a/manager/src/components/lili/upload-pic-input.vue +++ b/manager/src/components/lili/upload-pic-input.vue @@ -47,7 +47,7 @@ - + diff --git a/manager/src/views/member/list/index.vue b/manager/src/views/member/list/index.vue index 2f09aa16..dc8eae1e 100644 --- a/manager/src/views/member/list/index.vue +++ b/manager/src/views/member/list/index.vue @@ -94,7 +94,7 @@ - + diff --git a/manager/src/views/member/list/memberRecycle.vue b/manager/src/views/member/list/memberRecycle.vue index c3f26014..5de28d72 100644 --- a/manager/src/views/member/list/memberRecycle.vue +++ b/manager/src/views/member/list/memberRecycle.vue @@ -140,7 +140,7 @@ - + diff --git a/manager/src/views/page-decoration/modelList/carousel1.vue b/manager/src/views/page-decoration/modelList/carousel1.vue index aa3c6bb8..213606dc 100644 --- a/manager/src/views/page-decoration/modelList/carousel1.vue +++ b/manager/src/views/page-decoration/modelList/carousel1.vue @@ -84,7 +84,7 @@ - + diff --git a/manager/src/views/page-decoration/modelList/carousel2.vue b/manager/src/views/page-decoration/modelList/carousel2.vue index c4a08d32..d775feac 100644 --- a/manager/src/views/page-decoration/modelList/carousel2.vue +++ b/manager/src/views/page-decoration/modelList/carousel2.vue @@ -204,7 +204,7 @@ - + diff --git a/manager/src/views/page-decoration/wap/advertising.vue b/manager/src/views/page-decoration/wap/advertising.vue index 927d180d..a6945717 100644 --- a/manager/src/views/page-decoration/wap/advertising.vue +++ b/manager/src/views/page-decoration/wap/advertising.vue @@ -80,7 +80,7 @@ - + diff --git a/manager/src/views/page-decoration/wap/alertAdvertising.vue b/manager/src/views/page-decoration/wap/alertAdvertising.vue index a2ff1cde..bb5f7afd 100644 --- a/manager/src/views/page-decoration/wap/alertAdvertising.vue +++ b/manager/src/views/page-decoration/wap/alertAdvertising.vue @@ -83,7 +83,7 @@ > - + diff --git a/manager/src/views/page-decoration/wap/decorate.vue b/manager/src/views/page-decoration/wap/decorate.vue index 354d717d..5d58e1f7 100644 --- a/manager/src/views/page-decoration/wap/decorate.vue +++ b/manager/src/views/page-decoration/wap/decorate.vue @@ -497,7 +497,7 @@ - + diff --git a/manager/src/views/seller/shop/shopOperation.vue b/manager/src/views/seller/shop/shopOperation.vue index 31acac3c..8fe337a2 100644 --- a/manager/src/views/seller/shop/shopOperation.vue +++ b/manager/src/views/seller/shop/shopOperation.vue @@ -375,7 +375,7 @@ - + diff --git a/manager/src/views/sys/oss-manage/ossManage.scss b/manager/src/views/sys/oss-manage/ossManage.scss index 0045aca1..dfd1ebdd 100644 --- a/manager/src/views/sys/oss-manage/ossManage.scss +++ b/manager/src/views/sys/oss-manage/ossManage.scss @@ -133,3 +133,131 @@ } } } + + +.oss-manage-box { + .file-list { + height: 100%; + box-sizing: border-box; + border-right: 1px solid #e5e6eb; + padding: 16px 0 24px; + } + .pic-list { + height: 100%; + box-sizing: border-box; + padding: 0 0 24px 0; + } + .img-box { + width: 100%; + display: flex; + flex-wrap: wrap; + align-items: flex-start; + justify-content: flex-start; + align-content: flex-start; + margin-top: 20px; + .img-item { + width: 120px; + height: 158px; + box-sizing: border-box; + margin: 0 13px 8px; + position: relative; + .card { + width: 120px; + height: 120px; + border-radius: 8px; + border: 2px solid transparent; + overflow: hidden; + box-sizing: border-box; + position: relative; + img { + width: 100%; + height: 100%; + } + .checkbox { + position: absolute; + top: 10px; + right: 10px; + z-index: 1000; + } + .preview { + width: 100%; + height: 26px; + background-color: #ffffff; + text-align: center; + line-height: 30px; + color: #666666; + position: absolute; + left: 0; + bottom: 0; + display: flex; + flex-wrap: nowrap; + > div { + width: 100%; + flex: 1; + } + } + } + .card:hover, + .custom-checkbox-card-checked { + border: 2px solid #ff5c58; + } + .text { + width: 120px; + height: 36px; + cursor: pointer; + color: #252931; + font-size: 14px; + line-height: 36px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-align: center; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + } + } + } + .page-box { + display: flex; + justify-content: flex-end; + margin-top: 20px; + } + .pagination-box { + display: flex; + flex-direction: row-reverse; + } + /* Checkbox默认的样式 */ + .check-box { + .ivu-checkbox { + position: absolute; + right: 10px; + top: 10px; + z-index: 100; + } + } + /* 覆盖iView默认的Checkbox样式 */ + .ivu-checkbox-wrapper { + /*font-size: 16px; !* 修改字体大小 *!*/ + /*color: #495060; !* 修改文本颜色 *!*/ + /* 添加其他需要的样式 */ + } + .ivu-checkbox-inner { + /*width: 20px; !* 修改选框大小 *!*/ + /*height: 20px;*/ + /*border-color: #dcdee2; !* 修改边框颜色 *!*/ + /* 添加其他需要的样式 */ + } + /* 当Checkbox被选中时的样式 */ + .ivu-checkbox-checked .ivu-checkbox-inner { + /*background-color: #2db7f5; !* 修改选中时的背景颜色 *!*/ + } + /* 当Checkbox不可用时的样式 */ + .ivu-checkbox-disabled .ivu-checkbox-inner { + /*background-color: #e9e9e9; !* 修改禁用状态下的背景颜色 *!*/ + } + + .demo-tree-render .ivu-tree-title{ + width: 94%; + } +} + diff --git a/manager/src/views/sys/oss-manage/ossManage.vue b/manager/src/views/sys/oss-manage/ossManage.vue index 1c337cee..cd0ad449 100644 --- a/manager/src/views/sys/oss-manage/ossManage.vue +++ b/manager/src/views/sys/oss-manage/ossManage.vue @@ -27,6 +27,7 @@ margin: 0 10px; } } + - - -
- -
-
+ + + + + + + + + + + + + + +
+
@@ -474,7 +476,7 @@ - + @@ -490,7 +492,7 @@ import {uploadFile} from "@/libs/axios"; import {regular} from "@/utils"; import DPlayer from 'dplayer'; // import ossManage from "@/views/sys/oss-manage/ossManage"; -import ossManage from "@/views/shop/ossManage"; +import ossManage from "@/views/shop/ossManages"; export default { @@ -745,8 +747,9 @@ export default { if (val && this.selectedFormBtnName == 'selectedSkuImages') { this.selectedSku.images.push(val); } else { - this.baseInfoForm[this.selectedFormBtnName].push(val); + this.baseInfoForm[this.selectedFormBtnName].push(val.url); } + }, confirmUrls() { if (this.selectedImage && this.selectedFormBtnName == 'selectedSkuImages') { diff --git a/seller/src/views/lili-components/editor/upload-image.vue b/seller/src/views/lili-components/editor/upload-image.vue index b1e3c553..6373db62 100644 --- a/seller/src/views/lili-components/editor/upload-image.vue +++ b/seller/src/views/lili-components/editor/upload-image.vue @@ -57,7 +57,7 @@ - + diff --git a/seller/src/views/my-components/lili/upload-pic-thumb.vue b/seller/src/views/my-components/lili/upload-pic-thumb.vue index 96d6c991..630bb1e8 100644 --- a/seller/src/views/my-components/lili/upload-pic-thumb.vue +++ b/seller/src/views/my-components/lili/upload-pic-thumb.vue @@ -57,7 +57,7 @@
- + @@ -65,7 +65,7 @@ diff --git a/seller/src/views/shop/wap/decorate.vue b/seller/src/views/shop/wap/decorate.vue index b53e89c7..d7dd8802 100644 --- a/seller/src/views/shop/wap/decorate.vue +++ b/seller/src/views/shop/wap/decorate.vue @@ -221,13 +221,13 @@ > - +