fanmingyou3_wd

增加底导组件,顶导组件

1 -import { GroupDTO } from 'wdBean'; 1 +import { BottomNavBean } from 'wdBean';
  2 +import { BottomNavigationComponent, PageViewModel } from 'wdComponent';
2 import { BreakpointConstants } from 'wdConstant'; 3 import { BreakpointConstants } from 'wdConstant';
3 -import { BreakpointSystem, LazyDataSource, Logger } from 'wdKit';  
4 -import { PageViewModel } from '../viewmodel/PageViewModel';  
5 -import { PageComponent } from './PageComponent'; 4 +import { BreakpointSystem, Logger } from 'wdKit';
6 5
7 const TAG = 'Index'; 6 const TAG = 'Index';
8 7
@@ -11,9 +10,7 @@ const TAG = 'Index'; @@ -11,9 +10,7 @@ const TAG = 'Index';
11 struct Index { 10 struct Index {
12 private breakpointSystem: BreakpointSystem = new BreakpointSystem() 11 private breakpointSystem: BreakpointSystem = new BreakpointSystem()
13 @StorageLink('currentBreakpoint') @Watch('watchCurrentBreakpoint') currentBreakpoint: string = BreakpointConstants.BREAKPOINT_XS; 12 @StorageLink('currentBreakpoint') @Watch('watchCurrentBreakpoint') currentBreakpoint: string = BreakpointConstants.BREAKPOINT_XS;
14 - @State groupList: LazyDataSource<GroupDTO> = new LazyDataSource();  
15 - // @Prop groupList: GroupDTO[] = [];  
16 - @State message: string = 'Hello Sight'; 13 + @State bottomNavList: BottomNavBean[] = []
17 14
18 watchCurrentBreakpoint() { 15 watchCurrentBreakpoint() {
19 Logger.info(TAG, `watchCurrentBreakpoint, this.currentBreakpoint: ${this.currentBreakpoint}`); 16 Logger.info(TAG, `watchCurrentBreakpoint, this.currentBreakpoint: ${this.currentBreakpoint}`);
@@ -21,17 +18,16 @@ struct Index { @@ -21,17 +18,16 @@ struct Index {
21 18
22 build() { 19 build() {
23 Column() { 20 Column() {
24 - PageComponent({ groupList: this.groupList }) 21 + BottomNavigationComponent({ bottomNavList: this.bottomNavList })
25 } 22 }
26 } 23 }
27 24
28 aboutToAppear() { 25 aboutToAppear() {
29 this.breakpointSystem.register() 26 this.breakpointSystem.register()
30 - // Logger.info(TAG, `aboutToAppear, this.currentTabIndex1: ${this.currentNavIndex}`);  
31 - // PageViewModel.getGroupDTO();  
32 - let groupDto = PageViewModel.getGroupDTO(getContext(this))  
33 - if (groupDto) {  
34 - this.groupList.push(groupDto) 27 + let bottomNav = PageViewModel.getBottomNavData(getContext(this))
  28 + if (bottomNav) {
  29 + Logger.info(TAG, `aboutToAppear, bottomNav.length: ${bottomNav.length}`);
  30 + this.bottomNavList = bottomNav
35 } 31 }
36 } 32 }
37 33
  1 +{
  2 + "code": "0",
  3 + "data": {
  4 + "backgroundColor": "#FFFFFF",
  5 + "bottomNavList": [
  6 + {
  7 + "backgroundUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/2e1d5f235d1a44cfb9fc120e8596c56b.png",
  8 + "channelChooseActionUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231227/vod/display/7c92f5b2a08b4a65aa9da13e66d5ad4a.pag",
  9 + "channelChooseCColor": "#666666",
  10 + "channelChooseColor": "#222222",
  11 + "channelMoreColor": "#666666",
  12 + "extraData": "{\"haveSearch\":\"1\",\"haveTopNav\":\"1\",\"leftIconurl\":\"\",\"rightIconUrl\":\"\"}",
  13 + "homePageColor": "#FFFFF",
  14 + "icon": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/0dc20f38da09405ea0ab675d700bc2ce.png",
  15 + "iconC": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/e162a5d3401045f298c237f1c795c015.gif",
  16 + "id": 201,
  17 + "immersiveIconCUrl": "",
  18 + "immersiveIconUrl": "",
  19 + "immersiveNameCColor": "#FFFFFF",
  20 + "immersiveNameColor": "#FFFFFF",
  21 + "logoUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231229/image/display/51d568f9af05421f9754a2c08906dc42.png",
  22 + "morningAndEveningUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/0f37cc0c86194c969d2143f85c056c9c.png",
  23 + "name": "新闻",
  24 + "nameCColor": "#ED2800",
  25 + "nameColor": "#999999",
  26 + "nightIconCUrl": "",
  27 + "nightIconUrl": "",
  28 + "nightNameCColor": "",
  29 + "nightNameColor": "",
  30 + "noticeColor": "#FFFFFF",
  31 + "pageId": null,
  32 + "pageType": null,
  33 + "searchBothColor": "#666666",
  34 + "searchUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/2f2a9b3af5334eac8d7c3b6007240b83.png",
  35 + "sortValue": 1,
  36 + "statusBarColor": 1,
  37 + "topNavChannelList": [
  38 + {
  39 + "channelId": 2002,
  40 + "channelStyle": 2,
  41 + "channelType": 1,
  42 + "defaultPermitted": 1,
  43 + "delPermitted": 0,
  44 + "fontCColor": "#FFFFFF",
  45 + "fontColor": "#F9AB99",
  46 + "headlinesOn": 0,
  47 + "homeChannel": "0",
  48 + "iconCUrl": "",
  49 + "iconCUrlSize": "",
  50 + "iconUrl": "",
  51 + "iconUrlSize": "",
  52 + "localChannel": "0",
  53 + "moreChannel": "0",
  54 + "movePermitted": 0,
  55 + "myChannel": "0",
  56 + "name": "热点",
  57 + "num": 1,
  58 + "pageId": 20012,
  59 + "pageType": "",
  60 + "underlineCColor": ""
  61 + },
  62 + {
  63 + "channelId": 2001,
  64 + "channelStyle": 2,
  65 + "channelType": 1,
  66 + "defaultPermitted": 1,
  67 + "delPermitted": 0,
  68 + "fontCColor": "#FFFFFF",
  69 + "fontColor": "#F9AB99",
  70 + "headlinesOn": 0,
  71 + "homeChannel": "0",
  72 + "iconCUrl": "",
  73 + "iconCUrlSize": "",
  74 + "iconUrl": "",
  75 + "iconUrlSize": "",
  76 + "localChannel": "0",
  77 + "moreChannel": "0",
  78 + "movePermitted": 0,
  79 + "myChannel": "0",
  80 + "name": "推荐",
  81 + "num": 2,
  82 + "pageId": 20011,
  83 + "pageType": "",
  84 + "underlineCColor": ""
  85 + },
  86 + {
  87 + "channelId": 2009,
  88 + "channelStyle": 2,
  89 + "channelType": 1,
  90 + "defaultPermitted": 0,
  91 + "delPermitted": 1,
  92 + "fontCColor": "#FFFFFF",
  93 + "fontColor": "#F9AB99",
  94 + "headlinesOn": 0,
  95 + "homeChannel": "0",
  96 + "iconCUrl": "",
  97 + "iconCUrlSize": "",
  98 + "iconUrl": "",
  99 + "iconUrlSize": "",
  100 + "localChannel": "0",
  101 + "moreChannel": "0",
  102 + "movePermitted": 1,
  103 + "myChannel": "0",
  104 + "name": "社会",
  105 + "num": 3,
  106 + "pageId": 20019,
  107 + "pageType": "",
  108 + "underlineCColor": ""
  109 + },
  110 + {
  111 + "channelId": 2066,
  112 + "channelStyle": 3,
  113 + "channelType": 1,
  114 + "defaultPermitted": 0,
  115 + "delPermitted": 1,
  116 + "fontCColor": "#FFFFFF",
  117 + "fontColor": "#F9AB99",
  118 + "headlinesOn": 0,
  119 + "homeChannel": "0",
  120 + "iconCUrl": "",
  121 + "iconCUrlSize": "",
  122 + "iconUrl": "",
  123 + "iconUrlSize": "",
  124 + "localChannel": "0",
  125 + "moreChannel": "0",
  126 + "movePermitted": 1,
  127 + "myChannel": "0",
  128 + "name": "播报",
  129 + "num": 4,
  130 + "pageId": 21003,
  131 + "pageType": "",
  132 + "underlineCColor": ""
  133 + },
  134 + {
  135 + "channelId": 2012,
  136 + "channelStyle": 2,
  137 + "channelType": 1,
  138 + "defaultPermitted": 0,
  139 + "delPermitted": 1,
  140 + "fontCColor": "#FFFFFF",
  141 + "fontColor": "#F9AB99",
  142 + "headlinesOn": 0,
  143 + "homeChannel": "0",
  144 + "iconCUrl": "",
  145 + "iconCUrlSize": "",
  146 + "iconUrl": "",
  147 + "iconUrlSize": "",
  148 + "localChannel": "0",
  149 + "moreChannel": "0",
  150 + "movePermitted": 0,
  151 + "myChannel": "0",
  152 + "name": "文化",
  153 + "num": 5,
  154 + "pageId": 20022,
  155 + "pageType": "",
  156 + "underlineCColor": ""
  157 + },
  158 + {
  159 + "channelId": 2007,
  160 + "channelStyle": 2,
  161 + "channelType": 1,
  162 + "defaultPermitted": 0,
  163 + "delPermitted": 1,
  164 + "fontCColor": "#FFFFFF",
  165 + "fontColor": "#F9AB99",
  166 + "headlinesOn": 0,
  167 + "homeChannel": "0",
  168 + "iconCUrl": "",
  169 + "iconCUrlSize": "",
  170 + "iconUrl": "",
  171 + "iconUrlSize": "",
  172 + "localChannel": "0",
  173 + "moreChannel": "0",
  174 + "movePermitted": 1,
  175 + "myChannel": "0",
  176 + "name": "镜头",
  177 + "num": 6,
  178 + "pageId": 20017,
  179 + "pageType": "",
  180 + "underlineCColor": ""
  181 + },
  182 + {
  183 + "channelId": 2006,
  184 + "channelStyle": 3,
  185 + "channelType": 1,
  186 + "defaultPermitted": 0,
  187 + "delPermitted": 1,
  188 + "fontCColor": "#FFFFFF",
  189 + "fontColor": "#F9AB99",
  190 + "headlinesOn": 0,
  191 + "homeChannel": "0",
  192 + "iconCUrl": "",
  193 + "iconCUrlSize": "",
  194 + "iconUrl": "",
  195 + "iconUrlSize": "",
  196 + "localChannel": "0",
  197 + "moreChannel": "0",
  198 + "movePermitted": 1,
  199 + "myChannel": "0",
  200 + "name": "版面",
  201 + "num": 7,
  202 + "pageId": 20016,
  203 + "pageType": "",
  204 + "underlineCColor": ""
  205 + },
  206 + {
  207 + "channelId": 2015,
  208 + "channelStyle": 2,
  209 + "channelType": 1,
  210 + "defaultPermitted": 0,
  211 + "delPermitted": 1,
  212 + "fontCColor": "#FFFFFF",
  213 + "fontColor": "#F9AB99",
  214 + "headlinesOn": 0,
  215 + "homeChannel": "0",
  216 + "iconCUrl": "",
  217 + "iconCUrlSize": "210*60",
  218 + "iconUrl": "",
  219 + "iconUrlSize": "210*60",
  220 + "localChannel": "0",
  221 + "moreChannel": "0",
  222 + "movePermitted": 1,
  223 + "myChannel": "0",
  224 + "name": "科技",
  225 + "num": 8,
  226 + "pageId": 20025,
  227 + "pageType": "",
  228 + "underlineCColor": ""
  229 + },
  230 + {
  231 + "channelId": 2063,
  232 + "channelStyle": 2,
  233 + "channelType": 1,
  234 + "defaultPermitted": 0,
  235 + "delPermitted": 0,
  236 + "fontCColor": "#FFFFFF",
  237 + "fontColor": "#F9AB99",
  238 + "headlinesOn": 0,
  239 + "homeChannel": "0",
  240 + "iconCUrl": "",
  241 + "iconCUrlSize": "",
  242 + "iconUrl": "",
  243 + "iconUrlSize": "",
  244 + "localChannel": "0",
  245 + "moreChannel": "0",
  246 + "movePermitted": 1,
  247 + "myChannel": "0",
  248 + "name": "两会",
  249 + "num": 9,
  250 + "pageId": 21000,
  251 + "pageType": "",
  252 + "underlineCColor": ""
  253 + },
  254 + {
  255 + "channelId": 2064,
  256 + "channelStyle": 2,
  257 + "channelType": 1,
  258 + "defaultPermitted": 0,
  259 + "delPermitted": 1,
  260 + "fontCColor": "#FFFFFF",
  261 + "fontColor": "#F9AB99",
  262 + "headlinesOn": 0,
  263 + "homeChannel": "0",
  264 + "iconCUrl": "",
  265 + "iconCUrlSize": "",
  266 + "iconUrl": "",
  267 + "iconUrlSize": "",
  268 + "localChannel": "0",
  269 + "moreChannel": "0",
  270 + "movePermitted": 1,
  271 + "myChannel": "0",
  272 + "name": "二十大",
  273 + "num": 10,
  274 + "pageId": 21001,
  275 + "pageType": "",
  276 + "underlineCColor": ""
  277 + },
  278 + {
  279 + "channelId": 2003,
  280 + "channelStyle": 2,
  281 + "channelType": 1,
  282 + "defaultPermitted": 0,
  283 + "delPermitted": 1,
  284 + "fontCColor": "#FFFFFF",
  285 + "fontColor": "#F9AB99",
  286 + "headlinesOn": 0,
  287 + "homeChannel": "0",
  288 + "iconCUrl": "",
  289 + "iconCUrlSize": "",
  290 + "iconUrl": "",
  291 + "iconUrlSize": "",
  292 + "localChannel": "0",
  293 + "moreChannel": "0",
  294 + "movePermitted": 1,
  295 + "myChannel": "0",
  296 + "name": "锐评",
  297 + "num": 11,
  298 + "pageId": 20013,
  299 + "pageType": "",
  300 + "underlineCColor": ""
  301 + },
  302 + {
  303 + "channelId": 2011,
  304 + "channelStyle": 2,
  305 + "channelType": 1,
  306 + "defaultPermitted": 0,
  307 + "delPermitted": 1,
  308 + "fontCColor": "#FFFFFF",
  309 + "fontColor": "#F9AB99",
  310 + "headlinesOn": 0,
  311 + "homeChannel": "0",
  312 + "iconCUrl": "",
  313 + "iconCUrlSize": "",
  314 + "iconUrl": "",
  315 + "iconUrlSize": "",
  316 + "localChannel": "0",
  317 + "moreChannel": "0",
  318 + "movePermitted": 1,
  319 + "myChannel": "0",
  320 + "name": "体育",
  321 + "num": 12,
  322 + "pageId": 20021,
  323 + "pageType": "",
  324 + "underlineCColor": ""
  325 + },
  326 + {
  327 + "channelId": 2005,
  328 + "channelStyle": 2,
  329 + "channelType": 1,
  330 + "defaultPermitted": 0,
  331 + "delPermitted": 1,
  332 + "fontCColor": "#FFFFFF",
  333 + "fontColor": "#F9AB99",
  334 + "headlinesOn": 0,
  335 + "homeChannel": "0",
  336 + "iconCUrl": "",
  337 + "iconCUrlSize": "",
  338 + "iconUrl": "",
  339 + "iconUrlSize": "",
  340 + "localChannel": "0",
  341 + "moreChannel": "0",
  342 + "movePermitted": 1,
  343 + "myChannel": "0",
  344 + "name": "文件",
  345 + "num": 14,
  346 + "pageId": 20015,
  347 + "pageType": "",
  348 + "underlineCColor": ""
  349 + },
  350 + {
  351 + "channelId": 2065,
  352 + "channelStyle": 2,
  353 + "channelType": 1,
  354 + "defaultPermitted": 0,
  355 + "delPermitted": 1,
  356 + "fontCColor": "#FFFFFF",
  357 + "fontColor": "#F9AB99",
  358 + "headlinesOn": 0,
  359 + "homeChannel": "0",
  360 + "iconCUrl": "",
  361 + "iconCUrlSize": "",
  362 + "iconUrl": "",
  363 + "iconUrlSize": "",
  364 + "localChannel": "0",
  365 + "moreChannel": "0",
  366 + "movePermitted": 1,
  367 + "myChannel": "0",
  368 + "name": "三农",
  369 + "num": 15,
  370 + "pageId": 21002,
  371 + "pageType": "",
  372 + "underlineCColor": ""
  373 + },
  374 + {
  375 + "channelId": 2016,
  376 + "channelStyle": 2,
  377 + "channelType": 1,
  378 + "defaultPermitted": 0,
  379 + "delPermitted": 1,
  380 + "fontCColor": "#FFFFFF",
  381 + "fontColor": "#F9AB99",
  382 + "headlinesOn": 0,
  383 + "homeChannel": "0",
  384 + "iconCUrl": "",
  385 + "iconCUrlSize": "",
  386 + "iconUrl": "",
  387 + "iconUrlSize": "",
  388 + "localChannel": "0",
  389 + "moreChannel": "0",
  390 + "movePermitted": 1,
  391 + "myChannel": "0",
  392 + "name": "乡村振兴",
  393 + "num": 16,
  394 + "pageId": 20026,
  395 + "pageType": "",
  396 + "underlineCColor": ""
  397 + },
  398 + {
  399 + "channelId": 2010,
  400 + "channelStyle": 2,
  401 + "channelType": 1,
  402 + "defaultPermitted": 0,
  403 + "delPermitted": 1,
  404 + "fontCColor": "#FFFFFF",
  405 + "fontColor": "#F9AB99",
  406 + "headlinesOn": 0,
  407 + "homeChannel": "0",
  408 + "iconCUrl": "",
  409 + "iconCUrlSize": "",
  410 + "iconUrl": "",
  411 + "iconUrlSize": "",
  412 + "localChannel": "0",
  413 + "moreChannel": "0",
  414 + "movePermitted": 1,
  415 + "myChannel": "0",
  416 + "name": "财经",
  417 + "num": 18,
  418 + "pageId": 20020,
  419 + "pageType": "",
  420 + "underlineCColor": ""
  421 + },
  422 + {
  423 + "channelId": 2013,
  424 + "channelStyle": 2,
  425 + "channelType": 1,
  426 + "defaultPermitted": 0,
  427 + "delPermitted": 1,
  428 + "fontCColor": "#FFFFFF",
  429 + "fontColor": "#F9AB99",
  430 + "headlinesOn": 0,
  431 + "homeChannel": "0",
  432 + "iconCUrl": "",
  433 + "iconCUrlSize": "",
  434 + "iconUrl": "",
  435 + "iconUrlSize": "",
  436 + "localChannel": "0",
  437 + "moreChannel": "0",
  438 + "movePermitted": 1,
  439 + "myChannel": "0",
  440 + "name": "教育",
  441 + "num": 19,
  442 + "pageId": 20023,
  443 + "pageType": "",
  444 + "underlineCColor": ""
  445 + },
  446 + {
  447 + "channelId": 2017,
  448 + "channelStyle": 2,
  449 + "channelType": 1,
  450 + "defaultPermitted": 0,
  451 + "delPermitted": 1,
  452 + "fontCColor": "#FFFFFF",
  453 + "fontColor": "#F9AB99",
  454 + "headlinesOn": 0,
  455 + "homeChannel": "0",
  456 + "iconCUrl": "",
  457 + "iconCUrlSize": "",
  458 + "iconUrl": "",
  459 + "iconUrlSize": "",
  460 + "localChannel": "0",
  461 + "moreChannel": "0",
  462 + "movePermitted": 1,
  463 + "myChannel": "0",
  464 + "name": "健康",
  465 + "num": 20,
  466 + "pageId": 20027,
  467 + "pageType": "",
  468 + "underlineCColor": ""
  469 + },
  470 + {
  471 + "channelId": 2014,
  472 + "channelStyle": 2,
  473 + "channelType": 1,
  474 + "defaultPermitted": 0,
  475 + "delPermitted": 1,
  476 + "fontCColor": "#FFFFFF",
  477 + "fontColor": "#F9AB99",
  478 + "headlinesOn": 0,
  479 + "homeChannel": "0",
  480 + "iconCUrl": "",
  481 + "iconCUrlSize": "",
  482 + "iconUrl": "",
  483 + "iconUrlSize": "",
  484 + "localChannel": "0",
  485 + "moreChannel": "0",
  486 + "movePermitted": 1,
  487 + "myChannel": "0",
  488 + "name": "军事",
  489 + "num": 21,
  490 + "pageId": 20024,
  491 + "pageType": "",
  492 + "underlineCColor": ""
  493 + },
  494 + {
  495 + "channelId": 2018,
  496 + "channelStyle": 2,
  497 + "channelType": 1,
  498 + "defaultPermitted": 0,
  499 + "delPermitted": 1,
  500 + "fontCColor": "#FFFFFF",
  501 + "fontColor": "#F9AB99",
  502 + "headlinesOn": 0,
  503 + "homeChannel": "0",
  504 + "iconCUrl": "",
  505 + "iconCUrlSize": "",
  506 + "iconUrl": "",
  507 + "iconUrlSize": "",
  508 + "localChannel": "0",
  509 + "moreChannel": "0",
  510 + "movePermitted": 1,
  511 + "myChannel": "0",
  512 + "name": "汽车",
  513 + "num": 22,
  514 + "pageId": 20028,
  515 + "pageType": "",
  516 + "underlineCColor": ""
  517 + },
  518 + {
  519 + "channelId": 2019,
  520 + "channelStyle": 2,
  521 + "channelType": 1,
  522 + "defaultPermitted": 0,
  523 + "delPermitted": 1,
  524 + "fontCColor": "#FFFFFF",
  525 + "fontColor": "#F9AB99",
  526 + "headlinesOn": 0,
  527 + "homeChannel": "0",
  528 + "iconCUrl": "",
  529 + "iconCUrlSize": "",
  530 + "iconUrl": "",
  531 + "iconUrlSize": "",
  532 + "localChannel": "0",
  533 + "moreChannel": "0",
  534 + "movePermitted": 1,
  535 + "myChannel": "0",
  536 + "name": "房产",
  537 + "num": 23,
  538 + "pageId": 20029,
  539 + "pageType": "",
  540 + "underlineCColor": ""
  541 + },
  542 + {
  543 + "channelId": 2027,
  544 + "channelStyle": 2,
  545 + "channelType": 2,
  546 + "defaultPermitted": 0,
  547 + "delPermitted": 1,
  548 + "fontCColor": "#FFFFFF",
  549 + "fontColor": "#F9AB99",
  550 + "headlinesOn": 0,
  551 + "homeChannel": "0",
  552 + "iconCUrl": "",
  553 + "iconCUrlSize": "",
  554 + "iconUrl": "",
  555 + "iconUrlSize": "",
  556 + "localChannel": "0",
  557 + "moreChannel": "0",
  558 + "movePermitted": 1,
  559 + "myChannel": "0",
  560 + "name": "北京",
  561 + "num": 24,
  562 + "pageId": 20037,
  563 + "pageType": "",
  564 + "underlineCColor": ""
  565 + },
  566 + {
  567 + "channelId": 2029,
  568 + "channelStyle": 2,
  569 + "channelType": 2,
  570 + "defaultPermitted": 0,
  571 + "delPermitted": 1,
  572 + "fontCColor": "#FFFFFF",
  573 + "fontColor": "#F9AB99",
  574 + "headlinesOn": 0,
  575 + "homeChannel": "0",
  576 + "iconCUrl": "",
  577 + "iconCUrlSize": "",
  578 + "iconUrl": "",
  579 + "iconUrlSize": "",
  580 + "localChannel": "0",
  581 + "moreChannel": "0",
  582 + "movePermitted": 1,
  583 + "myChannel": "0",
  584 + "name": "天津",
  585 + "num": 25,
  586 + "pageId": 20039,
  587 + "pageType": "",
  588 + "underlineCColor": ""
  589 + },
  590 + {
  591 + "channelId": 2030,
  592 + "channelStyle": 2,
  593 + "channelType": 2,
  594 + "defaultPermitted": 0,
  595 + "delPermitted": 1,
  596 + "fontCColor": "#FFFFFF",
  597 + "fontColor": "#F9AB99",
  598 + "headlinesOn": 0,
  599 + "homeChannel": "0",
  600 + "iconCUrl": "",
  601 + "iconCUrlSize": "",
  602 + "iconUrl": "",
  603 + "iconUrlSize": "",
  604 + "localChannel": "0",
  605 + "moreChannel": "0",
  606 + "movePermitted": 1,
  607 + "myChannel": "0",
  608 + "name": "河北",
  609 + "num": 26,
  610 + "pageId": 20040,
  611 + "pageType": "",
  612 + "underlineCColor": ""
  613 + },
  614 + {
  615 + "channelId": 2031,
  616 + "channelStyle": 2,
  617 + "channelType": 2,
  618 + "defaultPermitted": 0,
  619 + "delPermitted": 1,
  620 + "fontCColor": "#FFFFFF",
  621 + "fontColor": "#F9AB99",
  622 + "headlinesOn": 0,
  623 + "homeChannel": "0",
  624 + "iconCUrl": "",
  625 + "iconCUrlSize": "",
  626 + "iconUrl": "",
  627 + "iconUrlSize": "",
  628 + "localChannel": "0",
  629 + "moreChannel": "0",
  630 + "movePermitted": 1,
  631 + "myChannel": "0",
  632 + "name": "山西",
  633 + "num": 27,
  634 + "pageId": 20041,
  635 + "pageType": "",
  636 + "underlineCColor": ""
  637 + },
  638 + {
  639 + "channelId": 2032,
  640 + "channelStyle": 2,
  641 + "channelType": 2,
  642 + "defaultPermitted": 0,
  643 + "delPermitted": 1,
  644 + "fontCColor": "#FFFFFF",
  645 + "fontColor": "#F9AB99",
  646 + "headlinesOn": 0,
  647 + "homeChannel": "0",
  648 + "iconCUrl": "",
  649 + "iconCUrlSize": "",
  650 + "iconUrl": "",
  651 + "iconUrlSize": "",
  652 + "localChannel": "0",
  653 + "moreChannel": "0",
  654 + "movePermitted": 1,
  655 + "myChannel": "0",
  656 + "name": "内蒙古",
  657 + "num": 28,
  658 + "pageId": 20042,
  659 + "pageType": "",
  660 + "underlineCColor": ""
  661 + },
  662 + {
  663 + "channelId": 2033,
  664 + "channelStyle": 2,
  665 + "channelType": 2,
  666 + "defaultPermitted": 0,
  667 + "delPermitted": 1,
  668 + "fontCColor": "#FFFFFF",
  669 + "fontColor": "#F9AB99",
  670 + "headlinesOn": 0,
  671 + "homeChannel": "0",
  672 + "iconCUrl": "",
  673 + "iconCUrlSize": "",
  674 + "iconUrl": "",
  675 + "iconUrlSize": "",
  676 + "localChannel": "0",
  677 + "moreChannel": "0",
  678 + "movePermitted": 1,
  679 + "myChannel": "0",
  680 + "name": "辽宁",
  681 + "num": 29,
  682 + "pageId": 20043,
  683 + "pageType": "",
  684 + "underlineCColor": ""
  685 + },
  686 + {
  687 + "channelId": 2034,
  688 + "channelStyle": 2,
  689 + "channelType": 2,
  690 + "defaultPermitted": 0,
  691 + "delPermitted": 1,
  692 + "fontCColor": "#FFFFFF",
  693 + "fontColor": "#F9AB99",
  694 + "headlinesOn": 0,
  695 + "homeChannel": "0",
  696 + "iconCUrl": "",
  697 + "iconCUrlSize": "",
  698 + "iconUrl": "",
  699 + "iconUrlSize": "",
  700 + "localChannel": "0",
  701 + "moreChannel": "0",
  702 + "movePermitted": 1,
  703 + "myChannel": "0",
  704 + "name": "吉林",
  705 + "num": 30,
  706 + "pageId": 20044,
  707 + "pageType": "",
  708 + "underlineCColor": ""
  709 + },
  710 + {
  711 + "channelId": 2035,
  712 + "channelStyle": 2,
  713 + "channelType": 2,
  714 + "defaultPermitted": 0,
  715 + "delPermitted": 1,
  716 + "fontCColor": "#FFFFFF",
  717 + "fontColor": "#F9AB99",
  718 + "headlinesOn": 0,
  719 + "homeChannel": "0",
  720 + "iconCUrl": "",
  721 + "iconCUrlSize": "",
  722 + "iconUrl": "",
  723 + "iconUrlSize": "",
  724 + "localChannel": "0",
  725 + "moreChannel": "0",
  726 + "movePermitted": 1,
  727 + "myChannel": "0",
  728 + "name": "黑龙江",
  729 + "num": 31,
  730 + "pageId": 20045,
  731 + "pageType": "",
  732 + "underlineCColor": ""
  733 + },
  734 + {
  735 + "channelId": 2028,
  736 + "channelStyle": 2,
  737 + "channelType": 2,
  738 + "defaultPermitted": 0,
  739 + "delPermitted": 1,
  740 + "fontCColor": "#FFFFFF",
  741 + "fontColor": "#F9AB99",
  742 + "headlinesOn": 0,
  743 + "homeChannel": "0",
  744 + "iconCUrl": "",
  745 + "iconCUrlSize": "",
  746 + "iconUrl": "",
  747 + "iconUrlSize": "",
  748 + "localChannel": "0",
  749 + "moreChannel": "0",
  750 + "movePermitted": 1,
  751 + "myChannel": "0",
  752 + "name": "上海",
  753 + "num": 32,
  754 + "pageId": 20038,
  755 + "pageType": "",
  756 + "underlineCColor": ""
  757 + },
  758 + {
  759 + "channelId": 2036,
  760 + "channelStyle": 2,
  761 + "channelType": 2,
  762 + "defaultPermitted": 0,
  763 + "delPermitted": 1,
  764 + "fontCColor": "#FFFFFF",
  765 + "fontColor": "#F9AB99",
  766 + "headlinesOn": 0,
  767 + "homeChannel": "0",
  768 + "iconCUrl": "",
  769 + "iconCUrlSize": "",
  770 + "iconUrl": "",
  771 + "iconUrlSize": "",
  772 + "localChannel": "0",
  773 + "moreChannel": "0",
  774 + "movePermitted": 1,
  775 + "myChannel": "0",
  776 + "name": "江苏",
  777 + "num": 33,
  778 + "pageId": 20046,
  779 + "pageType": "",
  780 + "underlineCColor": ""
  781 + },
  782 + {
  783 + "channelId": 2037,
  784 + "channelStyle": 2,
  785 + "channelType": 2,
  786 + "defaultPermitted": 0,
  787 + "delPermitted": 1,
  788 + "fontCColor": "#FFFFFF",
  789 + "fontColor": "#F9AB99",
  790 + "headlinesOn": 0,
  791 + "homeChannel": "0",
  792 + "iconCUrl": "",
  793 + "iconCUrlSize": "",
  794 + "iconUrl": "",
  795 + "iconUrlSize": "",
  796 + "localChannel": "0",
  797 + "moreChannel": "0",
  798 + "movePermitted": 1,
  799 + "myChannel": "0",
  800 + "name": "浙江",
  801 + "num": 34,
  802 + "pageId": 20047,
  803 + "pageType": "",
  804 + "underlineCColor": ""
  805 + },
  806 + {
  807 + "channelId": 2038,
  808 + "channelStyle": 2,
  809 + "channelType": 2,
  810 + "defaultPermitted": 0,
  811 + "delPermitted": 1,
  812 + "fontCColor": "#FFFFFF",
  813 + "fontColor": "#F9AB99",
  814 + "headlinesOn": 0,
  815 + "homeChannel": "0",
  816 + "iconCUrl": "",
  817 + "iconCUrlSize": "",
  818 + "iconUrl": "",
  819 + "iconUrlSize": "",
  820 + "localChannel": "0",
  821 + "moreChannel": "0",
  822 + "movePermitted": 1,
  823 + "myChannel": "0",
  824 + "name": "安徽",
  825 + "num": 35,
  826 + "pageId": 20048,
  827 + "pageType": "",
  828 + "underlineCColor": ""
  829 + },
  830 + {
  831 + "channelId": 2039,
  832 + "channelStyle": 2,
  833 + "channelType": 2,
  834 + "defaultPermitted": 0,
  835 + "delPermitted": 1,
  836 + "fontCColor": "#FFFFFF",
  837 + "fontColor": "#F9AB99",
  838 + "headlinesOn": 0,
  839 + "homeChannel": "0",
  840 + "iconCUrl": "",
  841 + "iconCUrlSize": "",
  842 + "iconUrl": "",
  843 + "iconUrlSize": "",
  844 + "localChannel": "0",
  845 + "moreChannel": "0",
  846 + "movePermitted": 1,
  847 + "myChannel": "0",
  848 + "name": "福建",
  849 + "num": 36,
  850 + "pageId": 20049,
  851 + "pageType": "",
  852 + "underlineCColor": ""
  853 + },
  854 + {
  855 + "channelId": 2040,
  856 + "channelStyle": 2,
  857 + "channelType": 2,
  858 + "defaultPermitted": 0,
  859 + "delPermitted": 1,
  860 + "fontCColor": "#FFFFFF",
  861 + "fontColor": "#F9AB99",
  862 + "headlinesOn": 0,
  863 + "homeChannel": "0",
  864 + "iconCUrl": "",
  865 + "iconCUrlSize": "",
  866 + "iconUrl": "",
  867 + "iconUrlSize": "",
  868 + "localChannel": "0",
  869 + "moreChannel": "0",
  870 + "movePermitted": 1,
  871 + "myChannel": "0",
  872 + "name": "江西",
  873 + "num": 37,
  874 + "pageId": 20050,
  875 + "pageType": "",
  876 + "underlineCColor": ""
  877 + },
  878 + {
  879 + "channelId": 2041,
  880 + "channelStyle": 2,
  881 + "channelType": 2,
  882 + "defaultPermitted": 0,
  883 + "delPermitted": 1,
  884 + "fontCColor": "#FFFFFF",
  885 + "fontColor": "#F9AB99",
  886 + "headlinesOn": 0,
  887 + "homeChannel": "0",
  888 + "iconCUrl": "",
  889 + "iconCUrlSize": "",
  890 + "iconUrl": "",
  891 + "iconUrlSize": "",
  892 + "localChannel": "0",
  893 + "moreChannel": "0",
  894 + "movePermitted": 1,
  895 + "myChannel": "0",
  896 + "name": "山东",
  897 + "num": 38,
  898 + "pageId": 20051,
  899 + "pageType": "",
  900 + "underlineCColor": ""
  901 + },
  902 + {
  903 + "channelId": 2042,
  904 + "channelStyle": 2,
  905 + "channelType": 2,
  906 + "defaultPermitted": 0,
  907 + "delPermitted": 1,
  908 + "fontCColor": "#FFFFFF",
  909 + "fontColor": "#F9AB99",
  910 + "headlinesOn": 0,
  911 + "homeChannel": "0",
  912 + "iconCUrl": "",
  913 + "iconCUrlSize": "",
  914 + "iconUrl": "",
  915 + "iconUrlSize": "",
  916 + "localChannel": "0",
  917 + "moreChannel": "0",
  918 + "movePermitted": 1,
  919 + "myChannel": "0",
  920 + "name": "河南",
  921 + "num": 39,
  922 + "pageId": 20052,
  923 + "pageType": "",
  924 + "underlineCColor": ""
  925 + },
  926 + {
  927 + "channelId": 2043,
  928 + "channelStyle": 2,
  929 + "channelType": 2,
  930 + "defaultPermitted": 0,
  931 + "delPermitted": 1,
  932 + "fontCColor": "#FFFFFF",
  933 + "fontColor": "#F9AB99",
  934 + "headlinesOn": 0,
  935 + "homeChannel": "0",
  936 + "iconCUrl": "",
  937 + "iconCUrlSize": "",
  938 + "iconUrl": "",
  939 + "iconUrlSize": "",
  940 + "localChannel": "0",
  941 + "moreChannel": "0",
  942 + "movePermitted": 1,
  943 + "myChannel": "0",
  944 + "name": "湖北",
  945 + "num": 40,
  946 + "pageId": 20053,
  947 + "pageType": "",
  948 + "underlineCColor": ""
  949 + },
  950 + {
  951 + "channelId": 2044,
  952 + "channelStyle": 2,
  953 + "channelType": 2,
  954 + "defaultPermitted": 0,
  955 + "delPermitted": 1,
  956 + "fontCColor": "#FFFFFF",
  957 + "fontColor": "#F9AB99",
  958 + "headlinesOn": 0,
  959 + "homeChannel": "0",
  960 + "iconCUrl": "",
  961 + "iconCUrlSize": "",
  962 + "iconUrl": "",
  963 + "iconUrlSize": "",
  964 + "localChannel": "0",
  965 + "moreChannel": "0",
  966 + "movePermitted": 1,
  967 + "myChannel": "0",
  968 + "name": "湖南",
  969 + "num": 41,
  970 + "pageId": 20054,
  971 + "pageType": "",
  972 + "underlineCColor": ""
  973 + },
  974 + {
  975 + "channelId": 2045,
  976 + "channelStyle": 2,
  977 + "channelType": 2,
  978 + "defaultPermitted": 0,
  979 + "delPermitted": 1,
  980 + "fontCColor": "#FFFFFF",
  981 + "fontColor": "#F9AB99",
  982 + "headlinesOn": 0,
  983 + "homeChannel": "0",
  984 + "iconCUrl": "",
  985 + "iconCUrlSize": "",
  986 + "iconUrl": "",
  987 + "iconUrlSize": "",
  988 + "localChannel": "0",
  989 + "moreChannel": "0",
  990 + "movePermitted": 1,
  991 + "myChannel": "0",
  992 + "name": "广东",
  993 + "num": 42,
  994 + "pageId": 20055,
  995 + "pageType": "",
  996 + "underlineCColor": ""
  997 + },
  998 + {
  999 + "channelId": 2046,
  1000 + "channelStyle": 2,
  1001 + "channelType": 2,
  1002 + "defaultPermitted": 0,
  1003 + "delPermitted": 1,
  1004 + "fontCColor": "#FFFFFF",
  1005 + "fontColor": "#F9AB99",
  1006 + "headlinesOn": 0,
  1007 + "homeChannel": "0",
  1008 + "iconCUrl": "",
  1009 + "iconCUrlSize": "",
  1010 + "iconUrl": "",
  1011 + "iconUrlSize": "",
  1012 + "localChannel": "0",
  1013 + "moreChannel": "0",
  1014 + "movePermitted": 1,
  1015 + "myChannel": "0",
  1016 + "name": "广西",
  1017 + "num": 43,
  1018 + "pageId": 20056,
  1019 + "pageType": "",
  1020 + "underlineCColor": ""
  1021 + },
  1022 + {
  1023 + "channelId": 2047,
  1024 + "channelStyle": 2,
  1025 + "channelType": 2,
  1026 + "defaultPermitted": 0,
  1027 + "delPermitted": 1,
  1028 + "fontCColor": "#FFFFFF",
  1029 + "fontColor": "#F9AB99",
  1030 + "headlinesOn": 0,
  1031 + "homeChannel": "0",
  1032 + "iconCUrl": "",
  1033 + "iconCUrlSize": "",
  1034 + "iconUrl": "",
  1035 + "iconUrlSize": "",
  1036 + "localChannel": "0",
  1037 + "moreChannel": "0",
  1038 + "movePermitted": 1,
  1039 + "myChannel": "0",
  1040 + "name": "海南",
  1041 + "num": 44,
  1042 + "pageId": 20057,
  1043 + "pageType": "",
  1044 + "underlineCColor": ""
  1045 + },
  1046 + {
  1047 + "channelId": 2048,
  1048 + "channelStyle": 2,
  1049 + "channelType": 2,
  1050 + "defaultPermitted": 0,
  1051 + "delPermitted": 1,
  1052 + "fontCColor": "#FFFFFF",
  1053 + "fontColor": "#F9AB99",
  1054 + "headlinesOn": 0,
  1055 + "homeChannel": "0",
  1056 + "iconCUrl": "",
  1057 + "iconCUrlSize": "",
  1058 + "iconUrl": "",
  1059 + "iconUrlSize": "",
  1060 + "localChannel": "0",
  1061 + "moreChannel": "0",
  1062 + "movePermitted": 1,
  1063 + "myChannel": "0",
  1064 + "name": "重庆",
  1065 + "num": 45,
  1066 + "pageId": 20058,
  1067 + "pageType": "",
  1068 + "underlineCColor": ""
  1069 + },
  1070 + {
  1071 + "channelId": 2049,
  1072 + "channelStyle": 2,
  1073 + "channelType": 2,
  1074 + "defaultPermitted": 0,
  1075 + "delPermitted": 1,
  1076 + "fontCColor": "#FFFFFF",
  1077 + "fontColor": "#F9AB99",
  1078 + "headlinesOn": 0,
  1079 + "homeChannel": "0",
  1080 + "iconCUrl": "",
  1081 + "iconCUrlSize": "",
  1082 + "iconUrl": "",
  1083 + "iconUrlSize": "",
  1084 + "localChannel": "0",
  1085 + "moreChannel": "0",
  1086 + "movePermitted": 1,
  1087 + "myChannel": "0",
  1088 + "name": "四川",
  1089 + "num": 46,
  1090 + "pageId": 20059,
  1091 + "pageType": "",
  1092 + "underlineCColor": ""
  1093 + },
  1094 + {
  1095 + "channelId": 2050,
  1096 + "channelStyle": 2,
  1097 + "channelType": 2,
  1098 + "defaultPermitted": 0,
  1099 + "delPermitted": 1,
  1100 + "fontCColor": "#FFFFFF",
  1101 + "fontColor": "#F9AB99",
  1102 + "headlinesOn": 0,
  1103 + "homeChannel": "0",
  1104 + "iconCUrl": "",
  1105 + "iconCUrlSize": "",
  1106 + "iconUrl": "",
  1107 + "iconUrlSize": "",
  1108 + "localChannel": "0",
  1109 + "moreChannel": "0",
  1110 + "movePermitted": 1,
  1111 + "myChannel": "0",
  1112 + "name": "贵州",
  1113 + "num": 47,
  1114 + "pageId": 20060,
  1115 + "pageType": "",
  1116 + "underlineCColor": ""
  1117 + },
  1118 + {
  1119 + "channelId": 2051,
  1120 + "channelStyle": 2,
  1121 + "channelType": 2,
  1122 + "defaultPermitted": 0,
  1123 + "delPermitted": 1,
  1124 + "fontCColor": "#FFFFFF",
  1125 + "fontColor": "#F9AB99",
  1126 + "headlinesOn": 0,
  1127 + "homeChannel": "0",
  1128 + "iconCUrl": "",
  1129 + "iconCUrlSize": "",
  1130 + "iconUrl": "",
  1131 + "iconUrlSize": "",
  1132 + "localChannel": "0",
  1133 + "moreChannel": "0",
  1134 + "movePermitted": 1,
  1135 + "myChannel": "0",
  1136 + "name": "云南",
  1137 + "num": 48,
  1138 + "pageId": 20061,
  1139 + "pageType": "",
  1140 + "underlineCColor": ""
  1141 + },
  1142 + {
  1143 + "channelId": 2052,
  1144 + "channelStyle": 2,
  1145 + "channelType": 2,
  1146 + "defaultPermitted": 0,
  1147 + "delPermitted": 1,
  1148 + "fontCColor": "#FFFFFF",
  1149 + "fontColor": "#F9AB99",
  1150 + "headlinesOn": 0,
  1151 + "homeChannel": "0",
  1152 + "iconCUrl": "",
  1153 + "iconCUrlSize": "",
  1154 + "iconUrl": "",
  1155 + "iconUrlSize": "",
  1156 + "localChannel": "0",
  1157 + "moreChannel": "0",
  1158 + "movePermitted": 1,
  1159 + "myChannel": "0",
  1160 + "name": "西藏",
  1161 + "num": 49,
  1162 + "pageId": 20062,
  1163 + "pageType": "",
  1164 + "underlineCColor": ""
  1165 + },
  1166 + {
  1167 + "channelId": 2053,
  1168 + "channelStyle": 2,
  1169 + "channelType": 2,
  1170 + "defaultPermitted": 0,
  1171 + "delPermitted": 1,
  1172 + "fontCColor": "#FFFFFF",
  1173 + "fontColor": "#F9AB99",
  1174 + "headlinesOn": 0,
  1175 + "homeChannel": "0",
  1176 + "iconCUrl": "",
  1177 + "iconCUrlSize": "",
  1178 + "iconUrl": "",
  1179 + "iconUrlSize": "",
  1180 + "localChannel": "0",
  1181 + "moreChannel": "0",
  1182 + "movePermitted": 1,
  1183 + "myChannel": "0",
  1184 + "name": "陕西",
  1185 + "num": 50,
  1186 + "pageId": 20063,
  1187 + "pageType": "",
  1188 + "underlineCColor": ""
  1189 + },
  1190 + {
  1191 + "channelId": 2054,
  1192 + "channelStyle": 2,
  1193 + "channelType": 2,
  1194 + "defaultPermitted": 0,
  1195 + "delPermitted": 1,
  1196 + "fontCColor": "#FFFFFF",
  1197 + "fontColor": "#F9AB99",
  1198 + "headlinesOn": 0,
  1199 + "homeChannel": "0",
  1200 + "iconCUrl": "",
  1201 + "iconCUrlSize": "",
  1202 + "iconUrl": "",
  1203 + "iconUrlSize": "",
  1204 + "localChannel": "0",
  1205 + "moreChannel": "0",
  1206 + "movePermitted": 1,
  1207 + "myChannel": "0",
  1208 + "name": "甘肃",
  1209 + "num": 51,
  1210 + "pageId": 20064,
  1211 + "pageType": "",
  1212 + "underlineCColor": ""
  1213 + },
  1214 + {
  1215 + "channelId": 2055,
  1216 + "channelStyle": 2,
  1217 + "channelType": 2,
  1218 + "defaultPermitted": 0,
  1219 + "delPermitted": 1,
  1220 + "fontCColor": "#FFFFFF",
  1221 + "fontColor": "#F9AB99",
  1222 + "headlinesOn": 0,
  1223 + "homeChannel": "0",
  1224 + "iconCUrl": "",
  1225 + "iconCUrlSize": "",
  1226 + "iconUrl": "",
  1227 + "iconUrlSize": "",
  1228 + "localChannel": "0",
  1229 + "moreChannel": "0",
  1230 + "movePermitted": 1,
  1231 + "myChannel": "0",
  1232 + "name": "青海",
  1233 + "num": 52,
  1234 + "pageId": 20065,
  1235 + "pageType": "",
  1236 + "underlineCColor": ""
  1237 + },
  1238 + {
  1239 + "channelId": 2056,
  1240 + "channelStyle": 2,
  1241 + "channelType": 2,
  1242 + "defaultPermitted": 0,
  1243 + "delPermitted": 1,
  1244 + "fontCColor": "#FFFFFF",
  1245 + "fontColor": "#F9AB99",
  1246 + "headlinesOn": 0,
  1247 + "homeChannel": "0",
  1248 + "iconCUrl": "",
  1249 + "iconCUrlSize": "",
  1250 + "iconUrl": "",
  1251 + "iconUrlSize": "",
  1252 + "localChannel": "0",
  1253 + "moreChannel": "0",
  1254 + "movePermitted": 1,
  1255 + "myChannel": "0",
  1256 + "name": "宁夏",
  1257 + "num": 53,
  1258 + "pageId": 20066,
  1259 + "pageType": "",
  1260 + "underlineCColor": ""
  1261 + },
  1262 + {
  1263 + "channelId": 2057,
  1264 + "channelStyle": 2,
  1265 + "channelType": 2,
  1266 + "defaultPermitted": 0,
  1267 + "delPermitted": 1,
  1268 + "fontCColor": "#FFFFFF",
  1269 + "fontColor": "#F9AB99",
  1270 + "headlinesOn": 0,
  1271 + "homeChannel": "0",
  1272 + "iconCUrl": "",
  1273 + "iconCUrlSize": "",
  1274 + "iconUrl": "",
  1275 + "iconUrlSize": "",
  1276 + "localChannel": "0",
  1277 + "moreChannel": "0",
  1278 + "movePermitted": 1,
  1279 + "myChannel": "0",
  1280 + "name": "新疆",
  1281 + "num": 54,
  1282 + "pageId": 20067,
  1283 + "pageType": "",
  1284 + "underlineCColor": ""
  1285 + },
  1286 + {
  1287 + "channelId": 2020,
  1288 + "channelStyle": 2,
  1289 + "channelType": 1,
  1290 + "defaultPermitted": 0,
  1291 + "delPermitted": 1,
  1292 + "fontCColor": "#FFFFFF",
  1293 + "fontColor": "#F9AB99",
  1294 + "headlinesOn": 0,
  1295 + "homeChannel": "0",
  1296 + "iconCUrl": "",
  1297 + "iconCUrlSize": "",
  1298 + "iconUrl": "",
  1299 + "iconUrlSize": "",
  1300 + "localChannel": "0",
  1301 + "moreChannel": "0",
  1302 + "movePermitted": 1,
  1303 + "myChannel": "0",
  1304 + "name": "国际",
  1305 + "num": 57,
  1306 + "pageId": 20030,
  1307 + "pageType": "",
  1308 + "underlineCColor": ""
  1309 + },
  1310 + {
  1311 + "channelId": 2021,
  1312 + "channelStyle": 2,
  1313 + "channelType": 1,
  1314 + "defaultPermitted": 0,
  1315 + "delPermitted": 1,
  1316 + "fontCColor": "#FFFFFF",
  1317 + "fontColor": "#F9AB99",
  1318 + "headlinesOn": 0,
  1319 + "homeChannel": "0",
  1320 + "iconCUrl": "",
  1321 + "iconCUrlSize": "",
  1322 + "iconUrl": "",
  1323 + "iconUrlSize": "",
  1324 + "localChannel": "0",
  1325 + "moreChannel": "0",
  1326 + "movePermitted": 1,
  1327 + "myChannel": "0",
  1328 + "name": "法治",
  1329 + "num": 58,
  1330 + "pageId": 20031,
  1331 + "pageType": "",
  1332 + "underlineCColor": ""
  1333 + },
  1334 + {
  1335 + "channelId": 2022,
  1336 + "channelStyle": 2,
  1337 + "channelType": 1,
  1338 + "defaultPermitted": 0,
  1339 + "delPermitted": 1,
  1340 + "fontCColor": "#FFFFFF",
  1341 + "fontColor": "#F9AB99",
  1342 + "headlinesOn": 0,
  1343 + "homeChannel": "0",
  1344 + "iconCUrl": "",
  1345 + "iconCUrlSize": "",
  1346 + "iconUrl": "",
  1347 + "iconUrlSize": "",
  1348 + "localChannel": "0",
  1349 + "moreChannel": "0",
  1350 + "movePermitted": 1,
  1351 + "myChannel": "0",
  1352 + "name": "生活",
  1353 + "num": 59,
  1354 + "pageId": 20032,
  1355 + "pageType": "",
  1356 + "underlineCColor": ""
  1357 + },
  1358 + {
  1359 + "channelId": 2092,
  1360 + "channelStyle": 2,
  1361 + "channelType": 1,
  1362 + "defaultPermitted": 0,
  1363 + "delPermitted": 0,
  1364 + "fontCColor": "#FFFFFF",
  1365 + "fontColor": "#F9AB99",
  1366 + "headlinesOn": 0,
  1367 + "homeChannel": "0",
  1368 + "iconCUrl": "",
  1369 + "iconCUrlSize": "",
  1370 + "iconUrl": "",
  1371 + "iconUrlSize": "",
  1372 + "localChannel": "0",
  1373 + "moreChannel": "0",
  1374 + "movePermitted": 1,
  1375 + "myChannel": "0",
  1376 + "name": "设计",
  1377 + "num": 68,
  1378 + "pageId": 21063,
  1379 + "pageType": "",
  1380 + "underlineCColor": ""
  1381 + },
  1382 + {
  1383 + "channelId": 2098,
  1384 + "channelStyle": 2,
  1385 + "channelType": 1,
  1386 + "defaultPermitted": 0,
  1387 + "delPermitted": 0,
  1388 + "fontCColor": "#FFFFFF",
  1389 + "fontColor": "#F9AB99",
  1390 + "headlinesOn": 0,
  1391 + "homeChannel": "0",
  1392 + "iconCUrl": "",
  1393 + "iconCUrlSize": "",
  1394 + "iconUrl": "",
  1395 + "iconUrlSize": "",
  1396 + "localChannel": "0",
  1397 + "moreChannel": "0",
  1398 + "movePermitted": 0,
  1399 + "myChannel": "0",
  1400 + "name": "设计组件",
  1401 + "num": 72,
  1402 + "pageId": 21299,
  1403 + "pageType": "",
  1404 + "underlineCColor": ""
  1405 + },
  1406 + {
  1407 + "channelId": 2099,
  1408 + "channelStyle": 2,
  1409 + "channelType": 1,
  1410 + "defaultPermitted": 0,
  1411 + "delPermitted": 0,
  1412 + "fontCColor": "",
  1413 + "fontColor": "",
  1414 + "headlinesOn": 0,
  1415 + "homeChannel": "0",
  1416 + "iconCUrl": "",
  1417 + "iconCUrlSize": "",
  1418 + "iconUrl": "",
  1419 + "iconUrlSize": "",
  1420 + "localChannel": "0",
  1421 + "moreChannel": "0",
  1422 + "movePermitted": 1,
  1423 + "myChannel": "0",
  1424 + "name": "设计号",
  1425 + "num": 73,
  1426 + "pageId": 21736,
  1427 + "pageType": "",
  1428 + "underlineCColor": ""
  1429 + }
  1430 + ],
  1431 + "topStyle": "11",
  1432 + "type": "1"
  1433 + },
  1434 + {
  1435 + "backgroundUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/2e1d5f235d1a44cfb9fc120e8596c56b.png",
  1436 + "channelChooseActionUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231227/vod/display/3835f09a973443cb824af179e30e87ed.pag",
  1437 + "channelChooseCColor": "#666666",
  1438 + "channelChooseColor": "#222222",
  1439 + "channelMoreColor": "",
  1440 + "extraData": "{\"haveSearch\":\"0\",\"haveTopNav\":\"1\",\"leftIconurl\":\"\",\"rightIconUrl\":\"\"}",
  1441 + "homePageColor": "#FFFFFF",
  1442 + "icon": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/460f61a48c6a4993af442d54aedb682b.png",
  1443 + "iconC": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/9aa759f72ccb4848b3ded2dee9502c25.gif",
  1444 + "id": 202,
  1445 + "immersiveIconCUrl": "",
  1446 + "immersiveIconUrl": "",
  1447 + "immersiveNameCColor": "#FFFFFF",
  1448 + "immersiveNameColor": "#FFFFFF",
  1449 + "logoUrl": "",
  1450 + "morningAndEveningUrl": "",
  1451 + "name": "人民号",
  1452 + "nameCColor": "#ED2800",
  1453 + "nameColor": "#999999",
  1454 + "nightIconCUrl": "",
  1455 + "nightIconUrl": "",
  1456 + "nightNameCColor": "",
  1457 + "nightNameColor": "",
  1458 + "noticeColor": "#FFFFFF",
  1459 + "pageId": null,
  1460 + "pageType": null,
  1461 + "searchBothColor": "#222222",
  1462 + "searchUrl": "",
  1463 + "sortValue": 2,
  1464 + "statusBarColor": 1,
  1465 + "topNavChannelList": [
  1466 + {
  1467 + "channelId": 2058,
  1468 + "channelStyle": 3,
  1469 + "channelType": 1,
  1470 + "defaultPermitted": 0,
  1471 + "delPermitted": 1,
  1472 + "fontCColor": "#FFFFFF",
  1473 + "fontColor": "#F9AB99",
  1474 + "headlinesOn": 0,
  1475 + "homeChannel": "0",
  1476 + "iconCUrl": "",
  1477 + "iconCUrlSize": "",
  1478 + "iconUrl": "",
  1479 + "iconUrlSize": "",
  1480 + "localChannel": "0",
  1481 + "moreChannel": "0",
  1482 + "movePermitted": 1,
  1483 + "myChannel": "0",
  1484 + "name": "推荐",
  1485 + "num": 1,
  1486 + "pageId": 20068,
  1487 + "pageType": "",
  1488 + "underlineCColor": ""
  1489 + },
  1490 + {
  1491 + "channelId": 2059,
  1492 + "channelStyle": 3,
  1493 + "channelType": 3,
  1494 + "defaultPermitted": 0,
  1495 + "delPermitted": 1,
  1496 + "fontCColor": "#FFFFFF",
  1497 + "fontColor": "#F9AB99",
  1498 + "headlinesOn": 0,
  1499 + "homeChannel": "0",
  1500 + "iconCUrl": "",
  1501 + "iconCUrlSize": "",
  1502 + "iconUrl": "",
  1503 + "iconUrlSize": "",
  1504 + "localChannel": "0",
  1505 + "moreChannel": "0",
  1506 + "movePermitted": 1,
  1507 + "myChannel": "0",
  1508 + "name": "关注",
  1509 + "num": 2,
  1510 + "pageId": 20069,
  1511 + "pageType": "",
  1512 + "underlineCColor": ""
  1513 + },
  1514 + {
  1515 + "channelId": 2073,
  1516 + "channelStyle": 3,
  1517 + "channelType": 1,
  1518 + "defaultPermitted": 0,
  1519 + "delPermitted": 1,
  1520 + "fontCColor": "#FFFFFF",
  1521 + "fontColor": "#F9AB99",
  1522 + "headlinesOn": 0,
  1523 + "homeChannel": "0",
  1524 + "iconCUrl": "",
  1525 + "iconCUrlSize": "",
  1526 + "iconUrl": "",
  1527 + "iconUrlSize": "",
  1528 + "localChannel": "0",
  1529 + "moreChannel": "0",
  1530 + "movePermitted": 1,
  1531 + "myChannel": "0",
  1532 + "name": "活动",
  1533 + "num": 3,
  1534 + "pageId": 21010,
  1535 + "pageType": "",
  1536 + "underlineCColor": ""
  1537 + }
  1538 + ],
  1539 + "topStyle": "12",
  1540 + "type": "1"
  1541 + },
  1542 + {
  1543 + "backgroundUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/2e1d5f235d1a44cfb9fc120e8596c56b.png",
  1544 + "channelChooseActionUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231221/vod/display/65c6eb2ca91849c582d057adc9e76d46.pag",
  1545 + "channelChooseCColor": "#666666",
  1546 + "channelChooseColor": "#222222",
  1547 + "channelMoreColor": "",
  1548 + "extraData": "{\"haveSearch\":\"1\",\"haveTopNav\":\"1\",\"leftIconurl\":\"\",\"rightIconUrl\":\"\"}",
  1549 + "homePageColor": "#FFFFFF",
  1550 + "icon": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231221/image/display/bf77561966654001a538857ebef8a15c.png",
  1551 + "iconC": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231224/image/display/1a42d5b8183a4eb1a044ddd64223c687.png",
  1552 + "id": 203,
  1553 + "immersiveIconCUrl": "",
  1554 + "immersiveIconUrl": "",
  1555 + "immersiveNameCColor": "#FFFFFF",
  1556 + "immersiveNameColor": "#FFFFFF",
  1557 + "logoUrl": "",
  1558 + "morningAndEveningUrl": "",
  1559 + "name": "视频",
  1560 + "nameCColor": "#ED2800",
  1561 + "nameColor": "#999999",
  1562 + "nightIconCUrl": "",
  1563 + "nightIconUrl": "",
  1564 + "nightNameCColor": "",
  1565 + "nightNameColor": "",
  1566 + "noticeColor": "#FFFFFF",
  1567 + "pageId": null,
  1568 + "pageType": null,
  1569 + "searchBothColor": "#222222",
  1570 + "searchUrl": "",
  1571 + "sortValue": 3,
  1572 + "statusBarColor": 1,
  1573 + "topNavChannelList": [
  1574 + {
  1575 + "channelId": 2060,
  1576 + "channelStyle": 1,
  1577 + "channelType": 1,
  1578 + "defaultPermitted": 0,
  1579 + "delPermitted": 1,
  1580 + "fontCColor": "#FFFFFF",
  1581 + "fontColor": "#F9AB99",
  1582 + "headlinesOn": 0,
  1583 + "homeChannel": "0",
  1584 + "iconCUrl": "",
  1585 + "iconCUrlSize": "",
  1586 + "iconUrl": "",
  1587 + "iconUrlSize": "",
  1588 + "localChannel": "0",
  1589 + "moreChannel": "0",
  1590 + "movePermitted": 1,
  1591 + "myChannel": "0",
  1592 + "name": "视频",
  1593 + "num": 1,
  1594 + "pageId": 20070,
  1595 + "pageType": "",
  1596 + "underlineCColor": ""
  1597 + },
  1598 + {
  1599 + "channelId": 2061,
  1600 + "channelStyle": 3,
  1601 + "channelType": 1,
  1602 + "defaultPermitted": 0,
  1603 + "delPermitted": 1,
  1604 + "fontCColor": "#FFFFFF",
  1605 + "fontColor": "#F9AB99",
  1606 + "headlinesOn": 0,
  1607 + "homeChannel": "0",
  1608 + "iconCUrl": "",
  1609 + "iconCUrlSize": "",
  1610 + "iconUrl": "",
  1611 + "iconUrlSize": "",
  1612 + "localChannel": "0",
  1613 + "moreChannel": "0",
  1614 + "movePermitted": 1,
  1615 + "myChannel": "0",
  1616 + "name": "直播",
  1617 + "num": 2,
  1618 + "pageId": 20071,
  1619 + "pageType": "",
  1620 + "underlineCColor": ""
  1621 + }
  1622 + ],
  1623 + "topStyle": "13",
  1624 + "type": "1"
  1625 + },
  1626 + {
  1627 + "backgroundUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/2e1d5f235d1a44cfb9fc120e8596c56b.png",
  1628 + "channelChooseActionUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231221/vod/display/65c6eb2ca91849c582d057adc9e76d46.pag",
  1629 + "channelChooseCColor": "#666666",
  1630 + "channelChooseColor": "#222222",
  1631 + "channelMoreColor": "",
  1632 + "extraData": "{\"haveSearch\":\"1\",\"haveTopNav\":\"1\",\"leftIconurl\":\"\",\"rightIconUrl\":\"\"}",
  1633 + "homePageColor": "#FFFFFF",
  1634 + "icon": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/5a6cf95f7b9e489390ec73faf458b58a.png",
  1635 + "iconC": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/1b075ed30a6b43d2ae319e5d892c66e4.gif",
  1636 + "id": 204,
  1637 + "immersiveIconCUrl": "",
  1638 + "immersiveIconUrl": "",
  1639 + "immersiveNameCColor": "#FFFFFF",
  1640 + "immersiveNameColor": "#FFFFFF",
  1641 + "logoUrl": "",
  1642 + "morningAndEveningUrl": "",
  1643 + "name": "服务",
  1644 + "nameCColor": "#ED2800",
  1645 + "nameColor": "#999999",
  1646 + "nightIconCUrl": "",
  1647 + "nightIconUrl": "",
  1648 + "nightNameCColor": "",
  1649 + "nightNameColor": "",
  1650 + "noticeColor": "#FFFFFF",
  1651 + "pageId": null,
  1652 + "pageType": null,
  1653 + "searchBothColor": "#222222",
  1654 + "searchUrl": "",
  1655 + "sortValue": 4,
  1656 + "statusBarColor": 1,
  1657 + "topNavChannelList": [
  1658 + {
  1659 + "channelId": 2062,
  1660 + "channelStyle": 3,
  1661 + "channelType": 1,
  1662 + "defaultPermitted": 0,
  1663 + "delPermitted": 1,
  1664 + "fontCColor": "#FFFFFF",
  1665 + "fontColor": "#F9AB99",
  1666 + "headlinesOn": 0,
  1667 + "homeChannel": "0",
  1668 + "iconCUrl": "",
  1669 + "iconCUrlSize": "",
  1670 + "iconUrl": "",
  1671 + "iconUrlSize": "",
  1672 + "localChannel": "0",
  1673 + "moreChannel": "0",
  1674 + "movePermitted": 1,
  1675 + "myChannel": "0",
  1676 + "name": "服务",
  1677 + "num": 1,
  1678 + "pageId": 20072,
  1679 + "pageType": "",
  1680 + "underlineCColor": ""
  1681 + }
  1682 + ],
  1683 + "topStyle": "14",
  1684 + "type": "1"
  1685 + },
  1686 + {
  1687 + "backgroundUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231214/image/display/3e1f4fe85b0445b6a0be24f3759d0ff6.png",
  1688 + "channelChooseActionUrl": "",
  1689 + "channelChooseCColor": "#FFFFFF",
  1690 + "channelChooseColor": "#FFFFFF",
  1691 + "channelMoreColor": "",
  1692 + "extraData": "{\"haveSearch\":\"0\",\"haveTopNav\":\"0\"}",
  1693 + "homePageColor": "#222222",
  1694 + "icon": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/f55f0ac25b764809bc8285c284adb147.png",
  1695 + "iconC": "https://uatjdcdnphoto.aikan.pdnews.cn/sjbj-20231220/image/display/3b5cff54d2a546f5b523a8aa8c33352e.gif",
  1696 + "id": 205,
  1697 + "immersiveIconCUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/inen-20230403/image/display/9f22b579db15497797e8204b1ec12d14.png",
  1698 + "immersiveIconUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/inen-20230403/image/display/5be23055a4dc4d869be2139e9deb7a55.png",
  1699 + "immersiveNameCColor": "#FFFFFF",
  1700 + "immersiveNameColor": "#FFFFFF",
  1701 + "logoUrl": "",
  1702 + "morningAndEveningUrl": "",
  1703 + "name": "我的",
  1704 + "nameCColor": "#ED2800",
  1705 + "nameColor": "#999999",
  1706 + "nightIconCUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/inen-20230403/image/display/9d584ddcfdf74e3ea8e445d102127b97.png",
  1707 + "nightIconUrl": "https://uatjdcdnphoto.aikan.pdnews.cn/inen-20230403/image/display/1f79063b6ecb493c95703e45529d3a5f.png",
  1708 + "nightNameCColor": "#DA1C1C",
  1709 + "nightNameColor": "#6A6B75",
  1710 + "noticeColor": "#ED2800",
  1711 + "pageId": null,
  1712 + "pageType": null,
  1713 + "searchBothColor": "#FFFFFF",
  1714 + "searchUrl": "",
  1715 + "sortValue": 5,
  1716 + "statusBarColor": 1,
  1717 + "topNavChannelList": [],
  1718 + "topStyle": "",
  1719 + "type": "2"
  1720 + }
  1721 + ],
  1722 + "greyBottomNav": {
  1723 + "bottomNavList": [],
  1724 + "greyUserList": []
  1725 + },
  1726 + "immersiveBackgroundColor": "",
  1727 + "nightBackgroundColor": ""
  1728 + },
  1729 + "message": "Success",
  1730 + "meta": {
  1731 + "md5": "e2942dbcd76710d1bac0d98f9a0a9d0a"
  1732 + },
  1733 + "requestId": "",
  1734 + "success": true,
  1735 + "timestamp": 1704765430031
  1736 +}
1 // enum 1 // enum
  2 +export { BottomNavi } from './src/main/ets/enum/BottomNavi';
  3 +
2 export { CompStyle } from './src/main/ets/enum/CompStyle'; 4 export { CompStyle } from './src/main/ets/enum/CompStyle';
3 5
4 export { CompType } from './src/main/ets/enum/CompType'; 6 export { CompType } from './src/main/ets/enum/CompType';
@@ -11,6 +13,13 @@ export { DelayTimeEnum } from './src/main/ets/enum/DelayTimeEnum'; @@ -11,6 +13,13 @@ export { DelayTimeEnum } from './src/main/ets/enum/DelayTimeEnum';
11 13
12 export { ScreenType } from './src/main/ets/enum/ScreenType'; 14 export { ScreenType } from './src/main/ets/enum/ScreenType';
13 15
  16 +// navigation
  17 +export { NavigationBody } from './src/main/ets/bean/navigation/NavigationBody';
  18 +
  19 +export { BottomNavBean } from './src/main/ets/bean/navigation/BottomNavBean';
  20 +
  21 +export { TopNavBean } from './src/main/ets/bean/navigation/TopNavBean';
  22 +
14 // entity 23 // entity
15 export { ItemDTO } from './src/main/ets/bean/ItemDTO'; 24 export { ItemDTO } from './src/main/ets/bean/ItemDTO';
16 25
@@ -26,5 +35,3 @@ export { GroupDTO } from './src/main/ets/bean/component/GroupDTO'; @@ -26,5 +35,3 @@ export { GroupDTO } from './src/main/ets/bean/component/GroupDTO';
26 export { CompDTO } from './src/main/ets/bean/component/CompDTO'; 35 export { CompDTO } from './src/main/ets/bean/component/CompDTO';
27 36
28 export { ContentDTO } from './src/main/ets/bean/component/ContentDTO'; 37 export { ContentDTO } from './src/main/ets/bean/component/ContentDTO';
29 -  
30 -  
  1 +import { TopNavBean } from './TopNavBean';
  2 +
  3 +/**
  4 + * 底导(包含顶导列表)数据
  5 + */
  6 +export interface BottomNavBean {
  7 + backgroundUrl: string;
  8 + channelChooseActionUrl: string;
  9 + channelChooseCColor: string;
  10 + channelChooseColor: string;
  11 + channelMoreColor: string;
  12 + extraData: string;
  13 + homePageColor: string;
  14 + icon: string;
  15 + iconC: string;
  16 + id: number;
  17 + immersiveIconCUrl: string;
  18 + immersiveIconUrl: string;
  19 + immersiveNameCColor: string;
  20 + immersiveNameColor: string;
  21 + logoUrl: string;
  22 + morningAndEveningUrl: string;
  23 + name: string;
  24 + nameCColor: string;
  25 + nameColor: string;
  26 + nightIconCUrl: string;
  27 + nightIconUrl: string;
  28 + nightNameCColor: string;
  29 + nightNameColor: string;
  30 + noticeColor: string;
  31 + pageId?: string;
  32 + pageType?: string;
  33 + searchBothColor: string;
  34 + searchUrl: string;
  35 + sortValue: number;
  36 + statusBarColor: number;
  37 + topNavChannelList: TopNavBean[];
  38 + topStyle: string;
  39 + type: string;
  40 +}
  1 +import { BottomNavBean } from './BottomNavBean';
  2 +
  3 +/**
  4 + * 导航Body数据
  5 + */
  6 +export interface NavigationBody {
  7 + backgroundColor: string;
  8 + bottomNavList: BottomNavBean[];
  9 + // greyBottomNav: GreyBottomNav;
  10 + immersiveBackgroundColor: string;
  11 + nightBackgroundColor: string;
  12 +}
  1 +/**
  2 + * 顶导
  3 + */
  4 +export interface TopNavBean {
  5 + channelId: number;
  6 + channelStyle: number;
  7 + channelType: number;
  8 + defaultPermitted: number;
  9 + delPermitted: number;
  10 + fontCColor: string;
  11 + fontColor: string;
  12 + headlinesOn: number;
  13 + homeChannel: string;
  14 + iconCUrl: string;
  15 + iconCUrlSize: string;
  16 + iconUrl: string;
  17 + iconUrlSize: string;
  18 + localChannel: string;
  19 + moreChannel: string;
  20 + movePermitted: number;
  21 + myChannel: string;
  22 + name: string;
  23 + num: number;
  24 + pageId: number;
  25 + pageType: string;
  26 + underlineCColor: string;
  27 +}
1 /** 1 /**
2 * 底部导航 Bottom navigation item的下标/索引 2 * 底部导航 Bottom navigation item的下标/索引
3 - * 首页 xx、 xx、 xx、 我的 3 + * 新闻 人民号、 视频、 服务、 我的
4 */ 4 */
5 export const enum BottomNavi { 5 export const enum BottomNavi {
6 - HOME = 0, 6 + NEWS = 0,
  7 + PEOPLE,
  8 + VIDEO,
  9 + SERVICE,
7 MINE, 10 MINE,
8 } 11 }
  1 +export { PageViewModel } from "./src/main/ets/viewmodel/PageViewModel"
  2 +
1 export { CompUtils } from "./src/main/ets/utils/CompUtils" 3 export { CompUtils } from "./src/main/ets/utils/CompUtils"
2 4
3 export { EmptyComponent } from "./src/main/ets/components/EmptyComponent" 5 export { EmptyComponent } from "./src/main/ets/components/EmptyComponent"
@@ -6,6 +8,12 @@ export { ErrorComponent } from "./src/main/ets/components/ErrorComponent" @@ -6,6 +8,12 @@ export { ErrorComponent } from "./src/main/ets/components/ErrorComponent"
6 8
7 export { LoadingComponent } from "./src/main/ets/components/LoadingComponent" 9 export { LoadingComponent } from "./src/main/ets/components/LoadingComponent"
8 10
  11 +export { PageComponent } from "./src/main/ets/components/PageComponent"
  12 +
  13 +export { BottomNavigationComponent } from "./src/main/ets/components/BottomNavigationComponent"
  14 +
  15 +export { TopNavigationComponent } from "./src/main/ets/components/TopNavigationComponent"
  16 +
9 export { LabelComponent } from "./src/main/ets/components/LabelComponent" 17 export { LabelComponent } from "./src/main/ets/components/LabelComponent"
10 18
11 export { BannerComponent } from "./src/main/ets/components/BannerComponent" 19 export { BannerComponent } from "./src/main/ets/components/BannerComponent"
  1 +import { BottomNavBean, BottomNavi } from 'wdBean';
  2 +import { CommonConstants } from 'wdConstant';
  3 +import { LazyDataSource, Logger } from 'wdKit';
  4 +import { TopNavigationComponent } from './TopNavigationComponent';
  5 +import { PageComponent } from './PageComponent';
  6 +
  7 +const TAG = 'BottomNavigationComponent';
  8 +
  9 +/**
  10 + * 底部页签导航栏/底导
  11 + */
  12 +@Component
  13 +export struct BottomNavigationComponent {
  14 + // 底导/顶导全部数据
  15 + @Prop @Watch('onBottomNavigationDataUpdated') bottomNavList: BottomNavBean[] = []
  16 + // 底导当前选中/焦点下标
  17 + @Provide currentNavIndex: number = BottomNavi.NEWS;
  18 + // 底导TabsController
  19 + private navController: TabsController = new TabsController();
  20 + readonly ASPECT_RATIO_1_1: number = 1 / 1; // 底导图片宽高比
  21 + /**
  22 + * Component opacity value: 1.
  23 + */
  24 + readonly FULL_OPACITY: number = 1;
  25 + /**
  26 + * Component opacity value: 0.6.
  27 + */
  28 + readonly SIXTY_OPACITY: number = 0.6;
  29 +
  30 + aboutToAppear() {
  31 + Logger.info(TAG, `aboutToAppear currentNavIndex: ${this.currentNavIndex}`);
  32 + }
  33 +
  34 + aboutToDisappear() {
  35 + Logger.info(TAG, `aboutToDisappear, this.currentNavIndex: ${this.currentNavIndex}`);
  36 + }
  37 +
  38 + build() {
  39 + Tabs({ barPosition: BarPosition.End, index: this.currentNavIndex, controller: this.navController }) {
  40 + ForEach(this.bottomNavList, (navItem: BottomNavBean, index: number) => {
  41 + TabContent() {
  42 + Column() {
  43 + if (navItem.topNavChannelList && navItem.topNavChannelList.length == 0 && navItem.name == '我的') {
  44 + PageComponent({ groupList: new LazyDataSource() }) // todo:我的页面组件数据列表
  45 + } else {
  46 + TopNavigationComponent({ topNavList: navItem.topNavChannelList })
  47 + }
  48 + }
  49 + }
  50 + .tabBar(this.tabBarBuilder(navItem, index))
  51 + });
  52 + }
  53 + .barHeight($r('app.float.bottom_navigation_barHeight'))
  54 + .barMode(BarMode.Fixed)
  55 + .onChange((index: number) => {
  56 + Logger.info(TAG, `onChange, index: ${index}`);
  57 + this.currentNavIndex = index;
  58 + // this.onBottomNavigationIndexChange()
  59 + })
  60 + }
  61 +
  62 + @Builder
  63 + tabBarBuilder(navItem: BottomNavBean, index: number) {
  64 + Stack({ alignContent: Alignment.Bottom }) {
  65 + Image(this.currentNavIndex === index ? navItem.iconC : navItem.icon)
  66 + .height(CommonConstants.FULL_PARENT)
  67 + .padding({ bottom: 15, left: 10, right: 10, top: 2 })
  68 + .aspectRatio(this.ASPECT_RATIO_1_1)
  69 +
  70 + Text(navItem.name)
  71 + .margin({ bottom: $r('app.float.bottom_navigation_margin_bottom') })
  72 + .fontWeight(this.currentNavIndex === index ? FontWeight.Bold : FontWeight.Normal)
  73 + .textAlign(TextAlign.Center)
  74 + .fontSize($r('app.float.font_size_10'))
  75 + .fontColor(this.currentNavIndex === index ? Color.Red : Color.Gray)
  76 + .opacity(this.currentNavIndex === index ? this.FULL_OPACITY : this.SIXTY_OPACITY)
  77 + }
  78 + .height($r('app.float.bottom_navigation_barHeight'))
  79 + .hoverEffect(HoverEffect.Highlight)
  80 + // .justifyContent(FlexAlign.Center)
  81 + // .onClick(() => {
  82 + // Logger.info(TAG, `onClick, index: ${index}`);
  83 + // this.currentNavIndex = index ?? 0;
  84 + // this.navController.changeIndex(this.currentNavIndex);
  85 + // })
  86 + }
  87 +
  88 + // 底导切换函数
  89 + onBottomNavigationIndexChange() {
  90 + Logger.info(TAG, `onBottomNavigationIndexChange this.currentNavIndex: ${this.currentNavIndex}`);
  91 + // 请求顶导数据(参数):
  92 + }
  93 +
  94 + onBottomNavigationDataUpdated() {
  95 + // Logger.info(TAG, `onBottomNavigationDataUpdated currentNavIndex: ${this.currentNavIndex},length:${this.bottomNavItemList.length}`);
  96 + this.onBottomNavigationIndexChange()
  97 + }
  98 +}
1 import { CompDTO, CompStyle, GroupDTO, ViewType } from 'wdBean'; 1 import { CompDTO, CompStyle, GroupDTO, ViewType } from 'wdBean';
2 -import {  
3 - BannerComponent,  
4 - EmptyComponent,  
5 - ErrorComponent,  
6 - GridLayout01Component,  
7 - LabelComponent,  
8 - LoadingComponent,  
9 - SingleColumnComponent,  
10 - SingleRow03Component,  
11 - WaterFlowComponent,  
12 -} from 'wdComponent';  
13 import { CommonConstants } from 'wdConstant'; 2 import { CommonConstants } from 'wdConstant';
14 -import { LazyDataSource, Logger, StringUtils } from 'wdKit'; 3 +import { LazyDataSource, Logger } from 'wdKit';
  4 +import { PageViewModel } from '../viewmodel/PageViewModel';
  5 +import { BannerComponent } from './BannerComponent';
  6 +import { EmptyComponent } from './EmptyComponent';
  7 +import { ErrorComponent } from './ErrorComponent';
  8 +import { GridLayout01Component } from './GridLayout01Component';
  9 +import { LabelComponent } from './LabelComponent';
  10 +import { LoadingComponent } from './LoadingComponent';
  11 +import { SingleColumnComponent } from './SingleColumnComponent';
  12 +import { SingleRow03Component } from './SingleRow03Component';
  13 +import { WaterFlowComponent } from './WaterFlowComponent';
15 14
16 const TAG = 'PageComponent'; 15 const TAG = 'PageComponent';
17 16
@@ -70,6 +69,10 @@ export struct PageComponent { @@ -70,6 +69,10 @@ export struct PageComponent {
70 69
71 aboutToAppear() { 70 aboutToAppear() {
72 Logger.info(TAG, `aboutToAppear, this.pageId: ${this.viewType}`); 71 Logger.info(TAG, `aboutToAppear, this.pageId: ${this.viewType}`);
  72 + let groupDto = PageViewModel.getGroupDTO(getContext(this))
  73 + if (groupDto) {
  74 + this.groupList.push(groupDto)
  75 + }
73 } 76 }
74 } 77 }
75 78
  1 +import { GroupDTO, TopNavBean } from 'wdBean';
  2 +import { LazyDataSource, Logger } from 'wdKit';
  3 +import { PageComponent } from './PageComponent';
  4 +
  5 +const TAG = 'TopNavigationComponent';
  6 +
  7 +/**
  8 + * 顶部页签导航栏/顶导
  9 + */
  10 +@Component
  11 +export struct TopNavigationComponent {
  12 + // 顶导当前选中/焦点下标
  13 + @State curTabSelectedIndex: number = 0;
  14 + // 顶导数据
  15 + @State @Watch('onTopNavigationDataUpdated') topNavList: TopNavBean[] = []
  16 + @State groupList: LazyDataSource<GroupDTO> = new LazyDataSource();
  17 + readonly MAX_LINE: number = 1;
  18 +
  19 + build() {
  20 + Tabs() {
  21 + ForEach(this.topNavList, (navItem: TopNavBean, index: number) => {
  22 + TabContent() {
  23 + PageComponent({ groupList: this.groupList })
  24 + }
  25 + .tabBar(this.TabBarBuilder(navItem, index))
  26 + }, (navItem: TopNavBean) => JSON.stringify(navItem));
  27 + }
  28 + .barHeight($r('app.float.top_tab_bar_height'))
  29 + .barMode(BarMode.Scrollable)
  30 + .vertical(false)
  31 + .onChange((index: number) => {
  32 + Logger.info(TAG, `onChange index : ${index}`);
  33 + this.curTabSelectedIndex = index;
  34 + })
  35 + }
  36 +
  37 + @Builder
  38 + TabBarBuilder(item: TopNavBean, index: number) {
  39 + Column() {
  40 + Text(item.name)
  41 + .fontSize(this.curTabSelectedIndex === index ? $r('app.float.selected_text_size') : $r('app.float.normal_text_size'))
  42 + .fontWeight(this.curTabSelectedIndex === index ? FontWeight.Bold : FontWeight.Normal)
  43 + .fontColor(Color.Black)
  44 + .padding({ top: $r('app.float.top_tab_item_padding_top') })
  45 + .maxLines(this.MAX_LINE)
  46 + }
  47 + .hoverEffect(HoverEffect.Highlight)
  48 + .constraintSize({
  49 + minWidth: $r('app.float.top_tab_item_min_width'),
  50 + maxWidth: $r('app.float.top_tab_item_max_width')
  51 + })
  52 + // .backgroundColor(Color.Black)
  53 + .padding({
  54 + left: $r('app.float.top_tab_item_padding_horizontal'),
  55 + right: $r('app.float.top_tab_item_padding_horizontal'),
  56 + bottom: $r('app.float.top_tab_item_padding_bottom')
  57 + })
  58 + .id(`col_tabBar${index}`)
  59 + }
  60 +
  61 + aboutToAppear() {
  62 + Logger.info(TAG, `aboutToAppear this.topNavList : ${JSON.stringify(this.topNavList)}`);
  63 + }
  64 +
  65 + onTopNavigationDataUpdated() {
  66 + Logger.info(TAG, `onTopNavigationDataUpdated curTabSelectedIndex: ${this.curTabSelectedIndex},topNavList.length:${this.topNavList.length}`);
  67 + }
  68 +}
1 -import { GroupDTO } from 'wdBean'; 1 +import { BottomNavBean, GroupDTO, NavigationBody } from 'wdBean';
2 import { Logger, ResourcesUtils } from 'wdKit'; 2 import { Logger, ResourcesUtils } from 'wdKit';
3 import { ResponseDTO } from 'wdNetwork'; 3 import { ResponseDTO } from 'wdNetwork';
4 4
@@ -9,16 +9,33 @@ const TAG = 'PageViewModel'; @@ -9,16 +9,33 @@ const TAG = 'PageViewModel';
9 */ 9 */
10 export class PageViewModel { 10 export class PageViewModel {
11 /** 11 /**
  12 + * get Nav Data from Resource .
  13 + *
  14 + * @return BottomNavBean[] Nav Data List
  15 + */
  16 + static getBottomNavData(context: Context): BottomNavBean[] {
  17 + Logger.info(TAG, `getBottomNavData start`);
  18 + let compRes: ResponseDTO<NavigationBody> | null = ResourcesUtils.getResourcesJsonSync<ResponseDTO<NavigationBody>>(context, 'bottom_nav.json');
  19 + if (!compRes || !compRes.data || !compRes.data.bottomNavList) {
  20 + Logger.info(TAG, `getBottomNavData compRes bottomNavList is empty`);
  21 + return []
  22 + }
  23 + Logger.info(TAG, `getBottomNavData getResourcesJsonSync compRes : ${JSON.stringify(compRes)}`);
  24 + return compRes.data.bottomNavList
  25 + }
  26 +
  27 + /**
12 * Get Group data. 28 * Get Group data.
13 * 29 *
14 * @return {GroupDTO} compRes.data 30 * @return {GroupDTO} compRes.data
15 */ 31 */
16 static getGroupDTO(context: Context): GroupDTO { 32 static getGroupDTO(context: Context): GroupDTO {
17 let compRes: ResponseDTO<GroupDTO> | null = ResourcesUtils.getResourcesJsonSync<ResponseDTO<GroupDTO>>(context, 'comp_list.json'); 33 let compRes: ResponseDTO<GroupDTO> | null = ResourcesUtils.getResourcesJsonSync<ResponseDTO<GroupDTO>>(context, 'comp_list.json');
18 - Logger.info(TAG, `getCompList getResourcesJson compRes : ${JSON.stringify(compRes)}`);  
19 if (!compRes || !compRes.data) { 34 if (!compRes || !compRes.data) {
  35 + Logger.info(TAG, `getCompList compRes is empty`);
20 return {} as GroupDTO 36 return {} as GroupDTO
21 } 37 }
  38 + Logger.info(TAG, `getCompList getResourcesJson compRes : ${JSON.stringify(compRes)}`);
22 return compRes.data 39 return compRes.data
23 } 40 }
24 } 41 }
@@ -25,6 +25,10 @@ @@ -25,6 +25,10 @@
25 "value": "16fp" 25 "value": "16fp"
26 }, 26 },
27 { 27 {
  28 + "name": "selected_text_size",
  29 + "value": "18fp"
  30 + },
  31 + {
28 "name": "font_size_24", 32 "name": "font_size_24",
29 "value": "24fp" 33 "value": "24fp"
30 }, 34 },
@@ -68,6 +72,38 @@ @@ -68,6 +72,38 @@
68 { 72 {
69 "name": "border_radius_6", 73 "name": "border_radius_6",
70 "value": "6vp" 74 "value": "6vp"
  75 + },
  76 + {
  77 + "name": "bottom_navigation_margin_bottom",
  78 + "value": "4vp"
  79 + },
  80 + {
  81 + "name": "bottom_navigation_barHeight",
  82 + "value": "50vp"
  83 + },
  84 + {
  85 + "name": "top_tab_bar_height",
  86 + "value": "40vp"
  87 + },
  88 + {
  89 + "name": "top_tab_item_max_width",
  90 + "value": "300vp"
  91 + },
  92 + {
  93 + "name": "top_tab_item_min_width",
  94 + "value": "20vp"
  95 + },
  96 + {
  97 + "name": "top_tab_item_padding_horizontal",
  98 + "value": "7vp"
  99 + },
  100 + {
  101 + "name": "top_tab_item_padding_bottom",
  102 + "value": "5vp"
  103 + },
  104 + {
  105 + "name": "top_tab_item_padding_top",
  106 + "value": "2vp"
71 } 107 }
72 ] 108 ]
73 } 109 }