feat: 生产 shape

This commit is contained in:
2025-08-08 17:32:39 +08:00
parent 738358ab76
commit 64deb9f3be
16 changed files with 1219 additions and 160 deletions
@@ -8,7 +8,7 @@
box-shadow: 0 3rpx 4rpx rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
padding: 36rpx 36rpx;
padding: 32rpx 24rpx;
box-sizing: border-box;
align-items: center;
@@ -16,77 +16,67 @@
font-size: 32rpx;
color: #141414;
font-weight: bold;
margin-bottom: 30rpx;
text-align: center;
}
.shape-options-wrapper {
padding: 28rpx 0;
margin: 34rpx 0;
width: 100%;
height: 500rpx;
height: 670rpx;
overflow-y: auto;
}
.shape-options {
display: grid;
grid-template-columns: repeat(3, 186rpx);
gap: 12rpx;
grid-template-columns: repeat(3, 160rpx);
gap: 38rpx;
width: 100%;
justify-content: center;
padding: 6rpx 0;
.shape-option {
width: 140rpx;
position: relative;
width: 160rpx;
display: flex;
flex-direction: column;
align-items: center;
transition: all 0.2s ease;
padding: 10rpx;
border-radius: 10rpx;
border: 1rpx solid transparent;
padding: 4rpx;
border-radius: 8rpx;
border: 1rpx solid #F2F2F2;
box-sizing: border-box;
box-shadow: 0px 8px 12px rgba(184, 210, 188, 0.2);
overflow: hidden;
.shape-svg-container {
.shape-svg {
width: 140rpx;
height: 140rpx;
display: flex;
align-items: center;
justify-content: center;
border: 1rpx solid #141414;
border-radius: 8rpx;
background-color: #fafafa;
margin-bottom: 8rpx;
position: relative;
.shape-svg {
width: 140rpx;
height: 140rpx;
display: block;
}
}
.shape-name {
font-size: 24rpx;
color: #141414;
text-align: center;
line-height: 1.2;
line-height: 40rpx;
height: 40rpx;
margin-bottom: 4rpx;
}
&.selected {
// transform: scale(1.1);
// border: 1px solid rgb(147, 211, 51);
// background-color: rgba(64, 150, 255, 0.05);
.shape-svg-container {
border: 1px solid #93d333;
// border: 1px solid #4096ff;
// background-color: #fff;
// box-shadow: 0 0 6rpx 2rpx rgba(147, 211, 51, 0.2);
}
border: 1px solid #93d333;
.shape-name {
color: rgb(147, 211, 51);
// font-weight: bold;
color: #93d333;
}
}
.img-shape-selected {
position: absolute;
bottom: -2rpx;
right: -2rpx;
width: 48rpx;
height: 48rpx;
}
}
}
}