|
@@ -41,22 +41,49 @@ export class Tab2Page {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
invitationMessages = [
|
|
invitationMessages = [
|
|
- { inviter: { username: 'Alice' }, question: 'How to use Ionic v7?', time: new Date() },
|
|
|
|
|
|
+ { inviter: { username: 'Alice' }, question: 'How to use Ionic v7?', time: new Date(new Date().getTime() - 3600000) },
|
|
|
|
+ { inviter: { username: '阿巴阿巴' }, question: '怎么说话?', time: new Date(new Date().getTime() - 7200000) },
|
|
|
|
+ { inviter: { username: 'JohnDoe' }, question: 'What is the best way to learn React?', time: new Date(new Date().getTime() - 14400000) },
|
|
|
|
+ { inviter: { username: 'JaneSmith' }, question: 'Can you explain CSS Grid?', time: new Date(new Date().getTime() - 18000000) },
|
|
|
|
+ { inviter: { username: 'Coder123' }, question: 'How to optimize JavaScript performance?', time: new Date(new Date().getTime() - 21600000) },
|
|
|
|
+ { inviter: { username: 'TechGuru' }, question: 'What is Node.js used for?', time: new Date(new Date().getTime() - 25200000) },
|
|
|
|
+ { inviter: { username: 'WebDevMaster' }, question: 'Best practices for responsive design?', time: new Date(new Date().getTime() - 28800000) },
|
|
|
|
+ { inviter: { username: 'FrontendFanatic' }, question: 'What are Web Components?', time: new Date(new Date().getTime() - 32400000) },
|
|
|
|
+ { inviter: { username: 'JSNinja' }, question: 'How to handle asynchronous code in JavaScript?', time: new Date(new Date().getTime() - 36000000) },
|
|
|
|
+ { inviter: { username: 'DesignLover' }, question: 'What are the latest UI/UX trends?', time: new Date(new Date().getTime() - 39600000) }
|
|
|
|
+
|
|
|
|
+
|
|
// 更多邀请消息...
|
|
// 更多邀请消息...
|
|
];
|
|
];
|
|
|
|
|
|
systemMessages = [
|
|
systemMessages = [
|
|
{ source: '系统', content: '您的新回答已被采纳!', time: new Date(new Date().getTime() - 3600000) },
|
|
{ source: '系统', content: '您的新回答已被采纳!', time: new Date(new Date().getTime() - 3600000) },
|
|
|
|
+ { source: '徽章小助手', content: '您获得了新的徽章!', time: new Date(new Date().getTime() - 3000000) },
|
|
|
|
+ { source: '系统', content: '您的新回答已被采纳!', time: new Date(new Date().getTime() - 3600000) },
|
|
|
|
+ { source: '系统', content: '您的新回答已被采纳!', time: new Date(new Date().getTime() - 3600000) },
|
|
|
|
+ { source: '系统', content: '您的新回答已被采纳!', time: new Date(new Date().getTime() - 3600000) },
|
|
|
|
+ { source: '徽章小助手', content: '您获得了新的徽章!', time: new Date(new Date().getTime() - 3000000) },
|
|
|
|
+ { source: '徽章小助手', content: '您获得了新的徽章!', time: new Date(new Date().getTime() - 3000000) },
|
|
// 更多系统消息...
|
|
// 更多系统消息...
|
|
];
|
|
];
|
|
|
|
|
|
privateMessages = [
|
|
privateMessages = [
|
|
- { user: { username: 'Bob' }, content: 'Hello, how are you?', time: new Date() },
|
|
|
|
|
|
+ { user: { username: 'Bob' }, content: 'Hello, how are you?', time: new Date(new Date().getTime() - 3600000) },
|
|
|
|
+ { user: { username: 'Alice' }, content: 'Can you help me with my project?', time: new Date(new Date().getTime() - 7200000) },
|
|
|
|
+ { user: { username: 'Charlie' }, content: 'What is the best way to learn JavaScript?', time: new Date(new Date().getTime() - 10800000) },
|
|
|
|
+ { user: { username: 'Dave' }, content: 'Any tips for improving CSS skills?', time: new Date(new Date().getTime() - 14400000) },
|
|
|
|
+ { user: { username: 'Eve' }, content: 'How do I deploy a React app?', time: new Date(new Date().getTime() - 18000000) },
|
|
|
|
+ { user: { username: 'Frank' }, content: 'What are the latest trends in web development?', time: new Date(new Date().getTime() - 21600000) },
|
|
|
|
+ { user: { username: 'Grace' }, content: 'Can you explain the virtual DOM?', time: new Date(new Date().getTime() - 25200000) },
|
|
|
|
+ { user: { username: 'Hank' }, content: 'How to manage state in a React application?', time: new Date(new Date().getTime() - 28800000) },
|
|
|
|
+ { user: { username: 'Ivy' }, content: 'What is the difference between var, let, and const?', time: new Date(new Date().getTime() - 32400000) },
|
|
|
|
+ { user: { username: 'Jack' }, content: 'How do I set up a Node.js server?', time: new Date(new Date().getTime() - 36000000) }
|
|
|
|
+
|
|
// 更多私信...
|
|
// 更多私信...
|
|
];
|
|
];
|
|
|
|
|
|
segmentChanged(event: CustomEvent) {
|
|
segmentChanged(event: CustomEvent) {
|
|
this.selectedSegment = event.detail.value;
|
|
this.selectedSegment = event.detail.value;
|
|
this.generateTestData();
|
|
this.generateTestData();
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ }
|
|
|
|
+}
|