diff --git a/.env.dev b/.env.dev index d5d9d7c0..d5889047 100644 --- a/.env.dev +++ b/.env.dev @@ -7,6 +7,6 @@ VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk' # VUE_APP_BASE_URL = 'http://192.168.1.9:17088' # VUE_APP_BASE_URL = 'http://192.168.1.9:5567' # 佩佩 -# VUE_APP_BASE_URL = 'http://192.168.1.7:5567' +VUE_APP_BASE_URL = 'http://192.168.1.7:5567' # 海波 -# VUE_APP_BASE_URL = 'http://192.168.1.9:5567' +VUE_APP_BASE_URL = 'http://192.168.1.9:5567' diff --git a/src/assets/style/style.css b/src/assets/style/style.css index 58b943b0..2d9828e3 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -116,9 +116,15 @@ li { border-radius: 5px; padding: 0.6rem 0.5rem; } +.select_block { + height: 4rem; +} +.select_block .ant-select { + height: 100%; +} .select_block .ant-select:not(.ant-select-customize-input) .ant-select-selector { background: transparent; - height: 4rem; + height: 95%; border: 0.1rem solid rgba(0, 0, 0, 0) !important; border-radius: 0; box-shadow: none !important; @@ -467,6 +473,9 @@ li { top: auto; margin: 0 9rem; } +.ant-modal { + box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); +} .ant-modal-confirm-confirm .ant-modal-content { border-radius: 1rem; } @@ -609,8 +618,6 @@ li { .generalModel .ant-modal-body { padding: 0; height: calc(65rem*1.2); -} -.generalModel .ant-modal-body { padding: calc(4rem*1.2) calc(5rem*1.2); } .generalModel .fi-rr-down-to-line, @@ -937,14 +944,17 @@ li { height: 2.2rem; align-items: center; } -.pin_block .ant-checkbox-wrapper span { +.pin_block .ant-checkbox-wrapper > span { + height: 100%; +} +.pin_block .ant-checkbox-wrapper > span { font-size: 1.4rem; line-height: 2.3rem; } -.pin_block .ant-checkbox-wrapper span .ant-checkbox-input::after { +.pin_block .ant-checkbox-wrapper > span .ant-checkbox-input::after { height: auto; } -.pin_block .ant-checkbox-wrapper span.ant-checkbox-checked::after { +.pin_block .ant-checkbox-wrapper > span.ant-checkbox-checked::after { border: 1px solid rgba(0, 0, 0, 0); } .ant-checkbox-inner { @@ -1230,7 +1240,9 @@ li { } .designOpenrtion_modal .design_closeIcon, .designOpenrtionMobile_modal .design_closeIcon, -.design_detail_modal_component .design_closeIcon { +.design_detail_modal_component .design_closeIcon, +.designElements_modal .design_closeIcon, +.designElementsMobile_modal .design_closeIcon { top: 2rem; right: 2rem; cursor: pointer; @@ -1243,7 +1255,9 @@ li { } .designOpenrtion_modal .design_closeIcon .fi-rr-cross-small::before, .designOpenrtionMobile_modal .design_closeIcon .fi-rr-cross-small::before, -.design_detail_modal_component .design_closeIcon .fi-rr-cross-small::before { +.design_detail_modal_component .design_closeIcon .fi-rr-cross-small::before, +.designElements_modal .design_closeIcon .fi-rr-cross-small::before, +.designElementsMobile_modal .design_closeIcon .fi-rr-cross-small::before { padding: 0.2rem; border-radius: 5px; border: solid 2px rgba(0, 0, 0, 0.25); @@ -1252,33 +1266,41 @@ li { } .designOpenrtion_modal .design_closeIcon.collection_closeIcon:hover .fi-rr-cross-small::before, .designOpenrtionMobile_modal .design_closeIcon.collection_closeIcon:hover .fi-rr-cross-small::before, -.design_detail_modal_component .design_closeIcon.collection_closeIcon:hover .fi-rr-cross-small::before { +.design_detail_modal_component .design_closeIcon.collection_closeIcon:hover .fi-rr-cross-small::before, +.designElements_modal .design_closeIcon.collection_closeIcon:hover .fi-rr-cross-small::before, +.designElementsMobile_modal .design_closeIcon.collection_closeIcon:hover .fi-rr-cross-small::before { border: solid 2px rgba(0, 0, 0, 0.55); color: #000000; } .design_detail_modal_component .ant-upload-list-picture-card-container, .designOpenrtion_modal .ant-upload-list-picture-card-container, +.designElements_modal .ant-upload-list-picture-card-container, .UpgradePlan_modal .ant-upload-list-picture-card-container, .refund_reason .ant-upload-list-picture-card-container, .Export .ant-upload-list-picture-card-container, -.designOpenrtionMobile_modal .ant-upload-list-picture-card-container { +.designOpenrtionMobile_modal .ant-upload-list-picture-card-container, +.designElementsMobile_modal .ant-upload-list-picture-card-container { display: none !important; } .design_detail_modal_component .ant-upload-picture-card-wrapper, .designOpenrtion_modal .ant-upload-picture-card-wrapper, +.designElements_modal .ant-upload-picture-card-wrapper, .UpgradePlan_modal .ant-upload-picture-card-wrapper, .refund_reason .ant-upload-picture-card-wrapper, .Export .ant-upload-picture-card-wrapper, -.designOpenrtionMobile_modal .ant-upload-picture-card-wrapper { +.designOpenrtionMobile_modal .ant-upload-picture-card-wrapper, +.designElementsMobile_modal .ant-upload-picture-card-wrapper { width: auto; vertical-align: top; } .design_detail_modal_component .subitOkPreviewBtn, .designOpenrtion_modal .subitOkPreviewBtn, +.designElements_modal .subitOkPreviewBtn, .UpgradePlan_modal .subitOkPreviewBtn, .refund_reason .subitOkPreviewBtn, .Export .subitOkPreviewBtn, -.designOpenrtionMobile_modal .subitOkPreviewBtn { +.designOpenrtionMobile_modal .subitOkPreviewBtn, +.designElementsMobile_modal .subitOkPreviewBtn { background-color: #38205b; color: #fff; cursor: pointer; @@ -1304,13 +1326,19 @@ i { opacity: 0.5; transform: scale(0.9); } +input[type=number]::-webkit-inner-spin-button, +input[type=number]::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; +} textarea:focus { outline: none; /* 清除默认焦点样式 */ } .collection_modal_body .input_border, .design_detail_modal_component .input_border, -.library_page .input_border { +.library_page .input_border, +.productImg_modal .input_border { z-index: 2; display: flex; align-items: center; @@ -1323,7 +1351,8 @@ textarea:focus { } .collection_modal_body .input_border .input_box, .design_detail_modal_component .input_border .input_box, -.library_page .input_border .input_box { +.library_page .input_border .input_box, +.productImg_modal .input_border .input_box { position: relative; z-index: 2; flex: 1; @@ -1333,35 +1362,41 @@ textarea:focus { } .collection_modal_body .input_border .input_box .inputShowText, .design_detail_modal_component .input_border .input_box .inputShowText, -.library_page .input_border .input_box .inputShowText { +.library_page .input_border .input_box .inputShowText, +.productImg_modal .input_border .input_box .inputShowText { width: 100%; display: none; } .collection_modal_body .input_border .input_box.active .input_box_btnBox, .design_detail_modal_component .input_border .input_box.active .input_box_btnBox, .library_page .input_border .input_box.active .input_box_btnBox, +.productImg_modal .input_border .input_box.active .input_box_btnBox, .collection_modal_body .input_border .input_box.active textarea, .design_detail_modal_component .input_border .input_box.active textarea, -.library_page .input_border .input_box.active textarea { +.library_page .input_border .input_box.active textarea, +.productImg_modal .input_border .input_box.active textarea { border: 1px solid #ff0001; box-shadow: 0px 0px 3px 1px rgba(255, 0, 0, 0.2); } .collection_modal_body .input_border .input_box.active span, .design_detail_modal_component .input_border .input_box.active span, -.library_page .input_border .input_box.active span { +.library_page .input_border .input_box.active span, +.productImg_modal .input_border .input_box.active span { opacity: 1; display: block; color: rgba(255, 0, 0.7); } .collection_modal_body .input_border .search_keyword, .design_detail_modal_component .input_border .search_keyword, -.library_page .input_border .search_keyword { +.library_page .input_border .search_keyword, +.productImg_modal .input_border .search_keyword { height: 0; flex-basis: 100%; } .collection_modal_body .input_border .search_keyword .search_keyword_center, .design_detail_modal_component .input_border .search_keyword .search_keyword_center, -.library_page .input_border .search_keyword .search_keyword_center { +.library_page .input_border .search_keyword .search_keyword_center, +.productImg_modal .input_border .search_keyword .search_keyword_center { justify-content: space-between; display: flex; width: var(--width); @@ -1377,7 +1412,8 @@ textarea:focus { } .collection_modal_body .input_border .search_keyword .search_keyword_center .search_keyword_center_left, .design_detail_modal_component .input_border .search_keyword .search_keyword_center .search_keyword_center_left, -.library_page .input_border .search_keyword .search_keyword_center .search_keyword_center_left { +.library_page .input_border .search_keyword .search_keyword_center .search_keyword_center_left, +.productImg_modal .input_border .search_keyword .search_keyword_center .search_keyword_center_left { display: flex; overflow: hidden; flex: 1; @@ -1385,7 +1421,8 @@ textarea:focus { } .collection_modal_body .input_border .search_keyword .search_keyword_center .search_keyword_center_item, .design_detail_modal_component .input_border .search_keyword .search_keyword_center .search_keyword_center_item, -.library_page .input_border .search_keyword .search_keyword_center .search_keyword_center_item { +.library_page .input_border .search_keyword .search_keyword_center .search_keyword_center_item, +.productImg_modal .input_border .search_keyword .search_keyword_center .search_keyword_center_item { border-radius: 0.4rem; border: solid 1px #39215b; background-color: #8156bd; @@ -1399,12 +1436,14 @@ textarea:focus { } .collection_modal_body .input_border .search_keyword .search_keyword_center .search_keyword_center_item:last-child, .design_detail_modal_component .input_border .search_keyword .search_keyword_center .search_keyword_center_item:last-child, -.library_page .input_border .search_keyword .search_keyword_center .search_keyword_center_item:last-child { +.library_page .input_border .search_keyword .search_keyword_center .search_keyword_center_item:last-child, +.productImg_modal .input_border .search_keyword .search_keyword_center .search_keyword_center_item:last-child { margin-right: 0; } .collection_modal_body .input_border .input_box_btnBox, .design_detail_modal_component .input_border .input_box_btnBox, -.library_page .input_border .input_box_btnBox { +.library_page .input_border .input_box_btnBox, +.productImg_modal .input_border .input_box_btnBox { border: calc(0.1rem*1.2) solid #F1F1F1; width: var(--width); display: flex; @@ -1412,18 +1451,31 @@ textarea:focus { } .collection_modal_body .input_border .input_box_btnBox .ant-spin-text, .design_detail_modal_component .input_border .input_box_btnBox .ant-spin-text, -.library_page .input_border .input_box_btnBox .ant-spin-text { +.library_page .input_border .input_box_btnBox .ant-spin-text, +.productImg_modal .input_border .input_box_btnBox .ant-spin-text { font-size: 1.2rem; } +.collection_modal_body .input_border .input_box_btnBox .search_seed, +.design_detail_modal_component .input_border .input_box_btnBox .search_seed, +.library_page .input_border .input_box_btnBox .search_seed, +.productImg_modal .input_border .input_box_btnBox .search_seed { + padding: 0; + width: 4rem; + text-align: center; + font-size: 1.2rem; + border-right: calc(0.1rem*1.2) solid #F1F1F1; +} .collection_modal_body .input_border .upload_item .upload_file_item, .design_detail_modal_component .input_border .upload_item .upload_file_item, -.library_page .input_border .upload_item .upload_file_item { +.library_page .input_border .upload_item .upload_file_item, +.productImg_modal .input_border .upload_item .upload_file_item { width: 8rem; height: 8rem; } .collection_modal_body .input_border input, .design_detail_modal_component .input_border input, -.library_page .input_border input { +.library_page .input_border input, +.productImg_modal .input_border input { width: 100%; border-radius: calc(0.5rem*1.2); border: 1px solid rgba(0, 0, 0, 0.15); @@ -1434,32 +1486,38 @@ textarea:focus { } .collection_modal_body .input_border inputinput:-moz-placeholder, .design_detail_modal_component .input_border inputinput:-moz-placeholder, -.library_page .input_border inputinput:-moz-placeholder { +.library_page .input_border inputinput:-moz-placeholder, +.productImg_modal .input_border inputinput:-moz-placeholder { color: rgba(0, 0, 0, 0.15); } .collection_modal_body .input_border inputinput:-ms-input-placeholder, .design_detail_modal_component .input_border inputinput:-ms-input-placeholder, -.library_page .input_border inputinput:-ms-input-placeholder { +.library_page .input_border inputinput:-ms-input-placeholder, +.productImg_modal .input_border inputinput:-ms-input-placeholder { color: rgba(0, 0, 0, 0.15); } .collection_modal_body .input_border inputinput::-webkit-input-placeholder, .design_detail_modal_component .input_border inputinput::-webkit-input-placeholder, -.library_page .input_border inputinput::-webkit-input-placeholder { +.library_page .input_border inputinput::-webkit-input-placeholder, +.productImg_modal .input_border inputinput::-webkit-input-placeholder { color: rgba(0, 0, 0, 0.15); } .collection_modal_body .input_border input.forbidden, .design_detail_modal_component .input_border input.forbidden, -.library_page .input_border input.forbidden { +.library_page .input_border input.forbidden, +.productImg_modal .input_border input.forbidden { cursor: no-drop; } .collection_modal_body .input_border .input_box_btnBox_upImg, .design_detail_modal_component .input_border .input_box_btnBox_upImg, -.library_page .input_border .input_box_btnBox_upImg { +.library_page .input_border .input_box_btnBox_upImg, +.productImg_modal .input_border .input_box_btnBox_upImg { height: 100%; } .collection_modal_body .input_border .fi, .design_detail_modal_component .input_border .fi, -.library_page .input_border .fi { +.library_page .input_border .fi, +.productImg_modal .input_border .fi { margin-right: 1rem; display: flex; cursor: pointer; @@ -1473,23 +1531,27 @@ textarea:focus { } .collection_modal_body .input_border .fi.fi-br-loading, .design_detail_modal_component .input_border .fi.fi-br-loading, -.library_page .input_border .fi.fi-br-loading { +.library_page .input_border .fi.fi-br-loading, +.productImg_modal .input_border .fi.fi-br-loading { height: 100%; background-color: rgba(0, 0, 0, 0); } .collection_modal_body .input_border .fi.active, .design_detail_modal_component .input_border .fi.active, -.library_page .input_border .fi.active { +.library_page .input_border .fi.active, +.productImg_modal .input_border .fi.active { transform: rotate(180deg); } .collection_modal_body .input_border .fi.forbidden, .design_detail_modal_component .input_border .fi.forbidden, -.library_page .input_border .fi.forbidden { +.library_page .input_border .fi.forbidden, +.productImg_modal .input_border .fi.forbidden { cursor: no-drop; } .collection_modal_body .input_border .search_upImg, .design_detail_modal_component .input_border .search_upImg, -.library_page .input_border .search_upImg { +.library_page .input_border .search_upImg, +.productImg_modal .input_border .search_upImg { width: 4rem; height: 100%; position: absolute; @@ -1498,20 +1560,23 @@ textarea:focus { } .collection_modal_body .input_border .search_upImg span, .design_detail_modal_component .input_border .search_upImg span, -.library_page .input_border .search_upImg span { +.library_page .input_border .search_upImg span, +.productImg_modal .input_border .search_upImg span { position: absolute; width: 100%; } .collection_modal_body .input_border .search_upImg .ant-upload-select-picture-card, .design_detail_modal_component .input_border .search_upImg .ant-upload-select-picture-card, -.library_page .input_border .search_upImg .ant-upload-select-picture-card { +.library_page .input_border .search_upImg .ant-upload-select-picture-card, +.productImg_modal .input_border .search_upImg .ant-upload-select-picture-card { width: 100%; height: 100%; display: block !important; } .collection_modal_body .input_border .search_textarea, .design_detail_modal_component .input_border .search_textarea, -.library_page .input_border .search_textarea { +.library_page .input_border .search_textarea, +.productImg_modal .input_border .search_textarea { z-index: 3; height: auto; position: absolute; @@ -1525,18 +1590,21 @@ textarea:focus { } .collection_modal_body .input_border .generage_btn, .design_detail_modal_component .input_border .generage_btn, -.library_page .input_border .generage_btn { +.library_page .input_border .generage_btn, +.productImg_modal .input_border .generage_btn { margin-left: 2rem; } .collection_modal_body .upload_item, .design_detail_modal_component .upload_item, -.library_page .upload_item { +.library_page .upload_item, +.productImg_modal .upload_item { display: flex; flex-wrap: wrap; } .collection_modal_body .upload_item .upload_file_item, .design_detail_modal_component .upload_item .upload_file_item, -.library_page .upload_item .upload_file_item { +.library_page .upload_item .upload_file_item, +.productImg_modal .upload_item .upload_file_item { margin: 0 calc(2rem*1.2) calc(2rem*1.2) 0; display: inline-block; width: calc(10rem*1.2); @@ -1548,24 +1616,28 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item.active, .design_detail_modal_component .upload_item .upload_file_item.active, -.library_page .upload_item .upload_file_item.active { +.library_page .upload_item .upload_file_item.active, +.productImg_modal .upload_item .upload_file_item.active { opacity: 0.5; border-radius: calc(1rem*1.2); transform: scale(0.9); } .collection_modal_body .upload_item .upload_file_item.active .delete_file_block, .design_detail_modal_component .upload_item .upload_file_item.active .delete_file_block, -.library_page .upload_item .upload_file_item.active .delete_file_block { +.library_page .upload_item .upload_file_item.active .delete_file_block, +.productImg_modal .upload_item .upload_file_item.active .delete_file_block { pointer-events: none; } .collection_modal_body .upload_item .upload_file_item.active .operate_file_block, .design_detail_modal_component .upload_item .upload_file_item.active .operate_file_block, -.library_page .upload_item .upload_file_item.active .operate_file_block { +.library_page .upload_item .upload_file_item.active .operate_file_block, +.productImg_modal .upload_item .upload_file_item.active .operate_file_block { pointer-events: none; } .collection_modal_body .upload_item .upload_file_item.upload_component, .design_detail_modal_component .upload_item .upload_file_item.upload_component, -.library_page .upload_item .upload_file_item.upload_component { +.library_page .upload_item .upload_file_item.upload_component, +.productImg_modal .upload_item .upload_file_item.upload_component { border: none; display: flex; align-items: center; @@ -1573,7 +1645,8 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item :deep(.ant-upload-picture-card-wrapper), .design_detail_modal_component .upload_item .upload_file_item :deep(.ant-upload-picture-card-wrapper), -.library_page .upload_item .upload_file_item :deep(.ant-upload-picture-card-wrapper) { +.library_page .upload_item .upload_file_item :deep(.ant-upload-picture-card-wrapper), +.productImg_modal .upload_item .upload_file_item :deep(.ant-upload-picture-card-wrapper) { position: absolute; top: 50%; left: 50%; @@ -1581,7 +1654,8 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item :deep(.ant-upload-select-picture-card), .design_detail_modal_component .upload_item .upload_file_item :deep(.ant-upload-select-picture-card), -.library_page .upload_item .upload_file_item :deep(.ant-upload-select-picture-card) { +.library_page .upload_item .upload_file_item :deep(.ant-upload-select-picture-card), +.productImg_modal .upload_item .upload_file_item :deep(.ant-upload-select-picture-card) { width: calc(6rem*1.2); height: calc(6rem*1.2); border: calc(0.3rem*1.2) solid #ededed; @@ -1590,7 +1664,8 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item .upload_file_item_content, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content, -.library_page .upload_item .upload_file_item .upload_file_item_content { +.library_page .upload_item .upload_file_item .upload_file_item_content, +.productImg_modal .upload_item .upload_file_item .upload_file_item_content { display: flex; align-items: center; justify-content: center; @@ -1600,17 +1675,20 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item .upload_file_item_content:hover div, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content:hover div, -.library_page .upload_item .upload_file_item .upload_file_item_content:hover div { +.library_page .upload_item .upload_file_item .upload_file_item_content:hover div, +.productImg_modal .upload_item .upload_file_item .upload_file_item_content:hover div { opacity: 1; } .collection_modal_body .upload_item .upload_file_item .upload_file_item_content:hover .delete_file_block, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content:hover .delete_file_block, -.library_page .upload_item .upload_file_item .upload_file_item_content:hover .delete_file_block { +.library_page .upload_item .upload_file_item .upload_file_item_content:hover .delete_file_block, +.productImg_modal .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, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content .upload_img, -.library_page .upload_item .upload_file_item .upload_file_item_content .upload_img { +.library_page .upload_item .upload_file_item .upload_file_item_content .upload_img, +.productImg_modal .upload_item .upload_file_item .upload_file_item_content .upload_img { display: block; height: 100%; width: auto; @@ -1619,7 +1697,8 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item .upload_file_item_content .delete_file_block, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content .delete_file_block, -.library_page .upload_item .upload_file_item .upload_file_item_content .delete_file_block { +.library_page .upload_item .upload_file_item .upload_file_item_content .delete_file_block, +.productImg_modal .upload_item .upload_file_item .upload_file_item_content .delete_file_block { display: none; width: 100%; cursor: pointer; @@ -1635,7 +1714,8 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop, -.library_page .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop { +.library_page .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop, +.productImg_modal .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop { width: calc(3.2rem*1.2); height: calc(3.2rem*1.2); background: rgba(0, 0, 0, 0.6); @@ -1649,18 +1729,21 @@ textarea:focus { } .collection_modal_body .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop .icon-shanchu, .design_detail_modal_component .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop .icon-shanchu, -.library_page .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop .icon-shanchu { +.library_page .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop .icon-shanchu, +.productImg_modal .upload_item .upload_file_item .upload_file_item_content .delete_file_block.rightTop .icon-shanchu { font-size: calc(1.6rem*1.2); color: #fff; } .collection_modal_body .upload_item .upload_file_item .upload_img_icon, .design_detail_modal_component .upload_item .upload_file_item .upload_img_icon, -.library_page .upload_item .upload_file_item .upload_img_icon { +.library_page .upload_item .upload_file_item .upload_img_icon, +.productImg_modal .upload_item .upload_file_item .upload_img_icon { width: calc(4.6rem*1.2); } .collection_modal_body .upload_item .upload_file_item:last-child, .design_detail_modal_component .upload_item .upload_file_item:last-child, -.library_page .upload_item .upload_file_item:last-child { +.library_page .upload_item .upload_file_item:last-child, +.productImg_modal .upload_item .upload_file_item:last-child { margin: 0; } .generalModel_modal .ant-modal-content { diff --git a/src/assets/style/style.less b/src/assets/style/style.less index 10c7e9a3..4e431564 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -127,9 +127,13 @@ input:focus{ } .select_block{ + height: 4rem; + .ant-select{ + height: 100%; + } .ant-select:not(.ant-select-customize-input) .ant-select-selector{ background: transparent; - height: 4rem; + height: 95%; border: 0.1rem solid rgba(0,0,0,0) !important; // border: 0.1rem solid #000 !important; border-radius: 0; @@ -533,6 +537,7 @@ input:focus{ //弹窗公共样式 .ant-modal{ + box-shadow: 0px 0px 6px rgba(0, 0, 0, .2); &.ant-modal-confirm{ &.ant-modal-confirm-confirm{ // top: 50%; @@ -696,13 +701,10 @@ input:focus{ // height: calc(65vh - 6.4rem); height: calc(65rem*1.2); // background-color: #181818; + padding: calc(4rem*1.2) calc(5rem*1.2); } .ant-modal-btn{ - } - .ant-modal-body{ - padding: calc(4rem*1.2) calc(5rem*1.2); - } .fi-rr-down-to-line,.fi-rr-arrow-small-right,.fi-rr-arrow-small-left{ font-size: 2rem; @@ -1068,7 +1070,10 @@ input:focus{ .ant-checkbox-wrapper{ height: 2.2rem; align-items: center; - span{ + >span{ + height: 100%; + } + >span{ font-size: 1.4rem; line-height: 2.3rem; .ant-checkbox-input::after{ @@ -1339,7 +1344,7 @@ input:focus{ } } //desing 关闭按钮 -.designOpenrtion_modal,.designOpenrtionMobile_modal,.design_detail_modal_component{ +.designOpenrtion_modal,.designOpenrtionMobile_modal,.design_detail_modal_component,.designElements_modal,.designElementsMobile_modal{ .design_closeIcon{ top: 2rem; right: 2rem; @@ -1363,7 +1368,7 @@ input:focus{ } } } -.design_detail_modal_component,.designOpenrtion_modal,.UpgradePlan_modal,.refund_reason,.Export,.designOpenrtionMobile_modal{ +.design_detail_modal_component,.designOpenrtion_modal,.designElements_modal,.UpgradePlan_modal,.refund_reason,.Export,.designOpenrtionMobile_modal,.designElementsMobile_modal{ .ant-upload-list-picture-card-container{ display: none !important; } @@ -1402,12 +1407,16 @@ i{ opacity: .5; transform: scale(.9); } - +input[type=number]::-webkit-inner-spin-button, +input[type=number]::-webkit-outer-spin-button { + -webkit-appearance: none; + margin: 0; +} textarea:focus{ outline: none; /* 清除默认焦点样式 */ } //设计input和上传按钮样式 -.collection_modal_body,.design_detail_modal_component,.library_page,{ +.collection_modal_body,.design_detail_modal_component,.library_page,.productImg_modal{ .input_border{ z-index: 2; display: flex; @@ -1490,6 +1499,13 @@ textarea:focus{ .ant-spin-text{ font-size: 1.2rem; } + .search_seed{ + padding: 0; + width: 4rem; + text-align: center; + font-size: 1.2rem; + border-right: calc(0.1rem* 1.2) solid #F1F1F1; + } } .upload_item{ .upload_file_item{ diff --git a/src/component/Detail/DesignDetail.vue b/src/component/Detail/DesignDetail.vue index d0252ac1..bd2fa180 100644 --- a/src/component/Detail/DesignDetail.vue +++ b/src/component/Detail/DesignDetail.vue @@ -79,6 +79,7 @@
{{ $t('DesignDetail.CurrentApparel') }}
+
@@ -93,12 +94,14 @@
-
+
+ +
+
-
@@ -117,7 +120,19 @@
- +
+
+ +
Current Elements
+ +
+
+ + +
+
@@ -139,6 +154,7 @@ +
@@ -163,6 +179,7 @@ import { openGuide,driverObj__ } from "@/tool/guide"; import GO from '@/tool/GO'; import { setCookie, getCookie, WriteCookie } from "@/tool/cookie"; import { useI18n } from 'vue-i18n' +import addDetails from '@/component/Detail/addDetails.vue' export default defineComponent({ components:{ Draggable, @@ -170,6 +187,7 @@ export default defineComponent({ setDesignItem, magnifyingGlass, setDesignItemMobile, + addDetails, }, setup() { const store = useStore(); @@ -212,6 +230,11 @@ export default defineComponent({ provide('body',body) let moible:any = isMoible() provide('moible',moible) + let exhibitionList = ref({ + print:[], + elements:[], + }) + provide('exhibitionList',exhibitionList) let {t} = useI18n() //创建单件衣服 let setClothes:any = ref() @@ -239,6 +262,7 @@ export default defineComponent({ revocationShow, driver__, moible, + exhibitionList, t, setClothes, deleteShow, @@ -324,7 +348,21 @@ export default defineComponent({ handler: function(newval) { // this.removeRevocation() } - } + }, + 'current.printObject.prints':{ + handler(newVal,oldVal){ + if(newVal && newVal.length > 0){ + this.exhibitionList.print = this.setExhibitionList(newVal) + } + } + }, + 'current.trims.prints':{ + handler(newVal,oldVal){ + if(newVal && newVal.length > 0){ + this.exhibitionList.elements = this.setExhibitionList(newVal) + } + } + }, }, provide() { return { @@ -387,7 +425,10 @@ export default defineComponent({ } } }, - + addDetail(){ + let addDetails:any = this.$refs.addDetails + addDetails.init(this.current,this.currentIndex) + }, closeModal(submit:any){ if(this.designShowPrview == 1){ if(this.ifSubmit && submit == ''){ @@ -423,7 +464,19 @@ export default defineComponent({ // this.designItemDetailUrl = {} } }, - + //切换当前展示的是印花还是elements + setExhibitionList(arr:any){ + const seen = new Map(); + return arr.filter((obj:any, index:any, self:any) => { + const key = obj.minIOPath; // 替换成你想要去重的属性名 + if (seen.has(key)) { + return false; + } else { + seen.set(key, true); + return true; + } + }); + }, showDesignDetailModal(data:any,str:string){ this.moible = isMoible() this.designItemId = data.design.designItemId @@ -443,7 +496,7 @@ export default defineComponent({ item.layersObject[1] = a } if(item.printObject.prints == null){ - item.printObject.prints = [{}] + item.printObject.prints = [] }else{ item.printObject.prints.forEach((element:any) => { if(!element.designType){ @@ -674,6 +727,8 @@ export default defineComponent({ id:item.id, path:item.minIOPath, gradient:{}, + trims:item.trims, + sketchString:item.sketchString, changed:item.changed?item.changed:false, designType:item.designType?item.designType:"Library", offset:item.layersObject?.[1]?.offset == null?[0,0]:item.layersObject[1].offset, @@ -711,6 +766,7 @@ export default defineComponent({ gender:workspace?.sex, designSingleItemDTOList:clothes, isPreview:false, + sketchString:'', ifSubmit:designItemDetail.isPreview, processId:String(this.userInfo?.userId), timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone, @@ -772,6 +828,7 @@ export default defineComponent({ img.onload = () => { imgWidth = img.width resolve(img) + img.remove() }; img.onerror = reject; img.src = url; @@ -852,38 +909,46 @@ export default defineComponent({ }else{ this.deleteShow = false - let designItemDetail = JSON.parse(JSON.stringify(this.designItemDetail)) - let data:any = this.setSubmitItem('preview',true) if(!this.deleteItemShow){ return } - this.loadingShow = true - Https.axiosPost(Https.httpUrls.designSingle, data).then( - (rv) => { - this.designItemDetail.currentFullBodyView = rv.currentFullBodyView - this.designItemDetail.ifSubmit = true - this.loadingShow = false - // if(this.designItemDetail.clothes[this.designItemDetail.clothes.legnth-1] && !this.designItemDetail.clothes[this.designItemDetail.clothes.legnth-1].id){ - // this.designItemDetail.clothes.split(this.designItemDetail.clothes.legnth-1,1) - // } - if(data.designSingleItemDTOList[data.designSingleItemDTOList.legnth-1] && !data.designSingleItemDTOList[data.designSingleItemDTOList.legnth-1].id){ - data.designSingleItemDTOList.split(data.designSingleItemDTOList.legnth-1,1) - } - this.store.commit("setDesignItemDetail", designItemDetail); - console.log(123); - this.store.commit("setDesignPreviewData", data); - this.setRevocation(designItemDetail,data) - this.deleteItemShow = false - } - ).catch(res=>{ - this.loadingShow = false - }); + this.setDesignSingle(data) } let DesignDetailAlter:any = this.$refs.DesignDetailAlter DesignDetailAlter.changePlace() DesignDetailAlter.terminate() }, + setDesignSingle(data:any){ + this.loadingShow = true + let designItemDetail = JSON.parse(JSON.stringify(this.designItemDetail)) + Https.axiosPost(Https.httpUrls.designSingle, data).then( + (rv) => { + // this.current.minIOPath = rv.clothes[this.currentIndex].minIOPath + designItemDetail.clothes[this.currentIndex].minIOPath = rv.clothes[this.currentIndex].minIOPath + this.current.path = rv.clothes[this.currentIndex].minIOPath + designItemDetail.clothes[this.currentIndex].path = rv.clothes[this.currentIndex].path + designItemDetail.clothes[this.currentIndex].sketchString = '' + data.designSingleItemDTOList[this.currentIndex].sketchString ='' + data.designSingleItemDTOList[this.currentIndex].path =rv.clothes[this.currentIndex].minIOPath + designItemDetail.currentFullBodyView = rv.currentFullBodyView + designItemDetail.ifSubmit = true + this.loadingShow = false + // if(this.designItemDetail.clothes[this.designItemDetail.clothes.legnth-1] && !this.designItemDetail.clothes[this.designItemDetail.clothes.legnth-1].id){ + // this.designItemDetail.clothes.split(this.designItemDetail.clothes.legnth-1,1) + // } + if(data.designSingleItemDTOList[data.designSingleItemDTOList.legnth-1] && !data.designSingleItemDTOList[data.designSingleItemDTOList.legnth-1].id){ + data.designSingleItemDTOList.split(data.designSingleItemDTOList.legnth-1,1) + } + this.store.commit("setDesignItemDetail", designItemDetail); + this.store.commit("setDesignPreviewData", data); + this.setRevocation(designItemDetail,data) + this.deleteItemShow = false + } + ).catch(res=>{ + this.loadingShow = false + }); + }, setDelete(num:number){ this.designItemDetail.clothes.splice(num,1) this.deleteItemShow = true @@ -942,12 +1007,16 @@ export default defineComponent({ "color": color, gradient:gradient, priority:10, + trims:{ + "ifSingle": null, + "prints":null, + }, "printObject": { "ifSingle": null, "prints": [ - {} ] }, + sketchString:'', "layersObject": [ ] } @@ -1001,17 +1070,19 @@ export default defineComponent({ } }); } + this.current.sketchString = '' this.currentIndex = this.currentIndex>0?this.currentIndex:0 data.designSingleItemDTOList[this.currentIndex] = { color:`${this.current.color.r} ${this.current.color.g} ${this.current.color.b}`, - id:this.current.id?this.current.id:'', changed:this.current.changed?this.current.changed:false, designType:this.current.designType?this.current.designType:'Library', path:this.current.minIOPath?this.current.minIOPath:'', offset:this.current.layersObject?.[1]?.offset?this.current.layersObject[1].offset:[0,0], priority:this.current.priority, + trims:this.current.trims, scale:this.current.layersObject?.[1]?.scale?this.current.layersObject[1].scale:[1,1], + sketchString:'', printObject:{ ifSingle:this.current?.printObject?.ifSingle == null ? false : this.current?.printObject?.ifSingle, // prints:this.current?.printObject[0]?.path == null ? [] : [{ @@ -1031,12 +1102,21 @@ export default defineComponent({ this.store.commit('setDesignPreviewData',data) let DesignDetailAlter:any = this.$refs.DesignDetailAlter DesignDetailAlter.changePlace() + if(this.driver__.driver){ nextTick().then(()=>{ driverObj__.moveNext(); }) } }, + setSloganData(data:any){ + this.current.sketchString = data + + // let designData:any = this.setSubmitItem('preview',true) + let designData = this.store.state.DesignDetailModule.designPreviewData + designData.designSingleItemDTOList[this.currentIndex].sketchString = data + this.setDesignSingle(designData) + } //重新设计 // redesignItem(){ // let designItemDetail = JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail)) @@ -1356,20 +1436,34 @@ export default defineComponent({ display: flex; flex-direction: column; overflow: hidden; + overflow-y: auto; .hideCursor{ *{ cursor: not-allowed !important; } } + &.detail_modal_right_top::-webkit-scrollbar{display: none;} .clothes_detail_item{ // margin-bottom: 5rem*1.2); position: relative; - flex: 1; + height: 20rem; + // flex: 1; + flex-shrink: 0; .centent_div{ display: flex; cursor: pointer; justify-content: center; } + .centent_print{ + flex-wrap: wrap; + justify-content: space-between; + align-content: space-between; + img{ + width: 30%; + height: 30%; + margin-bottom: 1rem; + } + } .centent{ cursor: pointer; @@ -1386,11 +1480,18 @@ export default defineComponent({ font-size: var(--aida-fsize1-8); color: #000000; justify-content: space-between; + position: relative; .icon-dangqianweizhi{ font-size: calc(1.8rem*1.2); color: #000000; margin-right: calc(1rem*1.2); } + .fi-rs-pencil-paintbrush{ + position: absolute; + right: 0; + top: 4rem; + cursor: pointer; + } i{ font-size: var(--aida-fsize1-8); display: flex; @@ -1442,7 +1543,8 @@ export default defineComponent({ } } &.clothes_detail_item_print, - &.clothes_detail_item_apparel{ + &.clothes_detail_item_apparel, + &.clothes_detail_item_elements{ .fi-rr-picture{ display: flex; align-items: center; diff --git a/src/component/Detail/DesignDetailAlter.vue b/src/component/Detail/DesignDetailAlter.vue index 2980df65..b66baf3f 100644 --- a/src/component/Detail/DesignDetailAlter.vue +++ b/src/component/Detail/DesignDetailAlter.vue @@ -1,24 +1,40 @@