提交 30ebb551 作者: 方治民

fix: 修复文件样式编译错误

上级 bacbcda4
...@@ -142,8 +142,7 @@ ...@@ -142,8 +142,7 @@
} }
function getCurrentAddressInfo() { function getCurrentAddressInfo() {
if (!uni.getStorageSync('location')) if (!uni.getStorageSync('location')) return
return
const { lon, lat } = uni.getStorageSync('location') const { lon, lat } = uni.getStorageSync('location')
UserInfoAPI.location({ UserInfoAPI.location({
...@@ -514,7 +513,7 @@ return ...@@ -514,7 +513,7 @@ return
// border-radius: 12rpx; // border-radius: 12rpx;
// margin-bottom: 20rpx; // margin-bottom: 20rpx;
// box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); // box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
border-bottom: 1rpx solid #f5f5f5; border-bottom: 1rpx solid #f5f5f5;
} }
...@@ -536,190 +535,192 @@ return ...@@ -536,190 +535,192 @@ return
.select-input { .select-input {
position: relative; position: relative;
.form-row { .form-row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
.half-width { .half-width {
width: 48%; width: 48%;
} }
.align-center { .align-center {
align-items: center; align-items: center;
} }
.label { .label {
display: block; display: block;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
font-weight: 500; font-weight: 500;
width: 180rpx; width: 180rpx;
// margin-right: 20rpx; // margin-right: 20rpx;
} }
.input { .input {
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
background: #f8f9fa; background: #f8f9fa;
border-radius: 8rpx; border-radius: 8rpx;
padding: 0 20rpx; padding: 0 20rpx;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
&::placeholder { &::placeholder {
color: #999999; color: #999999;
} }
} }
.price-range { .price-range {
display: flex; display: flex;
align-items: center; align-items: center;
// justify-content: space-between; // justify-content: space-between;
} }
.price-input { .price-input {
width: 15%; width: 15%;
// height: 80rpx; // height: 80rpx;
// background: #f8f9fa; // background: #f8f9fa;
// border-radius: 8rpx; // border-radius: 8rpx;
padding: 0 10rpx; padding: 0 10rpx;
font-size: 28rpx; font-size: 28rpx;
text-align: center; text-align: center;
} }
.price-separator { .price-separator {
color: #666666; color: #666666;
font-size: 28rpx; font-size: 28rpx;
margin: 0 10rpx; margin: 0 10rpx;
} }
.select-input { .select-input {
flex: 1; flex: 1;
border-radius: 8rpx; border-radius: 8rpx;
padding: 0 20rpx; padding: 0 20rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
cursor: pointer; cursor: pointer;
} }
.select-text { .select-text {
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
padding: 0 20rpx; padding: 0 20rpx;
&.placeholder { &.placeholder {
color: #999999; color: #999999;
} }
} }
.select-arrow { .select-arrow {
color: #999999; color: #999999;
font-size: 24rpx; font-size: 24rpx;
line-height: 1; line-height: 1;
} }
.time-range { .time-range {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.time-input { .time-input {
width: 45%; width: 45%;
// height: 80rpx; // height: 80rpx;
// background: #f8f9fa; // background: #f8f9fa;
border-radius: 8rpx; border-radius: 8rpx;
display: flex; display: flex;
align-items: center; align-items: center;
} }
.time-text { .time-text {
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
&.placeholder { &.placeholder {
color: #999999; color: #999999;
} }
} }
.time-separator { .time-separator {
color: #666666; color: #666666;
font-size: 28rpx; font-size: 28rpx;
margin: 0 10rpx; margin: 0 10rpx;
} }
.upload-area { .upload-area {
margin-top: 10rpx; margin-top: 10rpx;
} }
.custom-uploader { .custom-uploader {
:deep(.uni-file-picker__container) { :deep(.uni-file-picker__container) {
border: 2rpx dashed #d9d9d9; border: 2rpx dashed #d9d9d9;
border-radius: 8rpx; border-radius: 8rpx;
background: #f8f9fa; background: #f8f9fa;
} }
} }
.upload-placeholder { .upload-placeholder {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 200rpx; height: 200rpx;
color: #999999; color: #999999;
} }
.upload-icon { .upload-icon {
font-size: 48rpx; font-size: 48rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
.upload-text { .upload-text {
font-size: 24rpx; font-size: 24rpx;
} }
.submit-section { .submit-section {
background: transparent; background: transparent;
padding: 40rpx 0; padding: 40rpx 0;
} }
.submit-btn { .submit-btn {
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: #5db66f; background: #5db66f;
border-radius: 44rpx; border-radius: 44rpx;
color: #ffffff; color: #ffffff;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
border: none; border: none;
&:active { &:active {
background: #4ca85c; background: #4ca85c;
opacity: 0.9; opacity: 0.9;
}
}
}
::v-deep .uni-input-placeholder {
font-size: 28rpx !important;
color: #999999 !important;
} }
}
}
::v-deep .uni-input-placeholder {
font-size: 28rpx !important;
color: #999999 !important;
}
:deep(.fui-button) { :deep(.fui-button) {
width: 690rpx; width: 690rpx;
border-color: #5db66f !important; border-color: #5db66f !important;
background: #5db66f !important; background: #5db66f !important;
} }
// 移除fui-form的默认样式 // 移除fui-form的默认样式
:deep(.fui-form) { :deep(.fui-form) {
background: transparent; background: transparent;
} }
:deep(.fui-form__item) { :deep(.fui-form__item) {
background: transparent; background: transparent;
border: none; border: none;
margin-bottom: 0; margin-bottom: 0;
padding: 0; padding: 0;
}
}
} }
</style> </style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论