yangsunyue_wd
Showing 58 changed files with 3576 additions and 642 deletions

Too many changes to show.

To preserve performance only 58 of 58+ files are displayed.

1 1
2 import { FollowFirstTabsComponent } from 'wdComponent' 2 import { FollowFirstTabsComponent } from 'wdComponent'
  3 +import router from '@ohos.router';
  4 +import { Params } from 'wdComponent/src/main/ets/repository/bean/Params';
3 5
4 @Entry 6 @Entry
5 @Component 7 @Component
6 struct FollowListPage { 8 struct FollowListPage {
7 9
  10 + @State params:Params = router.getParams() as Params;
  11 + @State curIndex: string = '0';
  12 +
  13 + onPageShow() {
  14 + this.curIndex = "1";
  15 + }
  16 +
8 build() { 17 build() {
9 Column() { 18 Column() {
10 //Tab 详情 19 //Tab 详情
11 - FollowFirstTabsComponent() 20 + FollowFirstTabsComponent({changeIndex:Number(this.curIndex)})
12 } 21 }
13 .backgroundColor($r('app.color.color_F9F9F9')) 22 .backgroundColor($r('app.color.color_F9F9F9'))
14 .height('100%') 23 .height('100%')
  1 +import { MyHomeComponent } from 'wdComponent'
  2 +@Entry
  3 +@Component
  4 +struct MyHomePage {
  5 +
  6 + build() {
  7 + Column() {
  8 + MyHomeComponent()
  9 + }
  10 + .height('100%')
  11 + .width('100%')
  12 + }
  13 +}
@@ -4,11 +4,12 @@ @@ -4,11 +4,12 @@
4 "pages/MainPage", 4 "pages/MainPage",
5 "pages/ColumnPage", 5 "pages/ColumnPage",
6 "pages/TestPage", 6 "pages/TestPage",
7 - "components/page/SettingPage",  
8 - "components/page/PrivacySettingPage",  
9 - "components/page/SettingAboutPage", 7 + "pages/SettingPage",
  8 + "pages/PrivacySettingPage",
  9 + "pages/SettingAboutPage",
10 "pages/AppointmentListPage", 10 "pages/AppointmentListPage",
11 - "components/page/SettingPasswordPage",  
12 - "pages/FollowListPage" 11 + "pages/SettingPasswordPage",
  12 + "pages/FollowListPage",
  13 + "pages/MyHomePage"
13 ] 14 ]
14 -} 15 +}
1 { 1 {
2 "code": "0", 2 "code": "0",
3 "data": { 3 "data": {
4 - "list": [{  
5 - "attentionNum": 0,  
6 - "authIcon": "",  
7 - "authId": 0,  
8 - "authPersonal": "",  
9 - "authTitle": "",  
10 - "categoryAuth": "",  
11 - "city": "110100",  
12 - "cnAttentionNum": 0,  
13 - "cnCollectNum": 0,  
14 - "cnCommentNum": 0,  
15 - "cnFansNum": 4,  
16 - "cnIsAttention": 1,  
17 - "cnIsComment": 1,  
18 - "cnIsLike": 1,  
19 - "cnLikeNum": 0,  
20 - "cnLiveCommentControl": 1,  
21 - "cnLiveGiftControl": 1,  
22 - "cnLiveLikeControl": 1,  
23 - "cnLiveShareControl": 1,  
24 - "cnMainControl": 1,  
25 - "cnRegistTime": 1695280071000,  
26 - "cnShareControl": 1,  
27 - "cnShareNum": 0,  
28 - "cnUserId": "444937588589253",  
29 - "cnUserName": "QACrawler2115",  
30 - "cnUserType": "2",  
31 - "collectNum": 0,  
32 - "creatorId": "3004862",  
33 - "district": "110101",  
34 - "fansNum": 0,  
35 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th211436299/GLN.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
36 - "honoraryIcon": "",  
37 - "honoraryTitle": "",  
38 - "introduction": "知识博主",  
39 - "isAttention": 1,  
40 - "isComment": 1,  
41 - "isLike": 1,  
42 - "isVisiable": 1,  
43 - "likeNum": 0,  
44 - "liveCommentControl": 1,  
45 - "liveGiftControl": 1,  
46 - "liveLikeControl": 1,  
47 - "liveShareControl": 1,  
48 - "posterShareControl": 1,  
49 - "province": "110000",  
50 - "publishNum": 0,  
51 - "region": "",  
52 - "shareControl": 1,  
53 - "shareNum": 0,  
54 - "shopOpen": 0,  
55 - "storeUrl": "",  
56 - "subjectType": 0,  
57 - "userId": "",  
58 - "userName": "QACrawler2115",  
59 - "userType": "2",  
60 - "waresSwitch": 1  
61 - }, {  
62 - "attentionNum": 0,  
63 - "authIcon": "",  
64 - "authId": 0,  
65 - "authPersonal": "",  
66 - "authTitle": "",  
67 - "categoryAuth": "",  
68 - "city": "230100",  
69 - "cnAttentionNum": 0,  
70 - "cnCollectNum": 0,  
71 - "cnCommentNum": 0,  
72 - "cnFansNum": 4,  
73 - "cnIsAttention": 1,  
74 - "cnIsComment": 1,  
75 - "cnIsLike": 1,  
76 - "cnLikeNum": 0,  
77 - "cnLiveCommentControl": 1,  
78 - "cnLiveGiftControl": 1,  
79 - "cnLiveLikeControl": 1,  
80 - "cnLiveShareControl": 1,  
81 - "cnMainControl": 1,  
82 - "cnRegistTime": 1695276994000,  
83 - "cnShareControl": 1,  
84 - "cnShareNum": 0,  
85 - "cnUserId": "444911718724933",  
86 - "cnUserName": "一休哥",  
87 - "cnUserType": "2",  
88 - "collectNum": 0,  
89 - "creatorId": "3004861",  
90 - "district": "230102",  
91 - "fansNum": 0,  
92 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th141630857/Ptx.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
93 - "honoraryIcon": "",  
94 - "honoraryTitle": "",  
95 - "introduction": "中文端号主",  
96 - "isAttention": 1,  
97 - "isComment": 1,  
98 - "isLike": 1,  
99 - "isVisiable": 1,  
100 - "likeNum": 0,  
101 - "liveCommentControl": 1,  
102 - "liveGiftControl": 1,  
103 - "liveLikeControl": 1,  
104 - "liveShareControl": 1,  
105 - "posterShareControl": 1,  
106 - "province": "230000",  
107 - "publishNum": 0,  
108 - "region": "安徽",  
109 - "shareControl": 1,  
110 - "shareNum": 0,  
111 - "shopOpen": 0,  
112 - "storeUrl": "",  
113 - "subjectType": 2,  
114 - "userId": "",  
115 - "userName": "一休哥",  
116 - "userType": "2",  
117 - "waresSwitch": 1  
118 - }, {  
119 - "attentionNum": 0,  
120 - "authIcon": "",  
121 - "authId": 0,  
122 - "authPersonal": "",  
123 - "authTitle": "",  
124 - "categoryAuth": "",  
125 - "city": "110100",  
126 - "cnAttentionNum": 0,  
127 - "cnCollectNum": 0,  
128 - "cnCommentNum": 12,  
129 - "cnFansNum": 8,  
130 - "cnIsAttention": 1,  
131 - "cnIsComment": 1,  
132 - "cnIsLike": 1,  
133 - "cnLikeNum": 2,  
134 - "cnLiveCommentControl": 1,  
135 - "cnLiveGiftControl": 1,  
136 - "cnLiveLikeControl": 1,  
137 - "cnLiveShareControl": 1,  
138 - "cnMainControl": 1,  
139 - "cnRegistTime": 1695275999000,  
140 - "cnShareControl": 1,  
141 - "cnShareNum": 1,  
142 - "cnUserId": "444903323309381",  
143 - "cnUserName": "0921媒体",  
144 - "cnUserType": "3",  
145 - "collectNum": 0,  
146 - "creatorId": "3004860",  
147 - "district": "110101",  
148 - "fansNum": 0,  
149 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th135954709/qdL.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
150 - "honoraryIcon": "",  
151 - "honoraryTitle": "",  
152 - "introduction": "0921媒体",  
153 - "isAttention": 1,  
154 - "isComment": 1,  
155 - "isLike": 1,  
156 - "isVisiable": 1,  
157 - "likeNum": 0,  
158 - "liveCommentControl": 1,  
159 - "liveGiftControl": 1,  
160 - "liveLikeControl": 1,  
161 - "liveShareControl": 1,  
162 - "posterShareControl": 0,  
163 - "province": "110000",  
164 - "publishNum": 0,  
165 - "region": "上海",  
166 - "shareControl": 1,  
167 - "shareNum": 0,  
168 - "shopOpen": 0,  
169 - "storeUrl": "",  
170 - "subjectType": 1,  
171 - "userId": "",  
172 - "userName": "0921媒体",  
173 - "userType": "3",  
174 - "waresSwitch": 1  
175 - }, {  
176 - "attentionNum": 0,  
177 - "authIcon": "https://sitcontentjdcdn.aikan.pdnews.cn/creator-category/icon/auth/blue.png",  
178 - "authId": 1,  
179 - "authPersonal": "",  
180 - "authTitle": "黄袍加身V",  
181 - "categoryAuth": "黄袍加身V",  
182 - "city": "340100",  
183 - "cnAttentionNum": 9,  
184 - "cnCollectNum": 0,  
185 - "cnCommentNum": 3,  
186 - "cnFansNum": 9,  
187 - "cnIsAttention": 1,  
188 - "cnIsComment": 1,  
189 - "cnIsLike": 1,  
190 - "cnLikeNum": 7,  
191 - "cnLiveCommentControl": 1,  
192 - "cnLiveGiftControl": 1,  
193 - "cnLiveLikeControl": 1,  
194 - "cnLiveShareControl": 1,  
195 - "cnMainControl": 1,  
196 - "cnRegistTime": 1695260417000,  
197 - "cnShareControl": 1,  
198 - "cnShareNum": 0,  
199 - "cnUserId": "444776025830725",  
200 - "cnUserName": "李智恩3",  
201 - "cnUserType": "2",  
202 - "collectNum": 0,  
203 - "creatorId": "3004855",  
204 - "district": "340102",  
205 - "fansNum": 0,  
206 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th094010643/N5o.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
207 - "honoraryIcon": "",  
208 - "honoraryTitle": "",  
209 - "introduction": "IU",  
210 - "isAttention": 1,  
211 - "isComment": 1,  
212 - "isLike": 1,  
213 - "isVisiable": 1,  
214 - "likeNum": 0,  
215 - "liveCommentControl": 1,  
216 - "liveGiftControl": 1,  
217 - "liveLikeControl": 1,  
218 - "liveShareControl": 1,  
219 - "posterShareControl": 0,  
220 - "province": "340000",  
221 - "publishNum": 0,  
222 - "region": "安徽",  
223 - "shareControl": 1,  
224 - "shareNum": 0,  
225 - "shopOpen": 1,  
226 - "storeUrl": "",  
227 - "subjectType": 1,  
228 - "userId": "",  
229 - "userName": "李智恩3",  
230 - "userType": "2",  
231 - "waresSwitch": 0  
232 - }, {  
233 - "attentionNum": 0,  
234 - "authIcon": "https://sitcontentjdcdn.aikan.pdnews.cn/creator-category/icon/auth/yellow.png",  
235 - "authId": 2,  
236 - "authPersonal": "",  
237 - "authTitle": "黄VV",  
238 - "categoryAuth": "黄VV",  
239 - "city": "120100",  
240 - "cnAttentionNum": 1,  
241 - "cnCollectNum": 1,  
242 - "cnCommentNum": 7,  
243 - "cnFansNum": 13,  
244 - "cnIsAttention": 1,  
245 - "cnIsComment": 1,  
246 - "cnIsLike": 1,  
247 - "cnLikeNum": 0,  
248 - "cnLiveCommentControl": 1,  
249 - "cnLiveGiftControl": 1,  
250 - "cnLiveLikeControl": 1,  
251 - "cnLiveShareControl": 1,  
252 - "cnMainControl": 1,  
253 - "cnRegistTime": 1695202406000,  
254 - "cnShareControl": 1,  
255 - "cnShareNum": 0,  
256 - "cnUserId": "444300764043333",  
257 - "cnUserName": "创作者账号7777",  
258 - "cnUserType": "2",  
259 - "collectNum": 0,  
260 - "creatorId": "3004853",  
261 - "district": "120101",  
262 - "fansNum": 0,  
263 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/image/creator/2023092715/4727ab5db7604dbbac9ffb94ed03614e.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
264 - "honoraryIcon": "",  
265 - "honoraryTitle": "",  
266 - "introduction": "协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作",  
267 - "isAttention": 1,  
268 - "isComment": 1,  
269 - "isLike": 1,  
270 - "isVisiable": 1,  
271 - "likeNum": 0,  
272 - "liveCommentControl": 1,  
273 - "liveGiftControl": 1,  
274 - "liveLikeControl": 1,  
275 - "liveShareControl": 1,  
276 - "posterShareControl": 0,  
277 - "province": "120000",  
278 - "publishNum": 0,  
279 - "region": "安徽",  
280 - "shareControl": 1,  
281 - "shareNum": 0,  
282 - "shopOpen": 1,  
283 - "storeUrl": "",  
284 - "subjectType": 0,  
285 - "userId": "",  
286 - "userName": "创作者账号7777",  
287 - "userType": "2",  
288 - "waresSwitch": 0  
289 - }, {  
290 - "attentionNum": 0,  
291 - "authIcon": "",  
292 - "authId": 0,  
293 - "authPersonal": "",  
294 - "authTitle": "",  
295 - "categoryAuth": "",  
296 - "city": "110100",  
297 - "cnAttentionNum": 0,  
298 - "cnCollectNum": 0,  
299 - "cnCommentNum": 0,  
300 - "cnFansNum": 9,  
301 - "cnIsAttention": 1,  
302 - "cnIsComment": 1,  
303 - "cnIsLike": 1,  
304 - "cnLikeNum": 6,  
305 - "cnLiveCommentControl": 1,  
306 - "cnLiveGiftControl": 1,  
307 - "cnLiveLikeControl": 1,  
308 - "cnLiveShareControl": 1,  
309 - "cnMainControl": 1,  
310 - "cnRegistTime": 1695201858000,  
311 - "cnShareControl": 1,  
312 - "cnShareNum": 0,  
313 - "cnUserId": "444296355502149",  
314 - "cnUserName": "0920个人",  
315 - "cnUserType": "2",  
316 - "collectNum": 0,  
317 - "creatorId": "3004851",  
318 - "district": "110101",  
319 - "fansNum": 0,  
320 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309We172415100/h2j.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
321 - "honoraryIcon": "https://cdn.aikan.pdnews.cn/image/picture/202312/20231223173451966FdV.png",  
322 - "honoraryTitle": "快乐星球",  
323 - "introduction": "账号简介",  
324 - "isAttention": 1,  
325 - "isComment": 1,  
326 - "isLike": 1,  
327 - "isVisiable": 1,  
328 - "likeNum": 0,  
329 - "liveCommentControl": 1,  
330 - "liveGiftControl": 1,  
331 - "liveLikeControl": 1,  
332 - "liveShareControl": 1,  
333 - "posterShareControl": 1,  
334 - "province": "110000",  
335 - "publishNum": 0,  
336 - "region": "上海",  
337 - "shareControl": 1,  
338 - "shareNum": 0,  
339 - "shopOpen": 0,  
340 - "storeUrl": "",  
341 - "subjectType": 0,  
342 - "userId": "",  
343 - "userName": "0920个人",  
344 - "userType": "2",  
345 - "waresSwitch": 1  
346 - }, {  
347 - "attentionNum": 0,  
348 - "authIcon": "",  
349 - "authId": 0,  
350 - "authPersonal": "",  
351 - "authTitle": "",  
352 - "categoryAuth": "",  
353 - "city": "120100",  
354 - "cnAttentionNum": 0,  
355 - "cnCollectNum": 0,  
356 - "cnCommentNum": 0,  
357 - "cnFansNum": 10,  
358 - "cnIsAttention": 1,  
359 - "cnIsComment": 1,  
360 - "cnIsLike": 1,  
361 - "cnLikeNum": 0,  
362 - "cnLiveCommentControl": 1,  
363 - "cnLiveGiftControl": 1,  
364 - "cnLiveLikeControl": 1,  
365 - "cnLiveShareControl": 1,  
366 - "cnMainControl": 1,  
367 - "cnRegistTime": 1695190066000,  
368 - "cnShareControl": 1,  
369 - "cnShareNum": 0,  
370 - "cnUserId": "444200272593477",  
371 - "cnUserName": "zhuaqu005",  
372 - "cnUserType": "2",  
373 - "collectNum": 0,  
374 - "creatorId": "3004849",  
375 - "district": "120101",  
376 - "fansNum": 0,  
377 - "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309We140931534/CIX.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",  
378 - "honoraryIcon": "",  
379 - "honoraryTitle": "",  
380 - "introduction": "aaa",  
381 - "isAttention": 1,  
382 - "isComment": 1,  
383 - "isLike": 1,  
384 - "isVisiable": 1,  
385 - "likeNum": 0,  
386 - "liveCommentControl": 1,  
387 - "liveGiftControl": 1,  
388 - "liveLikeControl": 1,  
389 - "liveShareControl": 1,  
390 - "posterShareControl": 1,  
391 - "province": "120000",  
392 - "publishNum": 0,  
393 - "region": "上海",  
394 - "shareControl": 1,  
395 - "shareNum": 0,  
396 - "shopOpen": 0,  
397 - "storeUrl": "",  
398 - "subjectType": 0,  
399 - "userId": "",  
400 - "userName": "zhuaqu005",  
401 - "userType": "2",  
402 - "waresSwitch": 1  
403 - }], 4 + "list": [
  5 + {
  6 + "attentionNum": 0,
  7 + "authIcon": "",
  8 + "authId": 0,
  9 + "authPersonal": "",
  10 + "authTitle": "",
  11 + "categoryAuth": "",
  12 + "city": "110100",
  13 + "cnAttentionNum": 0,
  14 + "cnCollectNum": 0,
  15 + "cnCommentNum": 0,
  16 + "cnFansNum": 4,
  17 + "cnIsAttention": 1,
  18 + "cnIsComment": 1,
  19 + "cnIsLike": 1,
  20 + "cnLikeNum": 0,
  21 + "cnLiveCommentControl": 1,
  22 + "cnLiveGiftControl": 1,
  23 + "cnLiveLikeControl": 1,
  24 + "cnLiveShareControl": 1,
  25 + "cnMainControl": 1,
  26 + "cnRegistTime": 1695280071000,
  27 + "cnShareControl": 1,
  28 + "cnShareNum": 0,
  29 + "cnUserId": "444937588589253",
  30 + "cnUserName": "QACrawler2115",
  31 + "cnUserType": "2",
  32 + "collectNum": 0,
  33 + "creatorId": "3004862",
  34 + "district": "110101",
  35 + "fansNum": 0,
  36 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th211436299/GLN.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  37 + "honoraryIcon": "",
  38 + "honoraryTitle": "",
  39 + "introduction": "知识博主",
  40 + "isAttention": 1,
  41 + "isComment": 1,
  42 + "isLike": 1,
  43 + "isVisiable": 1,
  44 + "likeNum": 0,
  45 + "liveCommentControl": 1,
  46 + "liveGiftControl": 1,
  47 + "liveLikeControl": 1,
  48 + "liveShareControl": 1,
  49 + "posterShareControl": 1,
  50 + "province": "110000",
  51 + "publishNum": 0,
  52 + "region": "",
  53 + "shareControl": 1,
  54 + "shareNum": 0,
  55 + "shopOpen": 0,
  56 + "storeUrl": "",
  57 + "subjectType": 0,
  58 + "userId": "",
  59 + "userName": "QACrawler2115",
  60 + "userType": "2",
  61 + "waresSwitch": 1
  62 + },
  63 + {
  64 + "attentionNum": 0,
  65 + "authIcon": "",
  66 + "authId": 0,
  67 + "authPersonal": "",
  68 + "authTitle": "",
  69 + "categoryAuth": "",
  70 + "city": "230100",
  71 + "cnAttentionNum": 0,
  72 + "cnCollectNum": 0,
  73 + "cnCommentNum": 0,
  74 + "cnFansNum": 4,
  75 + "cnIsAttention": 1,
  76 + "cnIsComment": 1,
  77 + "cnIsLike": 1,
  78 + "cnLikeNum": 0,
  79 + "cnLiveCommentControl": 1,
  80 + "cnLiveGiftControl": 1,
  81 + "cnLiveLikeControl": 1,
  82 + "cnLiveShareControl": 1,
  83 + "cnMainControl": 1,
  84 + "cnRegistTime": 1695276994000,
  85 + "cnShareControl": 1,
  86 + "cnShareNum": 0,
  87 + "cnUserId": "444911718724933",
  88 + "cnUserName": "一休哥",
  89 + "cnUserType": "2",
  90 + "collectNum": 0,
  91 + "creatorId": "3004861",
  92 + "district": "230102",
  93 + "fansNum": 0,
  94 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th141630857/Ptx.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  95 + "honoraryIcon": "",
  96 + "honoraryTitle": "",
  97 + "introduction": "中文端号主",
  98 + "isAttention": 1,
  99 + "isComment": 1,
  100 + "isLike": 1,
  101 + "isVisiable": 1,
  102 + "likeNum": 0,
  103 + "liveCommentControl": 1,
  104 + "liveGiftControl": 1,
  105 + "liveLikeControl": 1,
  106 + "liveShareControl": 1,
  107 + "posterShareControl": 1,
  108 + "province": "230000",
  109 + "publishNum": 0,
  110 + "region": "安徽",
  111 + "shareControl": 1,
  112 + "shareNum": 0,
  113 + "shopOpen": 0,
  114 + "storeUrl": "",
  115 + "subjectType": 2,
  116 + "userId": "",
  117 + "userName": "一休哥",
  118 + "userType": "2",
  119 + "waresSwitch": 1
  120 + },
  121 + {
  122 + "attentionNum": 0,
  123 + "authIcon": "",
  124 + "authId": 0,
  125 + "authPersonal": "",
  126 + "authTitle": "",
  127 + "categoryAuth": "",
  128 + "city": "110100",
  129 + "cnAttentionNum": 0,
  130 + "cnCollectNum": 0,
  131 + "cnCommentNum": 12,
  132 + "cnFansNum": 8,
  133 + "cnIsAttention": 1,
  134 + "cnIsComment": 1,
  135 + "cnIsLike": 1,
  136 + "cnLikeNum": 2,
  137 + "cnLiveCommentControl": 1,
  138 + "cnLiveGiftControl": 1,
  139 + "cnLiveLikeControl": 1,
  140 + "cnLiveShareControl": 1,
  141 + "cnMainControl": 1,
  142 + "cnRegistTime": 1695275999000,
  143 + "cnShareControl": 1,
  144 + "cnShareNum": 1,
  145 + "cnUserId": "444903323309381",
  146 + "cnUserName": "0921媒体",
  147 + "cnUserType": "3",
  148 + "collectNum": 0,
  149 + "creatorId": "3004860",
  150 + "district": "110101",
  151 + "fansNum": 0,
  152 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th135954709/qdL.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  153 + "honoraryIcon": "",
  154 + "honoraryTitle": "",
  155 + "introduction": "0921媒体",
  156 + "isAttention": 1,
  157 + "isComment": 1,
  158 + "isLike": 1,
  159 + "isVisiable": 1,
  160 + "likeNum": 0,
  161 + "liveCommentControl": 1,
  162 + "liveGiftControl": 1,
  163 + "liveLikeControl": 1,
  164 + "liveShareControl": 1,
  165 + "posterShareControl": 0,
  166 + "province": "110000",
  167 + "publishNum": 0,
  168 + "region": "上海",
  169 + "shareControl": 1,
  170 + "shareNum": 0,
  171 + "shopOpen": 0,
  172 + "storeUrl": "",
  173 + "subjectType": 1,
  174 + "userId": "",
  175 + "userName": "0921媒体",
  176 + "userType": "3",
  177 + "waresSwitch": 1
  178 + },
  179 + {
  180 + "attentionNum": 0,
  181 + "authIcon": "",
  182 + "authId": 0,
  183 + "authPersonal": "",
  184 + "authTitle": "",
  185 + "categoryAuth": "",
  186 + "city": "110100",
  187 + "cnAttentionNum": 0,
  188 + "cnCollectNum": 0,
  189 + "cnCommentNum": 0,
  190 + "cnFansNum": 9,
  191 + "cnIsAttention": 1,
  192 + "cnIsComment": 1,
  193 + "cnIsLike": 1,
  194 + "cnLikeNum": 6,
  195 + "cnLiveCommentControl": 1,
  196 + "cnLiveGiftControl": 1,
  197 + "cnLiveLikeControl": 1,
  198 + "cnLiveShareControl": 1,
  199 + "cnMainControl": 1,
  200 + "cnRegistTime": 1695201858000,
  201 + "cnShareControl": 1,
  202 + "cnShareNum": 0,
  203 + "cnUserId": "444296355502149",
  204 + "cnUserName": "0920个人",
  205 + "cnUserType": "2",
  206 + "collectNum": 0,
  207 + "creatorId": "3004851",
  208 + "district": "110101",
  209 + "fansNum": 0,
  210 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309We172415100/h2j.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  211 + "honoraryIcon": "https://cdn.aikan.pdnews.cn/image/picture/202312/20231223173451966FdV.png",
  212 + "honoraryTitle": "快乐星球",
  213 + "introduction": "账号简介",
  214 + "isAttention": 1,
  215 + "isComment": 1,
  216 + "isLike": 1,
  217 + "isVisiable": 1,
  218 + "likeNum": 0,
  219 + "liveCommentControl": 1,
  220 + "liveGiftControl": 1,
  221 + "liveLikeControl": 1,
  222 + "liveShareControl": 1,
  223 + "posterShareControl": 1,
  224 + "province": "110000",
  225 + "publishNum": 0,
  226 + "region": "上海",
  227 + "shareControl": 1,
  228 + "shareNum": 0,
  229 + "shopOpen": 0,
  230 + "storeUrl": "",
  231 + "subjectType": 0,
  232 + "userId": "",
  233 + "userName": "0920个人",
  234 + "userType": "2",
  235 + "waresSwitch": 1
  236 + },
  237 + {
  238 + "attentionNum": 0,
  239 + "authIcon": "",
  240 + "authId": 0,
  241 + "authPersonal": "",
  242 + "authTitle": "",
  243 + "categoryAuth": "",
  244 + "city": "120100",
  245 + "cnAttentionNum": 0,
  246 + "cnCollectNum": 0,
  247 + "cnCommentNum": 0,
  248 + "cnFansNum": 10,
  249 + "cnIsAttention": 1,
  250 + "cnIsComment": 1,
  251 + "cnIsLike": 1,
  252 + "cnLikeNum": 0,
  253 + "cnLiveCommentControl": 1,
  254 + "cnLiveGiftControl": 1,
  255 + "cnLiveLikeControl": 1,
  256 + "cnLiveShareControl": 1,
  257 + "cnMainControl": 1,
  258 + "cnRegistTime": 1695190066000,
  259 + "cnShareControl": 1,
  260 + "cnShareNum": 0,
  261 + "cnUserId": "444200272593477",
  262 + "cnUserName": "zhuaqu005",
  263 + "cnUserType": "2",
  264 + "collectNum": 0,
  265 + "creatorId": "3004849",
  266 + "district": "120101",
  267 + "fansNum": 0,
  268 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309We140931534/CIX.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  269 + "honoraryIcon": "",
  270 + "honoraryTitle": "",
  271 + "introduction": "aaa",
  272 + "isAttention": 1,
  273 + "isComment": 1,
  274 + "isLike": 1,
  275 + "isVisiable": 1,
  276 + "likeNum": 0,
  277 + "liveCommentControl": 1,
  278 + "liveGiftControl": 1,
  279 + "liveLikeControl": 1,
  280 + "liveShareControl": 1,
  281 + "posterShareControl": 1,
  282 + "province": "120000",
  283 + "publishNum": 0,
  284 + "region": "上海",
  285 + "shareControl": 1,
  286 + "shareNum": 0,
  287 + "shopOpen": 0,
  288 + "storeUrl": "",
  289 + "subjectType": 0,
  290 + "userId": "",
  291 + "userName": "zhuaqu005",
  292 + "userType": "2",
  293 + "waresSwitch": 1
  294 + },
  295 + {
  296 + "attentionNum": 0,
  297 + "authIcon": "https://sitcontentjdcdn.aikan.pdnews.cn/creator-category/icon/auth/yellow.png",
  298 + "authId": 2,
  299 + "authPersonal": "",
  300 + "authTitle": "黄VV",
  301 + "categoryAuth": "黄VV",
  302 + "city": "120100",
  303 + "cnAttentionNum": 1,
  304 + "cnCollectNum": 1,
  305 + "cnCommentNum": 7,
  306 + "cnFansNum": 13,
  307 + "cnIsAttention": 1,
  308 + "cnIsComment": 1,
  309 + "cnIsLike": 1,
  310 + "cnLikeNum": 0,
  311 + "cnLiveCommentControl": 1,
  312 + "cnLiveGiftControl": 1,
  313 + "cnLiveLikeControl": 1,
  314 + "cnLiveShareControl": 1,
  315 + "cnMainControl": 1,
  316 + "cnRegistTime": 1695202406000,
  317 + "cnShareControl": 1,
  318 + "cnShareNum": 0,
  319 + "cnUserId": "444300764043333",
  320 + "cnUserName": "创作者账号7777",
  321 + "cnUserType": "2",
  322 + "collectNum": 0,
  323 + "creatorId": "3004853",
  324 + "district": "120101",
  325 + "fansNum": 0,
  326 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/image/creator/2023092715/4727ab5db7604dbbac9ffb94ed03614e.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  327 + "honoraryIcon": "",
  328 + "honoraryTitle": "",
  329 + "introduction": "协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作",
  330 + "isAttention": 1,
  331 + "isComment": 1,
  332 + "isLike": 1,
  333 + "isVisiable": 1,
  334 + "likeNum": 0,
  335 + "liveCommentControl": 1,
  336 + "liveGiftControl": 1,
  337 + "liveLikeControl": 1,
  338 + "liveShareControl": 1,
  339 + "posterShareControl": 0,
  340 + "province": "120000",
  341 + "publishNum": 0,
  342 + "region": "安徽",
  343 + "shareControl": 1,
  344 + "shareNum": 0,
  345 + "shopOpen": 1,
  346 + "storeUrl": "",
  347 + "subjectType": 0,
  348 + "userId": "",
  349 + "userName": "创作者账号7777",
  350 + "userType": "2",
  351 + "waresSwitch": 0
  352 + },
  353 + {
  354 + "attentionNum": 0,
  355 + "authIcon": "https://sitcontentjdcdn.aikan.pdnews.cn/creator-category/icon/auth/blue.png",
  356 + "authId": 1,
  357 + "authPersonal": "",
  358 + "authTitle": "黄袍加身V",
  359 + "categoryAuth": "黄袍加身V",
  360 + "city": "340100",
  361 + "cnAttentionNum": 9,
  362 + "cnCollectNum": 0,
  363 + "cnCommentNum": 3,
  364 + "cnFansNum": 9,
  365 + "cnIsAttention": 1,
  366 + "cnIsComment": 1,
  367 + "cnIsLike": 1,
  368 + "cnLikeNum": 7,
  369 + "cnLiveCommentControl": 1,
  370 + "cnLiveGiftControl": 1,
  371 + "cnLiveLikeControl": 1,
  372 + "cnLiveShareControl": 1,
  373 + "cnMainControl": 1,
  374 + "cnRegistTime": 1695260417000,
  375 + "cnShareControl": 1,
  376 + "cnShareNum": 0,
  377 + "cnUserId": "444776025830725",
  378 + "cnUserName": "李智恩3",
  379 + "cnUserType": "2",
  380 + "collectNum": 0,
  381 + "creatorId": "3004855",
  382 + "district": "340102",
  383 + "fansNum": 0,
  384 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th094010643/N5o.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  385 + "honoraryIcon": "",
  386 + "honoraryTitle": "",
  387 + "introduction": "IU",
  388 + "isAttention": 1,
  389 + "isComment": 1,
  390 + "isLike": 1,
  391 + "isVisiable": 1,
  392 + "likeNum": 0,
  393 + "liveCommentControl": 1,
  394 + "liveGiftControl": 1,
  395 + "liveLikeControl": 1,
  396 + "liveShareControl": 1,
  397 + "posterShareControl": 0,
  398 + "province": "340000",
  399 + "publishNum": 0,
  400 + "region": "安徽",
  401 + "shareControl": 1,
  402 + "shareNum": 0,
  403 + "shopOpen": 1,
  404 + "storeUrl": "",
  405 + "subjectType": 1,
  406 + "userId": "",
  407 + "userName": "李智恩3",
  408 + "userType": "2",
  409 + "waresSwitch": 0
  410 + }
  411 + ],
404 "pageNum": 1, 412 "pageNum": 1,
405 "pageSize": 20, 413 "pageSize": 20,
406 "totalCount": 7 414 "totalCount": 7
407 }, 415 },
408 "message": "Success", 416 "message": "Success",
409 "success": true, 417 "success": true,
410 - "timestamp": 1710742034894 418 + "timestamp": 1710989443354
411 } 419 }
  1 +{
  2 + "code": "0",
  3 + "data": [
  4 + {
  5 + "creatorId": "3004862",
  6 + "status": "0",
  7 + "userId": "567387477063621"
  8 + },
  9 + {
  10 + "creatorId": "3004861",
  11 + "status": "0",
  12 + "userId": "567387477063621"
  13 + },
  14 + {
  15 + "creatorId": "3004860",
  16 + "status": "0",
  17 + "userId": "567387477063621"
  18 + },
  19 + {
  20 + "creatorId": "3004851",
  21 + "status": "1",
  22 + "userId": "567387477063621"
  23 + },
  24 + {
  25 + "creatorId": "3004849",
  26 + "status": "1",
  27 + "userId": "567387477063621"
  28 + },
  29 + {
  30 + "creatorId": "3004853",
  31 + "status": "1",
  32 + "userId": "567387477063621"
  33 + },
  34 + {
  35 + "creatorId": "3004855",
  36 + "status": "0",
  37 + "userId": "567387477063621"
  38 + }
  39 + ],
  40 + "message": "Success",
  41 + "meta": null,
  42 + "requestId": "",
  43 + "success": true,
  44 + "timestamp": 1710989443648
  45 +}
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "hasNext": 0,
  5 + "list": [
  6 + {
  7 + "avatarFrame": "",
  8 + "checkStatus": 0,
  9 + "commentContent": "车得修,歌也得唱不唱心里那口气儿就没了你哥我以前心里也有这股劲儿那时候我想的是什么想的是每天什么时候开始现在心里这股劲儿泄了我想的是每天什么时候结束心里有这股劲儿的时候你哥也摇滚过现在这股劲儿没了我天天想的都是这个是这个但你不能这样只要咱们继续唱大吉他就还在不唱就真的没了——《缝纫机乐队》",
  10 + "commentContentSensitive": "",
  11 + "commentLevel": 1,
  12 + "commentPics": "",
  13 + "commentSensitive": "",
  14 + "commentType": "2",
  15 + "createTime": "2024-03-21 13:37:13",
  16 + "fromCreatorId": "",
  17 + "fromDeviceId": "",
  18 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  19 + "fromUserId": "567387477063621",
  20 + "fromUserName": "人民日报网友aPrtq5",
  21 + "fromUserType": 1,
  22 + "h5Url": "",
  23 + "id": 303323,
  24 + "keyArticle": 0,
  25 + "likeNum": 0,
  26 + "parentCommentVo": null,
  27 + "parentId": -1,
  28 + "rootCommentId": 303323,
  29 + "sensitiveExist": 0,
  30 + "sensitiveShow": 1,
  31 + "shareInfo": {
  32 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231012/image/content/7f1a342a809d4276aa975ba9e7fe2313.png",
  33 + "shareSummary": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是",
  34 + "shareTitle": "这是一个开始、请持续关注这是一个开始、请",
  35 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000633703-500000008559"
  36 + },
  37 + "targetId": "30000633703",
  38 + "targetRelId": "500000008559",
  39 + "targetRelObjectId": "2002",
  40 + "targetRelType": 1,
  41 + "targetStatus": 0,
  42 + "targetTitle": "这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注这是一个开始、请持续关注",
  43 + "targetType": 8,
  44 + "topicType": null,
  45 + "uuid": "a1944aa3-e598-44ea-b2c5-45a4fe0ba91f"
  46 + },
  47 + {
  48 + "avatarFrame": "",
  49 + "checkStatus": 0,
  50 + "commentContent": "我们都很好",
  51 + "commentContentSensitive": "",
  52 + "commentLevel": 1,
  53 + "commentPics": "",
  54 + "commentSensitive": "",
  55 + "commentType": "2",
  56 + "createTime": "2024-03-14 17:56:14",
  57 + "fromCreatorId": "",
  58 + "fromDeviceId": "",
  59 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  60 + "fromUserId": "567387477063621",
  61 + "fromUserName": "人民日报网友aPrtq5",
  62 + "fromUserType": 1,
  63 + "h5Url": "",
  64 + "id": 403449,
  65 + "keyArticle": 0,
  66 + "likeNum": 0,
  67 + "parentCommentVo": null,
  68 + "parentId": -1,
  69 + "rootCommentId": 403449,
  70 + "sensitiveExist": 0,
  71 + "sensitiveShow": 1,
  72 + "shareInfo": {
  73 + "shareCoverUrl": "",
  74 + "shareSummary": "人民日报,有品质的新闻",
  75 + "shareTitle": "丝路之美",
  76 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000654108-500000017213"
  77 + },
  78 + "targetId": "30000654108",
  79 + "targetRelId": "500000017213",
  80 + "targetRelObjectId": "2002",
  81 + "targetRelType": 1,
  82 + "targetStatus": 0,
  83 + "targetTitle": "丝路之美",
  84 + "targetType": 8,
  85 + "topicType": null,
  86 + "uuid": "1706ec91-8fb3-4704-bde3-fb454386e419"
  87 + },
  88 + {
  89 + "avatarFrame": "",
  90 + "checkStatus": 0,
  91 + "commentContent": "大家好",
  92 + "commentContentSensitive": "",
  93 + "commentLevel": 1,
  94 + "commentPics": "",
  95 + "commentSensitive": "",
  96 + "commentType": "2",
  97 + "createTime": "2024-03-14 17:56:04",
  98 + "fromCreatorId": "",
  99 + "fromDeviceId": "",
  100 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  101 + "fromUserId": "567387477063621",
  102 + "fromUserName": "人民日报网友aPrtq5",
  103 + "fromUserType": 1,
  104 + "h5Url": "",
  105 + "id": 403448,
  106 + "keyArticle": 0,
  107 + "likeNum": 0,
  108 + "parentCommentVo": null,
  109 + "parentId": -1,
  110 + "rootCommentId": 403448,
  111 + "sensitiveExist": 0,
  112 + "sensitiveShow": 1,
  113 + "shareInfo": {
  114 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231012/image/content/b7170ff0d0954b389e7e9f8c3c1d777a.png",
  115 + "shareSummary": "人民日报,有品质的新闻",
  116 + "shareTitle": "展示发",
  117 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000633589-500000008382"
  118 + },
  119 + "targetId": "30000633589",
  120 + "targetRelId": "500000008382",
  121 + "targetRelObjectId": "2002",
  122 + "targetRelType": 1,
  123 + "targetStatus": 0,
  124 + "targetTitle": "展示发",
  125 + "targetType": 13,
  126 + "topicType": null,
  127 + "uuid": "17c5a8d9-622c-4b7a-bcd2-afc792fb8fb7"
  128 + },
  129 + {
  130 + "avatarFrame": "",
  131 + "checkStatus": 0,
  132 + "commentContent": "你好",
  133 + "commentContentSensitive": "",
  134 + "commentLevel": 1,
  135 + "commentPics": "",
  136 + "commentSensitive": "",
  137 + "commentType": "2",
  138 + "createTime": "2024-03-14 17:55:55",
  139 + "fromCreatorId": "",
  140 + "fromDeviceId": "",
  141 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  142 + "fromUserId": "567387477063621",
  143 + "fromUserName": "人民日报网友aPrtq5",
  144 + "fromUserType": 1,
  145 + "h5Url": "",
  146 + "id": 403447,
  147 + "keyArticle": 0,
  148 + "likeNum": 0,
  149 + "parentCommentVo": null,
  150 + "parentId": -1,
  151 + "rootCommentId": 403447,
  152 + "sensitiveExist": 0,
  153 + "sensitiveShow": 1,
  154 + "shareInfo": {
  155 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231103/image/content/046db0ef912f43dda639009e2b78a774.png",
  156 + "shareSummary": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然-导读",
  157 + "shareTitle": "复测-坐船观鸟,骑行散步,通州125处湿",
  158 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000637972-500000010900"
  159 + },
  160 + "targetId": "30000637972",
  161 + "targetRelId": "500000010900",
  162 + "targetRelObjectId": "2002",
  163 + "targetRelType": 1,
  164 + "targetStatus": 0,
  165 + "targetTitle": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然",
  166 + "targetType": 8,
  167 + "topicType": null,
  168 + "uuid": "f809d73f-a66c-4dd6-a4cf-99e3a9c9621e"
  169 + },
  170 + {
  171 + "avatarFrame": "",
  172 + "checkStatus": 0,
  173 + "commentContent": "你好",
  174 + "commentContentSensitive": "",
  175 + "commentLevel": 1,
  176 + "commentPics": "",
  177 + "commentSensitive": "",
  178 + "commentType": "2",
  179 + "createTime": "2024-03-14 17:55:55",
  180 + "fromCreatorId": "",
  181 + "fromDeviceId": "",
  182 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  183 + "fromUserId": "567387477063621",
  184 + "fromUserName": "人民日报网友aPrtq5",
  185 + "fromUserType": 1,
  186 + "h5Url": "",
  187 + "id": 403447,
  188 + "keyArticle": 0,
  189 + "likeNum": 0,
  190 + "parentCommentVo": null,
  191 + "parentId": -1,
  192 + "rootCommentId": 403447,
  193 + "sensitiveExist": 0,
  194 + "sensitiveShow": 1,
  195 + "shareInfo": {
  196 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231103/image/content/046db0ef912f43dda639009e2b78a774.png",
  197 + "shareSummary": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然-导读",
  198 + "shareTitle": "复测-坐船观鸟,骑行散步,通州125处湿",
  199 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000637972-500000010900"
  200 + },
  201 + "targetId": "30000637972",
  202 + "targetRelId": "500000010900",
  203 + "targetRelObjectId": "2002",
  204 + "targetRelType": 1,
  205 + "targetStatus": 0,
  206 + "targetTitle": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然",
  207 + "targetType": 8,
  208 + "topicType": null,
  209 + "uuid": "f809d73f-a66c-4dd6-a4cf-99e3a9c9621e"
  210 + },
  211 + {
  212 + "avatarFrame": "",
  213 + "checkStatus": 0,
  214 + "commentContent": "你好",
  215 + "commentContentSensitive": "",
  216 + "commentLevel": 1,
  217 + "commentPics": "",
  218 + "commentSensitive": "",
  219 + "commentType": "2",
  220 + "createTime": "2024-03-14 17:55:55",
  221 + "fromCreatorId": "",
  222 + "fromDeviceId": "",
  223 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  224 + "fromUserId": "567387477063621",
  225 + "fromUserName": "人民日报网友aPrtq5",
  226 + "fromUserType": 1,
  227 + "h5Url": "",
  228 + "id": 403447,
  229 + "keyArticle": 0,
  230 + "likeNum": 0,
  231 + "parentCommentVo": null,
  232 + "parentId": -1,
  233 + "rootCommentId": 403447,
  234 + "sensitiveExist": 0,
  235 + "sensitiveShow": 1,
  236 + "shareInfo": {
  237 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231103/image/content/046db0ef912f43dda639009e2b78a774.png",
  238 + "shareSummary": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然-导读",
  239 + "shareTitle": "复测-坐船观鸟,骑行散步,通州125处湿",
  240 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000637972-500000010900"
  241 + },
  242 + "targetId": "30000637972",
  243 + "targetRelId": "500000010900",
  244 + "targetRelObjectId": "2002",
  245 + "targetRelType": 1,
  246 + "targetStatus": 0,
  247 + "targetTitle": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然",
  248 + "targetType": 8,
  249 + "topicType": null,
  250 + "uuid": "f809d73f-a66c-4dd6-a4cf-99e3a9c9621e"
  251 + },
  252 + {
  253 + "avatarFrame": "",
  254 + "checkStatus": 0,
  255 + "commentContent": "你好",
  256 + "commentContentSensitive": "",
  257 + "commentLevel": 1,
  258 + "commentPics": "",
  259 + "commentSensitive": "",
  260 + "commentType": "2",
  261 + "createTime": "2024-03-14 17:55:55",
  262 + "fromCreatorId": "",
  263 + "fromDeviceId": "",
  264 + "fromUserHeader": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png?x-oss-process=image/resize,l_100/auto-orient,1/quality,q_90/format,jpg",
  265 + "fromUserId": "567387477063621",
  266 + "fromUserName": "人民日报网友aPrtq5",
  267 + "fromUserType": 1,
  268 + "h5Url": "",
  269 + "id": 403447,
  270 + "keyArticle": 0,
  271 + "likeNum": 0,
  272 + "parentCommentVo": null,
  273 + "parentId": -1,
  274 + "rootCommentId": 403447,
  275 + "sensitiveExist": 0,
  276 + "sensitiveShow": 1,
  277 + "shareInfo": {
  278 + "shareCoverUrl": "http://sitcontentjdcdn.aikan.pdnews.cn/zhbj-20231103/image/content/046db0ef912f43dda639009e2b78a774.png",
  279 + "shareSummary": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然-导读",
  280 + "shareTitle": "复测-坐船观鸟,骑行散步,通州125处湿",
  281 + "shareUrl": "https://pd-people-sit.pdnews.cn/column/30000637972-500000010900"
  282 + },
  283 + "targetId": "30000637972",
  284 + "targetRelId": "500000010900",
  285 + "targetRelObjectId": "2002",
  286 + "targetRelType": 1,
  287 + "targetStatus": 0,
  288 + "targetTitle": "复测-坐船观鸟,骑行散步,通州125处湿地邀您亲近自然",
  289 + "targetType": 8,
  290 + "topicType": null,
  291 + "uuid": "f809d73f-a66c-4dd6-a4cf-99e3a9c9621e"
  292 + }
  293 + ],
  294 + "pageNum": 1,
  295 + "pageSize": 20,
  296 + "totalCommentNum": 4,
  297 + "totalCount": 4
  298 + },
  299 + "message": "Success",
  300 + "meta": null,
  301 + "requestId": "",
  302 + "success": true,
  303 + "timestamp": 1711092987342
  304 +}
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "hasNext": 0,
  5 + "list": [
  6 + {
  7 + "attentionCreatorId": "3214877",
  8 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/ueditor/image/20231227/a_924511395855200256.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  9 + "attentionNum": 0,
  10 + "attentionUserId": "508051203257158",
  11 + "attentionUserName": "北京交通运输职业学院",
  12 + "attentionUserType": 2,
  13 + "authIcon": "",
  14 + "authId": 0,
  15 + "authPersional": "",
  16 + "authTitle": "",
  17 + "banControl": 0,
  18 + "categoryAuth": "",
  19 + "cnLiveCommentControl": 1,
  20 + "cnLiveGiftControl": 1,
  21 + "cnLiveLikeControl": 1,
  22 + "cnLiveShareControl": 1,
  23 + "cnShareControl": 1,
  24 + "collectNum": 0,
  25 + "commentNum": 0,
  26 + "createTime": 1710742365000,
  27 + "fansNum": 1,
  28 + "honoraryIcon": "",
  29 + "honoraryTitle": "",
  30 + "id": 100704,
  31 + "introduction": "北京交通运输职业学院",
  32 + "isAttention": null,
  33 + "isComment": 1,
  34 + "isLike": 1,
  35 + "isVisiable": 1,
  36 + "likeNum": 0,
  37 + "liveCommentControl": 1,
  38 + "liveGiftControl": 1,
  39 + "liveLikeControl": 1,
  40 + "liveShareControl": 1,
  41 + "mainControl": 1,
  42 + "posterShareControl": 1,
  43 + "registTime": 1599214346000,
  44 + "shareControl": 1,
  45 + "shareNum": 0,
  46 + "status": 1,
  47 + "subjectType": null,
  48 + "updateTime": 1710742365000,
  49 + "userId": "567387477063621",
  50 + "userType": 1
  51 + },
  52 + {
  53 + "attentionCreatorId": "3092827",
  54 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/user_app/201907/rmrb_Mw5PyAQe1563349003.jpg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  55 + "attentionNum": 0,
  56 + "attentionUserId": "507982569927494",
  57 + "attentionUserName": "3G楼市周刊合肥站",
  58 + "attentionUserType": 5,
  59 + "authIcon": "",
  60 + "authId": 0,
  61 + "authPersional": "",
  62 + "authTitle": "",
  63 + "banControl": 0,
  64 + "categoryAuth": "",
  65 + "cnLiveCommentControl": 1,
  66 + "cnLiveGiftControl": 1,
  67 + "cnLiveLikeControl": 1,
  68 + "cnLiveShareControl": 1,
  69 + "cnShareControl": 1,
  70 + "collectNum": 0,
  71 + "commentNum": 0,
  72 + "createTime": 1710410008000,
  73 + "fansNum": 1,
  74 + "honoraryIcon": "",
  75 + "honoraryTitle": "",
  76 + "id": 200711,
  77 + "introduction": "3G楼市周刊合肥站官方",
  78 + "isAttention": null,
  79 + "isComment": 1,
  80 + "isLike": 1,
  81 + "isVisiable": 1,
  82 + "likeNum": 0,
  83 + "liveCommentControl": 1,
  84 + "liveGiftControl": 1,
  85 + "liveLikeControl": 1,
  86 + "liveShareControl": 1,
  87 + "mainControl": 0,
  88 + "posterShareControl": 1,
  89 + "registTime": 1559098504000,
  90 + "shareControl": 1,
  91 + "shareNum": 0,
  92 + "status": 1,
  93 + "subjectType": null,
  94 + "updateTime": 1710410008000,
  95 + "userId": "567387477063621",
  96 + "userType": 1
  97 + },
  98 + {
  99 + "attentionCreatorId": "3022148",
  100 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/zw/bjh_image/1550310502_bb68cf1fc0ba566b3bdd77bb8648d7a8.jpeg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  101 + "attentionNum": 0,
  102 + "attentionUserId": "504980189045893",
  103 + "attentionUserName": "庐州房产网",
  104 + "attentionUserType": 2,
  105 + "authIcon": "",
  106 + "authId": 0,
  107 + "authPersional": "",
  108 + "authTitle": "",
  109 + "banControl": 0,
  110 + "categoryAuth": "",
  111 + "cnLiveCommentControl": 1,
  112 + "cnLiveGiftControl": 1,
  113 + "cnLiveLikeControl": 1,
  114 + "cnLiveShareControl": 1,
  115 + "cnShareControl": 1,
  116 + "collectNum": 0,
  117 + "commentNum": 0,
  118 + "createTime": 1710410008000,
  119 + "fansNum": 1,
  120 + "honoraryIcon": "",
  121 + "honoraryTitle": "",
  122 + "id": 200709,
  123 + "introduction": "专注古城庐州楼市资讯",
  124 + "isAttention": null,
  125 + "isComment": 1,
  126 + "isLike": 1,
  127 + "isVisiable": 1,
  128 + "likeNum": 0,
  129 + "liveCommentControl": 1,
  130 + "liveGiftControl": 1,
  131 + "liveLikeControl": 1,
  132 + "liveShareControl": 1,
  133 + "mainControl": 1,
  134 + "posterShareControl": 1,
  135 + "registTime": 1550310442000,
  136 + "shareControl": 1,
  137 + "shareNum": 0,
  138 + "status": 1,
  139 + "subjectType": null,
  140 + "updateTime": 1710410008000,
  141 + "userId": "567387477063621",
  142 + "userType": 1
  143 + },
  144 + {
  145 + "attentionCreatorId": "3214944",
  146 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/article_resource/image/1562575034_a1790012453b8d5e937e.jpeg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  147 + "attentionNum": 0,
  148 + "attentionUserId": "508051247641414",
  149 + "attentionUserName": "民警李建国",
  150 + "attentionUserType": 5,
  151 + "authIcon": "",
  152 + "authId": 0,
  153 + "authPersional": "",
  154 + "authTitle": "",
  155 + "banControl": 0,
  156 + "categoryAuth": "",
  157 + "cnLiveCommentControl": 1,
  158 + "cnLiveGiftControl": 1,
  159 + "cnLiveLikeControl": 1,
  160 + "cnLiveShareControl": 1,
  161 + "cnShareControl": 1,
  162 + "collectNum": 0,
  163 + "commentNum": 0,
  164 + "createTime": 1710410006000,
  165 + "fansNum": 1,
  166 + "honoraryIcon": "",
  167 + "honoraryTitle": "",
  168 + "id": 200708,
  169 + "introduction": "常州市公安局新北分局民警",
  170 + "isAttention": null,
  171 + "isComment": 1,
  172 + "isLike": 1,
  173 + "isVisiable": 1,
  174 + "likeNum": 0,
  175 + "liveCommentControl": 1,
  176 + "liveGiftControl": 1,
  177 + "liveLikeControl": 1,
  178 + "liveShareControl": 1,
  179 + "mainControl": 0,
  180 + "posterShareControl": 1,
  181 + "registTime": 1560152360000,
  182 + "shareControl": 1,
  183 + "shareNum": 0,
  184 + "status": 1,
  185 + "subjectType": null,
  186 + "updateTime": 1710410006000,
  187 + "userId": "567387477063621",
  188 + "userType": 1
  189 + },
  190 + {
  191 + "attentionCreatorId": "3215205",
  192 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/zw/bjh_image/1561779596_b5cdde910817d66e7561cf35cdb3b896.jpeg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  193 + "attentionNum": 0,
  194 + "attentionUserId": "504980472120453",
  195 + "attentionUserName": "日语酱",
  196 + "attentionUserType": 2,
  197 + "authIcon": "",
  198 + "authId": 0,
  199 + "authPersional": "",
  200 + "authTitle": "",
  201 + "banControl": 0,
  202 + "categoryAuth": "",
  203 + "cnLiveCommentControl": 1,
  204 + "cnLiveGiftControl": 1,
  205 + "cnLiveLikeControl": 1,
  206 + "cnLiveShareControl": 1,
  207 + "cnShareControl": 1,
  208 + "collectNum": 0,
  209 + "commentNum": 0,
  210 + "createTime": 1710410006000,
  211 + "fansNum": 1,
  212 + "honoraryIcon": "",
  213 + "honoraryTitle": "",
  214 + "id": 200707,
  215 + "introduction": "付出不亚于任何人的努力",
  216 + "isAttention": null,
  217 + "isComment": 1,
  218 + "isLike": 1,
  219 + "isVisiable": 1,
  220 + "likeNum": 0,
  221 + "liveCommentControl": 1,
  222 + "liveGiftControl": 1,
  223 + "liveLikeControl": 1,
  224 + "liveShareControl": 1,
  225 + "mainControl": 1,
  226 + "posterShareControl": 1,
  227 + "registTime": 1560474105000,
  228 + "shareControl": 1,
  229 + "shareNum": 0,
  230 + "status": 1,
  231 + "subjectType": null,
  232 + "updateTime": 1710410006000,
  233 + "userId": "567387477063621",
  234 + "userType": 1
  235 + },
  236 + {
  237 + "attentionCreatorId": "3258463",
  238 + "attentionHeadPhotoUrl": "",
  239 + "attentionNum": 0,
  240 + "attentionUserId": "508670671396102",
  241 + "attentionUserName": "西北大学4e82",
  242 + "attentionUserType": 5,
  243 + "authIcon": "",
  244 + "authId": 0,
  245 + "authPersional": "",
  246 + "authTitle": "",
  247 + "banControl": 0,
  248 + "categoryAuth": "",
  249 + "cnLiveCommentControl": 1,
  250 + "cnLiveGiftControl": 1,
  251 + "cnLiveLikeControl": 1,
  252 + "cnLiveShareControl": 1,
  253 + "cnShareControl": 1,
  254 + "collectNum": 0,
  255 + "commentNum": 0,
  256 + "createTime": 1710409996000,
  257 + "fansNum": 1,
  258 + "honoraryIcon": "",
  259 + "honoraryTitle": "",
  260 + "id": 200706,
  261 + "introduction": "西北大学",
  262 + "isAttention": null,
  263 + "isComment": 1,
  264 + "isLike": 1,
  265 + "isVisiable": 1,
  266 + "likeNum": 0,
  267 + "liveCommentControl": 1,
  268 + "liveGiftControl": 1,
  269 + "liveLikeControl": 1,
  270 + "liveShareControl": 1,
  271 + "mainControl": 0,
  272 + "posterShareControl": 1,
  273 + "registTime": 1555554106000,
  274 + "shareControl": 1,
  275 + "shareNum": 0,
  276 + "status": 1,
  277 + "subjectType": null,
  278 + "updateTime": 1710409996000,
  279 + "userId": "567387477063621",
  280 + "userType": 1
  281 + },
  282 + {
  283 + "attentionCreatorId": "3258486",
  284 + "attentionHeadPhotoUrl": "",
  285 + "attentionNum": 0,
  286 + "attentionUserId": "508670696660230",
  287 + "attentionUserName": "扬州大学93ba",
  288 + "attentionUserType": 5,
  289 + "authIcon": "",
  290 + "authId": 0,
  291 + "authPersional": "",
  292 + "authTitle": "",
  293 + "banControl": 0,
  294 + "categoryAuth": "",
  295 + "cnLiveCommentControl": 1,
  296 + "cnLiveGiftControl": 1,
  297 + "cnLiveLikeControl": 1,
  298 + "cnLiveShareControl": 1,
  299 + "cnShareControl": 1,
  300 + "collectNum": 0,
  301 + "commentNum": 0,
  302 + "createTime": 1710409996000,
  303 + "fansNum": 1,
  304 + "honoraryIcon": "",
  305 + "honoraryTitle": "",
  306 + "id": 200705,
  307 + "introduction": "扬州大学",
  308 + "isAttention": null,
  309 + "isComment": 1,
  310 + "isLike": 1,
  311 + "isVisiable": 1,
  312 + "likeNum": 0,
  313 + "liveCommentControl": 1,
  314 + "liveGiftControl": 1,
  315 + "liveLikeControl": 1,
  316 + "liveShareControl": 1,
  317 + "mainControl": 0,
  318 + "posterShareControl": 1,
  319 + "registTime": 1555659355000,
  320 + "shareControl": 1,
  321 + "shareNum": 0,
  322 + "status": 1,
  323 + "subjectType": null,
  324 + "updateTime": 1710409996000,
  325 + "userId": "567387477063621",
  326 + "userType": 1
  327 + },
  328 + {
  329 + "attentionCreatorId": "3258575",
  330 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/zw/bjh_image/1539067744_5149cb078d4ed272af470630be272023.jpeg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  331 + "attentionNum": 0,
  332 + "attentionUserId": "509369589284102",
  333 + "attentionUserName": "旅途",
  334 + "attentionUserType": 2,
  335 + "authIcon": "",
  336 + "authId": 0,
  337 + "authPersional": "",
  338 + "authTitle": "",
  339 + "banControl": 0,
  340 + "categoryAuth": "",
  341 + "cnLiveCommentControl": 1,
  342 + "cnLiveGiftControl": 1,
  343 + "cnLiveLikeControl": 1,
  344 + "cnLiveShareControl": 1,
  345 + "cnShareControl": 1,
  346 + "collectNum": 0,
  347 + "commentNum": 0,
  348 + "createTime": 1710409989000,
  349 + "fansNum": 1,
  350 + "honoraryIcon": "",
  351 + "honoraryTitle": "",
  352 + "id": 200704,
  353 + "introduction": "背包、骑车、旅行、一个人目睹沿途的风景~",
  354 + "isAttention": null,
  355 + "isComment": 1,
  356 + "isLike": 1,
  357 + "isVisiable": 1,
  358 + "likeNum": 0,
  359 + "liveCommentControl": 1,
  360 + "liveGiftControl": 1,
  361 + "liveLikeControl": 1,
  362 + "liveShareControl": 1,
  363 + "mainControl": 1,
  364 + "posterShareControl": 1,
  365 + "registTime": 1528884167000,
  366 + "shareControl": 1,
  367 + "shareNum": 0,
  368 + "status": 1,
  369 + "subjectType": null,
  370 + "updateTime": 1710409989000,
  371 + "userId": "567387477063621",
  372 + "userType": 1
  373 + },
  374 + {
  375 + "attentionCreatorId": "3258577",
  376 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/rmh/image/201905/201905160519269845.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  377 + "attentionNum": 0,
  378 + "attentionUserId": "509369595993350",
  379 + "attentionUserName": "陇海在线",
  380 + "attentionUserType": 2,
  381 + "authIcon": "",
  382 + "authId": 0,
  383 + "authPersional": "",
  384 + "authTitle": "",
  385 + "banControl": 0,
  386 + "categoryAuth": "",
  387 + "cnLiveCommentControl": 1,
  388 + "cnLiveGiftControl": 1,
  389 + "cnLiveLikeControl": 1,
  390 + "cnLiveShareControl": 1,
  391 + "cnShareControl": 1,
  392 + "collectNum": 0,
  393 + "commentNum": 0,
  394 + "createTime": 1710409989000,
  395 + "fansNum": 1,
  396 + "honoraryIcon": "",
  397 + "honoraryTitle": "",
  398 + "id": 200703,
  399 + "introduction": "在这里阅读陇海沿线城市暨淮海地区最新生活资讯!",
  400 + "isAttention": null,
  401 + "isComment": 1,
  402 + "isLike": 1,
  403 + "isVisiable": 1,
  404 + "likeNum": 0,
  405 + "liveCommentControl": 1,
  406 + "liveGiftControl": 1,
  407 + "liveLikeControl": 1,
  408 + "liveShareControl": 1,
  409 + "mainControl": 1,
  410 + "posterShareControl": 1,
  411 + "registTime": 1529015167000,
  412 + "shareControl": 1,
  413 + "shareNum": 0,
  414 + "status": 1,
  415 + "subjectType": null,
  416 + "updateTime": 1710409989000,
  417 + "userId": "567387477063621",
  418 + "userType": 1
  419 + },
  420 + {
  421 + "attentionCreatorId": "3258596",
  422 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/rmh/image/201911/201911271018567208.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  423 + "attentionNum": 0,
  424 + "attentionUserId": "509403474238726",
  425 + "attentionUserName": "建筑界",
  426 + "attentionUserType": 2,
  427 + "authIcon": "",
  428 + "authId": 0,
  429 + "authPersional": "",
  430 + "authTitle": "",
  431 + "banControl": 0,
  432 + "categoryAuth": "",
  433 + "cnLiveCommentControl": 1,
  434 + "cnLiveGiftControl": 1,
  435 + "cnLiveLikeControl": 1,
  436 + "cnLiveShareControl": 1,
  437 + "cnShareControl": 1,
  438 + "collectNum": 0,
  439 + "commentNum": 0,
  440 + "createTime": 1710409988000,
  441 + "fansNum": 1,
  442 + "honoraryIcon": "",
  443 + "honoraryTitle": "",
  444 + "id": 200702,
  445 + "introduction": "匠者仁心",
  446 + "isAttention": null,
  447 + "isComment": 1,
  448 + "isLike": 1,
  449 + "isVisiable": 1,
  450 + "likeNum": 0,
  451 + "liveCommentControl": 1,
  452 + "liveGiftControl": 1,
  453 + "liveLikeControl": 1,
  454 + "liveShareControl": 1,
  455 + "mainControl": 1,
  456 + "posterShareControl": 1,
  457 + "registTime": 1550712472000,
  458 + "shareControl": 1,
  459 + "shareNum": 0,
  460 + "status": 1,
  461 + "subjectType": null,
  462 + "updateTime": 1710409988000,
  463 + "userId": "567387477063621",
  464 + "userType": 1
  465 + },
  466 + {
  467 + "attentionCreatorId": "3258601",
  468 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/zw/bjh_image/1552718233_f0290f15dcbbb41d3af7ad9ed3099621.jpeg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  469 + "attentionNum": 0,
  470 + "attentionUserId": "509403475746054",
  471 + "attentionUserName": "芳芳喜欢的科技课堂",
  472 + "attentionUserType": 2,
  473 + "authIcon": "",
  474 + "authId": 0,
  475 + "authPersional": "",
  476 + "authTitle": "",
  477 + "banControl": 0,
  478 + "categoryAuth": "",
  479 + "cnLiveCommentControl": 1,
  480 + "cnLiveGiftControl": 1,
  481 + "cnLiveLikeControl": 1,
  482 + "cnLiveShareControl": 1,
  483 + "cnShareControl": 1,
  484 + "collectNum": 0,
  485 + "commentNum": 0,
  486 + "createTime": 1710409987000,
  487 + "fansNum": 1,
  488 + "honoraryIcon": "",
  489 + "honoraryTitle": "",
  490 + "id": 200701,
  491 + "introduction": "每天分享与科技有关的新鲜事儿",
  492 + "isAttention": null,
  493 + "isComment": 1,
  494 + "isLike": 1,
  495 + "isVisiable": 1,
  496 + "likeNum": 0,
  497 + "liveCommentControl": 1,
  498 + "liveGiftControl": 1,
  499 + "liveLikeControl": 1,
  500 + "liveShareControl": 1,
  501 + "mainControl": 1,
  502 + "posterShareControl": 1,
  503 + "registTime": 1552718173000,
  504 + "shareControl": 1,
  505 + "shareNum": 0,
  506 + "status": 1,
  507 + "subjectType": null,
  508 + "updateTime": 1710409987000,
  509 + "userId": "567387477063621",
  510 + "userType": 1
  511 + },
  512 + {
  513 + "attentionCreatorId": "3258611",
  514 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/zw/bjh_image/1551495924_33f73482b19cd64f0f3906b19043113a.jpeg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  515 + "attentionNum": 0,
  516 + "attentionUserId": "509403509734662",
  517 + "attentionUserName": "西平微传媒",
  518 + "attentionUserType": 2,
  519 + "authIcon": "",
  520 + "authId": 0,
  521 + "authPersional": "",
  522 + "authTitle": "",
  523 + "banControl": 0,
  524 + "categoryAuth": "",
  525 + "cnLiveCommentControl": 1,
  526 + "cnLiveGiftControl": 1,
  527 + "cnLiveLikeControl": 1,
  528 + "cnLiveShareControl": 1,
  529 + "cnShareControl": 1,
  530 + "collectNum": 0,
  531 + "commentNum": 0,
  532 + "createTime": 1710409986000,
  533 + "fansNum": 1,
  534 + "honoraryIcon": "",
  535 + "honoraryTitle": "",
  536 + "id": 200700,
  537 + "introduction": "西平县本地信息服务、热点追踪、关注民生。",
  538 + "isAttention": null,
  539 + "isComment": 1,
  540 + "isLike": 1,
  541 + "isVisiable": 1,
  542 + "likeNum": 0,
  543 + "liveCommentControl": 1,
  544 + "liveGiftControl": 1,
  545 + "liveLikeControl": 1,
  546 + "liveShareControl": 1,
  547 + "mainControl": 1,
  548 + "posterShareControl": 1,
  549 + "registTime": 1551495864000,
  550 + "shareControl": 1,
  551 + "shareNum": 0,
  552 + "status": 1,
  553 + "subjectType": null,
  554 + "updateTime": 1710409986000,
  555 + "userId": "567387477063621",
  556 + "userType": 1
  557 + },
  558 + {
  559 + "attentionCreatorId": "3258613",
  560 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//upload/ueditor/image/20191011/a_367272241198526464.jpg?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  561 + "attentionNum": 0,
  562 + "attentionUserId": "504980253394053",
  563 + "attentionUserName": "安庆生活",
  564 + "attentionUserType": 2,
  565 + "authIcon": "",
  566 + "authId": 0,
  567 + "authPersional": "",
  568 + "authTitle": "",
  569 + "banControl": 0,
  570 + "categoryAuth": "",
  571 + "cnLiveCommentControl": 1,
  572 + "cnLiveGiftControl": 1,
  573 + "cnLiveLikeControl": 1,
  574 + "cnLiveShareControl": 1,
  575 + "cnShareControl": 1,
  576 + "collectNum": 0,
  577 + "commentNum": 0,
  578 + "createTime": 1710409985000,
  579 + "fansNum": 1,
  580 + "honoraryIcon": "",
  581 + "honoraryTitle": "",
  582 + "id": 200699,
  583 + "introduction": "传播有价值的声音,记录生活,共享精彩!\n",
  584 + "isAttention": null,
  585 + "isComment": 1,
  586 + "isLike": 1,
  587 + "isVisiable": 1,
  588 + "likeNum": 0,
  589 + "liveCommentControl": 1,
  590 + "liveGiftControl": 1,
  591 + "liveLikeControl": 1,
  592 + "liveShareControl": 1,
  593 + "mainControl": 1,
  594 + "posterShareControl": 1,
  595 + "registTime": 1551433741000,
  596 + "shareControl": 1,
  597 + "shareNum": 0,
  598 + "status": 1,
  599 + "subjectType": null,
  600 + "updateTime": 1710409985000,
  601 + "userId": "567387477063621",
  602 + "userType": 1
  603 + },
  604 + {
  605 + "attentionCreatorId": "3004851",
  606 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309We172415100/h2j.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  607 + "attentionNum": 0,
  608 + "attentionUserId": "444296355502149",
  609 + "attentionUserName": "0920个人",
  610 + "attentionUserType": 2,
  611 + "authIcon": "",
  612 + "authId": 0,
  613 + "authPersional": "",
  614 + "authTitle": "",
  615 + "banControl": 0,
  616 + "categoryAuth": "",
  617 + "cnLiveCommentControl": 1,
  618 + "cnLiveGiftControl": 1,
  619 + "cnLiveLikeControl": 1,
  620 + "cnLiveShareControl": 1,
  621 + "cnShareControl": 1,
  622 + "collectNum": 0,
  623 + "commentNum": 0,
  624 + "createTime": 1710409979000,
  625 + "fansNum": 9,
  626 + "honoraryIcon": "https://cdn.aikan.pdnews.cn/image/picture/202312/20231223173451966FdV.png",
  627 + "honoraryTitle": "快乐星球",
  628 + "id": 200698,
  629 + "introduction": "账号简介",
  630 + "isAttention": null,
  631 + "isComment": 1,
  632 + "isLike": 1,
  633 + "isVisiable": 1,
  634 + "likeNum": 6,
  635 + "liveCommentControl": 1,
  636 + "liveGiftControl": 1,
  637 + "liveLikeControl": 1,
  638 + "liveShareControl": 1,
  639 + "mainControl": 1,
  640 + "posterShareControl": 1,
  641 + "registTime": 1695201858000,
  642 + "shareControl": 1,
  643 + "shareNum": 0,
  644 + "status": 1,
  645 + "subjectType": null,
  646 + "updateTime": 1710409979000,
  647 + "userId": "567387477063621",
  648 + "userType": 1
  649 + },
  650 + {
  651 + "attentionCreatorId": "3004853",
  652 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/image/creator/2023092715/4727ab5db7604dbbac9ffb94ed03614e.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  653 + "attentionNum": 1,
  654 + "attentionUserId": "444300764043333",
  655 + "attentionUserName": "创作者账号7777",
  656 + "attentionUserType": 2,
  657 + "authIcon": "https://sitcontentjdcdn.aikan.pdnews.cn/creator-category/icon/auth/yellow.png",
  658 + "authId": 2,
  659 + "authPersional": "",
  660 + "authTitle": "黄VV",
  661 + "banControl": 0,
  662 + "categoryAuth": "黄VV",
  663 + "cnLiveCommentControl": 1,
  664 + "cnLiveGiftControl": 1,
  665 + "cnLiveLikeControl": 1,
  666 + "cnLiveShareControl": 1,
  667 + "cnShareControl": 1,
  668 + "collectNum": 1,
  669 + "commentNum": 7,
  670 + "createTime": 1710409979000,
  671 + "fansNum": 13,
  672 + "honoraryIcon": "",
  673 + "honoraryTitle": "",
  674 + "id": 200697,
  675 + "introduction": "协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作平台是进行团队开发、协作的系统,一般是基于互联网,也有用专业网的情况。协作平台的主要功能是:分工合作、进度控制、版本控制等功能。协作",
  676 + "isAttention": null,
  677 + "isComment": 1,
  678 + "isLike": 1,
  679 + "isVisiable": 1,
  680 + "likeNum": 0,
  681 + "liveCommentControl": 1,
  682 + "liveGiftControl": 1,
  683 + "liveLikeControl": 1,
  684 + "liveShareControl": 1,
  685 + "mainControl": 1,
  686 + "posterShareControl": 0,
  687 + "registTime": 1695202406000,
  688 + "shareControl": 1,
  689 + "shareNum": 0,
  690 + "status": 1,
  691 + "subjectType": null,
  692 + "updateTime": 1710409979000,
  693 + "userId": "567387477063621",
  694 + "userType": 1
  695 + },
  696 + {
  697 + "attentionCreatorId": "3004849",
  698 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309We140931534/CIX.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  699 + "attentionNum": 0,
  700 + "attentionUserId": "444200272593477",
  701 + "attentionUserName": "zhuaqu005",
  702 + "attentionUserType": 2,
  703 + "authIcon": "",
  704 + "authId": 0,
  705 + "authPersional": "",
  706 + "authTitle": "",
  707 + "banControl": 0,
  708 + "categoryAuth": "",
  709 + "cnLiveCommentControl": 1,
  710 + "cnLiveGiftControl": 1,
  711 + "cnLiveLikeControl": 1,
  712 + "cnLiveShareControl": 1,
  713 + "cnShareControl": 1,
  714 + "collectNum": 0,
  715 + "commentNum": 0,
  716 + "createTime": 1710409978000,
  717 + "fansNum": 10,
  718 + "honoraryIcon": "",
  719 + "honoraryTitle": "",
  720 + "id": 200696,
  721 + "introduction": "aaa",
  722 + "isAttention": null,
  723 + "isComment": 1,
  724 + "isLike": 1,
  725 + "isVisiable": 1,
  726 + "likeNum": 0,
  727 + "liveCommentControl": 1,
  728 + "liveGiftControl": 1,
  729 + "liveLikeControl": 1,
  730 + "liveShareControl": 1,
  731 + "mainControl": 1,
  732 + "posterShareControl": 1,
  733 + "registTime": 1695190066000,
  734 + "shareControl": 1,
  735 + "shareNum": 0,
  736 + "status": 1,
  737 + "subjectType": null,
  738 + "updateTime": 1710409978000,
  739 + "userId": "567387477063621",
  740 + "userType": 1
  741 + },
  742 + {
  743 + "attentionCreatorId": "3004841",
  744 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Tu155358686/Clu.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  745 + "attentionNum": 0,
  746 + "attentionUserId": "443539162419717",
  747 + "attentionUserName": "好主播007",
  748 + "attentionUserType": 2,
  749 + "authIcon": "",
  750 + "authId": 0,
  751 + "authPersional": "",
  752 + "authTitle": "",
  753 + "banControl": 0,
  754 + "categoryAuth": "",
  755 + "cnLiveCommentControl": 1,
  756 + "cnLiveGiftControl": 1,
  757 + "cnLiveLikeControl": 1,
  758 + "cnLiveShareControl": 1,
  759 + "cnShareControl": 1,
  760 + "collectNum": 0,
  761 + "commentNum": 0,
  762 + "createTime": 1710409975000,
  763 + "fansNum": 12,
  764 + "honoraryIcon": "",
  765 + "honoraryTitle": "",
  766 + "id": 200695,
  767 + "introduction": "qqq",
  768 + "isAttention": null,
  769 + "isComment": 1,
  770 + "isLike": 1,
  771 + "isVisiable": 1,
  772 + "likeNum": 0,
  773 + "liveCommentControl": 1,
  774 + "liveGiftControl": 1,
  775 + "liveLikeControl": 1,
  776 + "liveShareControl": 1,
  777 + "mainControl": 0,
  778 + "posterShareControl": 1,
  779 + "registTime": 1695110042000,
  780 + "shareControl": 1,
  781 + "shareNum": 0,
  782 + "status": 1,
  783 + "subjectType": null,
  784 + "updateTime": 1710409975000,
  785 + "userId": "567387477063621",
  786 + "userType": 1
  787 + },
  788 + {
  789 + "attentionCreatorId": "3004835",
  790 + "attentionHeadPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/20230919113007795/7uI.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
  791 + "attentionNum": 0,
  792 + "attentionUserId": "443416920261445",
  793 + "attentionUserName": "随风而起",
  794 + "attentionUserType": 2,
  795 + "authIcon": "",
  796 + "authId": 0,
  797 + "authPersional": "",
  798 + "authTitle": "",
  799 + "banControl": 0,
  800 + "categoryAuth": "",
  801 + "cnLiveCommentControl": 1,
  802 + "cnLiveGiftControl": 1,
  803 + "cnLiveLikeControl": 1,
  804 + "cnLiveShareControl": 1,
  805 + "cnShareControl": 1,
  806 + "collectNum": 0,
  807 + "commentNum": 0,
  808 + "createTime": 1710409975000,
  809 + "fansNum": 2291,
  810 + "honoraryIcon": "",
  811 + "honoraryTitle": "",
  812 + "id": 200694,
  813 + "introduction": "灰度号主",
  814 + "isAttention": null,
  815 + "isComment": 1,
  816 + "isLike": 1,
  817 + "isVisiable": 1,
  818 + "likeNum": 0,
  819 + "liveCommentControl": 1,
  820 + "liveGiftControl": 1,
  821 + "liveLikeControl": 1,
  822 + "liveShareControl": 1,
  823 + "mainControl": 0,
  824 + "posterShareControl": 1,
  825 + "registTime": 1695094442000,
  826 + "shareControl": 1,
  827 + "shareNum": 0,
  828 + "status": 1,
  829 + "subjectType": null,
  830 + "updateTime": 1710409975000,
  831 + "userId": "567387477063621",
  832 + "userType": 1
  833 + }
  834 + ],
  835 + "pageNum": 1,
  836 + "pageSize": 20,
  837 + "totalCount": 18
  838 + },
  839 + "message": "Success",
  840 + "meta": null,
  841 + "requestId": "",
  842 + "success": true,
  843 + "timestamp": 1710989304704
  844 +}
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "articleCreation": 0,
  5 + "attentionNum": 22,
  6 + "authIcon": "",
  7 + "authId": 0,
  8 + "authPersonal": "",
  9 + "authTitle": "",
  10 + "avatarFrame": "",
  11 + "browseNum": 22,
  12 + "categoryAuth": "",
  13 + "city": "",
  14 + "cnContentPublish": 0,
  15 + "cnLivePublish": 0,
  16 + "cnShareControl": 0,
  17 + "collectNum": 4,
  18 + "commentNum": 0,
  19 + "contentPublish": 0,
  20 + "creatorId": "",
  21 + "district": "",
  22 + "dynamicControl": 0,
  23 + "dynamicCreation": 0,
  24 + "fansNum": 0,
  25 + "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn//img/user/2024031215/48d5bd53227d436b9faa937b3ac14600.png",
  26 + "honoraryIcon": "",
  27 + "honoraryTitle": "",
  28 + "introduction": "",
  29 + "isComment": 0,
  30 + "isLike": 0,
  31 + "livePublish": 0,
  32 + "liveSwitch": 1,
  33 + "mainControl": 1,
  34 + "originUserId": "",
  35 + "pictureCollectionCreation": 0,
  36 + "posterShareControl": 1,
  37 + "province": "",
  38 + "region": "安徽省",
  39 + "registTime": 1710227567000,
  40 + "reserveNum": 6,
  41 + "shareControl": 0,
  42 + "shareUrl": "",
  43 + "speakControl": 0,
  44 + "subjectType": 0,
  45 + "userId": "567387477063621",
  46 + "userName": "人民日报网友aPrtq5",
  47 + "userType": "1",
  48 + "videoCollectionCreation": 0,
  49 + "videoCreation": 0
  50 + },
  51 + "message": "Success",
  52 + "meta": null,
  53 + "requestId": "",
  54 + "success": true,
  55 + "timestamp": 1711357314033
  56 +}
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "createTime": "2024-03-12 15:12:47",
  5 + "id": 132386,
  6 + "levelHead": "http://rmrb-video-content-sit.oss-cn-beijing.aliyuncs.com/sjbj-20240125/image/display/88c45bf56ac941b883c69bd8ed373164.png",
  7 + "levelId": 2,
  8 + "levelName": "初入武林",
  9 + "levelNum": 155,
  10 + "modifyTime": "2024-03-25 16:35:57",
  11 + "status": 1,
  12 + "userId": 567387477063621
  13 + },
  14 + "message": "Success",
  15 + "success": true,
  16 + "timestamp": 1711357314136
  17 +}
@@ -34,10 +34,12 @@ export { AboutPageUI } from "./components/page/about/AboutPageUI" @@ -34,10 +34,12 @@ export { AboutPageUI } from "./components/page/about/AboutPageUI"
34 34
35 export { PrivacySettingComponents } from "./components/page/PrivacySettingComponents" 35 export { PrivacySettingComponents } from "./components/page/PrivacySettingComponents"
36 36
37 -export { AppointmentListUI } from "./components/page/mine/AppointmentListUI" 37 +export { AppointmentListUI } from "./components/page/mine/appointment/AppointmentListUI"
38 38
39 export { AccountAndSecurityLayout } from "./components/page/AccountAndSecurityLayout" 39 export { AccountAndSecurityLayout } from "./components/page/AccountAndSecurityLayout"
40 40
41 export { SettingPasswordLayout } from "./components/page/SettingPasswordLayout" 41 export { SettingPasswordLayout } from "./components/page/SettingPasswordLayout"
42 42
43 export { FollowFirstTabsComponent } from "./components/page/mine/follow/FollowFirstTabsComponent" 43 export { FollowFirstTabsComponent } from "./components/page/mine/follow/FollowFirstTabsComponent"
  44 +
  45 +export { MyHomeComponent } from "./components/page/mine/MyHomeComponent"
@@ -17,15 +17,14 @@ const TAG = 'MinePageComponent'; @@ -17,15 +17,14 @@ const TAG = 'MinePageComponent';
17 export struct MinePageComponent { 17 export struct MinePageComponent {
18 //是否是创作者 18 //是否是创作者
19 @State isCreator:boolean = false 19 @State isCreator:boolean = false
20 - @State isLogin:boolean = true 20 + @State isLogin:boolean = true //默认 false 测试放开
21 @State personalData:MinePagePersonalFunctionsItem[] = [] 21 @State personalData:MinePagePersonalFunctionsItem[] = []
22 @State creatorData:MinePageCreatorFunctionsItem[] = [] 22 @State creatorData:MinePageCreatorFunctionsItem[] = []
23 @State moreData:MinePageMoreFunctionModel[] = [] 23 @State moreData:MinePageMoreFunctionModel[] = []
24 scroller: Scroller = new Scroller() 24 scroller: Scroller = new Scroller()
25 25
26 aboutToAppear(){ 26 aboutToAppear(){
27 - //登录信息 TODO  
28 - 27 + this.getUserLogin()
29 this.getFunctionData() 28 this.getFunctionData()
30 } 29 }
31 30
@@ -77,4 +76,15 @@ export struct MinePageComponent { @@ -77,4 +76,15 @@ export struct MinePageComponent {
77 .height('100%') 76 .height('100%')
78 } 77 }
79 78
  79 + getUserLogin() {
  80 + // let userid = await SPHelper.default.get(SpConstants.USER_ID,"")
  81 + // if(StringUtils.isNotEmpty(userid)){
  82 + // this.isLogin = true
  83 + // let userName = await SPHelper.default.get(SpConstants.USER_NAME,"") as string
  84 + // this.userName = userName
  85 + // }else{
  86 + // this.isLogin = false
  87 + // }
  88 + }
  89 +
80 } 90 }
@@ -64,7 +64,7 @@ export default struct MinePageCreatorFunctionUI { @@ -64,7 +64,7 @@ export default struct MinePageCreatorFunctionUI {
64 console.log(index+"") 64 console.log(index+"")
65 }).width('169lpx') 65 }).width('169lpx')
66 .height('117lpx') 66 .height('117lpx')
67 - }, item => item) 67 + })
68 } 68 }
69 .rowsTemplate('1fr') 69 .rowsTemplate('1fr')
70 .columnsTemplate('1fr 1fr 1fr 1fr') 70 .columnsTemplate('1fr 1fr 1fr 1fr')
  1 +import MinePageDatasModel from '../../../model/MinePageDatasModel'
1 import RouteManager from '../../../utils/RouteManager' 2 import RouteManager from '../../../utils/RouteManager'
  3 +const TAG = "MinePageUserSimpleInfoUI"
2 4
3 @Component 5 @Component
4 export default struct MinePageUserSimpleInfoUI { 6 export default struct MinePageUserSimpleInfoUI {
5 @Prop isLogin:boolean 7 @Prop isLogin:boolean
  8 + @State userName:string = "登陆注册"
  9 + @State headPhotoUrl:string = ""
  10 + @State levelHead:string = ""
  11 + @State levelId:number = 0
  12 +
  13 +
  14 + aboutToAppear(){
  15 + if(this.isLogin){
  16 + this.getUserInfo()
  17 + this.getUserLevel()
  18 + }
  19 + }
6 20
7 build(){ 21 build(){
8 Row(){ 22 Row(){
9 //头像 23 //头像
10 Stack(){ 24 Stack(){
11 - Button({type:ButtonType.Circle})  
12 - .backgroundColor($r('app.color.main_red'))  
13 - .width('110lpx')  
14 - .height('110lpx')  
15 - Image($r('app.media.mine_head_icon')) 25 + Image(this.headPhotoUrl)
  26 + .alt($r('app.media.default_head'))
16 .width('108lpx') 27 .width('108lpx')
17 .height('108lpx') 28 .height('108lpx')
18 .objectFit(ImageFit.Cover) 29 .objectFit(ImageFit.Cover)
19 .borderRadius(50) 30 .borderRadius(50)
20 - }.width('110lpx')  
21 - .height('110lpx') 31 +
  32 + Image(this.levelHead)
  33 + .width('120lpx')
  34 + .height('120lpx')
  35 + .objectFit(ImageFit.Cover)
  36 + .borderRadius(50)
  37 + }.width('120lpx')
  38 + .height('120lpx')
22 .alignContent(Alignment.Center) 39 .alignContent(Alignment.Center)
23 .onClick(()=>{ 40 .onClick(()=>{
24 - RouteManager.jumpNewPage("pages/TestPage") 41 + if(!this.isLogin){
  42 + // RouteManager.jumpNewPage("pages/SettingAboutPage")
  43 + }else {
  44 + RouteManager.jumpNewPage("pages/MyHomePage")
  45 + }
25 }) 46 })
26 47
27 if(this.isLogin){ 48 if(this.isLogin){
28 //昵称信息 49 //昵称信息
29 Column(){ 50 Column(){
30 Row(){ 51 Row(){
31 - Text("人民日报6G5E3T") 52 + Text(this.userName)
32 .fontColor($r('app.color.color_222222')) 53 .fontColor($r('app.color.color_222222'))
33 .maxLines(1) 54 .maxLines(1)
34 .textOverflow({ overflow: TextOverflow.Ellipsis }) 55 .textOverflow({ overflow: TextOverflow.Ellipsis })
@@ -47,7 +68,7 @@ export default struct MinePageUserSimpleInfoUI { @@ -47,7 +68,7 @@ export default struct MinePageUserSimpleInfoUI {
47 .width('84lpx') 68 .width('84lpx')
48 .height('29lpx') 69 .height('29lpx')
49 .objectFit(ImageFit.Auto) 70 .objectFit(ImageFit.Auto)
50 - Text("等级8") 71 + Text(`等级${this.levelId}`)
51 .textAlign(TextAlign.Center) 72 .textAlign(TextAlign.Center)
52 .fontColor($r('app.color.white')) 73 .fontColor($r('app.color.white'))
53 .fontSize('19lpx') 74 .fontSize('19lpx')
@@ -108,4 +129,25 @@ export default struct MinePageUserSimpleInfoUI { @@ -108,4 +129,25 @@ export default struct MinePageUserSimpleInfoUI {
108 @Styles setFullHeight(){ 129 @Styles setFullHeight(){
109 .height('100%') 130 .height('100%')
110 } 131 }
  132 +
  133 + getUserInfo(){
  134 + MinePageDatasModel.getUserDetailData(getContext(this)).then((value)=>{
  135 + if(value!=null){
  136 + this.userName = value.userName
  137 + this.headPhotoUrl = value.headPhotoUrl
  138 + }
  139 + }).catch((err:Error)=>{
  140 + console.log(TAG,JSON.stringify(err))
  141 + })
  142 + }
  143 + getUserLevel(){
  144 + MinePageDatasModel.getUserLevelData(getContext(this)).then((value)=>{
  145 + if(value!=null){
  146 + this.levelHead = value.levelHead
  147 + this.levelId = value.levelId
  148 + }
  149 + }).catch((err:Error)=>{
  150 + console.log(TAG,JSON.stringify(err))
  151 + })
  152 + }
111 } 153 }
  1 +import router from '@ohos.router';
  2 +import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils';
  3 +import MinePageDatasModel from '../../../model/MinePageDatasModel';
  4 +import { HomePageBottomComponent } from './home/HomePageBottomComponent';
  5 +
  6 +const TAG = "MyHomeComponent"
  7 +
  8 +@Component
  9 +export struct MyHomeComponent {
  10 + @State tileOpacity: number = 0;
  11 + firstPositionY:number = 0;
  12 + fontColor: string = '#999999'
  13 + selectedFontColor: string = '#000000'
  14 + @State currentIndex: number = 0
  15 + private controller: TabsController = new TabsController()
  16 + isChangeToUserEdit = false;
  17 +
  18 + @State userName:string = ""
  19 + @State headPhotoUrl:string = ""
  20 + @State levelHead:string = ""
  21 + @State levelId:number = 0
  22 + @State desc:string = "点击添加简介,让大家认识你" //text 搞两个样式,如果三行,就显示 另外一个text 没有显示高度的
  23 + @State isHasIntroduction: boolean = false
  24 + @State browseNum:number = 0//阅读数
  25 + @State commentNum:number = 0//评论数
  26 + @State attentionNum:number = 0//关注数
  27 + registTime:number = 0//账号注册时间
  28 + @State registerTimeForDay:number = 0
  29 +
  30 + aboutToAppear(){
  31 + this.getUserInfo()
  32 + this.getUserLevel()
  33 + }
  34 +
  35 + build() {
  36 + Stack({ alignContent: Alignment.Top }){
  37 + Image($r('app.media.title_bg'))
  38 + .width('100%')
  39 + .height('355lpx')
  40 + .objectFit(ImageFit.Cover)
  41 +
  42 + Column(){
  43 + Stack({ alignContent: Alignment.Top }){
  44 + this.MineHomeTitleTransparent()
  45 + this.MineHomeTitleWhite()
  46 + }
  47 +
  48 + Scroll() {
  49 + Column() {
  50 + //用户信息区域
  51 + Row() {
  52 + Stack(){
  53 + Image(this.headPhotoUrl)
  54 + .alt($r('app.media.default_head'))
  55 + .width('115lpx')
  56 + .height('115lpx')
  57 + .objectFit(ImageFit.Cover)
  58 + .borderRadius(50)
  59 + Image(this.levelHead)
  60 + .width('130lpx')
  61 + .height('130lpx')
  62 + .objectFit(ImageFit.Cover)
  63 + .borderRadius(50)
  64 + }
  65 + Column() {
  66 + Row() {
  67 + Text(`${this.userName}`)
  68 + .fontColor($r('app.color.white'))
  69 + .maxLines(1)
  70 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  71 + .fontSize('38lpx')
  72 + .lineHeight('50lpx')
  73 + .fontWeight('500lpx')
  74 +
  75 + Text(`等级${this.levelId}`)
  76 + .textAlign(TextAlign.Center)
  77 + .fontColor($r('app.color.color_ED2800'))
  78 + .backgroundColor($r('app.color.white'))
  79 + .fontSize('19lpx')
  80 + .width('96lpx')
  81 + .height('35lpx')
  82 + .margin({ left: '10lpx' })
  83 + Blank()
  84 + }.width('507lpx')
  85 +
  86 + Row() {
  87 + Row() {
  88 + Text(`${this.browseNum}`)
  89 + .textStyle()
  90 + Text("阅读")
  91 + .textStyle2()
  92 + }
  93 + .margin({ right: '15lpx' })
  94 +
  95 + Divider()
  96 + .height('19lpx')
  97 + .width('2lpx')
  98 + .color($r('app.color.white'))
  99 + .vertical(true)
  100 + .opacity(0.4)
  101 + Row() {
  102 + Text(`${this.commentNum}`)
  103 + .textStyle()
  104 + Text("评论")
  105 + .textStyle2()
  106 + }.margin({ right: '15lpx', left: '15lpx' })
  107 +
  108 + Divider()
  109 + .height('19lpx')
  110 + .width('2lpx')
  111 + .color($r('app.color.white'))
  112 + .vertical(true)
  113 + .opacity(0.4)
  114 + Row() {
  115 + Text(`${this.attentionNum}`)
  116 + .textStyle()
  117 + Text("关注")
  118 + .textStyle2()
  119 + }.margin({ left: '15lpx' })
  120 + }.margin({ top: '23lpx' })
  121 + }.alignItems(HorizontalAlign.Start)
  122 + .margin({ left: '32lpx' })
  123 + }
  124 + .onAreaChange((oldValue: Area, newValue: Area) => {
  125 + if (this.firstPositionY === 0) {
  126 + this.firstPositionY = newValue.globalPosition.y as number
  127 + }else{
  128 + let persent = (this.firstPositionY - Number(newValue.globalPosition.y)) / (this.firstPositionY * 0.3)
  129 + if(persent > 1){
  130 + persent = 1
  131 + }
  132 + this.tileOpacity = persent
  133 + }
  134 + })
  135 + .backgroundColor($r('app.color.color_transparent'))
  136 + .height('184lpx')
  137 + .width('100%')
  138 + .padding({ left: '35lpx' })
  139 + //用户简介区域
  140 + Column() {
  141 + Row() {
  142 + Text(this.desc)
  143 + .fontSize('27lpx')
  144 + .maxLines(3)
  145 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  146 + .lineHeight('40lpx')
  147 + .fontWeight('400lpx')
  148 + .fontColor(this.isHasIntroduction?$r('app.color.color_222222'):$r('app.color.color_999999'))
  149 + .textAlign(TextAlign.Start)
  150 +
  151 + if(!this.isHasIntroduction){
  152 + Image($r('app.media.user_info_edit_icon'))
  153 + .width('27lpx')
  154 + .height('27lpx')
  155 + .objectFit(ImageFit.Auto)
  156 + }
  157 + }
  158 + Text(`来到人民日报${this.registerTimeForDay}天`)
  159 + .fontSize('23lpx')
  160 + .lineHeight('25lpx')
  161 + .fontWeight('400lpx')
  162 + .fontColor($r('app.color.color_999999'))
  163 + .textAlign(TextAlign.Start)
  164 + .margin({ top: '15lpx' })
  165 +
  166 + }.padding({ left: '31lpx',right:'31lpx',top:'19lpx',bottom:'31lpx'})
  167 + .alignItems(HorizontalAlign.Start)
  168 + .justifyContent(FlexAlign.Center)
  169 + .width('100%')
  170 + .backgroundColor($r('app.color.white'))
  171 + //间隔符
  172 +
  173 + Divider().width('100%').height('12lpx').color($r('app.color.color_F5F5F5')).strokeWidth('12lpx')
  174 +
  175 + //tab 页面
  176 + Tabs({controller: this.controller}) {
  177 + TabContent() {
  178 + HomePageBottomComponent({style:0})
  179 + }.tabBar(this.TabBuilder(0,"评论"))
  180 + TabContent() {
  181 + HomePageBottomComponent({style:1})
  182 + }.tabBar(this.TabBuilder(1,"关注"))
  183 + }
  184 + .backgroundColor($r('app.color.white'))
  185 + .animationDuration(0)
  186 + .onChange((index: number) => {
  187 + this.currentIndex = index
  188 + })
  189 + .vertical(false)
  190 + .height("100%")
  191 + }.width("100%")
  192 + }
  193 + .edgeEffect(EdgeEffect.None)
  194 + .scrollBar(BarState.Off)
  195 + .width('100%')
  196 + .height('100%')
  197 + }
  198 + }.width('100%')
  199 + .height('100%')
  200 +
  201 + }
  202 + @Builder MineHomeTitleTransparent() {
  203 + RelativeContainer() {
  204 + //标题栏目
  205 + Image($r('app.media.icon_arrow_left_white') )
  206 + .width('46lpx')
  207 + .height('46lpx')
  208 + .objectFit(ImageFit.Auto)
  209 + .id("back_icon")
  210 + .alignRules({
  211 + center: { anchor: "__container__", align: VerticalAlign.Center },
  212 + left: { anchor: "__container__", align: HorizontalAlign.Start }
  213 + })
  214 + .margin({ left: '31lpx' })
  215 + .onClick(() => {
  216 + router.back()
  217 + })
  218 +
  219 + Text("编辑资料")
  220 + .height('42lpx')
  221 + .maxLines(1)
  222 + .id("rightText")
  223 + .fontSize('35lpx')
  224 + .fontWeight('400lpx')
  225 + .fontColor($r('app.color.white') )
  226 + .lineHeight('42lpx')
  227 + .alignRules({
  228 + center: { anchor: "__container__", align: VerticalAlign.Center },
  229 + right: { anchor: "__container__", align: HorizontalAlign.End }
  230 + })
  231 + .margin({ right: '31lpx' })
  232 + .onClick(()=>{
  233 + this.editUserInfo()
  234 + })
  235 + }
  236 + .visibility(this.tileOpacity > 0 ? 1 : 0)
  237 + .height('84lpx')
  238 + .width('100%')
  239 + .backgroundColor($r('app.color.color_transparent'))
  240 + }
  241 +
  242 +
  243 + @Builder MineHomeTitleWhite() {
  244 + RelativeContainer() {
  245 + //标题栏目
  246 + Image($r('app.media.back_icon'))
  247 + .width('46lpx')
  248 + .height('46lpx')
  249 + .objectFit(ImageFit.Auto)
  250 + .id("back_icon")
  251 + .alignRules({
  252 + center: { anchor: "__container__", align: VerticalAlign.Center },
  253 + left: { anchor: "__container__", align: HorizontalAlign.Start }
  254 + })
  255 + .margin({ left: '31lpx' })
  256 + .onClick(() => {
  257 + router.back()
  258 + })
  259 + Image($r('app.media.default_head'))
  260 + .width('60lpx')
  261 + .height('60lpx')
  262 + .objectFit(ImageFit.Auto)
  263 + .id("head_icon")
  264 + .alignRules({
  265 + center: { anchor: "__container__", align: VerticalAlign.Center },
  266 + left: { anchor: "back_icon", align: HorizontalAlign.End }
  267 + })
  268 + .margin({ left: '31lpx' })
  269 + .onClick(() => {
  270 + router.back()
  271 + })
  272 +
  273 + Text("我的昵称")
  274 + .height('42lpx')
  275 + .maxLines(1)
  276 + .id("title")
  277 + .fontSize('35lpx')
  278 + .fontWeight('400lpx')
  279 + .fontColor($r('app.color.color_222222'))
  280 + .lineHeight('42lpx')
  281 + .alignRules({
  282 + center: { anchor: "__container__", align: VerticalAlign.Center },
  283 + left: { anchor: "head_icon", align: HorizontalAlign.End }
  284 + })
  285 + .margin({ left: '12lpx' })
  286 +
  287 + Text("编辑资料")
  288 + .height('42lpx')
  289 + .maxLines(1)
  290 + .id("rightText")
  291 + .fontSize('35lpx')
  292 + .fontWeight('400lpx')
  293 + .fontColor($r('app.color.color_222222'))
  294 + .lineHeight('42lpx')
  295 + .alignRules({
  296 + center: { anchor: "__container__", align: VerticalAlign.Center },
  297 + right: { anchor: "__container__", align: HorizontalAlign.End }
  298 + })
  299 + .margin({ right: '31lpx' })
  300 + .onClick(()=>{
  301 + this.editUserInfo()
  302 + })
  303 + }
  304 + .visibility(this.tileOpacity > 0 ? 0 : 1)
  305 + .height('84lpx')
  306 + .width('100%')
  307 + .backgroundColor($r('app.color.white'))
  308 + .opacity(this.tileOpacity )
  309 +
  310 + }
  311 +
  312 + @Builder TabBuilder(index: number, title: string) {
  313 + Stack(){
  314 + Text(title)
  315 + .height('38lpx')
  316 + .fontSize('33lpx')
  317 + .fontWeight(this.currentIndex === index ? 600 : 400)
  318 + .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
  319 + .lineHeight('38lpx')
  320 +
  321 + if(this.currentIndex === index){
  322 + Divider()
  323 + .width('31lpx')
  324 + .height('4lpx')
  325 + .color('#ED2800')
  326 + .strokeWidth('4lpx')
  327 + .margin({top:'50lpx'})
  328 + .id("divTag")
  329 + }
  330 + }.onClick(()=>{
  331 + this.currentIndex = index
  332 + this.controller.changeIndex(this.currentIndex)
  333 + })
  334 + .height('100%')
  335 + .width('100%')
  336 + .margin({right:'9lpx'})
  337 + }
  338 +
  339 + /**
  340 + * 跳转编辑资料(防止二次点击)
  341 + */
  342 + editUserInfo(){
  343 + if(!this.isChangeToUserEdit){
  344 + this.isChangeToUserEdit = true;
  345 + let c = setInterval(() => {
  346 + this.isChangeToUserEdit = false
  347 + }, 1000);
  348 + //route 跳转写这里 TODO
  349 + }
  350 + }
  351 +
  352 + getUserInfo(){
  353 + MinePageDatasModel.getUserDetailData(getContext(this)).then((value)=>{
  354 + if(value!=null){
  355 + this.userName = value.userName
  356 + this.headPhotoUrl = value.headPhotoUrl
  357 + if(StringUtils.isNotEmpty(value.introduction)){
  358 + this.desc = value.introduction
  359 + this.isHasIntroduction = true
  360 + }
  361 + this.browseNum = value.browseNum
  362 + this.commentNum = value.commentNum
  363 + this.attentionNum = value.attentionNum
  364 + this.registTime = value.registTime
  365 + this.getRegisterDays()
  366 + }
  367 + }).catch((err:Error)=>{
  368 + console.log(TAG,JSON.stringify(err))
  369 + })
  370 + }
  371 + getUserLevel(){
  372 + MinePageDatasModel.getUserLevelData(getContext(this)).then((value)=>{
  373 + if(value!=null){
  374 + this.levelHead = value.levelHead
  375 + this.levelId = value.levelId
  376 + }
  377 + }).catch((err:Error)=>{
  378 + console.log(TAG,JSON.stringify(err))
  379 + })
  380 + }
  381 + getRegisterDays(){
  382 + if(this.registTime!=null){
  383 + let curDate = new Date()
  384 + this.registerTimeForDay = Math.ceil((curDate.getTime()-this.registTime)/(1000*60*60*24))
  385 + }
  386 + }
  387 +}
  388 +
  389 +@Extend(Text) function textStyle() {
  390 + .fontColor($r('app.color.white'))
  391 + .textStyleDefault()
  392 + .margin({ right: '10lpx' })
  393 +}
  394 +
  395 +@Extend(Text) function textStyle2() {
  396 + .textStyleDefault()
  397 + .fontColor($r('app.color.color_B2FFFFFF'))
  398 +}
  399 +
  400 +@Extend(Text) function textStyleDefault() {
  401 + .textAlign(TextAlign.Start)
  402 + .fontSize('23lpx')
  403 + .fontWeight('400lpx')
  404 + .lineHeight('31lpx')
  405 +}
1 -import { MineAppointmentItem } from '../../../viewmodel/MineAppointmentItem' 1 +import { MineAppointmentItem } from '../../../../viewmodel/MineAppointmentItem'
2 2
3 @Component 3 @Component
4 export struct AppointmentListChildComponent{ 4 export struct AppointmentListChildComponent{
@@ -82,22 +82,22 @@ export struct AppointmentListChildComponent{ @@ -82,22 +82,22 @@ export struct AppointmentListChildComponent{
82 .backgroundColor($r('app.color.color_F5F5F5')) 82 .backgroundColor($r('app.color.color_F5F5F5'))
83 .borderRadius('4lpx') 83 .borderRadius('4lpx')
84 Blank() 84 Blank()
85 - .layoutWeight(1) 85 + .layoutWeight(1)
86 if(this.item.relType === 1){ 86 if(this.item.relType === 1){
87 - Text(this.item.isAppointment?"已预约":"预约")  
88 - .fontWeight(400)  
89 - .fontSize('23lpx')  
90 - .backgroundColor(this.item.isAppointment?$r('app.color.color_F5F5F5'):$r('app.color.color_ED2800'))  
91 - .fontColor(this.item.isAppointment?$r('app.color.color_CCCCCC'):$r('app.color.white'))  
92 - .lineHeight('31lpx')  
93 - .textAlign(TextAlign.Center)  
94 - .width('100lpx')  
95 - .height('46lpx')  
96 - .borderRadius('6lpx')  
97 - .onClick(()=>{  
98 - this.item.isAppointment = !this.item.isAppointment  
99 - //TODO 预约动作  
100 - }) 87 + Text(this.item.isAppointment?"已预约":"预约")
  88 + .fontWeight(400)
  89 + .fontSize('23lpx')
  90 + .backgroundColor(this.item.isAppointment?$r('app.color.color_F5F5F5'):$r('app.color.color_ED2800'))
  91 + .fontColor(this.item.isAppointment?$r('app.color.color_CCCCCC'):$r('app.color.white'))
  92 + .lineHeight('31lpx')
  93 + .textAlign(TextAlign.Center)
  94 + .width('100lpx')
  95 + .height('46lpx')
  96 + .borderRadius('6lpx')
  97 + .onClick(()=>{
  98 + this.item.isAppointment = !this.item.isAppointment
  99 + //TODO 预约动作
  100 + })
101 }else { 101 }else {
102 Text(this.item.relType === 2?"去观看":"看回放") 102 Text(this.item.relType === 2?"去观看":"看回放")
103 .fontWeight(400) 103 .fontWeight(400)
1 -import { AppointmentListChildComponent } from '../mine/AppointmentListChildComponent';  
2 -import { CustomTitleUI } from '../../reusable/CustomTitleUI'  
3 -import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI';  
4 -import { MineAppointmentItem } from '../../../viewmodel/MineAppointmentItem'; 1 +import { AppointmentListChildComponent } from './AppointmentListChildComponent';
  2 +import { CustomTitleUI } from '../../../reusable/CustomTitleUI'
  3 +import { ListHasNoMoreDataUI } from '../../../reusable/ListHasNoMoreDataUI';
  4 +import { MineAppointmentItem } from '../../../../viewmodel/MineAppointmentItem';
5 import { LazyDataSource, StringUtils } from 'wdKit'; 5 import { LazyDataSource, StringUtils } from 'wdKit';
6 -import MinePageDatasModel from '../../../model/MinePageDatasModel'; 6 +import MinePageDatasModel from '../../../../model/MinePageDatasModel';
7 const TAG = "AppointmentListUI" 7 const TAG = "AppointmentListUI"
8 8
9 @Component 9 @Component
10 export struct AppointmentListUI{ 10 export struct AppointmentListUI{
11 @State data: LazyDataSource<MineAppointmentItem> = new LazyDataSource(); 11 @State data: LazyDataSource<MineAppointmentItem> = new LazyDataSource();
  12 + @State count:number = 0;
12 @State isLoading:boolean = false 13 @State isLoading:boolean = false
13 @State hasMore:boolean = true 14 @State hasMore:boolean = true
14 curPageNum:number = 1; 15 curPageNum:number = 1;
@@ -21,63 +22,69 @@ export struct AppointmentListUI{ @@ -21,63 +22,69 @@ export struct AppointmentListUI{
21 Column() { 22 Column() {
22 //标题栏目 23 //标题栏目
23 CustomTitleUI({titleName:"预约列表"}) 24 CustomTitleUI({titleName:"预约列表"})
24 - //刷新控件 TODO  
25 - //List  
26 - List({ space: '6lpx' }) {  
27 - LazyForEach(this.data, (item: MineAppointmentItem, index: number) => {  
28 - ListItem() {  
29 - AppointmentListChildComponent({item:item})  
30 - }  
31 - .onClick(()=>{  
32 - //TODO 跳转  
33 - })  
34 - }, (item: MineAppointmentItem, index: number) => index.toString()) 25 + if(this.count == 0){
  26 + ListHasNoMoreDataUI({style:2})
  27 + }else{
  28 + //刷新控件 TODO
  29 + //List
  30 + List({ space: '6lpx' }) {
  31 + LazyForEach(this.data, (item: MineAppointmentItem, index: number) => {
  32 + ListItem() {
  33 + AppointmentListChildComponent({item:item})
  34 + }
  35 + .onClick(()=>{
  36 + //TODO 跳转
  37 + })
  38 + }, (item: MineAppointmentItem, index: number) => index.toString())
35 39
36 - //没有更多数据 显示提示  
37 - if(!this.hasMore){  
38 - ListItem(){  
39 - ListHasNoMoreDataUI() 40 + //没有更多数据 显示提示
  41 + if(!this.hasMore){
  42 + ListItem(){
  43 + ListHasNoMoreDataUI()
  44 + }
40 } 45 }
41 - }  
42 - }.cachedCount(4)  
43 - .margin({top:'23lpx',left:'23lpx',right:'23lpx'})  
44 - .layoutWeight(1)  
45 - .onReachEnd(()=>{  
46 - console.log(TAG,"触底了");  
47 - if(!this.isLoading){  
48 - //加载分页数据  
49 - this.getNewPageData()  
50 - }  
51 - }) 46 + }.cachedCount(4)
  47 + .scrollBar(BarState.Off)
  48 + .margin({top:'23lpx',left:'23lpx',right:'23lpx'})
  49 + .layoutWeight(1)
  50 + .onReachEnd(()=>{
  51 + console.log(TAG,"触底了");
  52 + if(!this.isLoading){
  53 + //加载分页数据
  54 + this.getNewPageData()
  55 + }
  56 + })
  57 + }
52 } 58 }
53 .backgroundColor($r('app.color.color_F9F9F9')) 59 .backgroundColor($r('app.color.color_F9F9F9'))
54 .height('100%') 60 .height('100%')
55 .width('100%') 61 .width('100%')
56 } 62 }
57 63
58 - getNewPageData(){ 64 + getNewPageData(){
59 this.isLoading = true 65 this.isLoading = true
60 if(this.hasMore){ 66 if(this.hasMore){
61 - MinePageDatasModel.getAppointmentListData("20",`${this.curPageNum}`,getContext(this)).then((value)=>{  
62 - if (!this.data || value.list.length == 0){  
63 - this.hasMore = false  
64 - }else{  
65 - value.list.forEach((value)=>{  
66 - let dealTime = this.DealStartTime(value.planStartTime)  
67 - if(dealTime!=null && dealTime.length === 2){  
68 - this.data.push(new MineAppointmentItem(value.imageUrl,value.status,value.title,true,dealTime[0],dealTime[1],value.relType))  
69 - }else {  
70 - this.data.push(new MineAppointmentItem(value.imageUrl,value.status,value.title,true,"","",value.relType))  
71 - }  
72 - })  
73 - this.data.notifyDataReload()  
74 - if (this.data.totalCount() < value.totalCount) {  
75 - this.curPageNum++ 67 + MinePageDatasModel.getAppointmentListData("20",`${this.curPageNum}`,getContext(this)).then((value)=>{
  68 + if (!this.data || value.list.length == 0){
  69 + this.hasMore = false
  70 + }else{
  71 + value.list.forEach((value)=>{
  72 + let dealTime = this.DealStartTime(value.planStartTime)
  73 + if(dealTime!=null && dealTime.length === 2){
  74 + this.data.push(new MineAppointmentItem(value.imageUrl,value.status,value.title,true,dealTime[0],dealTime[1],value.relType))
76 }else { 75 }else {
77 - this.hasMore = false 76 + this.data.push(new MineAppointmentItem(value.imageUrl,value.status,value.title,true,"","",value.relType))
78 } 77 }
  78 + })
  79 + this.data.notifyDataReload()
  80 + this.count = this.data.totalCount()
  81 + if (this.data.totalCount() < value.totalCount) {
  82 + this.curPageNum++
  83 + }else {
  84 + this.hasMore = false
79 } 85 }
80 - }) 86 + }
  87 + })
81 } 88 }
82 this.isLoading = false 89 this.isLoading = false
83 } 90 }
1 -import { ResourcesUtils } from 'wdKit'  
2 -import { ResponseDTO } from 'wdNetwork' 1 +import MinePageDatasModel from '../../../../model/MinePageDatasModel'
3 import { FollowListItem } from '../../../../viewmodel/FollowListItem' 2 import { FollowListItem } from '../../../../viewmodel/FollowListItem'
4 import { CustomTitleUI } from '../../../reusable/CustomTitleUI' 3 import { CustomTitleUI } from '../../../reusable/CustomTitleUI'
5 import { FollowSecondTabsComponent } from './FollowSecondTabsComponent' 4 import { FollowSecondTabsComponent } from './FollowSecondTabsComponent'
  5 +const TAG = "FollowFirstTabsComponent"
6 6
7 @Component 7 @Component
8 export struct FollowFirstTabsComponent{ 8 export struct FollowFirstTabsComponent{
9 @State currentIndex: number = 0 9 @State currentIndex: number = 0
10 private controller: TabsController = new TabsController() 10 private controller: TabsController = new TabsController()
11 @State data:FollowListItem[] = [] 11 @State data:FollowListItem[] = []
  12 + @Prop changeIndex: number
12 fontColor: string = '#999999' 13 fontColor: string = '#999999'
13 selectedFontColor: string = '#000000' 14 selectedFontColor: string = '#000000'
14 15
15 aboutToAppear(){ 16 aboutToAppear(){
16 - this.data.push(new FollowListItem("我的"))  
17 // let res = JSON.parse(`{"code":"0","data":[{"children":[],"directoryName":"阅读","directoryWeight":99,"id":165,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[{"directoryName":"三二","directoryWeight":2,"id":120,"isShow":1,"level":3,"parentId":118,"rootId":117},{"directoryName":"三级","directoryWeight":1,"id":119,"isShow":1,"level":3,"parentId":118,"rootId":117}],"directoryName":"二级","directoryWeight":1,"id":118,"isShow":1,"level":2,"parentId":117,"rootId":117}],"directoryName":"幽游白书","directoryWeight":33,"id":117,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"推荐","directoryWeight":9,"id":386,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"政务","directoryWeight":9,"id":379,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"推荐","directoryWeight":0,"id":335,"isShow":1,"level":2,"parentId":320,"rootId":320}],"directoryName":"推荐","directoryWeight":9,"id":320,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"媒体","directoryWeight":8,"id":390,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"媒体","directoryWeight":8,"id":323,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"自媒体","directoryWeight":7,"id":329,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"名人","directoryWeight":6,"id":389,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"测试","directoryWeight":0,"id":338,"isShow":1,"level":2,"parentId":324,"rootId":324}],"directoryName":"名人","directoryWeight":6,"id":324,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"2级目录","directoryWeight":0,"id":340,"isShow":1,"level":2,"parentId":312,"rootId":312},{"children":[{"directoryName":"3级测试","directoryWeight":0,"id":368,"isShow":1,"level":3,"parentId":339,"rootId":312}],"directoryName":"二级目录","directoryWeight":0,"id":339,"isShow":1,"level":2,"parentId":312,"rootId":312},{"children":[{"directoryName":"企业","directoryWeight":1,"id":348,"isShow":1,"level":3,"parentId":336,"rootId":312},{"directoryName":"部委","directoryWeight":0,"id":344,"isShow":1,"level":3,"parentId":336,"rootId":312},{"directoryName":"地方","directoryWeight":0,"id":341,"isShow":1,"level":3,"parentId":336,"rootId":312}],"directoryName":"类型","directoryWeight":0,"id":336,"isShow":1,"level":2,"parentId":312,"rootId":312},{"children":[{"directoryName":"贵州省","directoryWeight":0,"id":378,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"西藏自治区","directoryWeight":0,"id":377,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"四川省","directoryWeight":0,"id":376,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"重庆市","directoryWeight":0,"id":375,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"湖南省","directoryWeight":0,"id":374,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"云南省","directoryWeight":0,"id":373,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"广西壮族自治区","directoryWeight":0,"id":372,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"宁夏回族自治区","directoryWeight":0,"id":371,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"湖北省","directoryWeight":0,"id":370,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"青海省","directoryWeight":0,"id":369,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"陕西省","directoryWeight":0,"id":367,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"甘肃省","directoryWeight":0,"id":366,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"吉林省","directoryWeight":0,"id":365,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"广东省","directoryWeight":0,"id":364,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"海南省","directoryWeight":0,"id":363,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"辽宁省","directoryWeight":0,"id":362,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"江苏省","directoryWeight":0,"id":361,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"新疆维吾尔族自治区","directoryWeight":0,"id":360,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"福建省","directoryWeight":0,"id":359,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"山东省","directoryWeight":0,"id":358,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"河南省","directoryWeight":0,"id":357,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"浙江省","directoryWeight":0,"id":356,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"安徽省","directoryWeight":0,"id":355,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"上海市","directoryWeight":0,"id":354,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"河北省","directoryWeight":0,"id":353,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"黑龙江省","directoryWeight":0,"id":352,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"江西省","directoryWeight":0,"id":351,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"内蒙古自治区","directoryWeight":0,"id":350,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"北京市","directoryWeight":0,"id":349,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"山西省","directoryWeight":0,"id":346,"isShow":1,"level":3,"parentId":332,"rootId":312}],"directoryName":"地域","directoryWeight":0,"id":332,"isShow":1,"level":2,"parentId":312,"rootId":312}],"directoryName":"政务","directoryWeight":5,"id":312,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"学校","directoryWeight":4,"id":331,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"机构","directoryWeight":3,"id":330,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[{"directoryName":"新闻联播","directoryWeight":3,"id":79,"isShow":1,"level":3,"parentId":75,"rootId":74},{"directoryName":"第三季","directoryWeight":2,"id":78,"isShow":1,"level":3,"parentId":75,"rootId":74},{"directoryName":"三级","directoryWeight":1,"id":76,"isShow":1,"level":3,"parentId":75,"rootId":74}],"directoryName":"短视频","directoryWeight":1,"id":75,"isShow":1,"level":2,"parentId":74,"rootId":74}],"directoryName":"创作","directoryWeight":3,"id":74,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"教学","directoryWeight":2,"id":72,"isShow":1,"level":2,"parentId":64,"rootId":64},{"children":[],"directoryName":"热门","directoryWeight":1,"id":73,"isShow":1,"level":2,"parentId":64,"rootId":64},{"children":[],"directoryName":"赛事","directoryWeight":1,"id":71,"isShow":1,"level":2,"parentId":64,"rootId":64}],"directoryName":"游戏","directoryWeight":2,"id":64,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"新闻","directoryWeight":1,"id":315,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"趣闻","directoryWeight":6,"id":70,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"时政","directoryWeight":5,"id":69,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"农业","directoryWeight":3,"id":68,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"娱乐","directoryWeight":3,"id":67,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"科技","directoryWeight":2,"id":66,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"国际","directoryWeight":1,"id":65,"isShow":1,"level":2,"parentId":63,"rootId":63}],"directoryName":"新闻","directoryWeight":1,"id":63,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"公安","directoryWeight":0,"id":388,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"dddd","directoryWeight":0,"id":387,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"健康","directoryWeight":0,"id":384,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"综合","directoryWeight":0,"id":328,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"房产","directoryWeight":0,"id":327,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"健康","directoryWeight":0,"id":318,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"历史","directoryWeight":0,"id":310,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"dddd","directoryWeight":0,"id":309,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"aaaa","directoryWeight":1,"id":333,"isShow":1,"level":2,"parentId":308,"rootId":308},{"children":[],"directoryName":"qqq","directoryWeight":0,"id":334,"isShow":1,"level":2,"parentId":308,"rootId":308}],"directoryName":"dddd","directoryWeight":0,"id":308,"isShow":1,"level":1,"parentId":0,"rootId":0}],"message":"Success","success":true,"timestamp":1710741803593}`) as ResponseDTO<FollowListItem[]> 17 // let res = JSON.parse(`{"code":"0","data":[{"children":[],"directoryName":"阅读","directoryWeight":99,"id":165,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[{"directoryName":"三二","directoryWeight":2,"id":120,"isShow":1,"level":3,"parentId":118,"rootId":117},{"directoryName":"三级","directoryWeight":1,"id":119,"isShow":1,"level":3,"parentId":118,"rootId":117}],"directoryName":"二级","directoryWeight":1,"id":118,"isShow":1,"level":2,"parentId":117,"rootId":117}],"directoryName":"幽游白书","directoryWeight":33,"id":117,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"推荐","directoryWeight":9,"id":386,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"政务","directoryWeight":9,"id":379,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"推荐","directoryWeight":0,"id":335,"isShow":1,"level":2,"parentId":320,"rootId":320}],"directoryName":"推荐","directoryWeight":9,"id":320,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"媒体","directoryWeight":8,"id":390,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"媒体","directoryWeight":8,"id":323,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"自媒体","directoryWeight":7,"id":329,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"名人","directoryWeight":6,"id":389,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"测试","directoryWeight":0,"id":338,"isShow":1,"level":2,"parentId":324,"rootId":324}],"directoryName":"名人","directoryWeight":6,"id":324,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"2级目录","directoryWeight":0,"id":340,"isShow":1,"level":2,"parentId":312,"rootId":312},{"children":[{"directoryName":"3级测试","directoryWeight":0,"id":368,"isShow":1,"level":3,"parentId":339,"rootId":312}],"directoryName":"二级目录","directoryWeight":0,"id":339,"isShow":1,"level":2,"parentId":312,"rootId":312},{"children":[{"directoryName":"企业","directoryWeight":1,"id":348,"isShow":1,"level":3,"parentId":336,"rootId":312},{"directoryName":"部委","directoryWeight":0,"id":344,"isShow":1,"level":3,"parentId":336,"rootId":312},{"directoryName":"地方","directoryWeight":0,"id":341,"isShow":1,"level":3,"parentId":336,"rootId":312}],"directoryName":"类型","directoryWeight":0,"id":336,"isShow":1,"level":2,"parentId":312,"rootId":312},{"children":[{"directoryName":"贵州省","directoryWeight":0,"id":378,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"西藏自治区","directoryWeight":0,"id":377,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"四川省","directoryWeight":0,"id":376,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"重庆市","directoryWeight":0,"id":375,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"湖南省","directoryWeight":0,"id":374,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"云南省","directoryWeight":0,"id":373,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"广西壮族自治区","directoryWeight":0,"id":372,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"宁夏回族自治区","directoryWeight":0,"id":371,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"湖北省","directoryWeight":0,"id":370,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"青海省","directoryWeight":0,"id":369,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"陕西省","directoryWeight":0,"id":367,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"甘肃省","directoryWeight":0,"id":366,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"吉林省","directoryWeight":0,"id":365,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"广东省","directoryWeight":0,"id":364,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"海南省","directoryWeight":0,"id":363,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"辽宁省","directoryWeight":0,"id":362,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"江苏省","directoryWeight":0,"id":361,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"新疆维吾尔族自治区","directoryWeight":0,"id":360,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"福建省","directoryWeight":0,"id":359,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"山东省","directoryWeight":0,"id":358,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"河南省","directoryWeight":0,"id":357,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"浙江省","directoryWeight":0,"id":356,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"安徽省","directoryWeight":0,"id":355,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"上海市","directoryWeight":0,"id":354,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"河北省","directoryWeight":0,"id":353,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"黑龙江省","directoryWeight":0,"id":352,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"江西省","directoryWeight":0,"id":351,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"内蒙古自治区","directoryWeight":0,"id":350,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"北京市","directoryWeight":0,"id":349,"isShow":1,"level":3,"parentId":332,"rootId":312},{"directoryName":"山西省","directoryWeight":0,"id":346,"isShow":1,"level":3,"parentId":332,"rootId":312}],"directoryName":"地域","directoryWeight":0,"id":332,"isShow":1,"level":2,"parentId":312,"rootId":312}],"directoryName":"政务","directoryWeight":5,"id":312,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"学校","directoryWeight":4,"id":331,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"机构","directoryWeight":3,"id":330,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[{"directoryName":"新闻联播","directoryWeight":3,"id":79,"isShow":1,"level":3,"parentId":75,"rootId":74},{"directoryName":"第三季","directoryWeight":2,"id":78,"isShow":1,"level":3,"parentId":75,"rootId":74},{"directoryName":"三级","directoryWeight":1,"id":76,"isShow":1,"level":3,"parentId":75,"rootId":74}],"directoryName":"短视频","directoryWeight":1,"id":75,"isShow":1,"level":2,"parentId":74,"rootId":74}],"directoryName":"创作","directoryWeight":3,"id":74,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"教学","directoryWeight":2,"id":72,"isShow":1,"level":2,"parentId":64,"rootId":64},{"children":[],"directoryName":"热门","directoryWeight":1,"id":73,"isShow":1,"level":2,"parentId":64,"rootId":64},{"children":[],"directoryName":"赛事","directoryWeight":1,"id":71,"isShow":1,"level":2,"parentId":64,"rootId":64}],"directoryName":"游戏","directoryWeight":2,"id":64,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"新闻","directoryWeight":1,"id":315,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"趣闻","directoryWeight":6,"id":70,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"时政","directoryWeight":5,"id":69,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"农业","directoryWeight":3,"id":68,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"娱乐","directoryWeight":3,"id":67,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"科技","directoryWeight":2,"id":66,"isShow":1,"level":2,"parentId":63,"rootId":63},{"children":[],"directoryName":"国际","directoryWeight":1,"id":65,"isShow":1,"level":2,"parentId":63,"rootId":63}],"directoryName":"新闻","directoryWeight":1,"id":63,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"公安","directoryWeight":0,"id":388,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"dddd","directoryWeight":0,"id":387,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"健康","directoryWeight":0,"id":384,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"综合","directoryWeight":0,"id":328,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"房产","directoryWeight":0,"id":327,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"健康","directoryWeight":0,"id":318,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"历史","directoryWeight":0,"id":310,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[],"directoryName":"dddd","directoryWeight":0,"id":309,"isShow":1,"level":1,"parentId":0,"rootId":0},{"children":[{"children":[],"directoryName":"aaaa","directoryWeight":1,"id":333,"isShow":1,"level":2,"parentId":308,"rootId":308},{"children":[],"directoryName":"qqq","directoryWeight":0,"id":334,"isShow":1,"level":2,"parentId":308,"rootId":308}],"directoryName":"dddd","directoryWeight":0,"id":308,"isShow":1,"level":1,"parentId":0,"rootId":0}],"message":"Success","success":true,"timestamp":1710741803593}`) as ResponseDTO<FollowListItem[]>
18 // res.data.forEach(element => { 18 // res.data.forEach(element => {
19 // this.data.push(element) 19 // this.data.push(element)
20 // }); 20 // });
21 -  
22 - ResourcesUtils.getResourcesJson<ResponseDTO<FollowListItem[]>>('follow_list_data.json', getContext(this)).then((success)=>{  
23 - success.data?.forEach(element => { 21 + MinePageDatasModel.getFollowListData(getContext(this)).then((value)=>{
  22 + this.data.push(new FollowListItem("我的"))
  23 + value.forEach((element)=>{
24 this.data.push(element) 24 this.data.push(element)
25 - }); 25 + })
26 console.log("ycg",this.data.length.toString()); 26 console.log("ycg",this.data.length.toString());
  27 + if(this.controller != null && this.data.length>1 && this.changeIndex === 1){
  28 + //个人主页 跳转 关注页 tab 2
  29 + let intervalID = setInterval(() => {
  30 + this.currentIndex = this.changeIndex
  31 + this.controller.changeIndex(this.currentIndex)
  32 + clearInterval(intervalID);
  33 + }, 500);
  34 + }
  35 + }).catch((err:Error)=>{
  36 + console.log(TAG,JSON.stringify(err))
27 }) 37 })
28 } 38 }
29 39
1 -import { LazyDataSource } from 'wdKit'; 1 +import { LazyDataSource, StringUtils } from 'wdKit';
  2 +import MinePageDatasModel from '../../../../model/MinePageDatasModel';
2 import { FollowListDetailItem } from '../../../../viewmodel/FollowListDetailItem' 3 import { FollowListDetailItem } from '../../../../viewmodel/FollowListDetailItem'
  4 +import { FollowListDetailRequestItem } from '../../../../viewmodel/FollowListDetailRequestItem';
  5 +import { FollowListStatusRequestItem } from '../../../../viewmodel/FollowListStatusRequestItem';
  6 +import { MineFollowListDetailItem } from '../../../../viewmodel/MineFollowListDetailItem';
  7 +import { QueryListIsFollowedItem } from '../../../../viewmodel/QueryListIsFollowedItem';
3 import { ListHasNoMoreDataUI } from '../../../reusable/ListHasNoMoreDataUI'; 8 import { ListHasNoMoreDataUI } from '../../../reusable/ListHasNoMoreDataUI';
4 9
5 const TAG = "FollowListDetailUI" 10 const TAG = "FollowListDetailUI"
@@ -7,11 +12,10 @@ const TAG = "FollowListDetailUI" @@ -7,11 +12,10 @@ const TAG = "FollowListDetailUI"
7 export struct FollowListDetailUI{ 12 export struct FollowListDetailUI{
8 @State creatorDirectoryId:number = -1; 13 @State creatorDirectoryId:number = -1;
9 @State data: LazyDataSource<FollowListDetailItem> = new LazyDataSource(); 14 @State data: LazyDataSource<FollowListDetailItem> = new LazyDataSource();
  15 + @State count:number = 0;
10 @State isLoading:boolean = false 16 @State isLoading:boolean = false
11 @State hasMore:boolean = true 17 @State hasMore:boolean = true
12 curPageNum:number = 1; 18 curPageNum:number = 1;
13 - headUrl = "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th211436299/GLN.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg"  
14 -  
15 19
16 aboutToAppear(){ 20 aboutToAppear(){
17 console.log("YCG","aboutToAppear==="+this.creatorDirectoryId); 21 console.log("YCG","aboutToAppear==="+this.creatorDirectoryId);
@@ -20,59 +24,129 @@ export struct FollowListDetailUI{ @@ -20,59 +24,129 @@ export struct FollowListDetailUI{
20 24
21 build(){ 25 build(){
22 Column(){ 26 Column(){
23 - List({ space: 3 }) {  
24 - LazyForEach(this.data, (item: FollowListDetailItem, index: number = 0) => {  
25 - ListItem() {  
26 - ChildComponent({data: item}) 27 + if(this.count === 0){
  28 + ListHasNoMoreDataUI({style:2})
  29 + .height('100%')
  30 + }else{
  31 + List({ space: 3 }) {
  32 + LazyForEach(this.data, (item: FollowListDetailItem, index: number = 0) => {
  33 + ListItem() {
  34 + ChildComponent({data: item})
  35 + }
  36 + .onClick(() => {
  37 + })
  38 + }, (item: FollowListDetailItem, index: number) => index.toString())
  39 +
  40 + //没有更多数据 显示提示
  41 + if(!this.hasMore){
  42 + ListItem(){
  43 + ListHasNoMoreDataUI()
  44 + }
27 } 45 }
28 - .onClick(() => {  
29 - })  
30 - }, (item: FollowListDetailItem, index: number) => index.toString()) 46 + }.cachedCount(10)
  47 + .padding({left:'31lpx',right:'31lpx'})
  48 + .layoutWeight(1)
  49 + .scrollBar(BarState.Off)
  50 + .onReachEnd(()=>{
  51 + console.log(TAG,"触底了");
  52 + if(!this.isLoading){
  53 + this.isLoading = true
  54 + //加载分页数据
  55 + this.getNewPageData()
  56 + }
  57 + })
  58 + }
  59 + }
  60 + .width('100%')
  61 + }
31 62
  63 + getNewPageData(){
  64 + this.isLoading = true
  65 + //我的关注列表
  66 + if (this.creatorDirectoryId === -1){
  67 + if(this.hasMore){
  68 + let object = new FollowListDetailRequestItem(20,this.curPageNum)
32 69
33 - //没有更多数据 显示提示  
34 - if(!this.hasMore){  
35 - ListItem(){  
36 - ListHasNoMoreDataUI() 70 + MinePageDatasModel.getMineFollowListData(object,getContext(this)).then((value)=>{
  71 + if (!this.data || value.list.length == 0){
  72 + this.hasMore = false
  73 + }else{
  74 + value.list.forEach((value)=>{
  75 + this.data.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1"))
  76 + })
  77 + this.data.notifyDataReload()
  78 + this.count = this.data.totalCount()
  79 + if (this.data.totalCount() < value.totalCount) {
  80 + this.curPageNum++
  81 + }else {
  82 + this.hasMore = false
  83 + }
37 } 84 }
  85 + this.isLoading = false
  86 + }).catch((err:Error)=>{
  87 + console.log(TAG,"请求失败")
  88 + this.isLoading = false
  89 + })
  90 + }
  91 + }else{
  92 + if(this.hasMore){
  93 + if(this.creatorDirectoryId === 120){
  94 + console.log("console");
38 } 95 }
39 - }.cachedCount(7)  
40 - .padding({left:'31lpx',right:'31lpx'})  
41 - .layoutWeight(1)  
42 - .onReachEnd(()=>{  
43 - console.log(TAG,"触底了");  
44 - if(!this.isLoading){  
45 - this.isLoading = true  
46 - //加载分页数据  
47 - this.getNewPageData()  
48 - }  
49 - })  
50 - }.layoutWeight(1) 96 + let object = new FollowListDetailRequestItem(this.creatorDirectoryId,20,this.curPageNum)
  97 +
  98 + MinePageDatasModel.getFollowListDetailData(object,getContext(this)).then((value)=>{
  99 + if (!this.data || value.list.length == 0){
  100 + this.hasMore = false
  101 + this.isLoading = false
  102 + }else{
  103 + this.getFollowListStatus(value)
  104 + }
  105 + }).catch((err:Error)=>{
  106 + console.log(TAG,"请求失败")
  107 + this.isLoading = false
  108 + })
  109 + }
  110 + }
51 } 111 }
52 112
53 - getNewPageData(){  
54 - if(this.hasMore){  
55 - if(this.curPageNum>=4){ 113 + getFollowListStatus(value:MineFollowListDetailItem){
  114 + let status = new FollowListStatusRequestItem()
  115 + let data : FollowListDetailItem[] = []
  116 + value.list.forEach((item)=>{
  117 + status.creatorIds.push(new QueryListIsFollowedItem(item.creatorId))
  118 + data.push(new FollowListDetailItem(item.headPhotoUrl,item.cnUserName,item.cnFansNum,item.introduction,item.creatorId,"0"))
  119 + })
  120 +
  121 + MinePageDatasModel.getFollowListStatusData(status,getContext(this)).then((newValue)=>{
  122 + newValue.forEach((item)=>{
  123 + data.forEach((list)=>{
  124 + if (item.creatorId == list.creatorId) {
  125 + list.status = item.status
  126 + }
  127 + })
  128 + })
  129 +
  130 + data.forEach((item)=>{
  131 + this.data.push(new FollowListDetailItem(item.headPhotoUrl,item.cnUserName,item.cnFansNum,item.introduction,item.creatorId,item.status))
  132 + })
  133 +
  134 + this.data.notifyDataReload()
  135 +
  136 + this.count = this.data.totalCount()
  137 + if (this.data.totalCount() < value.totalCount) {
  138 + this.curPageNum++
  139 + }else {
56 this.hasMore = false 140 this.hasMore = false
57 - return  
58 - }  
59 - if(this.curPageNum == 1){  
60 - this.data.push(new FollowListDetailItem(this.headUrl,"人之初,性本善",10,"人之初,性本善"));  
61 - this.data.push(new FollowListDetailItem(this.headUrl,"性相近,习相远",20,"性相近,习相远"));  
62 - this.data.push(new FollowListDetailItem(this.headUrl,"苟不教,性乃迁",30,"苟不教,性乃迁"));  
63 - this.data.push(new FollowListDetailItem(this.headUrl,"教之道,贵以专",40,"教之道,贵以专"));  
64 - this.data.push(new FollowListDetailItem(this.headUrl,"AAAAAAA",50,"教之道,贵以专"));  
65 - this.data.push(new FollowListDetailItem(this.headUrl,"BBBBBBB",60,"教之道,贵以专"));  
66 - this.data.push(new FollowListDetailItem(this.headUrl,"CCCCCCC",70,"教之道,贵以专"));  
67 - }else if(this.curPageNum == 2){  
68 - this.data.push(new FollowListDetailItem(this.headUrl,"昔孟母,择邻处",40,"昔孟母,择邻处"));  
69 - }else if(this.curPageNum == 3){  
70 - this.data.push(new FollowListDetailItem(this.headUrl,"子不学,断机杼",40,"子不学,断机杼"));  
71 } 141 }
  142 +
72 this.isLoading = false 143 this.isLoading = false
73 - this.curPageNum++  
74 - } 144 + }).catch((err:Error)=>{
  145 + console.log(TAG,"请求失败")
  146 + this.isLoading = false
  147 + })
75 } 148 }
  149 +
76 } 150 }
77 151
78 @Component 152 @Component
@@ -84,7 +158,7 @@ struct ChildComponent { @@ -84,7 +158,7 @@ struct ChildComponent {
84 Blank().height('27lpx') 158 Blank().height('27lpx')
85 159
86 Row() { 160 Row() {
87 - Image(this.data.headPhotoUrl) 161 + Image(StringUtils.isEmpty(this.data.headPhotoUrl)?$r('app.media.default_head'):this.data.headPhotoUrl)
88 .objectFit(ImageFit.Auto) 162 .objectFit(ImageFit.Auto)
89 .width('92lpx') 163 .width('92lpx')
90 .height('92lpx') 164 .height('92lpx')
@@ -108,7 +182,7 @@ struct ChildComponent { @@ -108,7 +182,7 @@ struct ChildComponent {
108 }.layoutWeight(1) 182 }.layoutWeight(1)
109 .alignItems(HorizontalAlign.Start) 183 .alignItems(HorizontalAlign.Start)
110 184
111 - if(this.data.isFollow){ 185 + if(this.data.status == "1"){
112 Row(){ 186 Row(){
113 Text(`已关注`) 187 Text(`已关注`)
114 .fontColor($r('app.color.color_CCCCCC')) 188 .fontColor($r('app.color.color_CCCCCC'))
@@ -117,13 +191,14 @@ struct ChildComponent { @@ -117,13 +191,14 @@ struct ChildComponent {
117 .lineHeight('35lpx') 191 .lineHeight('35lpx')
118 }.backgroundColor($r('app.color.color_F5F5F5')) 192 }.backgroundColor($r('app.color.color_F5F5F5'))
119 .borderRadius('6lpx') 193 .borderRadius('6lpx')
  194 + .borderColor($r('app.color.color_F5F5F5'))
120 .borderWidth('2lpx') 195 .borderWidth('2lpx')
121 .justifyContent(FlexAlign.Center) 196 .justifyContent(FlexAlign.Center)
122 .width('100lpx') 197 .width('100lpx')
123 .height('46lpx') 198 .height('46lpx')
124 .margin({left:'4lpx',top:'23lpx'}) 199 .margin({left:'4lpx',top:'23lpx'})
125 .onClick(()=>{ 200 .onClick(()=>{
126 - this.data.isFollow = false 201 + this.data.status = "0"
127 }) 202 })
128 }else{ 203 }else{
129 Row(){ 204 Row(){
@@ -136,7 +211,7 @@ struct ChildComponent { @@ -136,7 +211,7 @@ struct ChildComponent {
136 .fontSize('23lpx') 211 .fontSize('23lpx')
137 .fontWeight('500lpx') 212 .fontWeight('500lpx')
138 .lineHeight('35lpx') 213 .lineHeight('35lpx')
139 - }.borderColor($r('app.color.color_ED2800')) 214 + }.borderColor($r('app.color.color_1AED2800'))
140 .borderRadius('6lpx') 215 .borderRadius('6lpx')
141 .borderWidth('2lpx') 216 .borderWidth('2lpx')
142 .justifyContent(FlexAlign.Center) 217 .justifyContent(FlexAlign.Center)
@@ -144,7 +219,7 @@ struct ChildComponent { @@ -144,7 +219,7 @@ struct ChildComponent {
144 .height('46lpx') 219 .height('46lpx')
145 .margin({left:'4lpx',top:'23lpx'}) 220 .margin({left:'4lpx',top:'23lpx'})
146 .onClick(()=>{ 221 .onClick(()=>{
147 - this.data.isFollow = true 222 + this.data.status = "1"
148 }) 223 })
149 } 224 }
150 }.alignItems(VerticalAlign.Top) 225 }.alignItems(VerticalAlign.Top)
@@ -16,11 +16,11 @@ export struct FollowThirdTabsComponent{ @@ -16,11 +16,11 @@ export struct FollowThirdTabsComponent{
16 16
17 build(){ 17 build(){
18 if(this.data != null){ 18 if(this.data != null){
19 - if(this.data[this.firstIndex].children[this.secondIndex].children == null || this.data[this.firstIndex].children[this.secondIndex].children.length == 0){  
20 - FollowListDetailUI({creatorDirectoryId:this.data[this.firstIndex].children[this.secondIndex].id})  
21 - }else{  
22 - this.FollowThirdUI()  
23 - } 19 + if(this.data[this.firstIndex].children[this.secondIndex].children == null || this.data[this.firstIndex].children[this.secondIndex].children.length == 0){
  20 + FollowListDetailUI({creatorDirectoryId:this.data[this.firstIndex].children[this.secondIndex].id})
  21 + }else{
  22 + this.FollowThirdUI()
  23 + }
24 } 24 }
25 } 25 }
26 26
  1 +import { LazyDataSource, StringUtils } from 'wdKit';
  2 +import MinePageDatasModel from '../../../../model/MinePageDatasModel';
  3 +import { Params } from '../../../../repository/bean/Params';
  4 +import RouteManager from '../../../../utils/RouteManager';
  5 +import { CommentListItem } from '../../../../viewmodel/CommentListItem';
  6 +import { FollowListDetailItem } from '../../../../viewmodel/FollowListDetailItem';
  7 +import { FollowListDetailRequestItem } from '../../../../viewmodel/FollowListDetailRequestItem';
  8 +import { ListHasNoMoreDataUI } from '../../../reusable/ListHasNoMoreDataUI';
  9 +
  10 +const TAG = "HomePageBottomComponent"
  11 +@Component
  12 +export struct HomePageBottomComponent{
  13 + @State style:number = 0; //0 评论 ,1 关注
  14 + @State data_follow: LazyDataSource<FollowListDetailItem> = new LazyDataSource();
  15 + @State data_comment: LazyDataSource<CommentListItem> = new LazyDataSource();
  16 + @State isLoading:boolean = false
  17 + @State hasMore:boolean = true
  18 + curPageNum:number = 1;
  19 + @State count:number = 0;
  20 +
  21 + aboutToAppear(){
  22 + this.getNewPageData()
  23 + }
  24 +
  25 + build(){
  26 + Column(){
  27 + Divider().width('100%')
  28 + .height('2lpx')
  29 + .strokeWidth('1lpx')
  30 + .backgroundColor($r('app.color.color_EDEDED'))
  31 +
  32 + if(this.count === 0){
  33 + ListHasNoMoreDataUI({style:2})
  34 + .height('100%')
  35 + }else{
  36 + if(this.style === 1){
  37 + List({ space: 3 }) {
  38 +
  39 + ListItem() {
  40 + Row(){
  41 + Text("关注更多人民号")
  42 + .fontWeight('400lpx')
  43 + .fontColor($r('app.color.color_222222'))
  44 + .lineHeight('38lpx')
  45 + .fontSize('27lpx')
  46 + .textAlign(TextAlign.Center)
  47 + .margin({right:'4lpx'})
  48 + Image($r('app.media.arrow_icon_right'))
  49 + .objectFit(ImageFit.Auto)
  50 + .width('27lpx')
  51 + .height('27lpx')
  52 + }.height('69lpx')
  53 + .width('659lpx')
  54 + .alignItems(VerticalAlign.Center)
  55 + .justifyContent(FlexAlign.Center)
  56 + .backgroundColor($r('app.color.color_F5F5F5'))
  57 + .margin({top:'31lpx',bottom:'4lpx'})
  58 + }.onClick(()=>{
  59 + let params: Params = {
  60 + pageID: "1"
  61 + }
  62 + RouteManager.jumpNewPage("pages/FollowListPage",params)
  63 + })
  64 +
  65 + LazyForEach(this.data_follow, (item: FollowListDetailItem, index: number = 0) => {
  66 + ListItem() {
  67 + ChildFollowComponent({data: item})
  68 + }
  69 + .onClick(() => {
  70 + })
  71 + }, (item: FollowListDetailItem, index: number) => index.toString())
  72 +
  73 + //没有更多数据 显示提示
  74 + if(!this.hasMore){
  75 + ListItem(){
  76 + ListHasNoMoreDataUI()
  77 + }
  78 + }
  79 + }.cachedCount(15)
  80 + .padding({left:'31lpx',right:'31lpx'})
  81 + .layoutWeight(1)
  82 + .scrollBar(BarState.Off)
  83 + .edgeEffect(EdgeEffect.None)
  84 + // .nestedScroll({
  85 + // scrollForward: NestedScrollMode.PARENT_FIRST,
  86 + // scrollBackward: NestedScrollMode.SELF_FIRST
  87 + // })
  88 + .onReachEnd(()=>{
  89 + console.log(TAG,"触底了");
  90 + if(!this.isLoading){
  91 + this.isLoading = true
  92 + //加载分页数据
  93 + this.getNewPageData()
  94 + }
  95 + })
  96 + }else if(this.style === 0){
  97 + List({ space: 3 }) {
  98 + LazyForEach(this.data_comment, (item: CommentListItem, index: number = 0) => {
  99 + ListItem() {
  100 + ChildCommentComponent({data: item})
  101 + }
  102 + .onClick(() => {
  103 + })
  104 + }, (item: CommentListItem, index: number) => index.toString())
  105 +
  106 + //没有更多数据 显示提示
  107 + if(!this.hasMore){
  108 + ListItem(){
  109 + ListHasNoMoreDataUI()
  110 + }
  111 + }
  112 + }.cachedCount(15)
  113 + .layoutWeight(1)
  114 + .scrollBar(BarState.Off)
  115 + .edgeEffect(EdgeEffect.None)
  116 + // .nestedScroll({
  117 + // scrollForward: NestedScrollMode.PARENT_FIRST,
  118 + // scrollBackward: NestedScrollMode.SELF_FIRST
  119 + // })
  120 + .onReachEnd(()=>{
  121 + console.log(TAG,"触底了");
  122 + if(!this.isLoading){
  123 + this.isLoading = true
  124 + //加载分页数据
  125 + this.getNewPageData()
  126 + }
  127 + })
  128 + }
  129 + }
  130 + }
  131 + .width('100%')
  132 + }
  133 +
  134 +
  135 + @Styles
  136 + listStyle() {
  137 + .backgroundColor(Color.White)
  138 + .height(72)
  139 + .width("100%")
  140 + .borderRadius(12)
  141 + }
  142 +
  143 + getNewPageData(){
  144 + this.isLoading = true
  145 + //我的关注列表
  146 + if (this.style === 1){
  147 + if(this.hasMore){
  148 + let object = new FollowListDetailRequestItem(20,this.curPageNum)
  149 +
  150 + MinePageDatasModel.getMineFollowListData(object,getContext(this)).then((value)=>{
  151 + if (!this.data_follow || value.list.length == 0){
  152 + this.hasMore = false
  153 + }else{
  154 + value.list.forEach((value)=>{
  155 + this.data_follow.push(new FollowListDetailItem(value.attentionHeadPhotoUrl,value.attentionUserName,value.fansNum,value.introduction,value.attentionCreatorId,"1"))
  156 + })
  157 + this.data_follow.notifyDataReload()
  158 + this.count = this.data_follow.totalCount()
  159 + if (this.data_follow.totalCount() < value.totalCount) {
  160 + this.curPageNum++
  161 + }else {
  162 + this.hasMore = false
  163 + }
  164 + }
  165 + this.isLoading = false
  166 + }).catch((err:Error)=>{
  167 + console.log(TAG,"请求失败")
  168 + this.isLoading = false
  169 + })
  170 + }
  171 + }else if(this.style === 0){
  172 + if(this.hasMore){
  173 + let object = new FollowListDetailRequestItem(20,this.curPageNum)
  174 +
  175 + MinePageDatasModel.getMineCommentListData(object,getContext(this)).then((value)=>{
  176 + if (!this.data_comment || value.list.length == 0){
  177 + this.hasMore = false
  178 + }else{
  179 + value.list.forEach((value)=>{
  180 + this.data_comment.push(new CommentListItem(value.fromUserHeader,value.fromUserName,value.targetTitle,value.createTime,value.commentContent))
  181 + })
  182 + this.data_comment.notifyDataReload()
  183 + this.count = this.data_comment.totalCount()
  184 + if (this.data_comment.totalCount() < value.totalCount) {
  185 + this.curPageNum++
  186 + }else {
  187 + this.hasMore = false
  188 + }
  189 + }
  190 + this.isLoading = false
  191 + }).catch((err:Error)=>{
  192 + console.log(TAG,"请求失败")
  193 + this.isLoading = false
  194 + })
  195 + }
  196 + }
  197 + }
  198 +}
  199 +
  200 +@Component
  201 +struct ChildFollowComponent {
  202 + @ObjectLink data: FollowListDetailItem
  203 +
  204 + build() {
  205 + Column(){
  206 + Blank().height('27lpx')
  207 +
  208 + Row() {
  209 + Image(StringUtils.isEmpty(this.data.headPhotoUrl)?$r('app.media.default_head'):this.data.headPhotoUrl)
  210 + .objectFit(ImageFit.Auto)
  211 + .width('92lpx')
  212 + .height('92lpx')
  213 + .margin({right:'15lpx'})
  214 +
  215 + Column(){
  216 + Text(this.data.cnUserName)
  217 + .fontWeight('400lpx')
  218 + .fontSize('31lpx')
  219 + .lineHeight('38lpx')
  220 + .fontColor($r('app.color.color_222222'))
  221 + Text(`粉丝${this.data.cnFansNum}`)
  222 + .fontColor($r('app.color.color_B0B0B0'))
  223 + .fontSize('23lpx')
  224 + .maxLines(1)
  225 + Text(`${this.data.introduction}`)
  226 + .fontColor($r('app.color.color_B0B0B0'))
  227 + .fontSize('23lpx')
  228 + .maxLines(2)
  229 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  230 + }.layoutWeight(1)
  231 + .alignItems(HorizontalAlign.Start)
  232 +
  233 + if(this.data.status == "1"){
  234 + Row(){
  235 + Text(`已关注`)
  236 + .fontColor($r('app.color.color_CCCCCC'))
  237 + .fontSize('23lpx')
  238 + .fontWeight('500lpx')
  239 + .lineHeight('35lpx')
  240 + }.backgroundColor($r('app.color.color_F5F5F5'))
  241 + .borderRadius('6lpx')
  242 + .borderColor($r('app.color.color_F5F5F5'))
  243 + .borderWidth('2lpx')
  244 + .justifyContent(FlexAlign.Center)
  245 + .width('100lpx')
  246 + .height('46lpx')
  247 + .margin({left:'4lpx',top:'23lpx'})
  248 + .onClick(()=>{
  249 + this.data.status = "0"
  250 + })
  251 + }else{
  252 + Row(){
  253 + Image($r('app.media.follow_icon'))
  254 + .margin({right:'4lpx'})
  255 + .width('23lpx')
  256 + .height('23lpx')
  257 + Text(`关注`)
  258 + .fontColor($r('app.color.color_ED2800'))
  259 + .fontSize('23lpx')
  260 + .fontWeight('500lpx')
  261 + .lineHeight('35lpx')
  262 + }.borderColor($r('app.color.color_1AED2800'))
  263 + .borderRadius('6lpx')
  264 + .borderWidth('2lpx')
  265 + .justifyContent(FlexAlign.Center)
  266 + .width('100lpx')
  267 + .height('46lpx')
  268 + .margin({left:'4lpx',top:'23lpx'})
  269 + .onClick(()=>{
  270 + this.data.status = "1"
  271 + })
  272 + }
  273 + }.alignItems(VerticalAlign.Top)
  274 + .width('100%')
  275 + .layoutWeight(1)
  276 +
  277 + Divider().width('100%')
  278 + .height('2lpx')
  279 + .strokeWidth('1lpx')
  280 + .backgroundColor($r('app.color.color_EDEDED'))
  281 +
  282 + }.height('146lpx')
  283 + .justifyContent(FlexAlign.Center)
  284 + }
  285 +}
  286 +
  287 +@Component
  288 +struct ChildCommentComponent {
  289 + @ObjectLink data: CommentListItem
  290 +
  291 + build() {
  292 + Column(){
  293 + Row() {
  294 + Image(StringUtils.isEmpty(this.data.fromUserHeader)?$r('app.media.default_head'):this.data.fromUserHeader)
  295 + .objectFit(ImageFit.Auto)
  296 + .width('69lpx')
  297 + .height('69lpx')
  298 + .margin({right:'15lpx'})
  299 +
  300 + Column(){
  301 + Text(this.data.fromUserName)
  302 + .fontSize('25lpx')
  303 + .lineHeight('35lpx')
  304 + .fontWeight('600lpx')
  305 + .fontColor($r('app.color.color_222222'))
  306 + .margin({bottom:'6lpx'})
  307 + .maxLines(1)
  308 + Text(`${this.data.createTime}`)
  309 + .fontColor($r('app.color.color_B0B0B0'))
  310 + .fontSize('23lpx')
  311 + .lineHeight('31lpx')
  312 + .fontWeight('400lpx')
  313 + .maxLines(1)
  314 + }.layoutWeight(1)
  315 + .alignItems(HorizontalAlign.Start)
  316 + }
  317 + .margin({bottom:'10lpx'})
  318 + .width('100%')
  319 + .height('108lpx')
  320 + .padding({left:'31lpx',right:'31lpx'})
  321 +
  322 + Row(){
  323 + Text(this.data.commentContent)
  324 + .maxLines(3)
  325 + .textOverflow({ overflow: TextOverflow.Ellipsis })
  326 + .fontWeight('400lpx')
  327 + .fontSize('31lpx')
  328 + .lineHeight('46lpx')
  329 + .fontColor($r('app.color.color_222222'))
  330 + .margin({bottom:'10lpx'})
  331 + }.padding({left:'31lpx',right:'31lpx'})
  332 + .width('100%')
  333 +
  334 + Row(){
  335 + Text(this.data.targetTitle)
  336 + .fontWeight('400lpx')
  337 + .fontColor($r('app.color.color_222222'))
  338 + .lineHeight('38lpx')
  339 + .fontSize('27lpx')
  340 + .textAlign(TextAlign.Center)
  341 + .margin({right:'4lpx'})
  342 + .maxLines(3)
  343 + .width('616lpx')
  344 + Image($r('app.media.arrow_icon_right'))
  345 + .objectFit(ImageFit.Auto)
  346 + .width('27lpx')
  347 + .height('27lpx')
  348 + }
  349 + .padding({top:'17lpx',bottom:'17lpx',left:'23lpx',right:'23lpx'})
  350 + .width('662lpx')
  351 + .backgroundColor($r('app.color.color_F5F5F5'))
  352 + .margin({top:'19lpx',bottom:'31lpx'})
  353 +
  354 + Divider().width('100%')
  355 + .height('12lpx')
  356 + .strokeWidth('12lpx')
  357 + .backgroundColor($r('app.color.color_F5F5F5'))
  358 +
  359 + }
  360 + .justifyContent(FlexAlign.Center)
  361 + }
  362 +}
1 @Component 1 @Component
2 export struct ListHasNoMoreDataUI{ 2 export struct ListHasNoMoreDataUI{
  3 + @State style:number = 1;
  4 +
3 build(){ 5 build(){
4 - Row(){  
5 - Text("已显示全部内容")  
6 - .fontColor($r('app.color.color_999999'))  
7 - .fontWeight('500lpx')  
8 - .fontSize('23lpx')  
9 - }.justifyContent(FlexAlign.Center)  
10 - .width('100%')  
11 - .margin({top:'20lpx',bottom:'20lpx'}) 6 + if (this.style === 1){
  7 + Row(){
  8 + Text("已显示全部内容")
  9 + .fontColor($r('app.color.color_999999'))
  10 + .fontWeight('500lpx')
  11 + .fontSize('23lpx')
  12 + }.justifyContent(FlexAlign.Center)
  13 + .width('100%')
  14 + .margin({top:'20lpx',bottom:'20lpx'})
  15 + }else if (this.style === 2){
  16 + Column(){
  17 + Image($r('app.media.empty_icon'))
  18 + .width('200lpx')
  19 + .height('200lpx')
  20 + .objectFit(ImageFit.Auto)
  21 + Text("暂无内容")
  22 + .fontColor($r('app.color.color_999999'))
  23 + .fontWeight('500lpx')
  24 + .fontSize('23lpx')
  25 + }
  26 + .justifyContent(FlexAlign.Center)
  27 + .width('100%')
  28 + .height('100%')
  29 + }
  30 +
  31 +
12 } 32 }
13 } 33 }
@@ -7,6 +7,15 @@ import HashMap from '@ohos.util.HashMap'; @@ -7,6 +7,15 @@ import HashMap from '@ohos.util.HashMap';
7 import { ResponseDTO, WDHttp } from 'wdNetwork'; 7 import { ResponseDTO, WDHttp } from 'wdNetwork';
8 import { MineAppointmentListItem } from '../viewmodel/MineAppointmentListItem'; 8 import { MineAppointmentListItem } from '../viewmodel/MineAppointmentListItem';
9 import { Logger, ResourcesUtils } from 'wdKit'; 9 import { Logger, ResourcesUtils } from 'wdKit';
  10 +import { MineFollowListDetailItem } from '../viewmodel/MineFollowListDetailItem';
  11 +import { FollowListDetailRequestItem } from '../viewmodel/FollowListDetailRequestItem';
  12 +import { FollowListItem } from '../viewmodel/FollowListItem';
  13 +import { MineFollowListItem } from '../viewmodel/MineFollowListItem';
  14 +import { QueryListIsFollowedItem } from '../viewmodel/QueryListIsFollowedItem';
  15 +import { MineCommentListDetailItem } from '../viewmodel/MineCommentListDetailItem';
  16 +import { FollowListStatusRequestItem } from '../viewmodel/FollowListStatusRequestItem';
  17 +import { MineUserLevelItem } from '../viewmodel/MineUserLevelItem';
  18 +import { MineUserDetailItem } from '../viewmodel/MineUserDetailItem';
10 const TAG = "MinePageDatasModel" 19 const TAG = "MinePageDatasModel"
11 20
12 /** 21 /**
@@ -137,6 +146,286 @@ class MinePageDatasModel{ @@ -137,6 +146,286 @@ class MinePageDatasModel{
137 return compRes.data 146 return compRes.data
138 } 147 }
139 148
  149 + /**
  150 + * 关注频道详情
  151 + * @param pageSize
  152 + * @param pageNum
  153 + * @param context
  154 + * @returns
  155 + */
  156 + getFollowListDetailData(params:FollowListDetailRequestItem,context: Context): Promise<MineFollowListDetailItem> {
  157 + return new Promise<MineFollowListDetailItem>((success, error) => {
  158 + Logger.info(TAG, `getAppointmentList start`);
  159 + this.fetchFollowListDetailData(params).then((navResDTO: ResponseDTO<MineFollowListDetailItem>) => {
  160 + if (!navResDTO || navResDTO.code != 0) {
  161 + success(this.getFollowListDetailDataLocal(context))
  162 + return
  163 + }
  164 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  165 + let navigationBean = navResDTO.data as MineFollowListDetailItem
  166 + success(navigationBean);
  167 + }).catch((err: Error) => {
  168 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  169 + success(this.getFollowListDetailDataLocal(context))
  170 + })
  171 + })
  172 + }
  173 +
  174 + async getFollowListDetailDataLocal(context: Context): Promise<MineFollowListDetailItem> {
  175 + Logger.info(TAG, `getBottomNavDataMock start`);
  176 + let compRes: ResponseDTO<MineFollowListDetailItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineFollowListDetailItem>>('follow_list_detail_data_id120.json',context );
  177 + if (!compRes || !compRes.data) {
  178 + Logger.info(TAG, `getAppointmentListDataLocal compRes is empty`);
  179 + return new MineFollowListDetailItem()
  180 + }
  181 + Logger.info(TAG, `getAppointmentListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  182 + return compRes.data
  183 + }
  184 +
  185 + fetchFollowListDetailData(object:FollowListDetailRequestItem) {
  186 + let url = HttpUrlUtils.getFollowListDetailDataUrl()
  187 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  188 + return WDHttp.post<ResponseDTO<MineFollowListDetailItem>>(url, object,headers)
  189 + };
  190 +
  191 + /**
  192 + * 关注频道列表
  193 + * @returns
  194 + */
  195 + fetchFollowListData() {
  196 + let url = HttpUrlUtils.getFollowListDataUrl()
  197 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  198 + return WDHttp.get<ResponseDTO<FollowListItem[]>>(url, headers)
  199 + };
  200 +
  201 + getFollowListData(context: Context): Promise<FollowListItem[]> {
  202 + return new Promise<FollowListItem[]>((success, error) => {
  203 + Logger.info(TAG, `getAppointmentList start`);
  204 + this.fetchFollowListData().then((navResDTO: ResponseDTO<FollowListItem[]>) => {
  205 + if (!navResDTO || navResDTO.code != 0) {
  206 + success(this.getFollowListDataLocal(context))
  207 + return
  208 + }
  209 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  210 + let navigationBean = navResDTO.data as FollowListItem[]
  211 + success(navigationBean);
  212 + }).catch((err: Error) => {
  213 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  214 + success(this.getFollowListDataLocal(context))
  215 + })
  216 + })
  217 + }
  218 +
  219 + async getFollowListDataLocal(context: Context): Promise<FollowListItem[]> {
  220 + Logger.info(TAG, `getFollowListDataLocal start`);
  221 + let compRes: ResponseDTO<FollowListItem[]> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<FollowListItem[]>>('follow_list_data.json' ,context);
  222 + if (!compRes || !compRes.data) {
  223 + Logger.info(TAG, `getFollowListDataLocal compRes is empty`);
  224 + return []
  225 + }
  226 + Logger.info(TAG, `getFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  227 + return compRes.data
  228 + }
  229 +
  230 + /**
  231 + * 我的关注列表
  232 + * @param params
  233 + * @param context
  234 + * @returns
  235 + */
  236 + getMineFollowListData(params:FollowListDetailRequestItem,context: Context): Promise<MineFollowListItem> {
  237 + return new Promise<MineFollowListItem>((success, error) => {
  238 + Logger.info(TAG, `getAppointmentList start`);
  239 + this.fetchMineDetailFollowListData(params).then((navResDTO: ResponseDTO<MineFollowListItem>) => {
  240 + if (!navResDTO || navResDTO.code != 0) {
  241 + success(this.getMineFollowListDataLocal(context))
  242 + return
  243 + }
  244 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  245 + let navigationBean = navResDTO.data as MineFollowListItem
  246 + success(navigationBean);
  247 + }).catch((err: Error) => {
  248 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  249 + success(this.getMineFollowListDataLocal(context))
  250 + })
  251 + })
  252 + }
  253 +
  254 + fetchMineDetailFollowListData(object:FollowListDetailRequestItem) {
  255 + let url = HttpUrlUtils.getMineFollowListDataUrl()+`?pageSize=${object.pageSize}&pageNum=${object.pageNum}`
  256 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  257 + return WDHttp.get<ResponseDTO<MineFollowListItem>>(url, headers)
  258 + };
  259 +
  260 + async getMineFollowListDataLocal(context: Context): Promise<MineFollowListItem> {
  261 + Logger.info(TAG, `getMineFollowListDataLocal start`);
  262 + let compRes: ResponseDTO<MineFollowListItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineFollowListItem>>('mine_follow_list_data.json' ,context);
  263 + if (!compRes || !compRes.data) {
  264 + Logger.info(TAG, `getMineFollowListDataLocal compRes is empty`);
  265 + return new MineFollowListItem()
  266 + }
  267 + Logger.info(TAG, `getMineFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  268 + return compRes.data
  269 + }
  270 +
  271 + /**
  272 + * 查询是否被关注 列表
  273 + * @param params
  274 + * @param context
  275 + * @returns
  276 + */
  277 + getFollowListStatusData(params:FollowListStatusRequestItem,context: Context): Promise<QueryListIsFollowedItem[]> {
  278 + return new Promise<QueryListIsFollowedItem[]>((success, error) => {
  279 + Logger.info(TAG, `getAppointmentList start`);
  280 + this.fetchFollowListStatusData(params).then((navResDTO: ResponseDTO<QueryListIsFollowedItem[]>) => {
  281 + if (!navResDTO || navResDTO.code != 0) {
  282 + success(this.getFollowListStatusDataLocal(context))
  283 + return
  284 + }
  285 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  286 + let navigationBean = navResDTO.data as QueryListIsFollowedItem[]
  287 + success(navigationBean);
  288 + }).catch((err: Error) => {
  289 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  290 + success(this.getFollowListStatusDataLocal(context))
  291 + })
  292 + })
  293 + }
  294 +
  295 + fetchFollowListStatusData(object:FollowListStatusRequestItem) {
  296 + let url = HttpUrlUtils.getFollowListStatusDataUrl()
  297 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  298 + return WDHttp.post<ResponseDTO<QueryListIsFollowedItem[]>>(url,object, headers)
  299 + };
  300 +
  301 + async getFollowListStatusDataLocal(context: Context): Promise<QueryListIsFollowedItem[]> {
  302 + Logger.info(TAG, `getMineFollowListDataLocal start`);
  303 + let compRes: ResponseDTO<QueryListIsFollowedItem[]> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<QueryListIsFollowedItem[]>>('follow_list_id120_isfocus_data.json',context );
  304 + if (!compRes || !compRes.data) {
  305 + Logger.info(TAG, `getMineFollowListDataLocal compRes is empty`);
  306 + return []
  307 + }
  308 + Logger.info(TAG, `getMineFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  309 + return compRes.data
  310 + }
  311 +
  312 +
  313 + /**
  314 + * 我的评论列表
  315 + * @param params
  316 + * @param context
  317 + * @returns
  318 + */
  319 + getMineCommentListData(params:FollowListDetailRequestItem,context: Context): Promise<MineCommentListDetailItem> {
  320 + return new Promise<MineCommentListDetailItem>((success, error) => {
  321 + Logger.info(TAG, `getAppointmentList start`);
  322 + this.fetchMineCommentListData(params).then((navResDTO: ResponseDTO<MineCommentListDetailItem>) => {
  323 + if (!navResDTO || navResDTO.code != 0) {
  324 + success(this.getMineCommentListDataLocal(context))
  325 + return
  326 + }
  327 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  328 + let navigationBean = navResDTO.data as MineCommentListDetailItem
  329 + success(navigationBean);
  330 + }).catch((err: Error) => {
  331 + Logger.error(TAG, `fetchAppointmentListDataApi catch, error.name : ${err.name}, error.message:${err.message}`);
  332 + success(this.getMineCommentListDataLocal(context))
  333 + })
  334 + })
  335 + }
  336 +
  337 + fetchMineCommentListData(object:FollowListDetailRequestItem) {
  338 + let url = HttpUrlUtils.getMineCommentListDataUrl()+`?pageSize=${object.pageSize}&pageNum=${object.pageNum}`
  339 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  340 + return WDHttp.get<ResponseDTO<MineCommentListDetailItem>>(url, headers)
  341 + };
  342 +
  343 + async getMineCommentListDataLocal(context: Context): Promise<MineCommentListDetailItem> {
  344 + Logger.info(TAG, `getMineFollowListDataLocal start`);
  345 + let compRes: ResponseDTO<MineCommentListDetailItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineCommentListDetailItem>>('mine_comment_list_data.json',context);
  346 + if (!compRes || !compRes.data) {
  347 + Logger.info(TAG, `getMineFollowListDataLocal compRes is empty`);
  348 + return new MineCommentListDetailItem()
  349 + }
  350 + Logger.info(TAG, `getMineFollowListDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  351 + return compRes.data
  352 + }
  353 +
  354 + /**
  355 + * 个人中心 获取用户等级
  356 + */
  357 + getUserLevelData(context: Context): Promise<MineUserLevelItem> {
  358 + return new Promise<MineUserLevelItem>((success, error) => {
  359 + Logger.info(TAG, `getAppointmentList start`);
  360 + this.fetchMineUserLevelData().then((navResDTO: ResponseDTO<MineUserLevelItem>) => {
  361 + if (!navResDTO || navResDTO.code != 0) {
  362 + success(this.getMineUserLevelDataLocal(context))
  363 + return
  364 + }
  365 + Logger.info(TAG, "getAppointmentList then,AppointmentResDTO.timeStamp:" + navResDTO.timestamp);
  366 + let navigationBean = navResDTO.data as MineUserLevelItem
  367 + success(navigationBean);
  368 + }).catch((err: Error) => {
  369 + Logger.error(TAG, `fetchMineUserLevelData catch, error.name : ${err.name}, error.message:${err.message}`);
  370 + success(this.getMineUserLevelDataLocal(context))
  371 + })
  372 + })
  373 + }
  374 +
  375 + fetchMineUserLevelData() {
  376 + let url = HttpUrlUtils.getMineUserLevelDataUrl()
  377 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  378 + return WDHttp.get<ResponseDTO<MineUserLevelItem>>(url, headers)
  379 + };
  380 +
  381 + async getMineUserLevelDataLocal(context: Context): Promise<MineUserLevelItem> {
  382 + Logger.info(TAG, `getMineUserLevelDataLocal start`);
  383 + let compRes: ResponseDTO<MineUserLevelItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineUserLevelItem>>('mine_user_level.json' ,context);
  384 + if (!compRes || !compRes.data) {
  385 + Logger.info(TAG, `getMineUserLevelDataLocal compRes is empty`);
  386 + return new MineUserLevelItem()
  387 + }
  388 + Logger.info(TAG, `getMineUserLevelDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  389 + return compRes.data
  390 + }
  391 +
  392 + /**
  393 + * 个人中心 获取用户详细信息
  394 + */
  395 + getUserDetailData(context: Context): Promise<MineUserDetailItem> {
  396 + return new Promise<MineUserDetailItem>((success, error) => {
  397 + Logger.info(TAG, `getAppointmentList start`);
  398 + this.fetchMineUserDetailData().then((navResDTO: ResponseDTO<MineUserDetailItem>) => {
  399 + if (!navResDTO || navResDTO.code != 0) {
  400 + success(this.getMineUserDetailDataLocal(context))
  401 + return
  402 + }
  403 + Logger.info(TAG, "getUserDetailData then,timeStamp:" + navResDTO.timestamp);
  404 + let navigationBean = navResDTO.data as MineUserDetailItem
  405 + success(navigationBean);
  406 + }).catch((err: Error) => {
  407 + Logger.error(TAG, `fetchMineUserDetailData catch, error.name : ${err.name}, error.message:${err.message}`);
  408 + success(this.getMineUserDetailDataLocal(context))
  409 + })
  410 + })
  411 + }
  412 +
  413 + fetchMineUserDetailData() {
  414 + let url = HttpUrlUtils.getMineUserDetailDataUrl()
  415 + let headers: HashMap<string, string> = HttpUrlUtils.getYcgCommonHeaders();
  416 + return WDHttp.get<ResponseDTO<MineUserDetailItem>>(url, headers)
  417 + };
  418 +
  419 + async getMineUserDetailDataLocal(context: Context): Promise<MineUserDetailItem> {
  420 + Logger.info(TAG, `getMineUserLevelDataLocal start`);
  421 + let compRes: ResponseDTO<MineUserDetailItem> | null = await ResourcesUtils.getResourcesJson<ResponseDTO<MineUserDetailItem>>('mine_user_detail.json',context );
  422 + if (!compRes || !compRes.data) {
  423 + Logger.info(TAG, `getMineUserDetailDataLocal compRes is empty`);
  424 + return new MineUserDetailItem()
  425 + }
  426 + Logger.info(TAG, `getMineUserDetailDataLocal getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  427 + return compRes.data
  428 + }
140 429
141 } 430 }
142 431
1 1
2 -import MinePagePersonalFunctionsItem from '../../../../../../../../PeopleDaily_Harmony/wdComponent/src/main/ets/viewmodel/MinePagePersonalFunctionsItem'  
3 -import MinePageCreatorFunctionsItem from '../../../../../../../../PeopleDaily_Harmony/wdComponent/src/main/ets/viewmodel/MinePageCreatorFunctionsItem'  
4 -import MinePageMoreFunctionModel from '../../../../../../../../PeopleDaily_Harmony/wdComponent/src/main/ets/viewmodel/MinePageMoreFunctionModel';  
5 -import { HttpUrlUtils } from '../../../../../../../../PeopleDaily_Harmony/wdComponent/src/main/ets/network/HttpUrlUtils';  
6 -import HashMap from '@ohos.util.HashMap';  
7 -import { ResponseDTO, WDHttp } from 'wdNetwork';  
8 -import { Logger } from 'wdKit';  
9 -import { MineMainSettingFunctionItem } from '../../../../../../../../PeopleDaily_Harmony/wdComponent/src/main/ets/viewmodel/MineMainSettingFunctionItem' 2 +import { MineMainSettingFunctionItem } from '../viewmodel/MineMainSettingFunctionItem';
10 3
11 const TAG = "MineSettingDatasModel" 4 const TAG = "MineSettingDatasModel"
12 5
@@ -44,6 +44,42 @@ export class HttpUrlUtils { @@ -44,6 +44,42 @@ export class HttpUrlUtils {
44 */ 44 */
45 static readonly APPOINTMENT_LIST_DATA_PATH: string = "/api/live-center-message/zh/c/live/subscribe"; 45 static readonly APPOINTMENT_LIST_DATA_PATH: string = "/api/live-center-message/zh/c/live/subscribe";
46 46
  47 + /**
  48 + * 资料编辑 获取用户信息
  49 + */
  50 + static readonly APPOINTMENT_AccountOwner_PATH: string = "/api/rmrb-contact/contact/zh/c/my/detail";
  51 + /**
  52 + * 个人中心 关注列表详情
  53 + */
  54 + static readonly FOLLOW_LIST_DETAIL_DATA_PATH: string = "/api/rmrb-creator-user/c/creatorDirectory/getContactMasterDetaiPage";
  55 + /**
  56 + * 个人中心 关注列表
  57 + */
  58 + static readonly FOLLOW_LIST_DATA_PATH: string = "/api/rmrb-creator-user/c/creatorDirectory/getCreatorDirectoryTree";
  59 + /**
  60 + * 个人中心 我的关注列表
  61 + */
  62 + static readonly MINE_FOLLOW_LIST_DATA_PATH: string = "/api/rmrb-interact/interact/zh/c/attention/list";
  63 + /**
  64 + * 个人中心 关注列表状态
  65 + */
  66 + static readonly FOLLOW_LIST_STATUS_DATA_PATH: string = "/api/rmrb-interact/interact/zh/c/batchAttention/status";
  67 +
  68 + /**
  69 + * 个人中心 我的评论列表
  70 + */
  71 + static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList";
  72 +
  73 + /**
  74 + * 个人中心 APP获取用户等级
  75 + */
  76 + static readonly MINE_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/queryUserLevel";
  77 +
  78 + /**
  79 + * 个人中心 (号主/普通用户)我的基本信息
  80 + */
  81 + static readonly MINE_USER_DETAIL_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/my/detail";
  82 +
47 private static hostUrl: string = HttpUrlUtils.HOST_UAT; 83 private static hostUrl: string = HttpUrlUtils.HOST_UAT;
48 84
49 static getCommonHeaders(): HashMap<string, string> { 85 static getCommonHeaders(): HashMap<string, string> {
@@ -83,44 +119,6 @@ export class HttpUrlUtils { @@ -83,44 +119,6 @@ export class HttpUrlUtils {
83 return headers; 119 return headers;
84 } 120 }
85 121
86 - static getYcgCommonHeaders(): HashMap<string, string> {  
87 - let headers: HashMap<string, string> = new HashMap<string, string>()  
88 -  
89 - headers.set('mpassid', 'XGt6jfGUx8ADAKruTyAMdhHj')  
90 - headers.set('city', "%E5%90%88%E8%82%A5%E5%B8%82")  
91 - headers.set('User-Agent', 'Dalvik/2.1.0 (Linux; U; Android 10; PCT-AL10 Build/HUAWEIPCT-AL10)')  
92 - headers.set('channel', "rmrb_china_0000")  
93 - headers.set('appCode', "0af1f9085e484c97b2a44704bae72c07")  
94 - headers.set('Authorization', "APPCODE 0af1f9085e484c97b2a44704bae72c07")  
95 - headers.set('X-Ca-Stage', "TEST")  
96 - headers.set('plat', "Phone")  
97 - headers.set('Content-Type', 'application/json; charset=utf-8')  
98 - headers.set('timestamp', "649773304")  
99 - headers.set('RMRB-X-TOKEN', "eyJhbGciOiJIUzI1NiIsImtpZCI6IklFazBGclhfV2RYMEx1ZktDU01iYTVYd0VmUHZ6a043T0F5UTRFLWIwWU0ifQ.eyJpc3MiOiJwZW9wbGVzLWRhaWx5LWZvdXJhIiwic3ViIjoicGVvcGxlcy1kYWlseS1mb3VyYSIsImV4cCI6MTcxMDU4Mzk0MywidXNlcklkIjo1NjczODc0NzcwNjM2MjEsInVzZXJWZXJzaW9uIjoiNTY3Mzg3NDc3MDYzNjIxXzAiLCJ1c2VyTmFtZSI6IiVFNCVCQSVCQSVFNiVCMCU5MSVFNiU5NyVBNSVFNiU4QSVBNSVFNyVCRCU5MSVFNSU4RiU4QmFQcnRxNSIsInVzZXJUeXBlIjoxLCJjcmVhdG9ySWQiOm51bGwsInVzZXJJZFpoIjpudWxsfQ._LTKrUxQozpCj1XMhx1TWOIxn5gjDveoPuMFGpI0g_8")  
100 - headers.set('device_id', "5156098c-6c44-3514-af70-04a0139a9327")  
101 - headers.set('cookie', 'RMRB-X-TOKEN=eyJhbGciOiJIUzI1NiIsImtpZCI6IklFazBGclhfV2RYMEx1ZktDU01iYTVYd0VmUHZ6a043T0F5UTRFLWIwWU0ifQ.eyJpc3MiOiJwZW9wbGVzLWRhaWx5LWZvdXJhIiwic3ViIjoicGVvcGxlcy1kYWlseS1mb3VyYSIsImV4cCI6MTcxMDU4Mzk0MywidXNlcklkIjo1NjczODc0NzcwNjM2MjEsInVzZXJWZXJzaW9uIjoiNTY3Mzg3NDc3MDYzNjIxXzAiLCJ1c2VyTmFtZSI6IiVFNCVCQSVCQSVFNiVCMCU5MSVFNiU5NyVBNSVFNiU4QSVBNSVFNyVCRCU5MSVFNSU4RiU4QmFQcnRxNSIsInVzZXJUeXBlIjoxLCJjcmVhdG9ySWQiOm51bGwsInVzZXJJZFpoIjpudWxsfQ._LTKrUxQozpCj1XMhx1TWOIxn5gjDveoPuMFGpI0g_8')  
102 - headers.set('build_version', "202403112023")  
103 - headers.set('adcode', "340000")  
104 - headers.set('os_version', "10")  
105 - headers.set('city_dode', "340100")  
106 - headers.set('userId', "567387477063621")  
107 - headers.set('versionCode', "7302")  
108 - headers.set('system', "Android")  
109 - headers.set('version_name', "7.3.0.2")  
110 - headers.set('EagleEye-TraceID', '5C3D0800CF2C4440A43E5B131187629B')  
111 - headers.set('imei', "5156098c-6c44-3514-af70-04a0139a9327")  
112 - headers.set('userType', "1")  
113 - headers.set('Accept-Language', 'zh')  
114 -  
115 - // HttpUrlUtils.addSpecialHeaders(headers);  
116 - // Logger.debug("TAG", '******************* commonHeaders headers start ******************************** ');  
117 - // headers.forEach((v,k)=>{  
118 - // Logger.debug("TAG", 'getCommonHeaders header: ' + k + ': ' + v);  
119 - // })  
120 - // Logger.debug("TAG", '******************* commonHeaders headers end ******************************** ');  
121 - return headers;  
122 - }  
123 -  
124 static getHost() { 122 static getHost() {
125 return this.hostUrl; 123 return this.hostUrl;
126 } 124 }
@@ -167,6 +165,80 @@ export class HttpUrlUtils { @@ -167,6 +165,80 @@ export class HttpUrlUtils {
167 return url; 165 return url;
168 } 166 }
169 167
  168 + static getFollowListDetailDataUrl() {
  169 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.FOLLOW_LIST_DETAIL_DATA_PATH
  170 + return url
  171 + }
  172 +
  173 + static getFollowListDataUrl() {
  174 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.FOLLOW_LIST_DATA_PATH
  175 + return url
  176 + }
  177 +
  178 + static getMineFollowListDataUrl() {
  179 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.MINE_FOLLOW_LIST_DATA_PATH
  180 + return url
  181 + }
  182 +
  183 + static getFollowListStatusDataUrl() {
  184 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.FOLLOW_LIST_STATUS_DATA_PATH
  185 + return url
  186 + }
  187 +
  188 + static getMineCommentListDataUrl() {
  189 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.MINE_COMMENT_LIST_DATA_PATH
  190 + return url
  191 + }
  192 +
  193 + static getMineUserLevelDataUrl() {
  194 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.MINE_USER_LEVEL_DATA_PATH
  195 + return url
  196 + }
  197 +
  198 + static getMineUserDetailDataUrl() {
  199 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.MINE_USER_DETAIL_DATA_PATH
  200 + return url
  201 + }
  202 +
  203 +
  204 + static getYcgCommonHeaders(): HashMap<string, string> {
  205 + let headers: HashMap<string, string> = new HashMap<string, string>()
  206 +
  207 + headers.set('mpassid', 'XGt6jfGUx8ADAKruTyAMdhHj')
  208 + headers.set('city', "%E5%90%88%E8%82%A5%E5%B8%82")
  209 + headers.set('User-Agent', 'Dalvik/2.1.0 (Linux; U; Android 10; PCT-AL10 Build/HUAWEIPCT-AL10)')
  210 + headers.set('channel', "rmrb_china_0000")
  211 + headers.set('appCode', "0af1f9085e484c97b2a44704bae72c07")
  212 + headers.set('Authorization', "APPCODE 0af1f9085e484c97b2a44704bae72c07")
  213 + headers.set('X-Ca-Stage', "TEST")
  214 + headers.set('plat', "Phone")
  215 + headers.set('Content-Type', 'application/json; charset=utf-8')
  216 + headers.set('timestamp', "740977741")
  217 + headers.set('RMRB-X-TOKEN', "eyJhbGciOiJIUzI1NiIsImtpZCI6IklFazBGclhfV2RYMEx1ZktDU01iYTVYd0VmUHZ6a043T0F5UTRFLWIwWU0ifQ.eyJpc3MiOiJwZW9wbGVzLWRhaWx5LWZvdXJhIiwic3ViIjoicGVvcGxlcy1kYWlseS1mb3VyYSIsImV4cCI6MTcxMDc1NjM3NywidXNlcklkIjo1NjczODc0NzcwNjM2MjEsInVzZXJWZXJzaW9uIjoiNTY3Mzg3NDc3MDYzNjIxXzAiLCJ1c2VyTmFtZSI6IiVFNCVCQSVCQSVFNiVCMCU5MSVFNiU5NyVBNSVFNiU4QSVBNSVFNyVCRCU5MSVFNSU4RiU4QmFQcnRxNSIsInVzZXJUeXBlIjoxLCJjcmVhdG9ySWQiOm51bGwsInVzZXJJZFpoIjpudWxsfQ.KBkF0Yki-JWlq0ZIOCzgKwQc1ycBnFHa6CF-rMPRgHU")
  218 + headers.set('device_id', "5156098c-6c44-3514-af70-04a0139a9327")
  219 + // headers.set('cookie', 'RMRB-X-TOKEN=eyJhbGciOiJIUzI1NiIsImtpZCI6IklFazBGclhfV2RYMEx1ZktDU01iYTVYd0VmUHZ6a043T0F5UTRFLWIwWU0ifQ.eyJpc3MiOiJwZW9wbGVzLWRhaWx5LWZvdXJhIiwic3ViIjoicGVvcGxlcy1kYWlseS1mb3VyYSIsImV4cCI6MTcxMDU4Mzk0MywidXNlcklkIjo1NjczODc0NzcwNjM2MjEsInVzZXJWZXJzaW9uIjoiNTY3Mzg3NDc3MDYzNjIxXzAiLCJ1c2VyTmFtZSI6IiVFNCVCQSVCQSVFNiVCMCU5MSVFNiU5NyVBNSVFNiU4QSVBNSVFNyVCRCU5MSVFNSU4RiU4QmFQcnRxNSIsInVzZXJUeXBlIjoxLCJjcmVhdG9ySWQiOm51bGwsInVzZXJJZFpoIjpudWxsfQ._LTKrUxQozpCj1XMhx1TWOIxn5gjDveoPuMFGpI0g_8')
  220 + headers.set('build_version', "202403112023")
  221 + headers.set('adcode', "340000")
  222 + headers.set('os_version', "10")
  223 + headers.set('city_dode', "340100")
  224 + headers.set('userId', "567387477063621")
  225 + headers.set('versionCode', "7302")
  226 + headers.set('system', "Android")
  227 + headers.set('version_name', "7.3.0.2")
  228 + headers.set('EagleEye-TraceID', '101118E4D006453DA549A82AA8CAFBFE')
  229 + headers.set('imei', "5156098c-6c44-3514-af70-04a0139a9327")
  230 + headers.set('userType', "1")
  231 + headers.set('Accept-Language', 'zh')
  232 +
  233 + // HttpUrlUtils.addSpecialHeaders(headers);
  234 + // Logger.debug("TAG", '******************* commonHeaders headers start ******************************** ');
  235 + // headers.forEach((v,k)=>{
  236 + // Logger.debug("TAG", 'getCommonHeaders header: ' + k + ': ' + v);
  237 + // })
  238 + // Logger.debug("TAG", '******************* commonHeaders headers end ******************************** ');
  239 + return headers;
  240 + }
  241 +
170 static addSpecialHeaders(headers: HashMap<string, string>) { 242 static addSpecialHeaders(headers: HashMap<string, string>) {
171 switch (this.hostUrl) { 243 switch (this.hostUrl) {
172 case this.HOST_UAT: 244 case this.HOST_UAT:
  1 +
  2 +
  3 +@Observed
  4 +export class CommentListItem{
  5 + fromUserHeader:string = ""
  6 + fromUserName:string = ""
  7 + commentContent:string = ""
  8 + targetTitle:string = ""
  9 + createTime:string = ""
  10 +
  11 + constructor(fromUserHeader:string,fromUserName:string,targetTitle:string,createTime:string,commentContent:string ) {
  12 + this.fromUserHeader = fromUserHeader
  13 + this.fromUserName = fromUserName
  14 + this.commentContent = commentContent
  15 + this.targetTitle = targetTitle
  16 + this.createTime = createTime
  17 + }
  18 +}
@@ -65,12 +65,21 @@ export class FollowListDetailItem{ @@ -65,12 +65,21 @@ export class FollowListDetailItem{
65 cnUserName:string //昵称 65 cnUserName:string //昵称
66 cnFansNum:number //粉丝数 66 cnFansNum:number //粉丝数
67 introduction:string //介绍 67 introduction:string //介绍
68 - isFollow:boolean = false //是否已经关注 68 + status:string = "0" //是否已经关注
  69 + creatorId:string = ""
69 70
70 - constructor(headPhotoUrl:string,cnUserName:string,cnFansNum:number,introduction:string) { 71 + attentionCreatorId:string = ""
  72 + attentionHeadPhotoUrl:string = ""
  73 + attentionUserName:string = ""
  74 + fansNum :number = 0
  75 +
  76 +
  77 + constructor(headPhotoUrl:string,cnUserName:string,cnFansNum:number,introduction:string,creatorId:string,status:string ) {
71 this.headPhotoUrl = headPhotoUrl 78 this.headPhotoUrl = headPhotoUrl
72 this.cnUserName = cnUserName 79 this.cnUserName = cnUserName
73 this.cnFansNum = cnFansNum 80 this.cnFansNum = cnFansNum
74 this.introduction = introduction 81 this.introduction = introduction
  82 + this.creatorId = creatorId
  83 + this.status = status
75 } 84 }
76 } 85 }
  1 +export class FollowListDetailRequestItem{
  2 + creatorDirectoryId:number = -1
  3 + pageSize:number = 20
  4 + pageNum:number = 1
  5 +
  6 + constructor(creatorDirectoryId: number = -1,
  7 + pageSize: number = 20,
  8 + pageNum: number = 1) {
  9 + this.creatorDirectoryId = creatorDirectoryId
  10 + this.pageSize = pageSize
  11 + this.pageNum = pageNum
  12 + }
  13 +}
@@ -38,33 +38,33 @@ export class FollowListItem{ @@ -38,33 +38,33 @@ export class FollowListItem{
38 constructor(directoryName:string) { 38 constructor(directoryName:string) {
39 this.directoryName = directoryName 39 this.directoryName = directoryName
40 } 40 }
41 - directoryName:string  
42 - directoryWeight:number  
43 - id:number  
44 - isShow:number  
45 - level:number  
46 - parentId:number  
47 - rootId:number  
48 - children:FollowSecondListItem[] 41 + directoryName:string = ""
  42 + directoryWeight:number = 0
  43 + id:number = -1
  44 + isShow:number = 1
  45 + level:number = 1
  46 + parentId:number = 0
  47 + rootId:number = 0
  48 + children:FollowSecondListItem[] = []
49 } 49 }
50 @Observed 50 @Observed
51 export class FollowSecondListItem{ 51 export class FollowSecondListItem{
52 - directoryName:string  
53 - directoryWeight:number  
54 - id:number  
55 - isShow:number  
56 - level:number  
57 - parentId:number  
58 - rootId:number  
59 - children:FollowThirdListItem[] 52 + directoryName:string = ""
  53 + directoryWeight:number = 0
  54 + id:number = 0
  55 + isShow:number = 1
  56 + level:number = 1
  57 + parentId:number = 0
  58 + rootId:number = 0
  59 + children:FollowThirdListItem[] = []
60 } 60 }
61 @Observed 61 @Observed
62 export class FollowThirdListItem{ 62 export class FollowThirdListItem{
63 - directoryName:string  
64 - directoryWeight:number  
65 - id:number  
66 - isShow:number  
67 - level:number  
68 - parentId:number  
69 - rootId:number 63 + directoryName:string = ""
  64 + directoryWeight:number = 0
  65 + id:number = 0
  66 + isShow:number = 1
  67 + level:number = 1
  68 + parentId:number = 0
  69 + rootId:number = 0
70 } 70 }
  1 +import { QueryListIsFollowedItem } from './QueryListIsFollowedItem'
  2 +
  3 +// {"creatorIds":[{"creatorId":"3004862"},{"creatorId":"3004855"}]}
  4 +
  5 +export class FollowListStatusRequestItem{
  6 + creatorIds:QueryListIsFollowedItem[] = []
  7 +}
  1 +
  2 +import { CommentListItem } from './CommentListItem'
  3 +export class MineCommentListDetailItem{
  4 + list:CommentListItem[] = []
  5 +
  6 + pageNum: number = 0
  7 + pageSize: number = 20
  8 + totalCount: number = 0
  9 +
  10 + constructor(list?:CommentListItem[],pageNum?: number,pageSize?: number,totalCount?: number) {
  11 + }
  12 +
  13 +}
  1 +import { FollowListDetailItem } from './FollowListDetailItem'
  2 +
  3 +export class MineFollowListDetailItem{
  4 + list:FollowListDetailItem[] = []
  5 +
  6 + pageNum: number = 0
  7 + pageSize: number = 20
  8 + totalCount: number = 0
  9 +
  10 + constructor(list?:FollowListDetailItem[],pageNum?: number,pageSize?: number,totalCount?: number) {
  11 + }
  12 +
  13 +}
  1 +import { MineFollowListDetailItem } from './MineFollowListDetailItem'
  2 +
  3 +export class MineFollowListItem extends MineFollowListDetailItem{
  4 + hasNext: number = 0
  5 +}
  1 +
  2 +export class MineUserDetailItem{
  3 + userName:string = ""
  4 + headPhotoUrl:"" = ""
  5 + introduction:string = ""
  6 + userType:string = "1"
  7 + creatorId:string = ""
  8 + browseNum:number = 0//阅读数
  9 + commentNum:number = 0//评论数
  10 + attentionNum:number = 0//关注数
  11 + registTime:number = 0//账号注册时间
  12 +
  13 + levelHead:string = ""
  14 + levelId:number = 0
  15 +}
  1 +
  2 +export class MineUserLevelItem{
  3 + levelHead:string = ""
  4 + levelId:number = 0
  5 + levelName:string = ""
  6 +
  7 +}
  1 +
  2 +// "creatorId": "3004862",
  3 +// "status": "0",
  4 +// "userId": "567387477063621"
  5 +
  6 +export class QueryListIsFollowedItem{
  7 + creatorId:string = "-1"
  8 + status:string = "0"
  9 + userId:string = ""
  10 +
  11 + constructor(creatorId: string) {
  12 + this.creatorId = creatorId
  13 + }
  14 +}
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 "phone", 7 "phone",
8 "tablet" 8 "tablet"
9 ], 9 ],
10 - "deliveryWithInstall": true 10 + "deliveryWithInstall": true,
  11 + "pages": "$profile:main_pages"
11 } 12 }
12 } 13 }
@@ -90,6 +90,18 @@ @@ -90,6 +90,18 @@
90 { 90 {
91 "name":"color_EDEDED", 91 "name":"color_EDEDED",
92 "value": "#EDEDED" 92 "value": "#EDEDED"
  93 + },
  94 + {
  95 + "name":"color_1AED2800",
  96 + "value": "#1AED2800"
  97 + },
  98 + {
  99 + "name":"color_B2FFFFFF",
  100 + "value": "#B2FFFFFF"
  101 + },
  102 + {
  103 + "name":"color_transparent",
  104 + "value": "#00000000"
93 } 105 }
94 ] 106 ]
95 } 107 }
1 { 1 {
2 "src": [ 2 "src": [
3 - "components/DemoPreviewerComponent",  
4 - "components/view/SmallVideoCardComponent"  
5 ] 3 ]
6 } 4 }
@@ -6,7 +6,7 @@ export const enum CompStyle { @@ -6,7 +6,7 @@ export const enum CompStyle {
6 Carousel_Layout_01 = 'Zh_Carousel_Layout-01', // 通用轮播卡:视频、直播、活动、专题、榜单、外链 6 Carousel_Layout_01 = 'Zh_Carousel_Layout-01', // 通用轮播卡:视频、直播、活动、专题、榜单、外链
7 Carousel_Layout_02 = 'Carousel_Layout-02', // 直播轮播卡:直播 7 Carousel_Layout_02 = 'Carousel_Layout-02', // 直播轮播卡:直播
8 Single_Row_01 = 'Zh_Single_Row-01', // 三格方形小卡(排名):专题、活动 8 Single_Row_01 = 'Zh_Single_Row-01', // 三格方形小卡(排名):专题、活动
9 - Zh_Single_Row_01 = 'Zh_Single_Row-01', // 横划卡 9 + Zh_Single_Row_01 = 'Zh_Single_Row-01', // 横划卡 imageScale-封面图比例 1-4:3, 2-16:9, 3-3:2
10 Single_Row_02 = 'Zh_Single_Row-02', // 通用横划卡:视频、直播、专题 10 Single_Row_02 = 'Zh_Single_Row-02', // 通用横划卡:视频、直播、专题
11 Single_Row_03 = 'Single_Row-03', // 直播横划卡:直播 11 Single_Row_03 = 'Single_Row-03', // 直播横划卡:直播
12 Single_Row_04 = 'Single_Row-04', // 三格方形小卡:专题、活动 12 Single_Row_04 = 'Single_Row-04', // 三格方形小卡:专题、活动
@@ -26,5 +26,8 @@ export const enum CompStyle { @@ -26,5 +26,8 @@ export const enum CompStyle {
26 Single_ImageCard_03 = '13',//单图卡:3行标题 26 Single_ImageCard_03 = '13',//单图卡:3行标题
27 Single_ImageCard_01 = '6',//单图卡,竖图 27 Single_ImageCard_01 = '6',//单图卡,竖图
28 ZhGrid_Layout_03 = 'Zh_Grid_Layout-03', //金刚位卡 28 ZhGrid_Layout_03 = 'Zh_Grid_Layout-03', //金刚位卡
29 - Album_Card_01 = '17' //图卡集 29 + Album_Card_01 = '17', //图卡集
  30 + Zh_Single_Row_04 = 'Zh_Single_Row-04', // 地方精选卡
  31 + CompStyle_09 = 9, // 时间链卡
  32 + CompStyle_10 = 10, // 大专题卡
30 } 33 }
1 import HashMap from '@ohos.util.HashMap' 1 import HashMap from '@ohos.util.HashMap'
2 -import { ConfigConstants } from 'wdConstant'  
3 -import { DateTimeUtils, Logger, SPHelper } from 'wdKit' 2 +import { ConfigConstants, SpConstants } from 'wdConstant'
  3 +import { DateTimeUtils, Logger, SPHelper, StringUtils } from 'wdKit'
4 4
5 /** 5 /**
6 * 网络请求业务侧工具类 6 * 网络请求业务侧工具类
@@ -44,6 +44,17 @@ export class HttpUrlUtils { @@ -44,6 +44,17 @@ export class HttpUrlUtils {
44 */ 44 */
45 static readonly INTERACT_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/content/interactData"; 45 static readonly INTERACT_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/content/interactData";
46 46
  47 + // 多图(图集)详情页
  48 + /**
  49 + * 批量查询内容当前用户点赞、收藏状态
  50 + */
  51 + static readonly INTERACT_DATA_STATUS: string = "/api/rmrb-interact/interact/zh/c/batchLikeAndCollect/status";
  52 +
  53 + /**
  54 + * 浏览历史新增、删除接口
  55 + */
  56 + static readonly INTERACT_BROWS_OPERATE: string = "/api/rmrb-interact/interact/zh/c/brows/operate";
  57 +
47 /** 58 /**
48 * 电子报信息 59 * 电子报信息
49 */ 60 */
@@ -58,10 +69,15 @@ export class HttpUrlUtils { @@ -58,10 +69,15 @@ export class HttpUrlUtils {
58 */ 69 */
59 static readonly APPOINTMENT_LIST_DATA_PATH: string = "/api/live-center-message/zh/c/live/subscribe"; 70 static readonly APPOINTMENT_LIST_DATA_PATH: string = "/api/live-center-message/zh/c/live/subscribe";
60 /** 71 /**
61 - * 资料编辑 获取用户信息 72 + * 资料编辑 特殊用户信息
62 */ 73 */
63 static readonly APPOINTMENT_AccountOwner_PATH: string = "/api/rmrb-contact/contact/zh/c/my/detail"; 74 static readonly APPOINTMENT_AccountOwner_PATH: string = "/api/rmrb-contact/contact/zh/c/my/detail";
64 /** 75 /**
  76 + * 资料编辑 普通用户信息
  77 + */
  78 + static readonly APPOINTMENT_QueryUserDetail_PATH: string = "/api/rmrb-user-center/user/zh/c/queryUserDetail";
  79 + /**
  80 + /**
65 * 个人中心 关注列表详情 81 * 个人中心 关注列表详情
66 */ 82 */
67 static readonly FOLLOW_LIST_DETAIL_DATA_PATH: string = "/api/rmrb-creator-user/c/creatorDirectory/getContactMasterDetaiPage"; 83 static readonly FOLLOW_LIST_DETAIL_DATA_PATH: string = "/api/rmrb-creator-user/c/creatorDirectory/getContactMasterDetaiPage";
@@ -86,6 +102,25 @@ export class HttpUrlUtils { @@ -86,6 +102,25 @@ export class HttpUrlUtils {
86 * 个人中心 我的评论列表 102 * 个人中心 我的评论列表
87 */ 103 */
88 static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList"; 104 static readonly MINE_COMMENT_LIST_DATA_PATH: string = "/api/rmrb-comment/comment/zh/c/myCommentList";
  105 +
  106 + /**
  107 + * 个人中心 APP获取用户等级
  108 + */
  109 + static readonly MINE_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/queryUserLevel";
  110 +
  111 + /**
  112 + * 个人中心 APP获取其他用户等级
  113 + */
  114 + static readonly OTHER_USER_LEVEL_DATA_PATH: string = "/api/rmrb-user-point/auth/level/zh/c/batchUser";
  115 +
  116 + /**
  117 + * 个人中心 (号主/普通用户)我的基本信息
  118 + */
  119 + static readonly MINE_USER_DETAIL_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/my/detail";
  120 + /**
  121 + * 个人中心 (普通用户)其他用户 的基本信息
  122 + */
  123 + static readonly OTHER_USER_DETAIL_DATA_PATH: string = "/api/rmrb-contact/contact/zh/c/master/detail";
89 /** 124 /**
90 * 早晚报列表 125 * 早晚报列表
91 * 根据页面id获取页面楼层列表 126 * 根据页面id获取页面楼层列表
@@ -258,10 +293,14 @@ export class HttpUrlUtils { @@ -258,10 +293,14 @@ export class HttpUrlUtils {
258 293
259 private static getUserId() { 294 private static getUserId() {
260 // TODO 对接登录 295 // TODO 对接登录
261 - return HttpUrlUtils.userId; 296 + // let userid = await SPHelper.default.get(SpConstants.USER_ID,"")
  297 + // if(StringUtils.isNotEmpty(userid)) {
  298 + // return userid as string;
  299 + // }
  300 + return HttpUrlUtils.userId;
262 } 301 }
263 302
264 - private static getUserType() { 303 + private static getUserType() {
265 return HttpUrlUtils.userType; 304 return HttpUrlUtils.userType;
266 } 305 }
267 306
@@ -346,6 +385,27 @@ export class HttpUrlUtils { @@ -346,6 +385,27 @@ export class HttpUrlUtils {
346 return url 385 return url
347 } 386 }
348 387
  388 + static getMineUserLevelDataUrl() {
  389 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.MINE_USER_LEVEL_DATA_PATH
  390 + return url
  391 + }
  392 +
  393 + static getOtherUserLevelDataUrl() {
  394 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.OTHER_USER_LEVEL_DATA_PATH
  395 + return url
  396 + }
  397 +
  398 + static getMineUserDetailDataUrl() {
  399 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.MINE_USER_DETAIL_DATA_PATH
  400 + return url
  401 + }
  402 +
  403 + static getOtherUserDetailDataUrl() {
  404 + let url = HttpUrlUtils.HOST_SIT + HttpUrlUtils.OTHER_USER_DETAIL_DATA_PATH
  405 + return url
  406 + }
  407 +
  408 +
349 static getYcgCommonHeaders(): HashMap<string, string> { 409 static getYcgCommonHeaders(): HashMap<string, string> {
350 let headers: HashMap<string, string> = new HashMap<string, string>() 410 let headers: HashMap<string, string> = new HashMap<string, string>()
351 411
@@ -64,5 +64,8 @@ export class WDRouterPage { @@ -64,5 +64,8 @@ export class WDRouterPage {
64 // 设置密码页、设置手机号页等等 (需要传参) 64 // 设置密码页、设置手机号页等等 (需要传参)
65 static settingPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/SettingPasswordPage"); 65 static settingPasswordPage = new WDRouterPage("wdLogin", "ets/pages/login/SettingPasswordPage");
66 66
  67 + //其他普通用户 主页
  68 + static otherNormalUserHomePagePage = new WDRouterPage("wdComponent", "ets/pages/OtherNormalUserHomePage");
  69 +
67 // static loginProtocolPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginProtocolWebview"); 70 // static loginProtocolPage = new WDRouterPage("wdLogin", "ets/pages/login/LoginProtocolWebview");
68 } 71 }
@@ -23,6 +23,8 @@ export { Pic } from './src/main/ets/bean/content/Pic' @@ -23,6 +23,8 @@ export { Pic } from './src/main/ets/bean/content/Pic'
23 23
24 export { InteractDataDTO } from './src/main/ets/bean/content/InteractDataDTO'; 24 export { InteractDataDTO } from './src/main/ets/bean/content/InteractDataDTO';
25 25
  26 +export { InteractDataStatusDTO } from './src/main/ets/bean/detail/MultiPictureDetailPageDTO';
  27 +
26 export { InteractParam, ContentBean } from './src/main/ets/bean/content/InteractParam'; 28 export { InteractParam, ContentBean } from './src/main/ets/bean/content/InteractParam';
27 29
28 export { LabelBean } from './src/main/ets/bean/component/extra/LabelBean'; 30 export { LabelBean } from './src/main/ets/bean/component/extra/LabelBean';
@@ -49,6 +51,10 @@ export { NewspaperTimeItemBean } from './src/main/ets/bean/newspaper/NewspaperTi @@ -49,6 +51,10 @@ export { NewspaperTimeItemBean } from './src/main/ets/bean/newspaper/NewspaperTi
49 51
50 export { ContentDetailDTO } from './src/main/ets/bean/detail/ContentDetailDTO'; 52 export { ContentDetailDTO } from './src/main/ets/bean/detail/ContentDetailDTO';
51 53
  54 +export { RmhInfoDTO } from './src/main/ets/bean/detail/RmhInfoDTO';
  55 +
  56 +export { UserInfoDTO } from './src/main/ets/bean/detail/UserInfoDTO';
  57 +
52 export { AuthorListDTO } from './src/main/ets/bean/detail/AuthorListDTO'; 58 export { AuthorListDTO } from './src/main/ets/bean/detail/AuthorListDTO';
53 59
54 export { FullColumnImgUrlDTO } from './src/main/ets/bean/detail/FullColumnImgUrlDTO'; 60 export { FullColumnImgUrlDTO } from './src/main/ets/bean/detail/FullColumnImgUrlDTO';
@@ -85,4 +91,3 @@ export { OperDataList } from './src/main/ets/bean/morningevening/OperDataList'; @@ -85,4 +91,3 @@ export { OperDataList } from './src/main/ets/bean/morningevening/OperDataList';
85 91
86 export { ShareInfo } from './src/main/ets/bean/morningevening/ShareInfo'; 92 export { ShareInfo } from './src/main/ets/bean/morningevening/ShareInfo';
87 93
88 -  
@@ -3,6 +3,8 @@ import { FullColumnImgUrlDTO } from './FullColumnImgUrlDTO'; @@ -3,6 +3,8 @@ import { FullColumnImgUrlDTO } from './FullColumnImgUrlDTO';
3 import { ReLInfoDTO } from './ReLInfoDTO'; 3 import { ReLInfoDTO } from './ReLInfoDTO';
4 import { ShareInfoDTO } from './ShareInfoDTO'; 4 import { ShareInfoDTO } from './ShareInfoDTO';
5 import { VideoInfoDTO } from './VideoInfoDTO'; 5 import { VideoInfoDTO } from './VideoInfoDTO';
  6 +import { RmhInfoDTO } from './RmhInfoDTO'
  7 +import { UserInfoDTO } from './UserInfoDTO'
6 8
7 /** 9 /**
8 * 接口定义: 10 * 接口定义:
@@ -40,8 +42,8 @@ export interface ContentDetailDTO { @@ -40,8 +42,8 @@ export interface ContentDetailDTO {
40 videoInfo: VideoInfoDTO[]; 42 videoInfo: VideoInfoDTO[];
41 liveInfo?: any; 43 liveInfo?: any;
42 voteInfo?: any; 44 voteInfo?: any;
43 - rmhInfo?: any;  
44 - userInfo?: any; 45 + rmhInfo?: RmhInfoDTO;
  46 + userInfo?: UserInfoDTO;
45 openLikes: number; 47 openLikes: number;
46 openComment: number; 48 openComment: number;
47 likesStyle: number; 49 likesStyle: number;
  1 +/*
  2 + * 多图(图集)详情
  3 + * */
  4 +// 批量查询内容当前用户点赞、收藏状态
  5 +export interface InteractDataStatusDTO {
  6 + contentId: string;
  7 + contentType: number;
  8 + contentRelId: string;
  9 + relType: number;
  10 + likeStatus: number;
  11 + collectStatus: number;
  12 +}
  1 +export interface RmhInfoDTO {
  2 + authIcon: string;
  3 + authTitle: string;
  4 + authTitle2: string;
  5 + banControl: number;
  6 + cnAttention: number;
  7 + cnMainControl: number;
  8 + cnShareControl: number;
  9 + cnlsComment: number;
  10 + cnlsLike: number;
  11 + posterShareControl: number;
  12 + rmhDesc: string;
  13 + rmhHeadUrl: string;
  14 + rmhId: string;
  15 + rmhName: string;
  16 + userId: string;
  17 + userType: string;
  18 +}
  1 +export interface UserInfoDTO {
  2 + userHeadUrl:string
  3 +}
@@ -51,3 +51,5 @@ export { BigPicCardComponent } from "./src/main/ets/components/view/BigPicCardCo @@ -51,3 +51,5 @@ export { BigPicCardComponent } from "./src/main/ets/components/view/BigPicCardCo
51 export { HeadPictureCardComponent } from "./src/main/ets/components/view/HeadPictureCardComponent" 51 export { HeadPictureCardComponent } from "./src/main/ets/components/view/HeadPictureCardComponent"
52 52
53 export { ZhGridLayoutComponent } from "./src/main/ets/components/view/ZhGridLayoutComponent" 53 export { ZhGridLayoutComponent } from "./src/main/ets/components/view/ZhGridLayoutComponent"
  54 +
  55 +export { MultiPictureDetailPageComponent } from "./src/main/ets/components/MultiPictureDetailPageComponent"
  1 +import { Logger } from 'wdKit';
  2 +import { ContentDetailDTO } from 'wdBean';
  3 +import { MultiPictureDetailViewModel } from '../viewmodel/MultiPictureDetailViewModel';
  4 +import display from '@ohos.display';
  5 +import font from '@ohos.font';
  6 +
  7 +const TAG = 'MultiPictureDetailPageComponent';
  8 +
  9 +@Component
  10 +export struct MultiPictureDetailPageComponent {
  11 + private displayTool = display.getDefaultDisplaySync()
  12 + private screenWidth: number = 0
  13 + private picWidth: number = 0
  14 + @State picHeight: number = 0
  15 + @State relId: string = '500005189942'
  16 + @State contentId: string = '30043715146'
  17 + @State relType: string = '1'
  18 + @State contentDetailData: ContentDetailDTO[] = [{}] as ContentDetailDTO[]
  19 + @Provide @Watch('onCurrentPageNumUpdated') currentPageNum: string = '01'
  20 + private swiperController: SwiperController = new SwiperController()
  21 + @State swiperIndex: number = 0;
  22 +
  23 + //watch监听页码回调
  24 + onCurrentPageNumUpdated(): void {
  25 + Logger.info(TAG, `currentPageNum:${this.currentPageNum}`, )
  26 + let _swiperIndex = Number.parseInt(this.currentPageNum)
  27 + Logger.info(TAG, `_swiperIndex:${_swiperIndex}`)
  28 + this.swiperIndex = _swiperIndex > 0 ? _swiperIndex - 1 : _swiperIndex
  29 + }
  30 +
  31 +
  32 + async aboutToAppear() {
  33 + //获取宽高尺寸
  34 + this.screenWidth = this.displayTool.width
  35 + this.picWidth = this.screenWidth - vp2px(52)
  36 + this.picHeight = this.picWidth * 566 / 378
  37 + //注册字体
  38 + font.registerFont({
  39 + familyName: 'BebasNeue_Regular',
  40 + familySrc: $rawfile('font/BebasNeue_Regular.otf')
  41 + })
  42 + this.getContentDetailData()
  43 + }
  44 +
  45 + aboutToDisappear() {
  46 +
  47 + }
  48 +
  49 + build() {
  50 + RelativeContainer() {
  51 + if (this.contentDetailData && this.contentDetailData.length > 0) {
  52 + Swiper(this.swiperController) {
  53 + ForEach(this.contentDetailData, (item: ContentDetailDTO, index: number) => {
  54 + // ENewspaperItemComponent({ newspaperListItemBean: item })
  55 + })
  56 + }
  57 + .index(this.swiperIndex)
  58 + .width('100%')
  59 + .height(px2vp(this.picHeight) + 32)
  60 + .vertical(true)
  61 + .autoPlay(false)
  62 + .cachedCount(3)
  63 + .indicator(false)
  64 + .displayCount(1)
  65 + .margin({ top: 35, left: 10, right: 10 })
  66 + .id('e_newspaper_content')
  67 + .alignRules({
  68 + top: { anchor: "e_newspaper_top", align: VerticalAlign.Bottom },
  69 + middle: { anchor: "__container__", align: HorizontalAlign.Center }
  70 + })
  71 + .onChange((index: number) => {
  72 + this.swiperIndex = index
  73 + })
  74 + }}
  75 + }
  76 +
  77 + private async getContentDetailData() {
  78 + try {
  79 + let data = await MultiPictureDetailViewModel.getDetailData(this.relId, this.contentId, this.relType)
  80 + this.contentDetailData = data;
  81 + Logger.info(TAG, `contentDetailData:${JSON.stringify(this.contentDetailData)}`)
  82 + } catch (exception) {
  83 +
  84 + }
  85 + }
  86 +}
@@ -27,6 +27,7 @@ export default struct MinePageCreatorFunctionUI { @@ -27,6 +27,7 @@ export default struct MinePageCreatorFunctionUI {
27 .width('27lpx') 27 .width('27lpx')
28 .height('27lpx') 28 .height('27lpx')
29 .objectFit(ImageFit.Auto) 29 .objectFit(ImageFit.Auto)
  30 + .interpolation(ImageInterpolation.High)
30 } 31 }
31 32
32 }.setFullWidth() 33 }.setFullWidth()
@@ -42,6 +43,8 @@ export default struct MinePageCreatorFunctionUI { @@ -42,6 +43,8 @@ export default struct MinePageCreatorFunctionUI {
42 Image(item.imgSrc) 43 Image(item.imgSrc)
43 .width('50lpx') 44 .width('50lpx')
44 .height('50lpx') 45 .height('50lpx')
  46 + .objectFit(ImageFit.Auto)
  47 + .interpolation(ImageInterpolation.High)
45 Text(`${item.msg}`) 48 Text(`${item.msg}`)
46 .margin({top:'15lpx'}) 49 .margin({top:'15lpx'})
47 .width('96lpx') 50 .width('96lpx')
@@ -37,6 +37,8 @@ export default struct MinePageMoreFunctionUI { @@ -37,6 +37,8 @@ export default struct MinePageMoreFunctionUI {
37 .width('38lpx') 37 .width('38lpx')
38 .height('38lpx') 38 .height('38lpx')
39 .margin({ right: '15lpx' }) 39 .margin({ right: '15lpx' })
  40 + .objectFit(ImageFit.Auto)
  41 + .interpolation(ImageInterpolation.High)
40 } 42 }
41 Text(`${item.msg}`) 43 Text(`${item.msg}`)
42 .width('456lpx') 44 .width('456lpx')
@@ -50,6 +52,7 @@ export default struct MinePageMoreFunctionUI { @@ -50,6 +52,7 @@ export default struct MinePageMoreFunctionUI {
50 .width('27lpx') 52 .width('27lpx')
51 .height('27lpx') 53 .height('27lpx')
52 .objectFit(ImageFit.Auto) 54 .objectFit(ImageFit.Auto)
  55 + .interpolation(ImageInterpolation.High)
53 .margin({ left: '81lpx', right: '29lpx' }) 56 .margin({ left: '81lpx', right: '29lpx' })
54 }.alignItems(VerticalAlign.Center) 57 }.alignItems(VerticalAlign.Center)
55 .justifyContent(FlexAlign.Center) 58 .justifyContent(FlexAlign.Center)
@@ -5,6 +5,13 @@ import router from '@ohos.router' @@ -5,6 +5,13 @@ import router from '@ohos.router'
5 @Component 5 @Component
6 export default struct MinePagePersonFunctionUI { 6 export default struct MinePagePersonFunctionUI {
7 @Link personalData:MinePagePersonalFunctionsItem[] 7 @Link personalData:MinePagePersonalFunctionsItem[]
  8 + @Prop isLogin:boolean
  9 + @Consume('isLogin')@Watch('loginChange') loginState:Record<string,string>
  10 + loginChange(){
  11 + if(this.loginState){
  12 + this.isLogin=true
  13 + }
  14 + }
8 15
9 build() { 16 build() {
10 Grid(){ 17 Grid(){
@@ -15,6 +22,8 @@ export default struct MinePagePersonFunctionUI { @@ -15,6 +22,8 @@ export default struct MinePagePersonFunctionUI {
15 Image(item.imgSrc) 22 Image(item.imgSrc)
16 .width('46lpx') 23 .width('46lpx')
17 .height('46lpx') 24 .height('46lpx')
  25 + .objectFit(ImageFit.Auto)
  26 + .interpolation(ImageInterpolation.High)
18 Text(`${item.msg}`) 27 Text(`${item.msg}`)
19 .margin({top:'8lpx'}) 28 .margin({top:'8lpx'})
20 .width('50lpx') 29 .width('50lpx')
@@ -37,18 +46,34 @@ export default struct MinePagePersonFunctionUI { @@ -37,18 +46,34 @@ export default struct MinePagePersonFunctionUI {
37 console.log(index+"") 46 console.log(index+"")
38 switch (item.msg){ 47 switch (item.msg){
39 case "预约":{ 48 case "预约":{
  49 + if(!this.isLogin){
  50 + WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
  51 + return
  52 + }
40 WDRouterRule.jumpWithPage(WDRouterPage.appointmentListPage) 53 WDRouterRule.jumpWithPage(WDRouterPage.appointmentListPage)
41 break; 54 break;
42 } 55 }
43 case "关注":{ 56 case "关注":{
  57 + if(!this.isLogin){
  58 + WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
  59 + return
  60 + }
44 WDRouterRule.jumpWithPage(WDRouterPage.followListPage) 61 WDRouterRule.jumpWithPage(WDRouterPage.followListPage)
45 break; 62 break;
46 } 63 }
47 case "收藏":{ 64 case "收藏":{
  65 + if(!this.isLogin){
  66 + WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
  67 + return
  68 + }
48 WDRouterRule.jumpWithPage(WDRouterPage.myCollectionListPagePage) 69 WDRouterRule.jumpWithPage(WDRouterPage.myCollectionListPagePage)
49 break; 70 break;
50 } 71 }
51 case "历史":{ 72 case "历史":{
  73 + if(!this.isLogin){
  74 + WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
  75 + return
  76 + }
52 WDRouterRule.jumpWithPage(WDRouterPage.browsingHistoryPage) 77 WDRouterRule.jumpWithPage(WDRouterPage.browsingHistoryPage)
53 break; 78 break;
54 } 79 }