refactor DetailFramework and service/ticketsInfo; create currentTicket service
This commit is contained in:
@@ -4,6 +4,7 @@ import { getCurrentInstance } from '@tarojs/runtime';
|
||||
import pt from '@/plain-text';
|
||||
import { AtButton } from 'taro-ui';
|
||||
import DetailFramework from '@/components/DetailFramework/DetailFramework';
|
||||
import PageFooter from '@/components/PageFooter/PageFooter';
|
||||
|
||||
interface TicketDetailState {
|
||||
id: number;
|
||||
@@ -59,6 +60,7 @@ export default class TicketDetail extends Component<{}, TicketDetailState> {
|
||||
id={this.state.id}
|
||||
isInfoShow={isInfoShow}
|
||||
/>
|
||||
<PageFooter />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ import PageFooter from '@/components/PageFooter/PageFooter';
|
||||
import { submitTicket } from '@/service/submitTicket';
|
||||
import type CustomTabBar from '@/custom-tab-bar';
|
||||
import repairLogo from '@/assets/icons/RepairPage/repair.svg';
|
||||
import DetailFramework from '@/components/DetailFramework/DetailFramework';
|
||||
import './repair.scss';
|
||||
|
||||
interface RepairPageState {
|
||||
@@ -145,6 +146,16 @@ export default class RepairPage extends Component<{}, RepairPageState> {
|
||||
}
|
||||
|
||||
render(): ReactNode {
|
||||
const middleButton = <View></View>;
|
||||
|
||||
const isInfoShow = {
|
||||
device: true,
|
||||
createdTime: true,
|
||||
description: false,
|
||||
current: true,
|
||||
notelist: true,
|
||||
showAllNotes: false,
|
||||
};
|
||||
return (
|
||||
<View>
|
||||
<AtMessage />
|
||||
|
||||
Reference in New Issue
Block a user