add owner's info in ticketdetail

This commit is contained in:
Dawn_Ocean
2024-03-17 02:05:08 +08:00
parent 7f345af777
commit d525f0288b
6 changed files with 65 additions and 7 deletions
@@ -74,6 +74,7 @@ export default class DetailFramework extends Component<
current: true,
notelist: true,
showAllNotes: true,
info: true,
},
};
@@ -102,13 +103,56 @@ export default class DetailFramework extends Component<
<View></View>
),
description: this.props.isInfoShow['description'] ? (
<View style={{ marginTop: 10, marginBottom: 10 }}>
<AtCard title={pt.get().ticketDetail.descTitle}>
<View className='at-article__h3'>
{this.state.ticketInfo.description}
this.props.isInfoShow['info'] ? (
<View
className='at-row'
style={{ paddingTop: 10, paddingBottom: 10, width: '100%' }}
>
<View
className='at-col'
style={{
marginLeft: 10,
paddingRight: 5,
marginTop: 10,
marginBottom: 10,
width: '50%',
}}
>
<AtCard title={pt.get().ticketDetail.descTitle}>
<View className='at-article__h3'>
{this.state.ticketInfo.description}
</View>
</AtCard>
</View>
</AtCard>
</View>
<View
className='at-col'
style={{
marginLeft: 5,
paddingRight: 10,
marginTop: 10,
marginBottom: 10,
width: '50%',
}}
>
<AtCard title={pt.get().ticketDetail.infoTitle}>
<View className='at-article__h3'>
{this.state.ticketInfo.info.name}
</View>
<View className='at-article__h3'>
{this.state.ticketInfo.info.phone}
</View>
</AtCard>
</View>
</View>
) : (
<View style={{ marginTop: 10, marginBottom: 10 }}>
<AtCard title={pt.get().ticketDetail.descTitle}>
<View className='at-article__h3'>
{this.state.ticketInfo.description}
</View>
</AtCard>
</View>
)
) : (
<View></View>
),