UNPKG

10.2 kBJavaScriptView Raw
1var comments = [{
2 attachments: [{
3 createDate: null,
4 deleteable: true,
5 documentId: 1398910,
6 documentSource: 1,
7 downloadUrl: '//dfiles.tita.gift/download/portal/300036/93c70600e9c745cab51a1193c8903cdf.png',
8 fileName: '其它feed类型@2x.png',
9 fileType: 'text',
10 imageUrl: null,
11 previewUrl: '//dfiles.tita.gift/portal/300036/93c70600e9c745cab51a1193c8903cdf.png',
12 relatedFileId: 0,
13 size: '1136.95',
14 thumbnailGenerated: false
15 }],
16 commentId: '300000048_2_1780_636782576702525111',
17 commentType: 1,
18 content: "asd <a href='/u/113629051' target='_parent' class='atsrc_fed'>@baozi6</a>&nbsp;",
19 createDate: '刚刚',
20 createTime: '2018/11/19 20:54',
21 endDate: '2018/11/19',
22 isEdit: true,
23 parentCommentId: '300000074_9_1461_636754733776115753',
24 parentUser: {
25 avatar: {
26 Big: null,
27 Large: null,
28 Normal: null,
29 color: '#b9cc4f',
30 hasAvatar: false,
31 medium: null,
32 original: null,
33 small: null
34 },
35 blessingType: 0,
36 decorationType: 2,
37 jobState: 1,
38 medalUrl: '//dfiles.tita.gift/Portal/300036/2ed490f4951c4f27929a21a6ad03b6f2.jpeg',
39 name: '宣传3',
40 tag: {
41 tagName: '敏捷创新',
42 color: '#f5d540'
43 },
44 userId: 300000065,
45 userMark: null,
46 userType: 3
47 },
48 postSource: 0,
49 publishUser: {
50 avatar: {
51 Big: null,
52 Large: null,
53 Normal: null,
54 color: '#b9cc4f',
55 hasAvatar: false,
56 medium: null,
57 original: null,
58 small: null
59 },
60 blessingType: 0,
61 decorationType: 2,
62 jobState: 1,
63 medalUrl: '//dfiles.tita.gift/Portal/300036/2ed490f4951c4f27929a21a6ad03b6f2.jpeg',
64 name: '宣传3',
65 tag: {
66 tagName: '敏捷创新',
67 color: '#f5d540'
68 },
69 userId: 300000065,
70 userMark: null,
71 userType: 3
72 },
73 startDate: '2018/11/19'
74}, {
75 attachments: [{
76 createDate: null,
77 deleteable: true,
78 documentId: 1398910,
79 documentSource: 1,
80 downloadUrl: '//dfiles.tita.gift/download/portal/300036/93c70600e9c745cab51a1193c8903cdf.png',
81 fileName: '其它feed类型@2x.png',
82 fileType: 'text',
83 imageUrl: null,
84 previewUrl: '//dfiles.tita.gift/portal/300036/93c70600e9c745cab51a1193c8903cdf.png',
85 relatedFileId: 0,
86 size: '1136.95',
87 thumbnailGenerated: false
88 }, {
89 createDate: null,
90 deleteable: true,
91 documentId: 1398911,
92 documentSource: 1,
93 downloadUrl: '//dfiles.tita.gift/download/portal/300036/93c70600e9c745cab51a1193c8903cdf.png',
94 fileName: '其它.png',
95 fileType: 'png',
96 imageUrl: null,
97 previewUrl: '//dfiles.tita.gift/portal/300036/93c70600e9c745cab51a1193c8903cdf.png',
98 relatedFileId: 0,
99 size: '1136.95',
100 thumbnailGenerated: false
101 }],
102 commentId: '300000048_2_1780_6367825767025251112',
103 commentType: 1,
104 content: 'xasxa',
105 createDate: '刚刚',
106 createTime: '2018/11/19 20:54',
107 endDate: '2018/11/19',
108 isEdit: true,
109 parentCommentId: '300000074_9_1461_636754733776115753',
110 parentUser: null,
111 postSource: 0,
112 publishUser: {
113 avatar: {
114 Big: null,
115 Large: null,
116 Normal: null,
117 color: '#b9cc4f',
118 hasAvatar: false,
119 medium: null,
120 original: null,
121 small: null
122 },
123 blessingType: 0,
124 decorationType: 2,
125 jobState: 1,
126 medalUrl: '//dfiles.tita.gift/Portal/300036/2ed490f4951c4f27929a21a6ad03b6f2.jpeg',
127 name: '宣传3',
128 tag: {
129 tagName: '敏捷创新',
130 color: '#f5d540'
131 },
132 userId: 300000065,
133 userMark: null,
134 userType: 3
135 },
136 startDate: '2018/11/19'
137}];
138var feedOptions = {
139 "total": 2,
140 "feedId": null,
141 "comments": [{
142 "publishUser": {
143 "userId": 300267372,
144 "name": "shu",
145 "jobState": 1,
146 "avatar": {
147 "original": null,
148 "small": null,
149 "medium": null,
150 "Big": null,
151 "Normal": null,
152 "Large": null,
153 "hasAvatar": false,
154 "color": "#7eb6e0"
155 },
156 "userMark": null,
157 "userType": 3,
158 "decorationType": 2,
159 "blessingType": 0,
160 "medalUrl": "//stnew03.beisen.com/ux/beisen-common/upaas-static/upaas/companymedal-all.png",
161 "medalPosition": "bottom",
162 "tag": {
163 "tagName": "见多识广",
164 "color": "#4F73FF"
165 }
166 },
167 "parentUser": {
168 "userId": 300267372,
169 "name": "shu",
170 "jobState": 1,
171 "avatar": {
172 "original": null,
173 "small": null,
174 "medium": null,
175 "Big": null,
176 "Normal": null,
177 "Large": null,
178 "hasAvatar": false,
179 "color": "#7eb6e0"
180 },
181 "userMark": null,
182 "userType": 3,
183 "decorationType": 2,
184 "blessingType": 0,
185 "medalUrl": "//stnew03.beisen.com/ux/beisen-common/upaas-static/upaas/companymedal-all.png",
186 "medalPosition": "bottom",
187 "tag": {
188 "tagName": "见多识广",
189 "color": "#4F73FF"
190 }
191 },
192 "commentId": "300267372_3_337_636645894379331044",
193 "commentType": 3,
194 "parentCommentId": "",
195 "isEdit": true,
196 "content": "提交了离职申请",
197 "createDate": "2018/06/14 16:10",
198 "createTime": "2018/06/14 16:10",
199 "startDate": "2018/06/14",
200 "endDate": "2018/06/14",
201 "postSource": 0,
202 "attachments": null
203 }, {
204 "publishUser": {
205 "userId": 300234964,
206 "name": "管理",
207 "jobState": 1,
208 "avatar": {
209 "original": "//stcms.beisen.com/Image/347826/70193b8d7d88476da22515226a363b25_o.JPG",
210 "small": "//stcms.beisen.com/Image/347826/70193b8d7d88476da22515226a363b25_s.JPG",
211 "medium": "//stcms.beisen.com/Image/347826/70193b8d7d88476da22515226a363b25_m.JPG",
212 "Big": "//stcms.beisen.com/Image/347826/70193b8d7d88476da22515226a363b25_b.JPG",
213 "Normal": null,
214 "Large": null,
215 "hasAvatar": true,
216 "color": null
217 },
218 "userMark": null,
219 "userType": 3,
220 "decorationType": 2,
221 "blessingType": 0,
222 "medalUrl": "//stnew03.beisen.com/ux/beisen-common/upaas-static/upaas/companymedal-all.png",
223 "medalPosition": "bottom",
224 "tag": null
225 },
226 "parentUser": {
227 "userId": 300267372,
228 "name": "shu",
229 "jobState": 1,
230 "avatar": {
231 "original": null,
232 "small": null,
233 "medium": null,
234 "Big": null,
235 "Normal": null,
236 "Large": null,
237 "hasAvatar": false,
238 "color": "#7eb6e0"
239 },
240 "userMark": null,
241 "userType": 3,
242 "decorationType": 2,
243 "blessingType": 0,
244 "medalUrl": "//stnew03.beisen.com/ux/beisen-common/upaas-static/upaas/companymedal-all.png",
245 "medalPosition": "bottom",
246 "tag": {
247 "tagName": "见多识广",
248 "color": "#4F73FF"
249 }
250 },
251 "commentId": "300234964_3_737_636853322978469214",
252 "commentType": 3,
253 "parentCommentId": "",
254 "isEdit": true,
255 "content": "同意。",
256 "createDate": "2019/02/09 18:04",
257 "createTime": "2019/02/09 18:04",
258 "startDate": "2019/02/09",
259 "endDate": "2019/02/09",
260 "postSource": 0,
261 "attachments": null
262 }]
263};
264
265var getComments = function getComments() {
266 return comments;
267};
268
269var test1 = [{
270 "commentId": "112704801_3_9527_636950962284561832",
271 "commentType": 3,
272 "createTime": "2019/06/02 18:17"
273}, {
274 "commentId": "112704801_3_9527_636950962284561832",
275 "commentType": 3,
276 "createTime": "2019/06/02 19:17"
277}, {
278 "commentId": "112704801_3_9527_636950962284561832",
279 "commentType": 3,
280 "createTime": "2019/06/03 18:17"
281}, {
282 "commentId": "112704801_3_9527_636950962284561832",
283 "commentType": 3,
284 "createTime": "2018/06/02 18:17"
285}, {
286 "commentId": "112704801_3_9527_636950962284561832",
287 "commentType": 3,
288 "createTime": "2017/06/02 18:17"
289}, {
290 "commentId": "112704801_3_9527_636950962284561832",
291 "commentType": 3,
292 "createTime": "2019/07/02 18:17"
293}, {
294 "commentId": "112704801_3_9527_636950962284561832",
295 "commentType": 3,
296 "createTime": "2018/06/03 18:17"
297}, {
298 "commentId": "112704801_3_9527_636950962284561832",
299 "commentType": 3,
300 "createTime": "2016/06/02 18:17"
301}, {
302 "commentId": "112704801_3_9527_636950962284561832",
303 "commentType": 3,
304 "createTime": "2015/06/02 18:17"
305}];
306var test2 = [
307/* 组件需求数据*/
308{
309 "year": 2016,
310 "dates": [{
311 "date": "88/88",
312 "events": [{
313 "commentType": 3,
314 "createTime": "88:88",
315 "content": "发起了任务 带分布列表",
316 "publishUser": "非非",
317 "commentId": "xxx01"
318 }, {
319 "commentType": 3,
320 "createTime": "13:20",
321 "content": "发起了任务 带分布列表,例如任务有更多数据,提示\"没有数据了\"发起了任务 带分布列表,例如任务有更多数据,提示\"没有数据了\"发起了任务 带分布列表,例如任务有更多数据,提示\"没有数据了\"发起了任务 带分布列表,例如任务有更多数据,提示\"没有数据了\"",
322 "publishUser": "斐斐",
323 "commentId": "xxx02"
324 }]
325 }]
326}, {
327 "year": 2017,
328 "dates": [{
329 "date": "01/17",
330 "events": [{
331 "commentType": 3,
332 "createTime": "13:21",
333 "content": "发起了任务 带分布列表",
334 "publishUser": "非非",
335 "commentId": "xxx0xdf"
336 }]
337 }, {
338 "date": "05/10",
339 "events": [{
340 "commentType": 3,
341 "createTime": "13:21",
342 "content": "将任务名称 带分布列表 修改为 带分布列表,例如任务列表页",
343 "publishUser": "非非",
344 "commentId": "xxx01dfsf"
345 }, {
346 "commentType": 3,
347 "createTime": "13:20",
348 "content": "发起了任务 带分布列表,例如任务有更多数据,提示\"没有数据了\"",
349 "publishUser": "斐斐",
350 "commentId": "xxx02xfdfds"
351 }]
352 }]
353}, {
354 "year": 2018,
355 "dates": [{
356 "date": "03/01",
357 "events": [{
358 "commentType": 3,
359 "createTime": "10:33",
360 "content": "在任务下分解了任务 [假勤]",
361 "publishUser": "海彬",
362 "commentId": "xxx303"
363 }, {
364 "commentType": 3,
365 "createTime": "10:34",
366 "content": "完成了任务[假勤]",
367 "publishUser": "李贺",
368 "commentId": "xxx204"
369 }]
370 }]
371}];
372export { getComments };
\No newline at end of file