From b50c471e9762016a55cde14bee958e90acf08d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BF=97=E9=B9=8F?= <2916022834@qq.com> Date: Thu, 9 Apr 2026 11:40:17 +0800 Subject: [PATCH] 111 --- src/assets/css/ant-from-style.css | 88 ++++++++++ src/assets/css/ant-from.css | 0 src/assets/icons/seller/camera.svg | 11 ++ src/assets/icons/seller/picture.svg | 11 ++ src/assets/icons/seller/user.svg | 4 + src/assets/style/ant-from-style.less | 110 +++++++++++++ .../BecomeSeller/sellerApply.vue | 102 +----------- .../BrandProfile/brand-info.vue | 154 ++++++++++++++++++ .../SellerDashboard/BrandProfile/index.vue | 111 ++++++++++++- src/views/SellerDashboard/index.vue | 14 +- src/views/SellerDashboard/seller-header.vue | 2 +- 11 files changed, 490 insertions(+), 117 deletions(-) create mode 100644 src/assets/css/ant-from-style.css create mode 100644 src/assets/css/ant-from.css create mode 100644 src/assets/icons/seller/camera.svg create mode 100644 src/assets/icons/seller/picture.svg create mode 100644 src/assets/icons/seller/user.svg create mode 100644 src/assets/style/ant-from-style.less create mode 100644 src/views/SellerDashboard/BrandProfile/brand-info.vue diff --git a/src/assets/css/ant-from-style.css b/src/assets/css/ant-from-style.css new file mode 100644 index 00000000..572e9314 --- /dev/null +++ b/src/assets/css/ant-from-style.css @@ -0,0 +1,88 @@ +:deep(.ant-form) .form-group { + display: flex; + gap: 1.6rem; +} +:deep(.ant-form) .form-group .ant-form-item { + flex: 1; +} +:deep(.ant-form) .ant-form-item { + margin-bottom: 1.6rem; + position: relative; +} +:deep(.ant-form) .ant-form-item .tip-length { + user-select: none; + pointer-events: none; + position: absolute; + bottom: 1rem; + right: 1.6rem; + font-family: pingfang_regular; + font-size: 1rem; + color: #df2c2c; +} +:deep(.ant-form) .ant-form-item .ant-form-item-explain, +:deep(.ant-form) .ant-form-item .ant-form-item-explain-connected { + min-height: 0; +} +:deep(.ant-form) .ant-form-item .ant-form-item-explain-error { + font-size: 1.2rem; +} +:deep(.ant-form) .ant-form-item-label { + display: flex; + padding: 0 0 0.6rem 0; +} +:deep(.ant-form) .ant-form-item-label > label { + font-family: pingfang_medium; + font-size: 1.4rem; + line-height: 150%; +} +:deep(.ant-form) .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before { + content: ""; +} +:deep(.ant-form) .ant-form-item-label > label.ant-form-item-required:not(.ant-form-item-required-mark-optional):after { + display: inline-block; + color: #df2c2c; + font-size: 1.4rem; + content: "*"; +} +:deep(.ant-form) .ant-form-item-control-input .ant-input-affix-wrapper, +:deep(.ant-form) .ant-form-item-control-input textarea, +:deep(.ant-form) .ant-form-item-control-input input { + border-radius: 1.2rem; + border: 0.16rem solid #d1d1d1; + font-family: pingfang_regular; + font-size: 1.4rem; + color: #000; + padding: 1.6rem; +} +:deep(.ant-form) .ant-form-item-control-input .ant-input-affix-wrapper::placeholder, +:deep(.ant-form) .ant-form-item-control-input textarea::placeholder, +:deep(.ant-form) .ant-form-item-control-input input::placeholder { + color: #999; +} +:deep(.ant-form) .ant-form-item-control-input .ant-input-affix-wrapper { + margin-bottom: 0.6rem; +} +:deep(.ant-form) .ant-form-item-control-input .ant-input-affix-wrapper:last-child { + margin-bottom: 0; +} +:deep(.ant-form) .ant-form-item-control-input .ant-input-affix-wrapper .ant-input-prefix { + width: 5.2rem; + font-size: 1.4rem; + line-height: 150%; + color: #000; + justify-content: center; + text-align: center; +} +:deep(.ant-form) .ant-form-item-control-input .ant-input-affix-wrapper input { + border: none; + height: 100%; + padding: 0 1.6rem; + border-radius: 0; +} +:deep(.ant-form) .ant-form-item-control-input input { + height: 5rem; +} +:deep(.ant-form) .ant-form-item-control-input textarea { + height: 11rem; + resize: none; +} diff --git a/src/assets/css/ant-from.css b/src/assets/css/ant-from.css new file mode 100644 index 00000000..e69de29b diff --git a/src/assets/icons/seller/camera.svg b/src/assets/icons/seller/camera.svg new file mode 100644 index 00000000..cf624f57 --- /dev/null +++ b/src/assets/icons/seller/camera.svg @@ -0,0 +1,11 @@ + diff --git a/src/assets/icons/seller/picture.svg b/src/assets/icons/seller/picture.svg new file mode 100644 index 00000000..70641690 --- /dev/null +++ b/src/assets/icons/seller/picture.svg @@ -0,0 +1,11 @@ + diff --git a/src/assets/icons/seller/user.svg b/src/assets/icons/seller/user.svg new file mode 100644 index 00000000..7e6f7c3e --- /dev/null +++ b/src/assets/icons/seller/user.svg @@ -0,0 +1,4 @@ + diff --git a/src/assets/style/ant-from-style.less b/src/assets/style/ant-from-style.less new file mode 100644 index 00000000..ae3c9261 --- /dev/null +++ b/src/assets/style/ant-from-style.less @@ -0,0 +1,110 @@ +:deep(.ant-form) { + .form-group { + display: flex; + gap: 1.6rem; + + .ant-form-item { + flex: 1; + } + } + + .ant-form-item { + margin-bottom: 1.6rem; + position: relative; + + .tip-length { + user-select: none; + pointer-events: none; + position: absolute; + bottom: 1rem; + right: 1.6rem; + font-family: pingfang_regular; + font-size: 1rem; + color: #df2c2c; + } + + .ant-form-item-explain, + .ant-form-item-explain-connected { + min-height: 0; + } + + .ant-form-item-explain-error { + font-size: 1.2rem; + } + } + + .ant-form-item-label { + display: flex; + padding: 0 0 0.6rem 0; + + >label { + font-family: pingfang_medium; + font-size: 1.4rem; + line-height: 150%; + + &.ant-form-item-required:not(.ant-form-item-required-mark-optional) { + &::before { + content: ""; + } + + &:after { + display: inline-block; + color: #df2c2c; + font-size: 1.4rem; + content: "*"; + } + } + } + } + + .ant-form-item-control-input { + + .ant-input-affix-wrapper, + textarea, + input { + border-radius: 1.2rem; + border: 0.16rem solid #d1d1d1; + font-family: pingfang_regular; + font-size: 1.4rem; + color: #000; + padding: 1.6rem; + + &::placeholder { + color: #999; + } + } + + .ant-input-affix-wrapper { + margin-bottom: 0.6rem; + + &:last-child { + margin-bottom: 0; + } + + .ant-input-prefix { + width: 5.2rem; + font-size: 1.4rem; + line-height: 150%; + color: #000; + justify-content: center; + text-align: center; + } + + input { + border: none; + height: 100%; + padding: 0 1.6rem; + border-radius: 0; + } + } + + input { + height: 5rem; + } + + textarea { + height: 11rem; + resize: none; + } + } +} \ No newline at end of file diff --git a/src/views/SellerDashboard/BecomeSeller/sellerApply.vue b/src/views/SellerDashboard/BecomeSeller/sellerApply.vue index b922e246..ac74dae5 100644 --- a/src/views/SellerDashboard/BecomeSeller/sellerApply.vue +++ b/src/views/SellerDashboard/BecomeSeller/sellerApply.vue @@ -5,13 +5,7 @@