修改日历与弹出窗

This commit is contained in:
筱野
2025-11-14 20:50:20 +08:00
parent b13979c4ab
commit 95e17d19f8
8 changed files with 24 additions and 42 deletions

View File

@@ -9,7 +9,7 @@
flex-direction: column;
overflow: hidden;
padding-bottom: env(safe-area-inset-bottom);
// 搜索区域
.search-section {
background: #f5f5f5;

View File

@@ -3,9 +3,8 @@
background: white;
display: flex;
flex-direction: column;
padding-bottom: env(safe-area-inset-bottom);
.stadium-detail-scroll{
height:72vh;
height:60vh;
}
// 已选球场
// 场馆列表
@@ -57,7 +56,9 @@
// 场地类型
.venue-type-section {
flex-shrink: 0;
&.image-wrap{
padding-bottom: 30px;
}
.section-title {
padding: 18px 20px 10px 20px;
font-size: 14px;

View File

@@ -56,8 +56,8 @@ const SectionTitle: React.FC<{ title: string,prop: string }> = ({ title, prop })
}
// 公共的容器组件
const SectionContainer: React.FC<{ title: string; children: React.ReactNode, prop: string }> = ({ title, children, prop }) => (
<View className='venue-type-section'>
const SectionContainer: React.FC<{ title: string; children: React.ReactNode, prop: string, type?: string }> = ({ title, children, prop, type }) => (
<View className={`venue-type-section ${type === 'image' ? 'image-wrap' : ''}`}>
<SectionTitle title={title} prop={prop}/>
<View className='option-buttons'>
{children}
@@ -218,8 +218,8 @@ const StadiumDetail = forwardRef<StadiumDetailRef, StadiumDetailProps>(({
<TextareaTag
value={formData[item.prop]}
onChange={(value) => updateFormData(item.prop, value)}
// onBlur={() => onAnyInput(false)}
// onFocus={() => onAnyInput(true)}
onBlur={() => changePicker(false)}
onFocus={() => changePicker(true)}
placeholder='有其他场地信息可备注'
options={(item.options || []).map((o) => ({ label: o, value: o }))}
/>
@@ -230,7 +230,7 @@ const StadiumDetail = forwardRef<StadiumDetailRef, StadiumDetailProps>(({
if (item.type === 'image') {
return (
<SectionContainer key={item.label} title={item.label} prop={item.prop}>
<SectionContainer key={item.label} title={item.label} prop={item.prop} type={item.type}>
<UploadCover
value={formData[item.prop]}
changePicker={changePicker}