From 6aff732a5772907de86fc8c64e8016eed76fdfea Mon Sep 17 00:00:00 2001 From: zhangyh Date: Tue, 11 Nov 2025 10:35:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20prompt=E8=BE=93=E5=85=A5=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/home/tools/toProduct/index.vue | 309 ++++++++----------- 1 file changed, 121 insertions(+), 188 deletions(-) diff --git a/src/component/home/tools/toProduct/index.vue b/src/component/home/tools/toProduct/index.vue index baa5dcb5..a389645f 100644 --- a/src/component/home/tools/toProduct/index.vue +++ b/src/component/home/tools/toProduct/index.vue @@ -1,16 +1,9 @@ @@ -1319,68 +1251,13 @@ export default defineComponent({ .productImg_content_item_intro { font-size: 1.4rem; } -// .productImg_content_item_imgBox{ -// display: flex; -// overflow-x: auto; -// width: auto; -// margin-bottom: 2rem; -// align-items: center; -// flex-wrap: nowrap; -// .content_item_imgBox_itemImg{ -// display: flex; -// margin-right: 1rem; -// position: relative; -// height: 36rem; -// max-height: 100%; -// position: relative; -// img{ -// height: 100%; -// width: 100%; -// cursor: pointer; -// object-fit: contain; -// opacity: .5; -// &.active{ -// opacity: 1; -// } -// } -// .ant-checkbox-wrapper{ -// position: absolute; -// right: 0; -// top: 0; -// } -// &.content_item_imgBox_itemImg:hover{ -// .content_item_imgBox_itemImg_delete{ -// display: block; -// cursor: pointer; -// } -// } -// .content_item_imgBox_itemImg_delete{ -// display: none; -// width: 100%; -// height: 100%; -// background: rgba(0,0,0,.2); -// position: absolute; -// i{ -// position: absolute; -// left: 50%; -// top: 50%; -// transform: translate(-50%,-50%); -// color: #fff; -// } -// } -// } -// .content_item_imgBox_itemImg:last-child{ -// margin-right: 0; -// } -// } .selectImg { display: flex; flex-direction: column; > .imgBox { flex: 1; max-height: 45rem; - margin-top: 2rem; display: flex; flex-direction: row; flex-wrap: nowrap; @@ -1388,17 +1265,19 @@ export default defineComponent({ width: 100%; overflow: hidden; overflow-x: auto; + column-gap: 1rem; // &.active > .item { - margin-right: 1rem; - width: calc(100% / 2 - 0.5rem); + // margin-right: 1rem; + // width: calc(100% / 2 - 0.5rem); + width: 9.6rem; cursor: pointer; overflow: hidden; display: flex; justify-content: center; flex-shrink: 0; - height: 25rem; + height: 13.4rem; position: relative; // &.active{ // border: 2px solid; @@ -1454,6 +1333,7 @@ export default defineComponent({ > .head { color: #000; font-weight: 600; + margin-bottom: 2rem; > .text { display: inline-block; font-size: 1.6rem; @@ -1500,6 +1380,7 @@ export default defineComponent({ flex-shrink: 0; height: 25rem; position: relative; + > .imgBox { width: 100%; } @@ -1665,4 +1546,56 @@ export default defineComponent({ .designPage { margin-right: 4rem; } +.upload_file_item { + // height: 13.4rem; + // margin-top: 2rem; + :deep(.ant-upload-picture-card-wrapper) { + .ant-upload-list-picture-card { + .ant-upload-select-picture-card { + width: 9.6rem; + height: 13.4rem; + } + } + } +} + +.prompt-container { + margin-top: 4rem; + margin-bottom: 3rem; + position: relative; + .prompt-title { + margin-bottom: 1.4rem; + font-size: 1.6rem; + // margin-bottom: 1rem; + } + .input_border { + padding-bottom: 0; + .input_box { + .input_box_btnBox .textarea { + min-height: 12.7rem; + } + } + } + .asistant-btn { + // width: 9rem; + padding: 0.45rem 0.6rem; + font-size: 1rem; + font-weight: 400; + color: #313131; + position: absolute; + bottom: 1.3rem; + left: 1.3rem; + display: flex; + column-gap: 0.3rem; + justify-content: center; + align-items: center; + background-color: #f2f2f2; + border: 1px solid #dfdfdf; + border-radius: 0.5rem; + cursor: pointer; + .asistant-icon { + font-size: 1rem; + } + } +}