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
+7 -3
View File
@@ -3,6 +3,7 @@ import { Component, ReactNode } from 'react';
import { TicketNote, StatusStr } from '@/pages/TicketDetail/TicketNote';
import pt from '@/plain-text';
import { timeFormat } from '@/utils';
import { AtDivider } from 'taro-ui';
import './NoteCard.scss';
interface NoteCardProps {
@@ -13,6 +14,7 @@ export default class NoteCard extends Component<NoteCardProps, {}> {
props: Readonly<NoteCardProps> = {
note: new TicketNote(),
};
render(): ReactNode {
var message = '';
const note = this.props.note;
@@ -35,10 +37,12 @@ export default class NoteCard extends Component<NoteCardProps, {}> {
return (
<View>
<View>
{note.op} {note.createdTime.format(timeFormat)}
<View className='at-article__h2'>{note.op}</View>
<View className='at-article__info'>
{note.createdTime.format(timeFormat)}
</View>
<View>{message}</View>
<View className='at-article__p'>{message}</View>
<AtDivider />
</View>
);
}
+1 -1
View File
@@ -15,7 +15,7 @@ export default class NoteList extends Component<NoteListProps, {}> {
return (
<View>
{this.props.noteList.map((note, idx) => (
<View key={idx} style={{ marginTop: 8 }}>
<View key={idx}>
<NoteCard note={note} />
</View>
))}