支持预约款式多图录入

This commit is contained in:
2026-10-21 02:36:00 +08:00
parent 9925c7f83b
commit 6e9ad54e94
6 changed files with 423 additions and 76 deletions
+161 -42
View File
@@ -478,8 +478,7 @@ button.link-action {
width:auto;
}
.style-name-row,
.style-image-preview-row {
.style-name-row {
display: flex;
align-items: center;
gap: 14rpx;
@@ -497,40 +496,18 @@ button.link-action {
font-size: 26rpx;
}
.image-action,
.remove-image-action {
flex: 0 0 auto;
height: 72rpx;
.style-price-input {
box-sizing: border-box;
width: 164rpx;
height: 78rpx;
flex: 0 0 164rpx;
padding: 0 18rpx;
border-radius: 14rpx;
background: #e5f4ed;
color: #247b63;
font-size: 23rpx;
line-height: 72rpx;
}
button.image-action {
margin:0;
width:auto;
}
.style-image-preview-row {
justify-content: flex-start;
margin-top: 14rpx;
}
.style-image-preview {
width: 112rpx;
height: 112rpx;
border-radius: 14rpx;
background: #e7ece9;
}
.remove-image-action {
height: 58rpx;
background: #f3f7f4;
color: #756e66;
font-size: 21rpx;
line-height: 58rpx;
border: 1rpx solid #e7ece9;
border-radius: 15rpx;
background: #fff;
color: #17211f;
font-size: 26rpx;
text-align: right;
}
.selected-style-note {
@@ -1245,10 +1222,11 @@ button.full{
}
.manual-style-sheet {
box-sizing: border-box;
display: flex;
width: 100%;
height: 70vh;
max-height: 82vh;
height: 88vh;
max-height: 88vh;
flex-direction: column;
overflow: hidden;
padding: 28rpx 28rpx calc(24rpx + env(safe-area-inset-bottom));
@@ -1269,13 +1247,154 @@ button.full{
background: #fbfdfc;
}
.manual-style-content .image-action {
height: 82rpx;
border-radius: 24rpx;
background: #e5f4ed;
.manual-style-images {
margin-top: 28rpx;
}
.manual-style-image-heading {
display: flex;
align-items: center;
justify-content: space-between;
color: #52645d;
font-size: 23rpx;
font-weight: 700;
}
.manual-style-image-count {
color: #247b63;
font-size: 21rpx;
line-height: 82rpx;
font-weight: 700;
}
.manual-style-image-grid {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 16rpx;
}
.manual-style-image-tile,
.manual-style-add-image {
position: relative;
box-sizing: border-box;
width: calc((100% - 24rpx) / 3);
height: 206rpx;
margin: 0 0 12rpx;
overflow: hidden;
border-radius: 20rpx;
}
.manual-style-image-tile image {
display: block;
width: 100%;
height: 100%;
background: #eaf2ee;
}
.manual-style-image-cover {
position: absolute;
bottom: 10rpx;
left: 10rpx;
padding: 5rpx 10rpx;
border-radius: 10rpx;
background: rgba(23, 33, 31, 0.76);
color: #fff;
font-size: 19rpx;
font-weight: 700;
}
button.manual-style-image-remove {
position: absolute;
top: 10rpx;
right: 10rpx;
z-index: 1;
width: 46rpx;
height: 46rpx;
margin: 0;
padding: 0;
border: 0;
border-radius: 50%;
background: rgba(23, 33, 31, 0.68);
color: #fff;
font-size: 32rpx;
line-height: 46rpx;
}
button.manual-style-image-remove::after,
button.manual-style-add-image::after {
border: 0;
}
button.manual-style-add-image {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5rpx;
padding: 0;
border: 2rpx dashed #9ccdbb;
background: #f2faf6;
color: #247b63;
font-size: 21rpx;
font-weight: 700;
}
.manual-style-add-icon {
font-size: 48rpx;
font-weight: 300;
line-height: 1;
}
.manual-style-image-tip {
display: block;
margin-top: 2rpx;
color: #71807a;
font-size: 20rpx;
line-height: 1.5;
}
.manual-style-more {
margin-top: 28rpx;
border-top: 2rpx solid #e7ece9;
}
.manual-style-more-toggle {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24rpx 0 16rpx;
color: #247b63;
font-size: 22rpx;
font-weight: 700;
}
.manual-style-more-arrow {
color: #71807a;
font-size: 26rpx;
}
.manual-style-more-fields {
display: flex;
flex-direction: column;
gap: 12rpx;
padding-bottom: 8rpx;
}
.manual-style-more-fields textarea,
.manual-style-more-fields input {
box-sizing: border-box;
width: 100%;
min-height: 78rpx;
padding: 16rpx 18rpx;
border: 2rpx solid #dce6e1;
border-radius: 22rpx;
background: #fbfdfc;
color: #17211f;
font-size: 22rpx;
}
.manual-style-more-fields textarea {
min-height: 130rpx;
}
.manual-style-hint {