add ticket detail button

This commit is contained in:
2024-03-12 14:33:40 +08:00
parent f17bfa2a9e
commit 0120da0760
4 changed files with 39 additions and 7 deletions
+22 -3
View File
@@ -3,7 +3,7 @@ import { View } from '@tarojs/components';
import { getCurrentInstance } from '@tarojs/runtime';
import Taro from '@tarojs/taro';
import pt from '@/plain-text';
import { AtCard, AtSteps } from 'taro-ui';
import { AtCard, AtSteps, AtButton } from 'taro-ui';
import { RequestState } from '@/service';
import { getTicketInfo } from '@/service/ticketsInfo';
import { FixStatus } from '@/common';
@@ -74,11 +74,11 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
' ' +
this.state.ticketInfo.deviceModel}
</View>
<View className='at-article__h3'>
<View className='at-article__info'>
{pt.get().common.createdAtText(this.state.ticketInfo.createdTime)}
</View>
<View style={{ marginTop: 10, marginBottom: 10 }}>
<AtCard title='问题描述'>
<AtCard title={pt.get().ticketDetail.descTitle}>
<View className='at-article__h3'>
{this.state.ticketInfo.description}
</View>
@@ -91,6 +91,25 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
onChange={() => {}}
/>
</View>
<View
className='at-row'
style={{ paddingTop: 10, paddingBottom: 10, width: '100%' }}
>
<View
className='at-col'
style={{ marginLeft: 10, paddingRight: 5, width: '50%' }}
>
<AtButton type='primary'>{pt.get().ticketDetail.tookAway}</AtButton>
</View>
<View
className='at-col'
style={{ marginRight: 10, paddingLeft: 5, width: '50%' }}
>
<AtButton type='secondary'>
{pt.get().ticketDetail.addNote}
</AtButton>
</View>
</View>
<View style={{ padding: 10 }}>
<NoteList noteList={this.state.notes} />
</View>