You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
2.4 KiB
155 lines
2.4 KiB
/* pages/create-supply/index.wxss */
|
|
page {
|
|
height: 100vh;
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
.create-supply-container {
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
padding: 20rpx;
|
|
padding-top: 100rpx; /* 为自定义导航栏留出空间 */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* 自定义导航栏样式 */
|
|
.custom-nav-bar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 88rpx;
|
|
background-color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.nav-left {
|
|
width: 60rpx;
|
|
height: 88rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.back-icon {
|
|
font-size: 36rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.nav-title {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
color: #333;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.nav-right {
|
|
width: 60rpx;
|
|
}
|
|
|
|
.form-container {
|
|
background-color: #fff;
|
|
border-radius: 16rpx;
|
|
padding: 30rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.form-item {
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
margin-bottom: 10rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
height: 80rpx;
|
|
border: 2rpx solid #e5e5e5;
|
|
border-radius: 12rpx;
|
|
padding: 0 20rpx;
|
|
font-size: 28rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.input:focus {
|
|
border-color: #FF6B81;
|
|
outline: none;
|
|
}
|
|
|
|
.image-upload-container {
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.image-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.image-item {
|
|
position: relative;
|
|
width: 180rpx;
|
|
height: 180rpx;
|
|
border-radius: 12rpx;
|
|
overflow: hidden;
|
|
border: 2rpx solid #e5e5e5;
|
|
}
|
|
|
|
.image-item image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.image-delete {
|
|
position: absolute;
|
|
top: -10rpx;
|
|
right: -10rpx;
|
|
width: 40rpx;
|
|
height: 40rpx;
|
|
background-color: rgba(255, 0, 0, 0.8);
|
|
color: #fff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.image-upload {
|
|
width: 180rpx;
|
|
height: 180rpx;
|
|
border: 2rpx dashed #e5e5e5;
|
|
border-radius: 12rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #999;
|
|
font-size: 80rpx;
|
|
}
|
|
|
|
.create-btn {
|
|
margin-top: 40rpx;
|
|
width: 100%;
|
|
height: 90rpx;
|
|
border-radius: 45rpx;
|
|
font-size: 32rpx;
|
|
background-color: #FF6B81;
|
|
color: #fff;
|
|
border: none;
|
|
}
|
|
|
|
.create-btn::after {
|
|
border: none;
|
|
}
|