From 7c9f9647fbc4ebb671cb297743b21322eda0fde3 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期四, 04 十一月 2021 14:08:00 +0800
Subject: [PATCH] TODO#129071 顧問-客戶預約 畫面刻版

---
 PAMapp/plugins/api/home.ts |  174 +++++++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 124 insertions(+), 50 deletions(-)

diff --git a/PAMapp/plugins/api/home.ts b/PAMapp/plugins/api/home.ts
index b26d5aa..2e98ab2 100644
--- a/PAMapp/plugins/api/home.ts
+++ b/PAMapp/plugins/api/home.ts
@@ -5,88 +5,162 @@
     recommendConsultantList(){
         const debugData = [
             {
-                id: 0,
+                new: true,
+                agentNo: 0,
                 name: '撘萄���',
-                img: 'https://randomuser.me/api/portraits/women/31.jpg',
-                new: false,
-                tags: ['鞎∪����', '鞈頧宏'],
+                img: '',
+                professionals: ['鞎∪����', '鞈頧宏'],
                 satisfaction: 4.8,
-                reserve: false
+                contactStatus: 'reserved',
+                updateTime: 'Tue Nov 02 2021 11:40:02 GMT+0800 (��������)'
             },
             {
-                id: 1,
+                new: true,
+                agentNo: 1,
                 name: '�撣亙',
-                img: 'https://randomuser.me/api/portraits/men/32.jpg',
-                new: true,
-                tags: [],
+                img: '',
+                professionals: [],
                 satisfaction: 4,
-                reserve: false
+                contactStatus: 'contacted',
+                updateTime: 'Tue Nov 02 2021 11:40:02 GMT+0800 (��������)'
             },
             {
-                id: 2,
-                name: '���戊',
-                img: 'https://randomuser.me/api/portraits/women/33.jpg',
                 new: false,
-                tags: ['鞎∪����', '鞈頧宏'],
+                agentNo: 2,
+                name: '���戊',
+                img: '',
+                professionals: ['鞎∪����', '鞈頧宏'],
                 satisfaction: 5,
-                reserve: true
+                contactStatus: 'picked',
+                updateTime: 'Tue Oct 12 2021 19:05:02 GMT+0800 (��������)'
             },
             {
-                id: 3,
+                new: false,
+                agentNo: 3,
                 name: '�蝢��',
-                img: 'https://randomuser.me/api/portraits/women/34.jpg',
-                new: true,
-                tags: ['鞎∪����', '鞈頧宏'],
+                img: '',
+                professionals: ['鞎∪����', '鞈頧宏'],
                 satisfaction: 4.3,
-                reserve: false
+                contactStatus: 'picked',
+                updateTime: 'Tue Nov 02 2021 11:40:02 GMT+0800 (��������)'
             },
             {
-                id: 4,
+                new: true,
+                agentNo: 4,
                 name: '撘萄���',
-                img: 'https://randomuser.me/api/portraits/women/35.jpg',
-                state: '敹��',
-                tags: [],
+                img: '',
+                professionals: [],
                 satisfaction: 4.8,
-                reserve: true
+                contactStatus: 'picked',
+                updateTime: 'Tue Nov 02 2021 11:40:02 GMT+0800 (��������)'
             },
             {
-                id: 5,
-                name: '�撣亙',
-                img: 'https://randomuser.me/api/portraits/men/36.jpg',
                 new: true,
-                tags: ['鞎∪����', '鞈頧宏'],
-                satisfaction: 4,
-                reserve: false
+                agentNo: 5,
+                name: '�撣亙',
+                img: '',
+                professionals: ['鞎∪����', '鞈頧宏'],
+                satisfaction: 4.8,
+                contactStatus: 'reserved',
+                updateTime: 'Tue Nov 02 2021 11:40:02 GMT+0800 (��������)'
             },
             {
-                id: 6,
-                name: '���戊',
-                img: 'https://randomuser.me/api/portraits/women/37.jpg',
-                state: '敹��',
-                tags: [],
-                satisfaction: 5,
-                reserve: false
-            },
-            {
-                id: 7,
-                name: '�蝢��',
-                img: 'https://randomuser.me/api/portraits/women/38.jpg',
                 new: false,
-                tags: [],
-                satisfaction: 4.3,
-                reserve: true
+                agentNo: 6,
+                name: '���戊',
+                img: '',
+                professionals: ['鞎∪����', '鞈蝘餉��', '蝭�蝔�', '璅暑��隡�'],
+                satisfaction: 4.8,
+                contactStatus: 'picked',
+                updateTime: 'Tue Nov 02 2021 10:40:02 GMT+0800 (��������)'
+            },
+            {
+                new: false,
+                agentNo: 7,
+                name: '�蝢��',
+                img: '',
+                professionals: ['鞎∪����', '蝭�蝔�', '璅暑��隡�'],
+                satisfaction: 4.8,
+                contactStatus: 'picked',
+                updateTime: 'Tue Sep 02 2021 09:40:02 GMT+0800 (��������)'
             }
         ]
-        return CommonService.prototype.withDebugData(debugData, 'https://randomuser.me/api/')
+        return CommonService.prototype.withDebugData(debugData, '')
+    },
+    clientReservedList() {
+        const debugData = [{
+            name: '�����',
+            clientId: '1',
+            phone: '091234567',
+            time: new Date('Tue Nov 02 2021 11:23:14 GMT+0800 (��������)'),
+            gender: 'male',
+            age: '26-30',
+            job: 'general',
+            requirements: ['靽�瑼�/閬��', '��靽����'],
+            communicateStatus: 'reserved'
+        },{
+            name: 'Ariel',
+            clientId: '2',
+            phone: '091234567',
+            time: new Date('Tue Oct 15 2020 11:23:14 GMT+0800 (��������)'),
+            gender: 'female',
+            age: '30-40',
+            job: 'general',
+            requirements: ['靽�瑼�/閬��', '鞈頧宏', '��靽����'],
+            communicateStatus: 'contacted'
+        },{
+            name: 'Donna',
+            clientId: '3',
+            phone: '091234567',
+            time: new Date('Tue Oct 31 2021 10:23:14 GMT+0800 (��������)'),
+            gender: 'female',
+            age: '10-20',
+            job: 'general',
+            requirements: ['��靽����'],
+            communicateStatus: 'reserved'
+        },{
+            name: '���',
+            clientId: '4',
+            phone: '091234567',
+            time: new Date('Tue Dec 31 2020 19:23:14 GMT+0800 (��������)'),
+            gender: 'female',
+            age: '50-60',
+            job: 'general',
+            requirements: ['鞈頧宏', '蝭�蝔�'],
+            communicateStatus: 'reserved'
+        },{
+            name: '��摩隡�',
+            clientId: '5',
+            phone: '091234567',
+            time: new Date('Tue Oct 15 2020 11:23:14 GMT+0800 (��������)'),
+            gender: 'male',
+            age: '60-70',
+            job: 'general',
+            requirements: ['蝭�蝔�', '鞈頧宏', '��靽����'],
+            communicateStatus: 'contacted'
+        },{
+            name: '�慦賢直',
+            clientId: '6',
+            phone: '091234567',
+            time: new Date('Tue Dec 31 2020 19:23:14 GMT+0800 (��������)'),
+            gender: 'female',
+            age: '50-60',
+            job: 'general',
+            requirements: [],
+            communicateStatus: 'reserved'
+        }]
+
+        return CommonService.prototype.withDebugData(debugData, '')
     }
 })
 
 export interface Agents {
-    id: number,
+    agentNo: number,
     name: string,
     img: string,
     new: boolean,
     satisfaction: number,
-    tags: string[],
-    reserve: boolean
+    professionals: string[],
+    contactStatus: string,
+    updateTime: Date
   }
\ No newline at end of file

--
Gitblit v1.8.0