From 1eeaf3863835d8144f4bfa1d24f3c9f06d974de7 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Thu, 18 Jul 2024 14:30:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BA=97=E9=93=BA=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/sys/oss-manage/ossManage.scss | 128 +++ seller/src/views/sys/oss-manage/ossManage.vue | 936 ++++++++++++------ 2 files changed, 788 insertions(+), 276 deletions(-) diff --git a/seller/src/views/sys/oss-manage/ossManage.scss b/seller/src/views/sys/oss-manage/ossManage.scss index 0045aca1..dfd1ebdd 100644 --- a/seller/src/views/sys/oss-manage/ossManage.scss +++ b/seller/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/seller/src/views/sys/oss-manage/ossManage.vue b/seller/src/views/sys/oss-manage/ossManage.vue index 995a0194..e9ae3c64 100644 --- a/seller/src/views/sys/oss-manage/ossManage.vue +++ b/seller/src/views/sys/oss-manage/ossManage.vue @@ -1,203 +1,167 @@