add ticket list

This commit is contained in:
2024-03-11 11:15:02 +08:00
parent cc5af58155
commit 4e31eb70e2
7 changed files with 101 additions and 1 deletions
+32
View File
@@ -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, '已取回'],
]),
};
+4
View File
@@ -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' | ...;