diff --git a/src/assets/images/homePage/cursor_rotate.png b/src/assets/images/homePage/cursor_rotate.png new file mode 100644 index 00000000..a0d28840 Binary files /dev/null and b/src/assets/images/homePage/cursor_rotate.png differ diff --git a/src/assets/images/homePage/dropper.png b/src/assets/images/homePage/dropper.png new file mode 100644 index 00000000..a44ac5c2 Binary files /dev/null and b/src/assets/images/homePage/dropper.png differ diff --git a/src/assets/style/style.css b/src/assets/style/style.css index 121f64a1..45135af2 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -114,11 +114,12 @@ input { overflow-y: hidden; } .collection_modal .ant-upload.ant-upload-select-picture-card { - width: 16.5rem; - height: 16.5rem; background: #FFFFFF; - border: 0.3rem dashed #EDEDED; - margin: 0 2rem 2rem 0; + width: 6rem; + height: 6rem; + border: 0.3rem solid #ededed; + border-radius: 10px; + margin: 0; } .collection_modal .ant-upload.ant-upload-select-picture-card .upload_tip_block .icon-jiahao { font-size: 3.2rem; @@ -135,6 +136,102 @@ input { width: auto; vertical-align: top; } +.collection_modal_body .input_box { + display: flex; + align-items: center; + position: sticky; + top: 0; + background: #fff; + padding-top: 2.5rem; + padding-bottom: 2rem; +} +.collection_modal_body .input_box input { + font-size: 12px; + border-radius: 0.5rem; + width: 70%; + border: 1px solid rgba(0, 0, 0, 0.15); + padding-left: 1.5rem; + border: 0.1rem solid #F1F1F1; + font-size: 1.2rem; + font-weight: 400; +} +.collection_modal_body .input_box inputinput:-moz-placeholder { + color: rgba(0, 0, 0, 0.15); +} +.collection_modal_body .input_box inputinput:-ms-input-placeholder { + color: rgba(0, 0, 0, 0.15); +} +.collection_modal_body .input_box inputinput::-webkit-input-placeholder { + color: rgba(0, 0, 0, 0.15); +} +.collection_modal_body .input_box .generage_btn { + margin: 0 auto; +} +.collection_modal_body .upload_item { + display: flex; + flex-wrap: wrap; +} +.collection_modal_body .upload_item .upload_file_item { + margin: 0 2rem 2rem 0; + display: inline-block; + width: 10rem; + height: 10rem; + border: 1px solid #f5f5f5; + vertical-align: top; + position: relative; +} +.collection_modal_body .upload_item .upload_file_item.upload_component { + border: none; + display: flex; + align-items: center; + justify-content: center; +} +.collection_modal_body .upload_item .upload_file_item :deep(.ant-upload-picture-card-wrapper) { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); +} +.collection_modal_body .upload_item .upload_file_item :deep(.ant-upload-select-picture-card) { + width: 6rem; + height: 6rem; + border: 0.3rem solid #ededed; + border-radius: 10px; + margin: 0; +} +.collection_modal_body .upload_item .upload_file_item .upload_file_item_content { + display: flex; + align-items: center; + justify-content: center; + height: 100%; + width: 100%; + position: relative; +} +.collection_modal_body .upload_item .upload_file_item .upload_file_item_content:hover .delete_file_block { + display: block; +} +.collection_modal_body .upload_item .upload_file_item .upload_file_item_content .upload_img { + display: block; + height: 100%; + width: 100%; +} +.collection_modal_body .upload_item .upload_file_item .upload_file_item_content .delete_file_block { + display: none; + width: 100%; + cursor: pointer; + height: 3rem; + background: rgba(0, 0, 0, 0.2); + font-size: 1.6rem; + color: #ffffff; + line-height: 3rem; + text-align: center; + position: absolute; + left: 0; + bottom: 0; +} +.collection_modal_body .upload_item .upload_file_item .upload_img_icon { + width: 4.6rem; +} .cut_pricture_modal .ant-modal-body { height: 65.4rem; overflow-y: hidden; diff --git a/src/assets/style/style.less b/src/assets/style/style.less index c9073e8b..479bf5d5 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -135,12 +135,12 @@ input{ } .ant-upload.ant-upload-select-picture-card{ - width: 16.5rem; - height: 16.5rem; background: #FFFFFF; - border: 0.3rem dashed #EDEDED; - margin: 0 2rem 2rem 0; - + width: 6rem; + height: 6rem; + border: 0.3rem solid #ededed; + border-radius: 10px; + margin: 0; .upload_tip_block{ .icon-jiahao{ font-size: 3.2rem; @@ -161,6 +161,115 @@ input{ vertical-align: top; } } +//设计input和上传按钮样式 +.collection_modal_body{ + .input_box{ + display: flex; + align-items: center; + position: sticky; + top: 0; + background: #fff; + padding-top: 2.5rem; + padding-bottom: 2rem; + input{ + font-size: 12px; + border-radius: .5rem; + width: 70%; + border: 1px solid rgba(0,0,0,.15); + padding-left: 1.5rem; + border: 0.1rem solid #F1F1F1; + font-size: 1.2rem; + font-weight: 400; + &input:-moz-placeholder{ + color: rgba(0,0,0,.15); + } + + &input:-ms-input-placeholder { + color: rgba(0,0,0,.15); + } + + &input::-webkit-input-placeholder { + color: rgba(0,0,0,.15); + } + } + .generage_btn{ + margin: 0 auto; + } + + + } + .upload_item{ + display: flex; + flex-wrap: wrap; + .upload_file_item { + margin: 0 2rem 2rem 0; + display: inline-block; + // width: 16.5rem; + // height: 16.5rem; + width: 10rem; + height: 10rem; + border: 1px solid #f5f5f5; + vertical-align: top; + position: relative; + &.upload_component { + border: none; + display: flex; + align-items: center; + justify-content: center; + } + :deep(.ant-upload-picture-card-wrapper) { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + :deep(.ant-upload-select-picture-card) { + width: 6rem; + height: 6rem; + border: 0.3rem solid #ededed; + border-radius: 10px; + margin: 0; + } + .upload_file_item_content { + display: flex; + align-items: center; + justify-content: center; + height: 100%; + width: 100%; + position: relative; + + &:hover .delete_file_block { + display: block; + } + + .upload_img { + display: block; + height: 100%; + width: 100%; + } + + .delete_file_block { + display: none; + width: 100%; + cursor: pointer; + height: 3rem; + background: rgba(0, 0, 0, 0.2); + font-size: 1.6rem; + color: #ffffff; + line-height: 3rem; + text-align: center; + position: absolute; + left: 0; + bottom: 0; + } + } + + .upload_img_icon { + width: 4.6rem; + } + } + } +} //剪裁弹窗 .cut_pricture_modal{ diff --git a/src/component/HomePage/ColorboardUpload.vue b/src/component/HomePage/ColorboardUpload.vue index 6472ed28..f02ff455 100644 --- a/src/component/HomePage/ColorboardUpload.vue +++ b/src/component/HomePage/ColorboardUpload.vue @@ -1,74 +1,108 @@ - diff --git a/src/component/HomePage/collectionModal.vue b/src/component/HomePage/collectionModal.vue index 619325b5..fca8dda9 100644 --- a/src/component/HomePage/collectionModal.vue +++ b/src/component/HomePage/collectionModal.vue @@ -236,12 +236,14 @@ export default defineComponent({ .collection_modal_body{ height: 100%; + background-color: #fff; } }