Merge branch 'yhy' into dev

This commit is contained in:
Dawn_Ocean
2024-03-11 14:13:39 +08:00
9 changed files with 36170 additions and 36022 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
@@ -7,6 +7,7 @@ import { InformPageText, informPageZhCn, informPageEnUs } from './InformPage';
import { AboutPageText, aboutPageEnUs, aboutPageZhCn } from './AboutPage';
import { ButtonText, buttonEnUs, buttonZhCn } from './Button';
import { MemberPageText, memberPageEnUs, memberPageZhCn } from './MemberPage';
import { TicketListText, ticketListEnUs, ticketListZhCn } from './TicketList';
interface TextRecord {
pageFooter: PageFooterText;
@@ -18,6 +19,7 @@ interface TextRecord {
aboutPage: AboutPageText;
button: ButtonText;
memberPage: MemberPageText;
ticketList: TicketListText;
}
const textZhCn: TextRecord = {
@@ -30,6 +32,7 @@ const textZhCn: TextRecord = {
aboutPage: aboutPageZhCn,
button: buttonZhCn,
memberPage: memberPageZhCn,
ticketList: ticketListZhCn,
};
const textEnUs: TextRecord = {
@@ -42,6 +45,7 @@ const textEnUs: TextRecord = {
aboutPage: aboutPageEnUs,
button: buttonEnUs,
memberPage: memberPageEnUs,
ticketList: ticketListEnUs,
};
// type Lang = 'zh_CN' | 'en_US' | ...;