add ticket list
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
type FixStatus = 1 | 2 | 3 | 4 | 5;
|
||||
|
||||
export interface TicketListText {
|
||||
createdAt(time: string): string;
|
||||
statusMap: Map<FixStatus, string>;
|
||||
}
|
||||
|
||||
export const ticketListZhCn: TicketListText = {
|
||||
createdAt: time => {
|
||||
return '创建于' + ' ' + time;
|
||||
},
|
||||
statusMap: new Map([
|
||||
[1, '创建成功'],
|
||||
[2, '维修中'],
|
||||
[3, '待取回'],
|
||||
[4, '已取回'],
|
||||
[5, '已取回'],
|
||||
]),
|
||||
};
|
||||
|
||||
export const ticketListEnUs: TicketListText = {
|
||||
createdAt: time => {
|
||||
return '创建于' + ' ' + time;
|
||||
},
|
||||
statusMap: new Map([
|
||||
[1, '创建成功'],
|
||||
[2, '维修中'],
|
||||
[3, '待取回'],
|
||||
[4, '已取回'],
|
||||
[5, '已取回'],
|
||||
]),
|
||||
};
|
||||
@@ -5,6 +5,7 @@ import { TabBarText, tabBarEnUs, tabBarZhCn } from './TabBar';
|
||||
import { ReportPageText, reportPageEnUs, reportPageZhCn } from './ReportPage';
|
||||
import { InformPageText, informPageZhCn, informtPageEnUs } from './InformPage';
|
||||
import { AboutPageText, aboutPageEnUs, aboutPageZhCn } from './AboutPage';
|
||||
import { TicketListText, ticketListEnUs, ticketListZhCn } from './TicketList';
|
||||
|
||||
interface TextRecord {
|
||||
pageFooter: PageFooterText;
|
||||
@@ -14,6 +15,7 @@ interface TextRecord {
|
||||
reportPage: ReportPageText;
|
||||
informPage: InformPageText;
|
||||
aboutPage: AboutPageText;
|
||||
ticketList: TicketListText;
|
||||
}
|
||||
|
||||
const textZhCn: TextRecord = {
|
||||
@@ -24,6 +26,7 @@ const textZhCn: TextRecord = {
|
||||
reportPage: reportPageZhCn,
|
||||
informPage: informPageZhCn,
|
||||
aboutPage: aboutPageZhCn,
|
||||
ticketList: ticketListZhCn,
|
||||
};
|
||||
|
||||
const textEnUs: TextRecord = {
|
||||
@@ -34,6 +37,7 @@ const textEnUs: TextRecord = {
|
||||
reportPage: reportPageEnUs,
|
||||
informPage: informtPageEnUs,
|
||||
aboutPage: aboutPageEnUs,
|
||||
ticketList: ticketListEnUs,
|
||||
};
|
||||
|
||||
// type Lang = 'zh_CN' | 'en_US' | ...;
|
||||
|
||||
Reference in New Issue
Block a user