王士厅
@@ -104,6 +104,10 @@ export class HttpUrlUtils { @@ -104,6 +104,10 @@ export class HttpUrlUtils {
104 */ 104 */
105 static readonly APPOINTMENT_editUserDetail1_PATH: string = "/api/rmrb-user-center/user/zh/c/completeUserInfo"; 105 static readonly APPOINTMENT_editUserDetail1_PATH: string = "/api/rmrb-user-center/user/zh/c/completeUserInfo";
106 /** 106 /**
  107 + * 资料编辑 地区拉取
  108 + */
  109 + static readonly APPOINTMENT_userArea_PATH: string = "/api/rmrb-content-center/c/service/sys-area/treeselect";
  110 + /**
107 /** 111 /**
108 * 个人中心 关注列表详情 112 * 个人中心 关注列表详情
109 */ 113 */
@@ -431,6 +431,7 @@ struct ChannelDialog { @@ -431,6 +431,7 @@ struct ChannelDialog {
431 } 431 }
432 432
433 }.width('100%').height('100%') 433 }.width('100%').height('100%')
  434 + .scrollBar(BarState.Off)
434 } 435 }
435 .padding({ top: 40, right: 15, bottom: 20, left: 15 }) 436 .padding({ top: 40, right: 15, bottom: 20, left: 15 })
436 .backgroundColor('#ffffff') 437 .backgroundColor('#ffffff')
@@ -482,1512 +483,6 @@ struct ChannelSubscriptionLayout { @@ -482,1512 +483,6 @@ struct ChannelSubscriptionLayout {
482 this.myChannelList.push(item) 483 this.myChannelList.push(item)
483 this.storeChannelIds = this.channelIds.join(',') 484 this.storeChannelIds = this.channelIds.join(',')
484 } 485 }
485 - // @State currentTopNavSelectedIndex: number = 0  
486 - // @State topNavList: TopNavDTO [] = [  
487 - // {  
488 - // channelId: 2001,  
489 - // channelStrategy: 1,  
490 - // channelStyle: 2,  
491 - // channelType: 1,  
492 - // defaultPermitted: 1,  
493 - // delPermitted: 0,  
494 - // fontCColor: "#FFFFFF",  
495 - // fontColor: "#F9AB99",  
496 - // headlinesOn: 0,  
497 - // homeChannel: "0",  
498 - // iconCUrl: "",  
499 - // iconCUrlSize: "",  
500 - // iconUrl: "",  
501 - // iconUrlSize: "",  
502 - // localChannel: "0",  
503 - // moreChannel: "0",  
504 - // movePermitted: 0,  
505 - // myChannel: "0",  
506 - // name: "推荐",  
507 - // num: 1,  
508 - // pageId: 20011,  
509 - // pageType: "",  
510 - // underlineCColor: ""  
511 - // },  
512 - // {  
513 - // channelId: 2002,  
514 - // channelStrategy: 2,  
515 - // channelStyle: 2,  
516 - // channelType: 1,  
517 - // defaultPermitted: 1,  
518 - // delPermitted: 0,  
519 - // fontCColor: "#FFFFFF",  
520 - // fontColor: "#F9AB99",  
521 - // headlinesOn: 0,  
522 - // homeChannel: "0",  
523 - // iconCUrl: "",  
524 - // iconCUrlSize: "",  
525 - // iconUrl: "",  
526 - // iconUrlSize: "",  
527 - // localChannel: "0",  
528 - // moreChannel: "0",  
529 - // movePermitted: 0,  
530 - // myChannel: "0",  
531 - // name: "热点",  
532 - // num: 2,  
533 - // pageId: 20012,  
534 - // pageType: "",  
535 - // underlineCColor: ""  
536 - // },  
537 - // {  
538 - // channelId: 2003,  
539 - // channelStrategy: 2,  
540 - // channelStyle: 2,  
541 - // channelType: 1,  
542 - // defaultPermitted: 0,  
543 - // delPermitted: 0,  
544 - // fontCColor: "#FFFFFF",  
545 - // fontColor: "#F9AB99",  
546 - // headlinesOn: 0,  
547 - // homeChannel: "0",  
548 - // iconCUrl: "",  
549 - // iconCUrlSize: "",  
550 - // iconUrl: "",  
551 - // iconUrlSize: "",  
552 - // localChannel: "0",  
553 - // moreChannel: "0",  
554 - // movePermitted: 1,  
555 - // myChannel: "0",  
556 - // name: "锐评",  
557 - // num: 3,  
558 - // pageId: 20013,  
559 - // pageType: "",  
560 - // underlineCColor: ""  
561 - // },  
562 - // {  
563 - // channelId: 2066,  
564 - // channelStrategy: 2,  
565 - // channelStyle: 3,  
566 - // channelType: 1,  
567 - // defaultPermitted: 0,  
568 - // delPermitted: 1,  
569 - // fontCColor: "#FFFFFF",  
570 - // fontColor: "#F9AB99",  
571 - // headlinesOn: 0,  
572 - // homeChannel: "0",  
573 - // iconCUrl: "",  
574 - // iconCUrlSize: "",  
575 - // iconUrl: "",  
576 - // iconUrlSize: "",  
577 - // localChannel: "0",  
578 - // moreChannel: "0",  
579 - // movePermitted: 1,  
580 - // myChannel: "0",  
581 - // name: "播报",  
582 - // num: 4,  
583 - // pageId: 21003,  
584 - // pageType: "",  
585 - // underlineCColor: ""  
586 - // },  
587 - // {  
588 - // channelId: 2006,  
589 - // channelStrategy: 2,  
590 - // channelStyle: 3,  
591 - // channelType: 1,  
592 - // defaultPermitted: 0,  
593 - // delPermitted: 0,  
594 - // fontCColor: "#FFFFFF",  
595 - // fontColor: "#F9AB99",  
596 - // headlinesOn: 0,  
597 - // homeChannel: "0",  
598 - // iconCUrl: "",  
599 - // iconCUrlSize: "",  
600 - // iconUrl: "",  
601 - // iconUrlSize: "",  
602 - // localChannel: "0",  
603 - // moreChannel: "0",  
604 - // movePermitted: 1,  
605 - // myChannel: "0",  
606 - // name: "版面",  
607 - // num: 5,  
608 - // pageId: 20016,  
609 - // pageType: "",  
610 - // underlineCColor: ""  
611 - // },  
612 - // {  
613 - // channelId: 2011,  
614 - // channelStrategy: 2,  
615 - // channelStyle: 2,  
616 - // channelType: 1,  
617 - // defaultPermitted: 0,  
618 - // delPermitted: 1,  
619 - // fontCColor: "#FFFFFF",  
620 - // fontColor: "#F9AB99",  
621 - // headlinesOn: 0,  
622 - // homeChannel: "0",  
623 - // iconCUrl: "",  
624 - // iconCUrlSize: "",  
625 - // iconUrl: "",  
626 - // iconUrlSize: "",  
627 - // localChannel: "0",  
628 - // moreChannel: "0",  
629 - // movePermitted: 1,  
630 - // myChannel: "0",  
631 - // name: "体育",  
632 - // num: 6,  
633 - // pageId: 20021,  
634 - // pageType: "",  
635 - // underlineCColor: ""  
636 - // },  
637 - // {  
638 - // channelId: 2020,  
639 - // channelStrategy: 1,  
640 - // channelStyle: 2,  
641 - // channelType: 1,  
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: 7,  
658 - // pageId: 20030,  
659 - // pageType: "",  
660 - // underlineCColor: ""  
661 - // },  
662 - // {  
663 - // channelId: 2063,  
664 - // channelStrategy: 2,  
665 - // channelStyle: 2,  
666 - // channelType: 1,  
667 - // defaultPermitted: 0,  
668 - // delPermitted: 0,  
669 - // fontCColor: "#FFFFFF",  
670 - // fontColor: "#F9AB99",  
671 - // headlinesOn: 0,  
672 - // homeChannel: "0",  
673 - // iconCUrl: "",  
674 - // iconCUrlSize: "",  
675 - // iconUrl: "",  
676 - // iconUrlSize: "",  
677 - // localChannel: "0",  
678 - // moreChannel: "0",  
679 - // movePermitted: 0,  
680 - // myChannel: "0",  
681 - // name: "两会",  
682 - // num: 8,  
683 - // pageId: 21000,  
684 - // pageType: "",  
685 - // underlineCColor: ""  
686 - // },  
687 - // {  
688 - // channelId: 2072,  
689 - // channelStrategy: 2,  
690 - // channelStyle: 2,  
691 - // channelType: 1,  
692 - // defaultPermitted: 0,  
693 - // delPermitted: 0,  
694 - // fontCColor: "#FFFFFF",  
695 - // fontColor: "#F9AB99",  
696 - // headlinesOn: 0,  
697 - // homeChannel: "0",  
698 - // iconCUrl: "",  
699 - // iconCUrlSize: "",  
700 - // iconUrl: "",  
701 - // iconUrlSize: "",  
702 - // localChannel: "0",  
703 - // moreChannel: "0",  
704 - // movePermitted: 0,  
705 - // myChannel: "0",  
706 - // name: "亚运",  
707 - // num: 9,  
708 - // pageId: 21009,  
709 - // pageType: "",  
710 - // underlineCColor: ""  
711 - // },  
712 - // {  
713 - // channelId: 2015,  
714 - // channelStrategy: 1,  
715 - // channelStyle: 2,  
716 - // channelType: 1,  
717 - // defaultPermitted: 0,  
718 - // delPermitted: 1,  
719 - // fontCColor: "#FFFFFF",  
720 - // fontColor: "#F9AB99",  
721 - // headlinesOn: 0,  
722 - // homeChannel: "0",  
723 - // iconCUrl: "",  
724 - // iconCUrlSize: "",  
725 - // iconUrl: "",  
726 - // iconUrlSize: "",  
727 - // localChannel: "0",  
728 - // moreChannel: "0",  
729 - // movePermitted: 1,  
730 - // myChannel: "0",  
731 - // name: "科技",  
732 - // num: 10,  
733 - // pageId: 20025,  
734 - // pageType: "",  
735 - // underlineCColor: ""  
736 - // },  
737 - // {  
738 - // channelId: 2004,  
739 - // channelStrategy: 2,  
740 - // channelStyle: 2,  
741 - // channelType: 1,  
742 - // defaultPermitted: 0,  
743 - // delPermitted: 0,  
744 - // fontCColor: "#FFFFFF",  
745 - // fontColor: "#F9AB99",  
746 - // headlinesOn: 0,  
747 - // homeChannel: "0",  
748 - // iconCUrl: "",  
749 - // iconCUrlSize: "",  
750 - // iconUrl: "",  
751 - // iconUrlSize: "",  
752 - // localChannel: "0",  
753 - // moreChannel: "0",  
754 - // movePermitted: 1,  
755 - // myChannel: "0",  
756 - // name: "云课堂",  
757 - // num: 11,  
758 - // pageId: 20014,  
759 - // pageType: "",  
760 - // underlineCColor: ""  
761 - // },  
762 - // {  
763 - // channelId: 2005,  
764 - // channelStrategy: 2,  
765 - // channelStyle: 2,  
766 - // channelType: 1,  
767 - // defaultPermitted: 0,  
768 - // delPermitted: 0,  
769 - // fontCColor: "#FFFFFF",  
770 - // fontColor: "#F9AB99",  
771 - // headlinesOn: 0,  
772 - // homeChannel: "0",  
773 - // iconCUrl: "",  
774 - // iconCUrlSize: "",  
775 - // iconUrl: "",  
776 - // iconUrlSize: "",  
777 - // localChannel: "0",  
778 - // moreChannel: "0",  
779 - // movePermitted: 1,  
780 - // myChannel: "0",  
781 - // name: "文件",  
782 - // num: 12,  
783 - // pageId: 20015,  
784 - // pageType: "",  
785 - // underlineCColor: ""  
786 - // },  
787 - // {  
788 - // channelId: 2007,  
789 - // channelStrategy: 1,  
790 - // channelStyle: 2,  
791 - // channelType: 1,  
792 - // defaultPermitted: 0,  
793 - // delPermitted: 0,  
794 - // fontCColor: "#FFFFFF",  
795 - // fontColor: "#F9AB99",  
796 - // headlinesOn: 0,  
797 - // homeChannel: "0",  
798 - // iconCUrl: "",  
799 - // iconCUrlSize: "",  
800 - // iconUrl: "",  
801 - // iconUrlSize: "",  
802 - // localChannel: "0",  
803 - // moreChannel: "0",  
804 - // movePermitted: 1,  
805 - // myChannel: "0",  
806 - // name: "镜头",  
807 - // num: 13,  
808 - // pageId: 20017,  
809 - // pageType: "",  
810 - // underlineCColor: ""  
811 - // },  
812 - // {  
813 - // channelId: 2008,  
814 - // channelStrategy: 2,  
815 - // channelStyle: 2,  
816 - // channelType: 1,  
817 - // defaultPermitted: 0,  
818 - // delPermitted: 0,  
819 - // fontCColor: "#FFFFFF",  
820 - // fontColor: "#F9AB99",  
821 - // headlinesOn: 0,  
822 - // homeChannel: "0",  
823 - // iconCUrl: "",  
824 - // iconCUrlSize: "",  
825 - // iconUrl: "",  
826 - // iconUrlSize: "",  
827 - // localChannel: "0",  
828 - // moreChannel: "0",  
829 - // movePermitted: 1,  
830 - // myChannel: "0",  
831 - // name: "公益",  
832 - // num: 14,  
833 - // pageId: 20018,  
834 - // pageType: "",  
835 - // underlineCColor: ""  
836 - // },  
837 - // {  
838 - // channelId: 2009,  
839 - // channelStrategy: 1,  
840 - // channelStyle: 2,  
841 - // channelType: 1,  
842 - // defaultPermitted: 0,  
843 - // delPermitted: 1,  
844 - // fontCColor: "#FFFFFF",  
845 - // fontColor: "#F9AB99",  
846 - // headlinesOn: 0,  
847 - // homeChannel: "0",  
848 - // iconCUrl: "",  
849 - // iconCUrlSize: "",  
850 - // iconUrl: "",  
851 - // iconUrlSize: "",  
852 - // localChannel: "0",  
853 - // moreChannel: "0",  
854 - // movePermitted: 1,  
855 - // myChannel: "0",  
856 - // name: "社会",  
857 - // num: 15,  
858 - // pageId: 20019,  
859 - // pageType: "",  
860 - // underlineCColor: ""  
861 - // },  
862 - // {  
863 - // channelId: 2010,  
864 - // channelStrategy: 1,  
865 - // channelStyle: 2,  
866 - // channelType: 1,  
867 - // defaultPermitted: 0,  
868 - // delPermitted: 1,  
869 - // fontCColor: "#FFFFFF",  
870 - // fontColor: "#F9AB99",  
871 - // headlinesOn: 0,  
872 - // homeChannel: "0",  
873 - // iconCUrl: "",  
874 - // iconCUrlSize: "",  
875 - // iconUrl: "",  
876 - // iconUrlSize: "",  
877 - // localChannel: "0",  
878 - // moreChannel: "0",  
879 - // movePermitted: 1,  
880 - // myChannel: "0",  
881 - // name: "财经",  
882 - // num: 16,  
883 - // pageId: 20020,  
884 - // pageType: "",  
885 - // underlineCColor: ""  
886 - // },  
887 - // {  
888 - // channelId: 2012,  
889 - // channelStrategy: 1,  
890 - // channelStyle: 2,  
891 - // channelType: 1,  
892 - // defaultPermitted: 0,  
893 - // delPermitted: 1,  
894 - // fontCColor: "#FFFFFF",  
895 - // fontColor: "#F9AB99",  
896 - // headlinesOn: 0,  
897 - // homeChannel: "0",  
898 - // iconCUrl: "",  
899 - // iconCUrlSize: "",  
900 - // iconUrl: "",  
901 - // iconUrlSize: "",  
902 - // localChannel: "0",  
903 - // moreChannel: "0",  
904 - // movePermitted: 1,  
905 - // myChannel: "0",  
906 - // name: "文化",  
907 - // num: 17,  
908 - // pageId: 20022,  
909 - // pageType: "",  
910 - // underlineCColor: ""  
911 - // },  
912 - // {  
913 - // channelId: 2013,  
914 - // channelStrategy: 1,  
915 - // channelStyle: 2,  
916 - // channelType: 1,  
917 - // defaultPermitted: 0,  
918 - // delPermitted: 1,  
919 - // fontCColor: "#FFFFFF",  
920 - // fontColor: "#F9AB99",  
921 - // headlinesOn: 0,  
922 - // homeChannel: "0",  
923 - // iconCUrl: "",  
924 - // iconCUrlSize: "",  
925 - // iconUrl: "",  
926 - // iconUrlSize: "",  
927 - // localChannel: "0",  
928 - // moreChannel: "0",  
929 - // movePermitted: 1,  
930 - // myChannel: "0",  
931 - // name: "教育",  
932 - // num: 18,  
933 - // pageId: 20023,  
934 - // pageType: "",  
935 - // underlineCColor: ""  
936 - // },  
937 - // {  
938 - // channelId: 2014,  
939 - // channelStrategy: 1,  
940 - // channelStyle: 2,  
941 - // channelType: 1,  
942 - // defaultPermitted: 0,  
943 - // delPermitted: 1,  
944 - // fontCColor: "#FFFFFF",  
945 - // fontColor: "#F9AB99",  
946 - // headlinesOn: 0,  
947 - // homeChannel: "0",  
948 - // iconCUrl: "",  
949 - // iconCUrlSize: "",  
950 - // iconUrl: "",  
951 - // iconUrlSize: "",  
952 - // localChannel: "0",  
953 - // moreChannel: "0",  
954 - // movePermitted: 1,  
955 - // myChannel: "0",  
956 - // name: "军事",  
957 - // num: 19,  
958 - // pageId: 20024,  
959 - // pageType: "",  
960 - // underlineCColor: ""  
961 - // },  
962 - // {  
963 - // channelId: 2017,  
964 - // channelStrategy: 2,  
965 - // channelStyle: 2,  
966 - // channelType: 1,  
967 - // defaultPermitted: 0,  
968 - // delPermitted: 1,  
969 - // fontCColor: "#FFFFFF",  
970 - // fontColor: "#F9AB99",  
971 - // headlinesOn: 0,  
972 - // homeChannel: "0",  
973 - // iconCUrl: "",  
974 - // iconCUrlSize: "",  
975 - // iconUrl: "",  
976 - // iconUrlSize: "",  
977 - // localChannel: "0",  
978 - // moreChannel: "0",  
979 - // movePermitted: 1,  
980 - // myChannel: "0",  
981 - // name: "健康",  
982 - // num: 20,  
983 - // pageId: 20027,  
984 - // pageType: "",  
985 - // underlineCColor: ""  
986 - // },  
987 - // {  
988 - // channelId: 2019,  
989 - // channelStrategy: 1,  
990 - // channelStyle: 2,  
991 - // channelType: 1,  
992 - // defaultPermitted: 0,  
993 - // delPermitted: 1,  
994 - // fontCColor: "#FFFFFF",  
995 - // fontColor: "#F9AB99",  
996 - // headlinesOn: 0,  
997 - // homeChannel: "0",  
998 - // iconCUrl: "",  
999 - // iconCUrlSize: "",  
1000 - // iconUrl: "",  
1001 - // iconUrlSize: "",  
1002 - // localChannel: "0",  
1003 - // moreChannel: "0",  
1004 - // movePermitted: 1,  
1005 - // myChannel: "0",  
1006 - // name: "房产",  
1007 - // num: 21,  
1008 - // pageId: 20029,  
1009 - // pageType: "",  
1010 - // underlineCColor: ""  
1011 - // },  
1012 - // {  
1013 - // channelId: 2018,  
1014 - // channelStrategy: 1,  
1015 - // channelStyle: 2,  
1016 - // channelType: 1,  
1017 - // defaultPermitted: 0,  
1018 - // delPermitted: 1,  
1019 - // fontCColor: "#FFFFFF",  
1020 - // fontColor: "#F9AB99",  
1021 - // headlinesOn: 0,  
1022 - // homeChannel: "0",  
1023 - // iconCUrl: "",  
1024 - // iconCUrlSize: "",  
1025 - // iconUrl: "",  
1026 - // iconUrlSize: "",  
1027 - // localChannel: "0",  
1028 - // moreChannel: "0",  
1029 - // movePermitted: 1,  
1030 - // myChannel: "0",  
1031 - // name: "汽车",  
1032 - // num: 22,  
1033 - // pageId: 20028,  
1034 - // pageType: "",  
1035 - // underlineCColor: ""  
1036 - // },  
1037 - // {  
1038 - // channelId: 2065,  
1039 - // channelStrategy: 2,  
1040 - // channelStyle: 2,  
1041 - // channelType: 1,  
1042 - // defaultPermitted: 0,  
1043 - // delPermitted: 0,  
1044 - // fontCColor: "#FFFFFF",  
1045 - // fontColor: "#F9AB99",  
1046 - // headlinesOn: 0,  
1047 - // homeChannel: "0",  
1048 - // iconCUrl: "",  
1049 - // iconCUrlSize: "",  
1050 - // iconUrl: "",  
1051 - // iconUrlSize: "",  
1052 - // localChannel: "0",  
1053 - // moreChannel: "0",  
1054 - // movePermitted: 1,  
1055 - // myChannel: "0",  
1056 - // name: "三农",  
1057 - // num: 24,  
1058 - // pageId: 21002,  
1059 - // pageType: "",  
1060 - // underlineCColor: ""  
1061 - // },  
1062 - // {  
1063 - // channelId: 2024,  
1064 - // channelStrategy: 1,  
1065 - // channelStyle: 2,  
1066 - // channelType: 1,  
1067 - // defaultPermitted: 0,  
1068 - // delPermitted: 1,  
1069 - // fontCColor: "#FFFFFF",  
1070 - // fontColor: "#F9AB99",  
1071 - // headlinesOn: 0,  
1072 - // homeChannel: "0",  
1073 - // iconCUrl: "",  
1074 - // iconCUrlSize: "",  
1075 - // iconUrl: "",  
1076 - // iconUrlSize: "",  
1077 - // localChannel: "0",  
1078 - // moreChannel: "0",  
1079 - // movePermitted: 1,  
1080 - // myChannel: "0",  
1081 - // name: "家居",  
1082 - // num: 25,  
1083 - // pageId: 20034,  
1084 - // pageType: "",  
1085 - // underlineCColor: ""  
1086 - // },  
1087 - // {  
1088 - // channelId: 2021,  
1089 - // channelStrategy: 1,  
1090 - // channelStyle: 2,  
1091 - // channelType: 1,  
1092 - // defaultPermitted: 0,  
1093 - // delPermitted: 1,  
1094 - // fontCColor: "#FFFFFF",  
1095 - // fontColor: "#F9AB99",  
1096 - // headlinesOn: 0,  
1097 - // homeChannel: "0",  
1098 - // iconCUrl: "",  
1099 - // iconCUrlSize: "",  
1100 - // iconUrl: "",  
1101 - // iconUrlSize: "",  
1102 - // localChannel: "0",  
1103 - // moreChannel: "0",  
1104 - // movePermitted: 1,  
1105 - // myChannel: "0",  
1106 - // name: "法治",  
1107 - // num: 27,  
1108 - // pageId: 20031,  
1109 - // pageType: "",  
1110 - // underlineCColor: ""  
1111 - // },  
1112 - // {  
1113 - // channelId: 2022,  
1114 - // channelStrategy: 1,  
1115 - // channelStyle: 2,  
1116 - // channelType: 1,  
1117 - // defaultPermitted: 0,  
1118 - // delPermitted: 1,  
1119 - // fontCColor: "#FFFFFF",  
1120 - // fontColor: "#F9AB99",  
1121 - // headlinesOn: 0,  
1122 - // homeChannel: "0",  
1123 - // iconCUrl: "",  
1124 - // iconCUrlSize: "",  
1125 - // iconUrl: "",  
1126 - // iconUrlSize: "",  
1127 - // localChannel: "0",  
1128 - // moreChannel: "0",  
1129 - // movePermitted: 1,  
1130 - // myChannel: "0",  
1131 - // name: "美食",  
1132 - // num: 28,  
1133 - // pageId: 20032,  
1134 - // pageType: "",  
1135 - // underlineCColor: ""  
1136 - // },  
1137 - // {  
1138 - // channelId: 2025,  
1139 - // channelStrategy: 1,  
1140 - // channelStyle: 2,  
1141 - // channelType: 1,  
1142 - // defaultPermitted: 0,  
1143 - // delPermitted: 1,  
1144 - // fontCColor: "#FFFFFF",  
1145 - // fontColor: "#F9AB99",  
1146 - // headlinesOn: 0,  
1147 - // homeChannel: "0",  
1148 - // iconCUrl: "",  
1149 - // iconCUrlSize: "",  
1150 - // iconUrl: "",  
1151 - // iconUrlSize: "",  
1152 - // localChannel: "0",  
1153 - // moreChannel: "0",  
1154 - // movePermitted: 1,  
1155 - // myChannel: "0",  
1156 - // name: "育儿",  
1157 - // num: 29,  
1158 - // pageId: 20035,  
1159 - // pageType: "",  
1160 - // underlineCColor: ""  
1161 - // },  
1162 - // {  
1163 - // channelId: 2026,  
1164 - // channelStrategy: 1,  
1165 - // channelStyle: 2,  
1166 - // channelType: 1,  
1167 - // defaultPermitted: 0,  
1168 - // delPermitted: 1,  
1169 - // fontCColor: "#FFFFFF",  
1170 - // fontColor: "#F9AB99",  
1171 - // headlinesOn: 0,  
1172 - // homeChannel: "0",  
1173 - // iconCUrl: "",  
1174 - // iconCUrlSize: "",  
1175 - // iconUrl: "",  
1176 - // iconUrlSize: "",  
1177 - // localChannel: "0",  
1178 - // moreChannel: "0",  
1179 - // movePermitted: 1,  
1180 - // myChannel: "0",  
1181 - // name: "生态",  
1182 - // num: 30,  
1183 - // pageId: 20036,  
1184 - // pageType: "",  
1185 - // underlineCColor: ""  
1186 - // },  
1187 - // {  
1188 - // channelId: 2023,  
1189 - // channelStrategy: 1,  
1190 - // channelStyle: 2,  
1191 - // channelType: 1,  
1192 - // defaultPermitted: 0,  
1193 - // delPermitted: 1,  
1194 - // fontCColor: "#FFFFFF",  
1195 - // fontColor: "#F9AB99",  
1196 - // headlinesOn: 0,  
1197 - // homeChannel: "0",  
1198 - // iconCUrl: "",  
1199 - // iconCUrlSize: "",  
1200 - // iconUrl: "",  
1201 - // iconUrlSize: "",  
1202 - // localChannel: "0",  
1203 - // moreChannel: "0",  
1204 - // movePermitted: 1,  
1205 - // myChannel: "0",  
1206 - // name: "时尚",  
1207 - // num: 31,  
1208 - // pageId: 20033,  
1209 - // pageType: "",  
1210 - // underlineCColor: ""  
1211 - // },  
1212 - // {  
1213 - // channelId: 2027,  
1214 - // channelStrategy: 1,  
1215 - // channelStyle: 2,  
1216 - // channelType: 2,  
1217 - // defaultPermitted: 0,  
1218 - // delPermitted: 1,  
1219 - // fontCColor: "#FFFFFF",  
1220 - // fontColor: "#F9AB99",  
1221 - // headlinesOn: 0,  
1222 - // homeChannel: "0",  
1223 - // iconCUrl: "",  
1224 - // iconCUrlSize: "",  
1225 - // iconUrl: "",  
1226 - // iconUrlSize: "",  
1227 - // localChannel: "0",  
1228 - // moreChannel: "0",  
1229 - // movePermitted: 1,  
1230 - // myChannel: "0",  
1231 - // name: "北京",  
1232 - // num: 32,  
1233 - // pageId: 20037,  
1234 - // pageType: "",  
1235 - // underlineCColor: ""  
1236 - // },  
1237 - // {  
1238 - // channelId: 2029,  
1239 - // channelStrategy: 1,  
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: 33,  
1258 - // pageId: 20039,  
1259 - // pageType: "",  
1260 - // underlineCColor: ""  
1261 - // },  
1262 - // {  
1263 - // channelId: 2030,  
1264 - // channelStrategy: 1,  
1265 - // channelStyle: 2,  
1266 - // channelType: 2,  
1267 - // defaultPermitted: 0,  
1268 - // delPermitted: 1,  
1269 - // fontCColor: "#FFFFFF",  
1270 - // fontColor: "#F9AB99",  
1271 - // headlinesOn: 0,  
1272 - // homeChannel: "0",  
1273 - // iconCUrl: "",  
1274 - // iconCUrlSize: "",  
1275 - // iconUrl: "",  
1276 - // iconUrlSize: "",  
1277 - // localChannel: "0",  
1278 - // moreChannel: "0",  
1279 - // movePermitted: 1,  
1280 - // myChannel: "0",  
1281 - // name: "河北",  
1282 - // num: 34,  
1283 - // pageId: 20040,  
1284 - // pageType: "",  
1285 - // underlineCColor: ""  
1286 - // },  
1287 - // {  
1288 - // channelId: 2042,  
1289 - // channelStrategy: 1,  
1290 - // channelStyle: 2,  
1291 - // channelType: 2,  
1292 - // defaultPermitted: 0,  
1293 - // delPermitted: 1,  
1294 - // fontCColor: "#FFFFFF",  
1295 - // fontColor: "#F9AB99",  
1296 - // headlinesOn: 0,  
1297 - // homeChannel: "0",  
1298 - // iconCUrl: "",  
1299 - // iconCUrlSize: "",  
1300 - // iconUrl: "",  
1301 - // iconUrlSize: "",  
1302 - // localChannel: "0",  
1303 - // moreChannel: "0",  
1304 - // movePermitted: 1,  
1305 - // myChannel: "0",  
1306 - // name: "河南",  
1307 - // num: 35,  
1308 - // pageId: 20052,  
1309 - // pageType: "",  
1310 - // underlineCColor: ""  
1311 - // },  
1312 - // {  
1313 - // channelId: 2041,  
1314 - // channelStrategy: 1,  
1315 - // channelStyle: 2,  
1316 - // channelType: 2,  
1317 - // defaultPermitted: 0,  
1318 - // delPermitted: 1,  
1319 - // fontCColor: "#FFFFFF",  
1320 - // fontColor: "#F9AB99",  
1321 - // headlinesOn: 0,  
1322 - // homeChannel: "0",  
1323 - // iconCUrl: "",  
1324 - // iconCUrlSize: "",  
1325 - // iconUrl: "",  
1326 - // iconUrlSize: "",  
1327 - // localChannel: "0",  
1328 - // moreChannel: "0",  
1329 - // movePermitted: 1,  
1330 - // myChannel: "0",  
1331 - // name: "山东",  
1332 - // num: 36,  
1333 - // pageId: 20051,  
1334 - // pageType: "",  
1335 - // underlineCColor: ""  
1336 - // },  
1337 - // {  
1338 - // channelId: 2031,  
1339 - // channelStrategy: 2,  
1340 - // channelStyle: 2,  
1341 - // channelType: 2,  
1342 - // defaultPermitted: 0,  
1343 - // delPermitted: 1,  
1344 - // fontCColor: "#FFFFFF",  
1345 - // fontColor: "#F9AB99",  
1346 - // headlinesOn: 0,  
1347 - // homeChannel: "0",  
1348 - // iconCUrl: "",  
1349 - // iconCUrlSize: "",  
1350 - // iconUrl: "",  
1351 - // iconUrlSize: "",  
1352 - // localChannel: "0",  
1353 - // moreChannel: "0",  
1354 - // movePermitted: 1,  
1355 - // myChannel: "0",  
1356 - // name: "山西",  
1357 - // num: 37,  
1358 - // pageId: 20041,  
1359 - // pageType: "",  
1360 - // underlineCColor: ""  
1361 - // },  
1362 - // {  
1363 - // channelId: 2032,  
1364 - // channelStrategy: 1,  
1365 - // channelStyle: 2,  
1366 - // channelType: 2,  
1367 - // defaultPermitted: 0,  
1368 - // delPermitted: 1,  
1369 - // fontCColor: "#FFFFFF",  
1370 - // fontColor: "#F9AB99",  
1371 - // headlinesOn: 0,  
1372 - // homeChannel: "0",  
1373 - // iconCUrl: "",  
1374 - // iconCUrlSize: "",  
1375 - // iconUrl: "",  
1376 - // iconUrlSize: "",  
1377 - // localChannel: "0",  
1378 - // moreChannel: "0",  
1379 - // movePermitted: 1,  
1380 - // myChannel: "0",  
1381 - // name: "内蒙古",  
1382 - // num: 38,  
1383 - // pageId: 20042,  
1384 - // pageType: "",  
1385 - // underlineCColor: ""  
1386 - // },  
1387 - // {  
1388 - // channelId: 2033,  
1389 - // channelStrategy: 1,  
1390 - // channelStyle: 2,  
1391 - // channelType: 2,  
1392 - // defaultPermitted: 0,  
1393 - // delPermitted: 1,  
1394 - // fontCColor: "#FFFFFF",  
1395 - // fontColor: "#F9AB99",  
1396 - // headlinesOn: 0,  
1397 - // homeChannel: "0",  
1398 - // iconCUrl: "",  
1399 - // iconCUrlSize: "",  
1400 - // iconUrl: "",  
1401 - // iconUrlSize: "",  
1402 - // localChannel: "0",  
1403 - // moreChannel: "0",  
1404 - // movePermitted: 1,  
1405 - // myChannel: "0",  
1406 - // name: "辽宁",  
1407 - // num: 39,  
1408 - // pageId: 20043,  
1409 - // pageType: "",  
1410 - // underlineCColor: ""  
1411 - // },  
1412 - // {  
1413 - // channelId: 2034,  
1414 - // channelStrategy: 1,  
1415 - // channelStyle: 2,  
1416 - // channelType: 2,  
1417 - // defaultPermitted: 0,  
1418 - // delPermitted: 1,  
1419 - // fontCColor: "#FFFFFF",  
1420 - // fontColor: "#F9AB99",  
1421 - // headlinesOn: 0,  
1422 - // homeChannel: "0",  
1423 - // iconCUrl: "",  
1424 - // iconCUrlSize: "",  
1425 - // iconUrl: "",  
1426 - // iconUrlSize: "",  
1427 - // localChannel: "0",  
1428 - // moreChannel: "0",  
1429 - // movePermitted: 1,  
1430 - // myChannel: "0",  
1431 - // name: "吉林",  
1432 - // num: 40,  
1433 - // pageId: 20044,  
1434 - // pageType: "",  
1435 - // underlineCColor: ""  
1436 - // },  
1437 - // {  
1438 - // channelId: 2035,  
1439 - // channelStrategy: 1,  
1440 - // channelStyle: 2,  
1441 - // channelType: 2,  
1442 - // defaultPermitted: 0,  
1443 - // delPermitted: 1,  
1444 - // fontCColor: "#FFFFFF",  
1445 - // fontColor: "#F9AB99",  
1446 - // headlinesOn: 0,  
1447 - // homeChannel: "0",  
1448 - // iconCUrl: "",  
1449 - // iconCUrlSize: "",  
1450 - // iconUrl: "",  
1451 - // iconUrlSize: "",  
1452 - // localChannel: "0",  
1453 - // moreChannel: "0",  
1454 - // movePermitted: 1,  
1455 - // myChannel: "0",  
1456 - // name: "黑龙江",  
1457 - // num: 41,  
1458 - // pageId: 20045,  
1459 - // pageType: "",  
1460 - // underlineCColor: ""  
1461 - // },  
1462 - // {  
1463 - // channelId: 2028,  
1464 - // channelStrategy: 1,  
1465 - // channelStyle: 2,  
1466 - // channelType: 2,  
1467 - // defaultPermitted: 0,  
1468 - // delPermitted: 1,  
1469 - // fontCColor: "#FFFFFF",  
1470 - // fontColor: "#F9AB99",  
1471 - // headlinesOn: 0,  
1472 - // homeChannel: "0",  
1473 - // iconCUrl: "",  
1474 - // iconCUrlSize: "",  
1475 - // iconUrl: "",  
1476 - // iconUrlSize: "",  
1477 - // localChannel: "0",  
1478 - // moreChannel: "0",  
1479 - // movePermitted: 1,  
1480 - // myChannel: "0",  
1481 - // name: "上海",  
1482 - // num: 42,  
1483 - // pageId: 20038,  
1484 - // pageType: "",  
1485 - // underlineCColor: ""  
1486 - // },  
1487 - // {  
1488 - // channelId: 2036,  
1489 - // channelStrategy: 1,  
1490 - // channelStyle: 2,  
1491 - // channelType: 2,  
1492 - // defaultPermitted: 0,  
1493 - // delPermitted: 1,  
1494 - // fontCColor: "#FFFFFF",  
1495 - // fontColor: "#F9AB99",  
1496 - // headlinesOn: 0,  
1497 - // homeChannel: "0",  
1498 - // iconCUrl: "",  
1499 - // iconCUrlSize: "",  
1500 - // iconUrl: "",  
1501 - // iconUrlSize: "",  
1502 - // localChannel: "0",  
1503 - // moreChannel: "0",  
1504 - // movePermitted: 1,  
1505 - // myChannel: "0",  
1506 - // name: "江苏",  
1507 - // num: 43,  
1508 - // pageId: 20046,  
1509 - // pageType: "",  
1510 - // underlineCColor: ""  
1511 - // },  
1512 - // {  
1513 - // channelId: 2037,  
1514 - // channelStrategy: 1,  
1515 - // channelStyle: 2,  
1516 - // channelType: 2,  
1517 - // defaultPermitted: 0,  
1518 - // delPermitted: 1,  
1519 - // fontCColor: "#FFFFFF",  
1520 - // fontColor: "#F9AB99",  
1521 - // headlinesOn: 0,  
1522 - // homeChannel: "0",  
1523 - // iconCUrl: "",  
1524 - // iconCUrlSize: "",  
1525 - // iconUrl: "",  
1526 - // iconUrlSize: "",  
1527 - // localChannel: "0",  
1528 - // moreChannel: "0",  
1529 - // movePermitted: 1,  
1530 - // myChannel: "0",  
1531 - // name: "浙江",  
1532 - // num: 44,  
1533 - // pageId: 20047,  
1534 - // pageType: "",  
1535 - // underlineCColor: ""  
1536 - // },  
1537 - // {  
1538 - // channelId: 2038,  
1539 - // channelStrategy: 1,  
1540 - // channelStyle: 2,  
1541 - // channelType: 2,  
1542 - // defaultPermitted: 0,  
1543 - // delPermitted: 1,  
1544 - // fontCColor: "#FFFFFF",  
1545 - // fontColor: "#F9AB99",  
1546 - // headlinesOn: 0,  
1547 - // homeChannel: "0",  
1548 - // iconCUrl: "",  
1549 - // iconCUrlSize: "",  
1550 - // iconUrl: "",  
1551 - // iconUrlSize: "",  
1552 - // localChannel: "0",  
1553 - // moreChannel: "0",  
1554 - // movePermitted: 1,  
1555 - // myChannel: "0",  
1556 - // name: "安徽",  
1557 - // num: 45,  
1558 - // pageId: 20048,  
1559 - // pageType: "",  
1560 - // underlineCColor: ""  
1561 - // },  
1562 - // {  
1563 - // channelId: 2039,  
1564 - // channelStrategy: 1,  
1565 - // channelStyle: 2,  
1566 - // channelType: 2,  
1567 - // defaultPermitted: 0,  
1568 - // delPermitted: 1,  
1569 - // fontCColor: "#FFFFFF",  
1570 - // fontColor: "#F9AB99",  
1571 - // headlinesOn: 0,  
1572 - // homeChannel: "0",  
1573 - // iconCUrl: "",  
1574 - // iconCUrlSize: "",  
1575 - // iconUrl: "",  
1576 - // iconUrlSize: "",  
1577 - // localChannel: "0",  
1578 - // moreChannel: "0",  
1579 - // movePermitted: 1,  
1580 - // myChannel: "0",  
1581 - // name: "福建",  
1582 - // num: 46,  
1583 - // pageId: 20049,  
1584 - // pageType: "",  
1585 - // underlineCColor: ""  
1586 - // },  
1587 - // {  
1588 - // channelId: 2040,  
1589 - // channelStrategy: 1,  
1590 - // channelStyle: 2,  
1591 - // channelType: 2,  
1592 - // defaultPermitted: 0,  
1593 - // delPermitted: 1,  
1594 - // fontCColor: "#FFFFFF",  
1595 - // fontColor: "#F9AB99",  
1596 - // headlinesOn: 0,  
1597 - // homeChannel: "0",  
1598 - // iconCUrl: "",  
1599 - // iconCUrlSize: "",  
1600 - // iconUrl: "",  
1601 - // iconUrlSize: "",  
1602 - // localChannel: "0",  
1603 - // moreChannel: "0",  
1604 - // movePermitted: 1,  
1605 - // myChannel: "0",  
1606 - // name: "江西",  
1607 - // num: 47,  
1608 - // pageId: 20050,  
1609 - // pageType: "",  
1610 - // underlineCColor: ""  
1611 - // },  
1612 - // {  
1613 - // channelId: 2045,  
1614 - // channelStrategy: 2,  
1615 - // channelStyle: 2,  
1616 - // channelType: 2,  
1617 - // defaultPermitted: 0,  
1618 - // delPermitted: 1,  
1619 - // fontCColor: "#FFFFFF",  
1620 - // fontColor: "#F9AB99",  
1621 - // headlinesOn: 0,  
1622 - // homeChannel: "0",  
1623 - // iconCUrl: "",  
1624 - // iconCUrlSize: "",  
1625 - // iconUrl: "",  
1626 - // iconUrlSize: "",  
1627 - // localChannel: "0",  
1628 - // moreChannel: "0",  
1629 - // movePermitted: 1,  
1630 - // myChannel: "0",  
1631 - // name: "广东",  
1632 - // num: 48,  
1633 - // pageId: 20055,  
1634 - // pageType: "",  
1635 - // underlineCColor: ""  
1636 - // },  
1637 - // {  
1638 - // channelId: 2046,  
1639 - // channelStrategy: 1,  
1640 - // channelStyle: 2,  
1641 - // channelType: 2,  
1642 - // defaultPermitted: 0,  
1643 - // delPermitted: 1,  
1644 - // fontCColor: "#FFFFFF",  
1645 - // fontColor: "#F9AB99",  
1646 - // headlinesOn: 0,  
1647 - // homeChannel: "0",  
1648 - // iconCUrl: "",  
1649 - // iconCUrlSize: "",  
1650 - // iconUrl: "",  
1651 - // iconUrlSize: "",  
1652 - // localChannel: "0",  
1653 - // moreChannel: "0",  
1654 - // movePermitted: 1,  
1655 - // myChannel: "0",  
1656 - // name: "广西",  
1657 - // num: 49,  
1658 - // pageId: 20056,  
1659 - // pageType: "",  
1660 - // underlineCColor: ""  
1661 - // },  
1662 - // {  
1663 - // channelId: 2048,  
1664 - // channelStrategy: 1,  
1665 - // channelStyle: 2,  
1666 - // channelType: 2,  
1667 - // defaultPermitted: 0,  
1668 - // delPermitted: 1,  
1669 - // fontCColor: "#FFFFFF",  
1670 - // fontColor: "#F9AB99",  
1671 - // headlinesOn: 0,  
1672 - // homeChannel: "0",  
1673 - // iconCUrl: "",  
1674 - // iconCUrlSize: "",  
1675 - // iconUrl: "",  
1676 - // iconUrlSize: "",  
1677 - // localChannel: "0",  
1678 - // moreChannel: "0",  
1679 - // movePermitted: 1,  
1680 - // myChannel: "0",  
1681 - // name: "重庆",  
1682 - // num: 50,  
1683 - // pageId: 20058,  
1684 - // pageType: "",  
1685 - // underlineCColor: ""  
1686 - // },  
1687 - // {  
1688 - // channelId: 2049,  
1689 - // channelStrategy: 1,  
1690 - // channelStyle: 2,  
1691 - // channelType: 2,  
1692 - // defaultPermitted: 0,  
1693 - // delPermitted: 1,  
1694 - // fontCColor: "#FFFFFF",  
1695 - // fontColor: "#F9AB99",  
1696 - // headlinesOn: 0,  
1697 - // homeChannel: "0",  
1698 - // iconCUrl: "",  
1699 - // iconCUrlSize: "",  
1700 - // iconUrl: "",  
1701 - // iconUrlSize: "",  
1702 - // localChannel: "0",  
1703 - // moreChannel: "0",  
1704 - // movePermitted: 1,  
1705 - // myChannel: "0",  
1706 - // name: "四川",  
1707 - // num: 51,  
1708 - // pageId: 20059,  
1709 - // pageType: "",  
1710 - // underlineCColor: ""  
1711 - // },  
1712 - // {  
1713 - // channelId: 2051,  
1714 - // channelStrategy: 1,  
1715 - // channelStyle: 2,  
1716 - // channelType: 2,  
1717 - // defaultPermitted: 0,  
1718 - // delPermitted: 1,  
1719 - // fontCColor: "#FFFFFF",  
1720 - // fontColor: "#F9AB99",  
1721 - // headlinesOn: 0,  
1722 - // homeChannel: "0",  
1723 - // iconCUrl: "",  
1724 - // iconCUrlSize: "",  
1725 - // iconUrl: "",  
1726 - // iconUrlSize: "",  
1727 - // localChannel: "0",  
1728 - // moreChannel: "0",  
1729 - // movePermitted: 1,  
1730 - // myChannel: "0",  
1731 - // name: "云南",  
1732 - // num: 52,  
1733 - // pageId: 20061,  
1734 - // pageType: "",  
1735 - // underlineCColor: ""  
1736 - // },  
1737 - // {  
1738 - // channelId: 2050,  
1739 - // channelStrategy: 1,  
1740 - // channelStyle: 2,  
1741 - // channelType: 2,  
1742 - // defaultPermitted: 0,  
1743 - // delPermitted: 1,  
1744 - // fontCColor: "#FFFFFF",  
1745 - // fontColor: "#F9AB99",  
1746 - // headlinesOn: 0,  
1747 - // homeChannel: "0",  
1748 - // iconCUrl: "",  
1749 - // iconCUrlSize: "",  
1750 - // iconUrl: "",  
1751 - // iconUrlSize: "",  
1752 - // localChannel: "0",  
1753 - // moreChannel: "0",  
1754 - // movePermitted: 1,  
1755 - // myChannel: "0",  
1756 - // name: "贵州",  
1757 - // num: 53,  
1758 - // pageId: 20060,  
1759 - // pageType: "",  
1760 - // underlineCColor: ""  
1761 - // },  
1762 - // {  
1763 - // channelId: 2044,  
1764 - // channelStrategy: 1,  
1765 - // channelStyle: 2,  
1766 - // channelType: 2,  
1767 - // defaultPermitted: 0,  
1768 - // delPermitted: 1,  
1769 - // fontCColor: "#FFFFFF",  
1770 - // fontColor: "#F9AB99",  
1771 - // headlinesOn: 0,  
1772 - // homeChannel: "0",  
1773 - // iconCUrl: "",  
1774 - // iconCUrlSize: "",  
1775 - // iconUrl: "",  
1776 - // iconUrlSize: "",  
1777 - // localChannel: "0",  
1778 - // moreChannel: "0",  
1779 - // movePermitted: 1,  
1780 - // myChannel: "0",  
1781 - // name: "湖南",  
1782 - // num: 54,  
1783 - // pageId: 20054,  
1784 - // pageType: "",  
1785 - // underlineCColor: ""  
1786 - // },  
1787 - // {  
1788 - // channelId: 2043,  
1789 - // channelStrategy: 1,  
1790 - // channelStyle: 2,  
1791 - // channelType: 2,  
1792 - // defaultPermitted: 0,  
1793 - // delPermitted: 1,  
1794 - // fontCColor: "#FFFFFF",  
1795 - // fontColor: "#F9AB99",  
1796 - // headlinesOn: 0,  
1797 - // homeChannel: "0",  
1798 - // iconCUrl: "",  
1799 - // iconCUrlSize: "",  
1800 - // iconUrl: "",  
1801 - // iconUrlSize: "",  
1802 - // localChannel: "0",  
1803 - // moreChannel: "0",  
1804 - // movePermitted: 1,  
1805 - // myChannel: "0",  
1806 - // name: "湖北",  
1807 - // num: 55,  
1808 - // pageId: 20053,  
1809 - // pageType: "",  
1810 - // underlineCColor: ""  
1811 - // },  
1812 - // {  
1813 - // channelId: 2052,  
1814 - // channelStrategy: 2,  
1815 - // channelStyle: 2,  
1816 - // channelType: 2,  
1817 - // defaultPermitted: 0,  
1818 - // delPermitted: 1,  
1819 - // fontCColor: "#FFFFFF",  
1820 - // fontColor: "#F9AB99",  
1821 - // headlinesOn: 0,  
1822 - // homeChannel: "0",  
1823 - // iconCUrl: "",  
1824 - // iconCUrlSize: "",  
1825 - // iconUrl: "",  
1826 - // iconUrlSize: "",  
1827 - // localChannel: "0",  
1828 - // moreChannel: "0",  
1829 - // movePermitted: 1,  
1830 - // myChannel: "0",  
1831 - // name: "西藏",  
1832 - // num: 56,  
1833 - // pageId: 20062,  
1834 - // pageType: "",  
1835 - // underlineCColor: ""  
1836 - // },  
1837 - // {  
1838 - // channelId: 2057,  
1839 - // channelStrategy: 2,  
1840 - // channelStyle: 2,  
1841 - // channelType: 2,  
1842 - // defaultPermitted: 0,  
1843 - // delPermitted: 1,  
1844 - // fontCColor: "#FFFFFF",  
1845 - // fontColor: "#F9AB99",  
1846 - // headlinesOn: 0,  
1847 - // homeChannel: "0",  
1848 - // iconCUrl: "",  
1849 - // iconCUrlSize: "",  
1850 - // iconUrl: "",  
1851 - // iconUrlSize: "",  
1852 - // localChannel: "0",  
1853 - // moreChannel: "0",  
1854 - // movePermitted: 1,  
1855 - // myChannel: "0",  
1856 - // name: "新疆",  
1857 - // num: 57,  
1858 - // pageId: 20067,  
1859 - // pageType: "",  
1860 - // underlineCColor: ""  
1861 - // },  
1862 - // {  
1863 - // channelId: 2053,  
1864 - // channelStrategy: 1,  
1865 - // channelStyle: 2,  
1866 - // channelType: 2,  
1867 - // defaultPermitted: 0,  
1868 - // delPermitted: 1,  
1869 - // fontCColor: "#FFFFFF",  
1870 - // fontColor: "#F9AB99",  
1871 - // headlinesOn: 0,  
1872 - // homeChannel: "0",  
1873 - // iconCUrl: "",  
1874 - // iconCUrlSize: "",  
1875 - // iconUrl: "",  
1876 - // iconUrlSize: "",  
1877 - // localChannel: "0",  
1878 - // moreChannel: "0",  
1879 - // movePermitted: 1,  
1880 - // myChannel: "0",  
1881 - // name: "陕西",  
1882 - // num: 58,  
1883 - // pageId: 20063,  
1884 - // pageType: "",  
1885 - // underlineCColor: ""  
1886 - // },  
1887 - // {  
1888 - // channelId: 2054,  
1889 - // channelStrategy: 1,  
1890 - // channelStyle: 2,  
1891 - // channelType: 2,  
1892 - // defaultPermitted: 0,  
1893 - // delPermitted: 1,  
1894 - // fontCColor: "#FFFFFF",  
1895 - // fontColor: "#F9AB99",  
1896 - // headlinesOn: 0,  
1897 - // homeChannel: "0",  
1898 - // iconCUrl: "",  
1899 - // iconCUrlSize: "",  
1900 - // iconUrl: "",  
1901 - // iconUrlSize: "",  
1902 - // localChannel: "0",  
1903 - // moreChannel: "0",  
1904 - // movePermitted: 1,  
1905 - // myChannel: "0",  
1906 - // name: "甘肃",  
1907 - // num: 59,  
1908 - // pageId: 20064,  
1909 - // pageType: "",  
1910 - // underlineCColor: ""  
1911 - // },  
1912 - // {  
1913 - // channelId: 2055,  
1914 - // channelStrategy: 1,  
1915 - // channelStyle: 2,  
1916 - // channelType: 2,  
1917 - // defaultPermitted: 0,  
1918 - // delPermitted: 1,  
1919 - // fontCColor: "#FFFFFF",  
1920 - // fontColor: "#F9AB99",  
1921 - // headlinesOn: 0,  
1922 - // homeChannel: "0",  
1923 - // iconCUrl: "",  
1924 - // iconCUrlSize: "",  
1925 - // iconUrl: "",  
1926 - // iconUrlSize: "",  
1927 - // localChannel: "0",  
1928 - // moreChannel: "0",  
1929 - // movePermitted: 1,  
1930 - // myChannel: "0",  
1931 - // name: "青海",  
1932 - // num: 60,  
1933 - // pageId: 20065,  
1934 - // pageType: "",  
1935 - // underlineCColor: ""  
1936 - // },  
1937 - // {  
1938 - // channelId: 2056,  
1939 - // channelStrategy: 2,  
1940 - // channelStyle: 2,  
1941 - // channelType: 2,  
1942 - // defaultPermitted: 0,  
1943 - // delPermitted: 1,  
1944 - // fontCColor: "#FFFFFF",  
1945 - // fontColor: "#F9AB99",  
1946 - // headlinesOn: 0,  
1947 - // homeChannel: "0",  
1948 - // iconCUrl: "",  
1949 - // iconCUrlSize: "",  
1950 - // iconUrl: "",  
1951 - // iconUrlSize: "",  
1952 - // localChannel: "0",  
1953 - // moreChannel: "0",  
1954 - // movePermitted: 1,  
1955 - // myChannel: "0",  
1956 - // name: "宁夏",  
1957 - // num: 61,  
1958 - // pageId: 20066,  
1959 - // pageType: "",  
1960 - // underlineCColor: ""  
1961 - // },  
1962 - // {  
1963 - // channelId: 2047,  
1964 - // channelStrategy: 1,  
1965 - // channelStyle: 2,  
1966 - // channelType: 2,  
1967 - // defaultPermitted: 0,  
1968 - // delPermitted: 1,  
1969 - // fontCColor: "#FFFFFF",  
1970 - // fontColor: "#F9AB99",  
1971 - // headlinesOn: 0,  
1972 - // homeChannel: "0",  
1973 - // iconCUrl: "",  
1974 - // iconCUrlSize: "",  
1975 - // iconUrl: "",  
1976 - // iconUrlSize: "",  
1977 - // localChannel: "0",  
1978 - // moreChannel: "0",  
1979 - // movePermitted: 1,  
1980 - // myChannel: "0",  
1981 - // name: "海南",  
1982 - // num: 62,  
1983 - // pageId: 20057,  
1984 - // pageType: "",  
1985 - // underlineCColor: ""  
1986 - // }  
1987 - // ]  
1988 - // @State myChannelList: TopNavDTO [] = []  
1989 - // @State moreChannelList: TopNavDTO [] = []  
1990 - // @State localChannelList: TopNavDTO [] = []  
1991 dialogController: CustomDialogController | null = new CustomDialogController({ 486 dialogController: CustomDialogController | null = new CustomDialogController({
1992 builder: ChannelDialog({ 487 builder: ChannelDialog({
1993 currentTopNavSelectedIndex: $currentTopNavSelectedIndex, 488 currentTopNavSelectedIndex: $currentTopNavSelectedIndex,
@@ -2005,60 +500,6 @@ struct ChannelSubscriptionLayout { @@ -2005,60 +500,6 @@ struct ChannelSubscriptionLayout {
2005 customStyle: true, 500 customStyle: true,
2006 }) 501 })
2007 502
2008 - // topNavListHandle() {  
2009 - // let defaultMyChannelList: TopNavDTO[] = []  
2010 - // let handledTopNavList = [...this.topNavList]  
2011 - // handledTopNavList.sort((a, b) => {  
2012 - // return a.num - b.num;  
2013 - // });  
2014 - // handledTopNavList.forEach(item => {  
2015 - // if (item.defaultPermitted === 1 || item.movePermitted === 0 || item.delPermitted === 0 || item.headlinesOn === 1) {  
2016 - // defaultMyChannelList.push(item);  
2017 - // }  
2018 - // })  
2019 - // defaultMyChannelList.forEach(item => {  
2020 - // item.myChannel = '1'  
2021 - // if (item.defaultPermitted === 1) {  
2022 - // item.homeChannel = '1'  
2023 - // }  
2024 - // let index = handledTopNavList.findIndex(_item => _item.channelId === item.channelId)  
2025 - // if (index !== -1) {  
2026 - // handledTopNavList.splice(index, 1)  
2027 - // }  
2028 - // })  
2029 - //  
2030 - // handledTopNavList.unshift(...defaultMyChannelList)  
2031 - // handledTopNavList.forEach((item, index) => {  
2032 - // if (item.channelType === 2) {  
2033 - // item.localChannel = '1'  
2034 - // }  
2035 - // if (index >= 11) {  
2036 - // if (item.channelType === 1) {  
2037 - // item.moreChannel = '1'  
2038 - // }  
2039 - // } else {  
2040 - // if (item.channelType === 1 && item.myChannel !== '1') {  
2041 - // item.moreChannel = '1'  
2042 - // }  
2043 - // }  
2044 - //  
2045 - // if (item.myChannel === '1') {  
2046 - // this.myChannelList.push(item)  
2047 - // }  
2048 - // if (item.moreChannel === '1') {  
2049 - // this.moreChannelList.push(item)  
2050 - // }  
2051 - // if (item.localChannel === '1') {  
2052 - // this.localChannelList.push(item)  
2053 - // }  
2054 - // })  
2055 - // }  
2056 -  
2057 -  
2058 - aboutToAppear() {  
2059 - // this.topNavListHandle()  
2060 - }  
2061 -  
2062 aboutToDisappear() { 503 aboutToDisappear() {
2063 this.dialogController = null // 将dialogController置空 504 this.dialogController = null // 将dialogController置空
2064 } 505 }
@@ -17,8 +17,11 @@ struct EditUserInfoPage { @@ -17,8 +17,11 @@ struct EditUserInfoPage {
17 17
18 dialogController: CustomDialogController = new CustomDialogController({ 18 dialogController: CustomDialogController = new CustomDialogController({
19 builder: AreaPickerDialog({dataSource:this.dataSource, 19 builder: AreaPickerDialog({dataSource:this.dataSource,
20 - confirmCallback:(area:string)=>{  
21 - this.currentUserInfo.userExtend.city = area; 20 + confirmCallback:(province:string,city:string,county:string,address:string)=>{
  21 + this.currentUserInfo.userExtend.province = province;
  22 + this.currentUserInfo.userExtend.city = city;
  23 + this.currentUserInfo.userExtend.county = county;
  24 + this.currentUserInfo.userExtend.address = address;
22 this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_region 25 this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_region
23 this.updateEditModel() 26 this.updateEditModel()
24 } 27 }
@@ -100,6 +103,8 @@ struct EditUserInfoPage { @@ -100,6 +103,8 @@ struct EditUserInfoPage {
100 .width('100%') 103 .width('100%')
101 .onClick(()=>{ 104 .onClick(()=>{
102 if (i === 1){ 105 if (i === 1){
  106 +
  107 +
103 let params: editModelParams = { 108 let params: editModelParams = {
104 editContent: this.currentUserInfo.userName 109 editContent: this.currentUserInfo.userName
105 } 110 }
@@ -129,7 +134,7 @@ struct EditUserInfoPage { @@ -129,7 +134,7 @@ struct EditUserInfoPage {
129 range:['女','男'], 134 range:['女','男'],
130 selected:0, 135 selected:0,
131 onAccept:(value:TextPickerResult) => { 136 onAccept:(value:TextPickerResult) => {
132 - this.currentUserInfo.userExtend.sex = value.index.toString(); 137 + this.currentUserInfo.userExtend.sex = value.index as number;
133 this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_sex 138 this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_sex
134 this.updateEditModel() 139 this.updateEditModel()
135 } 140 }
@@ -163,11 +168,12 @@ struct EditUserInfoPage { @@ -163,11 +168,12 @@ struct EditUserInfoPage {
163 updateEditModel(){ 168 updateEditModel(){
164 this.listData = [] 169 this.listData = []
165 this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo)) 170 this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo))
  171 + EditInfoViewModel.updateUserInfo(this.currentUserInfo)
166 } 172 }
167 getAccountOwnerInfo(){ 173 getAccountOwnerInfo(){
168 EditInfoViewModel.queryAccountOwnerInfo(1,getContext(this)).then((editModel) => { 174 EditInfoViewModel.queryAccountOwnerInfo(1,getContext(this)).then((editModel) => {
169 this.headerImg = editModel.userExtend.headPhotoUrl 175 this.headerImg = editModel.userExtend.headPhotoUrl
170 - this.currentUserInfo = editModel; 176 + this.currentUserInfo = editModel as editModel;
171 this.listData.push(...EditInfoViewModel.getEditListInfo(editModel)) 177 this.listData.push(...EditInfoViewModel.getEditListInfo(editModel))
172 }); 178 });
173 } 179 }
@@ -78,6 +78,7 @@ export struct PageComponent { @@ -78,6 +78,7 @@ export struct PageComponent {
78 } 78 }
79 } 79 }
80 } 80 }
  81 + .scrollBar(BarState.Off)
81 .cachedCount(5) 82 .cachedCount(5)
82 .height(CommonConstants.FULL_PARENT) 83 .height(CommonConstants.FULL_PARENT)
83 .onScrollIndex((start: number, end: number) => { 84 .onScrollIndex((start: number, end: number) => {
@@ -13,7 +13,7 @@ export struct AreaPickerDialog { @@ -13,7 +13,7 @@ export struct AreaPickerDialog {
13 title: string = '地区选择' 13 title: string = '地区选择'
14 @Provide dataSource: AreaListModel[] = [] 14 @Provide dataSource: AreaListModel[] = []
15 result: JSON[] = []; 15 result: JSON[] = [];
16 - confirmCallback: (area:string) => void = () => { 16 + confirmCallback: (province:string,city:string,county:string,address:string) => void = () => {
17 } 17 }
18 18
19 build() { 19 build() {
@@ -37,7 +37,7 @@ export struct AreaPickerDialog { @@ -37,7 +37,7 @@ export struct AreaPickerDialog {
37 Button('确定',{type:ButtonType.Normal}) 37 Button('确定',{type:ButtonType.Normal})
38 .onClick(()=> { 38 .onClick(()=> {
39 this.controller.close() 39 this.controller.close()
40 - this.confirmCallback(this.currentFirst.label+this.currentSecondBean.label+this.currentThirdBean.label); 40 + this.confirmCallback(this.currentFirst.label,this.currentSecondBean.label,this.currentThirdBean.label,this.currentFirst.label+this.currentSecondBean.label+this.currentThirdBean.label);
41 }) 41 })
42 .backgroundColor(0xffffff) 42 .backgroundColor(0xffffff)
43 .fontColor(Color.Blue) 43 .fontColor(Color.Blue)
@@ -3,13 +3,13 @@ @@ -3,13 +3,13 @@
3 * WDEditDataModelType 更新资料类型 3 * WDEditDataModelType 更新资料类型
4 */ 4 */
5 export const enum WDEditDataModelType { 5 export const enum WDEditDataModelType {
6 - WDEditDataModelType_default, //默认不修改 6 + WDEditDataModelType_default = 0, //默认不修改
7 WDEditDataModelType_head, //头像 7 WDEditDataModelType_head, //头像
8 WDEditDataModelType_nickname, //昵称 8 WDEditDataModelType_nickname, //昵称
9 WDEditDataModelType_intro, //简介 9 WDEditDataModelType_intro, //简介
10 WDEditDataModelType_sex, //性别 10 WDEditDataModelType_sex, //性别
11 WDEditDataModelType_birthday, //生日 11 WDEditDataModelType_birthday, //生日
12 - WDEditDataModelType_region, //地址 12 + WDEditDataModelType_region //地址
13 } 13 }
14 14
15 export class EditListInfo{ 15 export class EditListInfo{
@@ -29,18 +29,22 @@ export class EditInfoModel{ @@ -29,18 +29,22 @@ export class EditInfoModel{
29 headPhotoUrl:string = '' 29 headPhotoUrl:string = ''
30 //简介 30 //简介
31 introduction:string = '' 31 introduction:string = ''
32 - //城市 32 + //
33 city:string = '' 33 city:string = ''
34 - //地区 34 + //市
  35 + province:string = ''
  36 + //区
35 county:string = '' 37 county:string = ''
  38 + //地址
  39 + address:string = ''
36 //生日 40 //生日
37 birthday:string = '' 41 birthday:string = ''
38 //性别 42 //性别
39 - sex:string = '' 43 + sex:number = 0
40 44
41 airec:number = 0 45 airec:number = 0
42 46
43 - constructor(headPhotoUrl?:string , introduction?:string,city?:string , county?:string,birthday?:string , sex?:string,airec?:number) { 47 + constructor(headPhotoUrl?:string , introduction?:string,city?:string , county?:string,birthday?:string , sex?:number,airec?:number) {
44 } 48 }
45 } 49 }
46 50
@@ -55,9 +59,9 @@ export class editModel{ @@ -55,9 +59,9 @@ export class editModel{
55 59
56 userExtend:EditInfoModel = new EditInfoModel() 60 userExtend:EditInfoModel = new EditInfoModel()
57 61
58 - editDataType:WDEditDataModelType = 0 62 + editDataType:number = WDEditDataModelType.WDEditDataModelType_default
59 63
60 - constructor(userName?:string , userNameStatus?:string,phone?:string , headPhotoStatus?:string,userExtend?:EditInfoModel,editDataType?:WDEditDataModelType) { 64 + constructor(userName?:string , userNameStatus?:string,phone?:string , headPhotoStatus?:string,userExtend?:EditInfoModel,editDataType?:number) {
61 } 65 }
62 } 66 }
63 67
@@ -72,9 +76,24 @@ export interface editModelParams { @@ -72,9 +76,24 @@ export interface editModelParams {
72 city?:string; 76 city?:string;
73 county?:string; 77 county?:string;
74 province?:string; 78 province?:string;
  79 + address?:string;
75 80
76 //生日 81 //生日
77 birthday?:string; 82 birthday?:string;
78 //性别 83 //性别
79 sex?:string; 84 sex?:string;
  85 +}
  86 +
  87 +
  88 +export interface editItem{
  89 + code:number
  90 +
  91 + data:editModel
  92 +
  93 + message:string
  94 +
  95 + success:boolean
  96 +
  97 + timestamp:number
  98 +
80 } 99 }
1 1
2 -import { EditInfoModel, EditListInfo, editModel, editModelParams, WDEditDataModelType } from '../model/EditInfoModel'; 2 +import {
  3 + editItem,
  4 + EditListInfo, editModel, editModelParams, WDEditDataModelType } from '../model/EditInfoModel';
3 import HashMap from '@ohos.util.HashMap'; 5 import HashMap from '@ohos.util.HashMap';
4 import { HttpUrlUtils, ResponseDTO, WDHttp } from 'wdNetwork'; 6 import { HttpUrlUtils, ResponseDTO, WDHttp } from 'wdNetwork';
5 import { Logger, ResourcesUtils } from 'wdKit'; 7 import { Logger, ResourcesUtils } from 'wdKit';
6 import { AreaListManageModel, AreaListModel } from '../model/AreaListModel'; 8 import { AreaListManageModel, AreaListModel } from '../model/AreaListModel';
  9 +import promptAction from '@ohos.promptAction';
7 10
8 const TAG = "EditInfoViewModel" 11 const TAG = "EditInfoViewModel"
9 12
10 class EditInfoViewModel { 13 class EditInfoViewModel {
11 private static instance: EditInfoViewModel; 14 private static instance: EditInfoViewModel;
12 - editListData:EditListInfo[] = [] 15 + editListData:EditListInfo[] = []
  16 + params: editModelParams = {}
13 /** 17 /**
14 * 单例模式 18 * 单例模式
15 * @returns 19 * @returns
@@ -23,38 +27,38 @@ class EditInfoViewModel { @@ -23,38 +27,38 @@ class EditInfoViewModel {
23 27
24 BaseGetRequest(requestUrl:string){ 28 BaseGetRequest(requestUrl:string){
25 let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders() 29 let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders()
26 - requestUrl = HttpUrlUtils.HOST_SIT + requestUrl  
27 - return WDHttp.get<ResponseDTO>(requestUrl,headers) 30 + requestUrl = HttpUrlUtils.getHost() + requestUrl
  31 + return WDHttp.get<editItem>(requestUrl,headers)
28 } 32 }
29 33
30 - BasePOSTRequest(requestUrl:string){ 34 + BasePostRequest(requestUrl:string,params: object){
31 let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders() 35 let headers: HashMap<string, string> = HttpUrlUtils.getCommonHeaders()
32 - requestUrl = HttpUrlUtils.HOST_SIT + requestUrl  
33 - return WDHttp.post<ResponseDTO>(requestUrl,headers) 36 + requestUrl = HttpUrlUtils.getHost() + requestUrl
  37 + return WDHttp.post<ResponseDTO>(requestUrl,params,headers)
34 } 38 }
35 39
36 40
37 getEditListInfo(item?:editModel):EditListInfo[]{ 41 getEditListInfo(item?:editModel):EditListInfo[]{
38 this.editListData = [ 42 this.editListData = [
39 new EditListInfo('昵称',item&&item.userName.length > 0?item.userName:'待完善'), 43 new EditListInfo('昵称',item&&item.userName.length > 0?item.userName:'待完善'),
40 - new EditListInfo('简介',item&&item.userExtend.introduction.length > 0?item.userExtend.introduction:'待完善'),  
41 - new EditListInfo('地区',item&&item.userExtend.city.length > 0?item.userExtend.city:'待完善'),  
42 - new EditListInfo('生日',item&&item.userExtend.birthday.length > 0?item.userExtend.birthday:'待完善'),  
43 - new EditListInfo('性别',item&&item.userExtend.sex.length > 0?(item.userExtend.sex=== '1'?'男':'女'):'待完善'),] 44 + new EditListInfo('简介',item&&item.userExtend.introduction?item.userExtend.introduction:'待完善'),
  45 + new EditListInfo('地区',item&&item.userExtend.address?item.userExtend.address:'待完善'),
  46 + new EditListInfo('生日',item&&item.userExtend.birthday?item.userExtend.birthday:'待完善'),
  47 + new EditListInfo('性别',item?(item.userExtend.sex === 1?'男':'女'):'待完善'),]
44 return this.editListData 48 return this.editListData
45 } 49 }
46 50
47 ///1普通用户 51 ///1普通用户
48 queryAccountOwnerInfo(userType:number, context: Context):PromiseLike<editModel>{ 52 queryAccountOwnerInfo(userType:number, context: Context):PromiseLike<editModel>{
49 return new Promise(((success, error) => { 53 return new Promise(((success, error) => {
50 - this.BaseGetRequest(userType == 1?HttpUrlUtils.APPOINTMENT_QueryUserDetail_PATH:HttpUrlUtils.APPOINTMENT_AccountOwner_PATH).then((navResDTO:ResponseDTO) =>{  
51 - if (navResDTO.code == 200) {  
52 - // let editM = navResDTO.data as EditInfoModel  
53 - // success(JSON.parse(navResDTO.data) 54 + this.BaseGetRequest(userType == 1?HttpUrlUtils.APPOINTMENT_QueryUserDetail_PATH:HttpUrlUtils.APPOINTMENT_AccountOwner_PATH).then((editDTO:editItem) =>{
  55 + if (editDTO.code == 0) {
  56 + success(editDTO.data)
  57 + }else {
  58 + success(this.GetqueryAccountOwnerLocal(context))
54 } 59 }
55 - success(this.GetqueryAccountOwnerLocal(context))  
56 }).catch((error: Error) => { 60 }).catch((error: Error) => {
57 - Logger.info('EditInfoViewModel','EditInfoViewModel','EditInfoViewModel') 61 + Logger.info(TAG,'queryAccountOwnerInfo','EditInfoViewModel')
58 success(this.GetqueryAccountOwnerLocal(context)) 62 success(this.GetqueryAccountOwnerLocal(context))
59 }) 63 })
60 })) 64 }))
@@ -74,15 +78,14 @@ class EditInfoViewModel { @@ -74,15 +78,14 @@ class EditInfoViewModel {
74 getAreaList(context: Context):PromiseLike<AreaListModel[]>{ 78 getAreaList(context: Context):PromiseLike<AreaListModel[]>{
75 return new Promise((success, error) => { 79 return new Promise((success, error) => {
76 success(this.getAreaListLocal(context)) 80 success(this.getAreaListLocal(context))
77 - // this.BaseGetRequest(HttpUrlUtils.APPOINTMENT_AccountOwner_PATH).then((navResDTO:ResponseDTO) =>{ 81 + // HttpRequest.post(HttpUrlUtils.APPOINTMENT_AccountOwner_PATH).then((navResDTO:ResponseDTO) =>{
78 // if (navResDTO.code == 200) { 82 // if (navResDTO.code == 200) {
79 // // let editM = navResDTO.data as EditInfoModel 83 // // let editM = navResDTO.data as EditInfoModel
80 // // success(JSON.parse(navResDTO.data) 84 // // success(JSON.parse(navResDTO.data)
81 // } 85 // }
82 - //  
83 // }).catch((error: Error) => { 86 // }).catch((error: Error) => {
84 - // Logger.info('EditInfoViewModel','EditInfoViewModel','EditInfoViewModel')  
85 - // success(this.GetqueryAccountOwnerLocal(context)) 87 + // Logger.info(TAG,'getAreaList','EditInfoViewModel')
  88 + // success(this.getAreaListLocal(context))
86 // 89 //
87 // }) 90 // })
88 }) 91 })
@@ -103,34 +106,35 @@ class EditInfoViewModel { @@ -103,34 +106,35 @@ class EditInfoViewModel {
103 return new AreaListManageModel(item.code,item.id,item.label,item.children) 106 return new AreaListManageModel(item.code,item.id,item.label,item.children)
104 } 107 }
105 108
106 - // updateUserInfo(item?:editModel):Promise<ResponseDTO> {  
107 - // let params: editModelParams = {};  
108 - // if (item.editDataType === WDEditDataModelType.WDEditDataModelType_head) {  
109 - // // params =  
110 - // } else if (item.editDataType === WDEditDataModelType.WDEditDataModelType_nickname) {  
111 - // params = { userName: item.userName }  
112 - // } else if (item.editDataType === WDEditDataModelType.WDEditDataModelType_intro) {  
113 - // params = { introduction: item.userExtend.introduction }  
114 - // } else if (item.editDataType === WDEditDataModelType.WDEditDataModelType_sex) {  
115 - // params = { sex: item.userExtend.sex }  
116 - // } else if (item.editDataType === WDEditDataModelType.WDEditDataModelType_birthday) {  
117 - // params = { birthday: item.userExtend.birthday }  
118 - // } else if (item.editDataType === WDEditDataModelType.WDEditDataModelType_region) {  
119 - // params = { county: item.userExtend.county }  
120 - // } else {  
121 - // }  
122 - // return new Promise((success, error) => {  
123 - // this.BasePOSTRequest(HttpUrlUtils.APPOINTMENT_editUserDetail_PATH)  
124 - // .then((navResDTO: ResponseDTO) => {  
125 - // if (navResDTO.code == 200) {  
126 - // }  
127 - // })  
128 - // .catch((error: Error) => {  
129 - //  
130 - // })  
131 - // })  
132 - // } 109 + updateUserInfo(item:editModel):Promise<ResponseDTO> {
  110 + if (item.editDataType == WDEditDataModelType.WDEditDataModelType_head) {
  111 + } else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_nickname) {
  112 + this.params = { userName: item.userName }
  113 + }
  114 + else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_intro) {
  115 + this.params = { introduction: item.userExtend.introduction }
  116 +
  117 + } else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_sex) {
  118 + this.params = { sex: item.userExtend.sex.toString() }
  119 +
  120 + } else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_birthday) {
  121 + this.params = { birthday: item.userExtend.birthday }
133 122
  123 + } else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_region) {
  124 + this.params = {province:item.userExtend.province,city:item.userExtend.city, county: item.userExtend.county ,address:item.userExtend.address}
  125 + }
  126 + return new Promise((success, error) => {
  127 + this.BasePostRequest(HttpUrlUtils.APPOINTMENT_editUserDetail_PATH,this.params)
  128 + .then((navResDTO: ResponseDTO) => {
  129 + if (navResDTO.code == 0) {
  130 + promptAction.showToast({ message: '修改成功' })
  131 + }
  132 + })
  133 + .catch((error: Error) => {
  134 + Logger.info(TAG,'updateUserInfo','EditInfoViewModel')
  135 + })
  136 + })
  137 + }
134 } 138 }
135 139
136 const editInfoViewModel = EditInfoViewModel.getInstance(); 140 const editInfoViewModel = EditInfoViewModel.getInstance();