diff --git a/GIGA.xcodeproj/project.pbxproj b/GIGA.xcodeproj/project.pbxproj index 3a3bffb..74bba3e 100644 --- a/GIGA.xcodeproj/project.pbxproj +++ b/GIGA.xcodeproj/project.pbxproj @@ -106,6 +106,25 @@ 838762E3214B9F580039D241 /* GiGaUserSexViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 838762E1214B9F580039D241 /* GiGaUserSexViewCell.xib */; }; 838762E7214B9FA60039D241 /* GIGaUserCityViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 838762E5214B9FA60039D241 /* GIGaUserCityViewCell.m */; }; 838762E8214B9FA60039D241 /* GIGaUserCityViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 838762E6214B9FA60039D241 /* GIGaUserCityViewCell.xib */; }; + 8390116B214E20B2004CA790 /* LYSDateContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901145214E20B1004CA790 /* LYSDateContentView.m */; }; + 8390116C214E20B2004CA790 /* LYSDatePopViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901149214E20B1004CA790 /* LYSDatePopViewController.m */; }; + 8390116D214E20B2004CA790 /* LYSDateBaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901151214E20B1004CA790 /* LYSDateBaseViewController.m */; }; + 8390116E214E20B2004CA790 /* LYSDateLogicViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901152214E20B1004CA790 /* LYSDateLogicViewController.m */; }; + 8390116F214E20B2004CA790 /* LYSDatePickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901155214E20B1004CA790 /* LYSDatePickerViewController.m */; }; + 83901170214E20B2004CA790 /* LYSDateHeaderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901156214E20B1004CA790 /* LYSDateHeaderViewController.m */; }; + 83901171214E20B2004CA790 /* LYSDatePickerLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901157214E20B1004CA790 /* LYSDatePickerLabel.m */; }; + 83901172214E20B2004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901159214E20B1004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.m */; }; + 83901173214E20B2004CA790 /* LYSDateBasicViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390115A214E20B1004CA790 /* LYSDateBasicViewController.m */; }; + 83901174214E20B2004CA790 /* LYSDateIndicatorViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390115B214E20B1004CA790 /* LYSDateIndicatorViewController.m */; }; + 83901175214E20B2004CA790 /* LYSDatePickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390115D214E20B1004CA790 /* LYSDatePickerManager.m */; }; + 83901176214E20B2004CA790 /* LYSDatePickerTypeDayDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390115F214E20B1004CA790 /* LYSDatePickerTypeDayDelegate.m */; }; + 83901177214E20B2004CA790 /* LYSDatePickerTypeTimeDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901160214E20B1004CA790 /* LYSDatePickerTypeTimeDelegate.m */; }; + 83901178214E20B2004CA790 /* LYSDatePickerItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901161214E20B1004CA790 /* LYSDatePickerItem.m */; }; + 83901179214E20B2004CA790 /* LYSDatePickerTypeBase.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901162214E20B1004CA790 /* LYSDatePickerTypeBase.m */; }; + 8390117A214E20B2004CA790 /* LYSDatePickerController.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901164214E20B1004CA790 /* LYSDatePickerController.m */; }; + 8390117B214E20B2004CA790 /* LYSDatePickerHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 83901165214E20B1004CA790 /* LYSDatePickerHeaderView.m */; }; + 8390117C214E20B2004CA790 /* citys.json in Resources */ = {isa = PBXBuildFile; fileRef = 83901169214E20B2004CA790 /* citys.json */; }; + 8390117D214E20B2004CA790 /* JYAddressPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8390116A214E20B2004CA790 /* JYAddressPicker.m */; }; 83928FFA2134D8F60077D2E8 /* GiGaFlyingCommitInputView.m in Sources */ = {isa = PBXBuildFile; fileRef = 83928FF92134D8F60077D2E8 /* GiGaFlyingCommitInputView.m */; }; 83928FFE2134F37D0077D2E8 /* GiGaSocketRocketUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 83928FFD2134F37D0077D2E8 /* GiGaSocketRocketUtility.m */; }; 839290052134F4240077D2E8 /* LXDanMuTrackView.m in Sources */ = {isa = PBXBuildFile; fileRef = 839290002134F4230077D2E8 /* LXDanMuTrackView.m */; }; @@ -327,6 +346,45 @@ 838762E4214B9FA60039D241 /* GIGaUserCityViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GIGaUserCityViewCell.h; sourceTree = ""; }; 838762E5214B9FA60039D241 /* GIGaUserCityViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GIGaUserCityViewCell.m; sourceTree = ""; }; 838762E6214B9FA60039D241 /* GIGaUserCityViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GIGaUserCityViewCell.xib; sourceTree = ""; }; + 83901142214E04D1004CA790 /* ApiRequestConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ApiRequestConfig.h; sourceTree = ""; }; + 83901144214E20B1004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerTypeDayAndTimeDelegate.h; sourceTree = ""; }; + 83901145214E20B1004CA790 /* LYSDateContentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDateContentView.m; sourceTree = ""; }; + 83901146214E20B1004CA790 /* LYSDateHeaderViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDateHeaderViewController.h; sourceTree = ""; }; + 83901147214E20B1004CA790 /* LYSDatePickerLabel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerLabel.h; sourceTree = ""; }; + 83901148214E20B1004CA790 /* LYSDatePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerManager.h; sourceTree = ""; }; + 83901149214E20B1004CA790 /* LYSDatePopViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePopViewController.m; sourceTree = ""; }; + 8390114A214E20B1004CA790 /* LYSDateIndicatorViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDateIndicatorViewController.h; sourceTree = ""; }; + 8390114B214E20B1004CA790 /* LYSDateBasicViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDateBasicViewController.h; sourceTree = ""; }; + 8390114C214E20B1004CA790 /* LYSDatePickerTypeBase.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerTypeBase.h; sourceTree = ""; }; + 8390114D214E20B1004CA790 /* LYSDatePickerSelectDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerSelectDelegate.h; sourceTree = ""; }; + 8390114E214E20B1004CA790 /* LYSDatePickerItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerItem.h; sourceTree = ""; }; + 8390114F214E20B1004CA790 /* LYSDatePickerTypeDayDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerTypeDayDelegate.h; sourceTree = ""; }; + 83901150214E20B1004CA790 /* LYSDatePickerTypeTimeDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerTypeTimeDelegate.h; sourceTree = ""; }; + 83901151214E20B1004CA790 /* LYSDateBaseViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDateBaseViewController.m; sourceTree = ""; }; + 83901152214E20B1004CA790 /* LYSDateLogicViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDateLogicViewController.m; sourceTree = ""; }; + 83901153214E20B1004CA790 /* LYSDatePickerHeaderView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerHeaderView.h; sourceTree = ""; }; + 83901154214E20B1004CA790 /* LYSDatePickerController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerController.h; sourceTree = ""; }; + 83901155214E20B1004CA790 /* LYSDatePickerViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerViewController.m; sourceTree = ""; }; + 83901156214E20B1004CA790 /* LYSDateHeaderViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDateHeaderViewController.m; sourceTree = ""; }; + 83901157214E20B1004CA790 /* LYSDatePickerLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerLabel.m; sourceTree = ""; }; + 83901158214E20B1004CA790 /* LYSDateContentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDateContentView.h; sourceTree = ""; }; + 83901159214E20B1004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerTypeDayAndTimeDelegate.m; sourceTree = ""; }; + 8390115A214E20B1004CA790 /* LYSDateBasicViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDateBasicViewController.m; sourceTree = ""; }; + 8390115B214E20B1004CA790 /* LYSDateIndicatorViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDateIndicatorViewController.m; sourceTree = ""; }; + 8390115C214E20B1004CA790 /* LYSDatePopViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePopViewController.h; sourceTree = ""; }; + 8390115D214E20B1004CA790 /* LYSDatePickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerManager.m; sourceTree = ""; }; + 8390115E214E20B1004CA790 /* LYSDateBaseViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDateBaseViewController.h; sourceTree = ""; }; + 8390115F214E20B1004CA790 /* LYSDatePickerTypeDayDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerTypeDayDelegate.m; sourceTree = ""; }; + 83901160214E20B1004CA790 /* LYSDatePickerTypeTimeDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerTypeTimeDelegate.m; sourceTree = ""; }; + 83901161214E20B1004CA790 /* LYSDatePickerItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerItem.m; sourceTree = ""; }; + 83901162214E20B1004CA790 /* LYSDatePickerTypeBase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerTypeBase.m; sourceTree = ""; }; + 83901163214E20B1004CA790 /* LYSDatePickerViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDatePickerViewController.h; sourceTree = ""; }; + 83901164214E20B1004CA790 /* LYSDatePickerController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerController.m; sourceTree = ""; }; + 83901165214E20B1004CA790 /* LYSDatePickerHeaderView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LYSDatePickerHeaderView.m; sourceTree = ""; }; + 83901166214E20B1004CA790 /* LYSDateLogicViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LYSDateLogicViewController.h; sourceTree = ""; }; + 83901168214E20B2004CA790 /* JYAddressPicker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JYAddressPicker.h; sourceTree = ""; }; + 83901169214E20B2004CA790 /* citys.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = citys.json; sourceTree = ""; }; + 8390116A214E20B2004CA790 /* JYAddressPicker.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JYAddressPicker.m; sourceTree = ""; }; 83928FF82134D8F60077D2E8 /* GiGaFlyingCommitInputView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GiGaFlyingCommitInputView.h; sourceTree = ""; }; 83928FF92134D8F60077D2E8 /* GiGaFlyingCommitInputView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GiGaFlyingCommitInputView.m; sourceTree = ""; }; 83928FFC2134F37D0077D2E8 /* GiGaSocketRocketUtility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GiGaSocketRocketUtility.h; sourceTree = ""; }; @@ -474,6 +532,8 @@ 8340BFAC213E7374008F22E4 /* Views */ = { isa = PBXGroup; children = ( + 83901167214E20B2004CA790 /* JYAddressPicker */, + 83901143214E20B1004CA790 /* LYSDatePickerController */, 8338F6B62142504E00B4780B /* CustomSwitch */, 8340BFAD213E739D008F22E4 /* GiGaNoNetWorkView.h */, 8340BFAE213E739D008F22E4 /* GiGaNoNetWorkView.m */, @@ -678,6 +738,7 @@ 8361B42C2121812000238FEB /* GiGaServerConfig.h */, 8361B42D2121812000238FEB /* GiGaServerConfig.m */, 8314D2122133F44600B458BF /* MobClickList.h */, + 83901142214E04D1004CA790 /* ApiRequestConfig.h */, ); path = Config; sourceTree = ""; @@ -1001,6 +1062,58 @@ path = userInfoView; sourceTree = ""; }; + 83901143214E20B1004CA790 /* LYSDatePickerController */ = { + isa = PBXGroup; + children = ( + 83901144214E20B1004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.h */, + 83901145214E20B1004CA790 /* LYSDateContentView.m */, + 83901146214E20B1004CA790 /* LYSDateHeaderViewController.h */, + 83901147214E20B1004CA790 /* LYSDatePickerLabel.h */, + 83901148214E20B1004CA790 /* LYSDatePickerManager.h */, + 83901149214E20B1004CA790 /* LYSDatePopViewController.m */, + 8390114A214E20B1004CA790 /* LYSDateIndicatorViewController.h */, + 8390114B214E20B1004CA790 /* LYSDateBasicViewController.h */, + 8390114C214E20B1004CA790 /* LYSDatePickerTypeBase.h */, + 8390114D214E20B1004CA790 /* LYSDatePickerSelectDelegate.h */, + 8390114E214E20B1004CA790 /* LYSDatePickerItem.h */, + 8390114F214E20B1004CA790 /* LYSDatePickerTypeDayDelegate.h */, + 83901150214E20B1004CA790 /* LYSDatePickerTypeTimeDelegate.h */, + 83901151214E20B1004CA790 /* LYSDateBaseViewController.m */, + 83901152214E20B1004CA790 /* LYSDateLogicViewController.m */, + 83901153214E20B1004CA790 /* LYSDatePickerHeaderView.h */, + 83901154214E20B1004CA790 /* LYSDatePickerController.h */, + 83901155214E20B1004CA790 /* LYSDatePickerViewController.m */, + 83901156214E20B1004CA790 /* LYSDateHeaderViewController.m */, + 83901157214E20B1004CA790 /* LYSDatePickerLabel.m */, + 83901158214E20B1004CA790 /* LYSDateContentView.h */, + 83901159214E20B1004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.m */, + 8390115A214E20B1004CA790 /* LYSDateBasicViewController.m */, + 8390115B214E20B1004CA790 /* LYSDateIndicatorViewController.m */, + 8390115C214E20B1004CA790 /* LYSDatePopViewController.h */, + 8390115D214E20B1004CA790 /* LYSDatePickerManager.m */, + 8390115E214E20B1004CA790 /* LYSDateBaseViewController.h */, + 8390115F214E20B1004CA790 /* LYSDatePickerTypeDayDelegate.m */, + 83901160214E20B1004CA790 /* LYSDatePickerTypeTimeDelegate.m */, + 83901161214E20B1004CA790 /* LYSDatePickerItem.m */, + 83901162214E20B1004CA790 /* LYSDatePickerTypeBase.m */, + 83901163214E20B1004CA790 /* LYSDatePickerViewController.h */, + 83901164214E20B1004CA790 /* LYSDatePickerController.m */, + 83901165214E20B1004CA790 /* LYSDatePickerHeaderView.m */, + 83901166214E20B1004CA790 /* LYSDateLogicViewController.h */, + ); + path = LYSDatePickerController; + sourceTree = ""; + }; + 83901167214E20B2004CA790 /* JYAddressPicker */ = { + isa = PBXGroup; + children = ( + 83901168214E20B2004CA790 /* JYAddressPicker.h */, + 83901169214E20B2004CA790 /* citys.json */, + 8390116A214E20B2004CA790 /* JYAddressPicker.m */, + ); + path = JYAddressPicker; + sourceTree = ""; + }; 83928FFB2134F37D0077D2E8 /* SocketRocketUtility */ = { isa = PBXGroup; children = ( @@ -1230,6 +1343,7 @@ 838388C4212F934400D14C53 /* pomodoSound.m4a in Resources */, 83BFAE78213CDE91004EF801 /* GiGaSettingsViewCell.xib in Resources */, 83346AC1212BB50A0054D597 /* PassWordResetVC.xib in Resources */, + 8390117C214E20B2004CA790 /* citys.json in Resources */, 83BDC0592147B89900E74E0D /* GiGaAnswerViewCell.xib in Resources */, 83346AD1212BF5B70054D597 /* useragreement.html in Resources */, 838762D9214B9EF80039D241 /* GIGaUserIDViewCell.xib in Resources */, @@ -1357,33 +1471,46 @@ 8361B3CE212155C200238FEB /* ViewController.m in Sources */, 8361B4382121847600238FEB /* UINavigationBar+Custom.m in Sources */, 83BFAE6C213CD0E3004EF801 /* GiGaMineInfoViewCell.m in Sources */, + 8390116B214E20B2004CA790 /* LYSDateContentView.m in Sources */, 83BC8A872148BE8A00820437 /* NYPopover.m in Sources */, + 83901176214E20B2004CA790 /* LYSDatePickerTypeDayDelegate.m in Sources */, 8384643E214A484400F12B33 /* MaskTestResult.m in Sources */, 83346AD4212BFF6E0054D597 /* UserGuardViewController.m in Sources */, 83BC8A8A2148D28300820437 /* QustionAnswer.m in Sources */, 8357ADC92123BFCA000816F2 /* GiGaUserManager.m in Sources */, + 8390116F214E20B2004CA790 /* LYSDatePickerViewController.m in Sources */, 83835BB3212E50ED001480F2 /* ActiveMesagelistVC.m in Sources */, 83835BC3212E677C001480F2 /* GiGaQuestionVC.m in Sources */, 83A2271F212AC8C100B3E75C /* GiGaUserLoginVC.m in Sources */, + 83901177214E20B2004CA790 /* LYSDatePickerTypeTimeDelegate.m in Sources */, 83346ACE212BD7830054D597 /* GiGaWebViewController.m in Sources */, 8357ADD82124027D000816F2 /* GiGaUserDefault.m in Sources */, 83835BB6212E5174001480F2 /* GiGaServiceViewController.m in Sources */, + 8390116E214E20B2004CA790 /* LYSDateLogicViewController.m in Sources */, 8361B40721215E6F00238FEB /* GiGaHelper.m in Sources */, + 83901175214E20B2004CA790 /* LYSDatePickerManager.m in Sources */, + 83901173214E20B2004CA790 /* LYSDateBasicViewController.m in Sources */, 8392900F2134FA0A0077D2E8 /* GiGaCommentModel.m in Sources */, + 8390116C214E20B2004CA790 /* LYSDatePopViewController.m in Sources */, 83835BA0212E43BD001480F2 /* GiGaMasssagesVC.m in Sources */, 8357ADCD2123C091000816F2 /* GiGaNetManager.m in Sources */, 838388D4212FB7D700D14C53 /* JXTAlertView.m in Sources */, + 83901178214E20B2004CA790 /* LYSDatePickerItem.m in Sources */, 83773FC221479FED0014EE4C /* UIColor+HexColor.m in Sources */, + 83901172214E20B2004CA790 /* LYSDatePickerTypeDayAndTimeDelegate.m in Sources */, 835060A9212D38EE007E6220 /* GiGaStartAdView.m in Sources */, 83928FFA2134D8F60077D2E8 /* GiGaFlyingCommitInputView.m in Sources */, + 8390116D214E20B2004CA790 /* LYSDateBaseViewController.m in Sources */, 838388D3212FB7D700D14C53 /* JXTAlertController.m in Sources */, 833DA7762122A62000A5C614 /* GiGaMaskTaskViewController.m in Sources */, 836EE5D7213645E300F0ABB2 /* GiGaBaseAPiRequest.m in Sources */, 83773FBC214769230014EE4C /* ExercisesModel.m in Sources */, 83835BD0212E8B9C001480F2 /* GiGaQuestionModel.m in Sources */, 83835BAF212E4FCD001480F2 /* MessageListViewCell.m in Sources */, + 8390117D214E20B2004CA790 /* JYAddressPicker.m in Sources */, 8361B3D9212155C300238FEB /* main.m in Sources */, 83773FBF214791E10014EE4C /* GIGaQuestionSlider.m in Sources */, + 83901179214E20B2004CA790 /* LYSDatePickerTypeBase.m in Sources */, 835060A2212D1225007E6220 /* GiGaMeViewController.m in Sources */, 8361B3CB212155C200238FEB /* AppDelegate.m in Sources */, 838388C8212F9C4200D14C53 /* GiGaLocalNotificationManager.m in Sources */, @@ -1406,11 +1533,15 @@ 83BFAE67213CCF10004EF801 /* GiGaMineUserViewCell.m in Sources */, 8392900C2134F9F80077D2E8 /* GiGaCommentView.m in Sources */, 839290062134F4240077D2E8 /* LXDanMuManager.m in Sources */, + 83901171214E20B2004CA790 /* LYSDatePickerLabel.m in Sources */, 838762E2214B9F580039D241 /* GiGaUserSexViewCell.m in Sources */, 839290052134F4240077D2E8 /* LXDanMuTrackView.m in Sources */, 83E40B2F21218BA0008149C4 /* GiGaUserViewController.m in Sources */, + 83901170214E20B2004CA790 /* LYSDateHeaderViewController.m in Sources */, 835060A5212D3536007E6220 /* AppDelegate+GiGaConfig.m in Sources */, + 83901174214E20B2004CA790 /* LYSDateIndicatorViewController.m in Sources */, 83E40B2B21218B6F008149C4 /* GiGaExercisesViewController.m in Sources */, + 8390117B214E20B2004CA790 /* LYSDatePickerHeaderView.m in Sources */, 838762E7214B9FA60039D241 /* GIGaUserCityViewCell.m in Sources */, 83BFAE77213CDE91004EF801 /* GiGaSettingsViewCell.m in Sources */, 83835BA7212E4748001480F2 /* MAssaageCenterCell.m in Sources */, @@ -1425,6 +1556,7 @@ 83A22718212ABDFF00B3E75C /* GiGaBlockButton.m in Sources */, 83928FFE2134F37D0077D2E8 /* GiGaSocketRocketUtility.m in Sources */, 83A2270C212A97ED00B3E75C /* MaskViewBootomWaringView.m in Sources */, + 8390117A214E20B2004CA790 /* LYSDatePickerController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/GIGA/AppDelegate.m b/GIGA/AppDelegate.m index e4775e1..dc68b0f 100644 --- a/GIGA/AppDelegate.m +++ b/GIGA/AppDelegate.m @@ -40,7 +40,8 @@ //启动同步用户数据 BOOL islogin = [GiGaUserDefault isUserLogin]; if (islogin) { - [[GiGaUserManager shareUser] synsisUserInfo:nil]; + + [[GiGaUserManager shareUser] synsisUserInfo:nil userErrorMsgBlock:nil]; } return YES; diff --git a/GIGA/Common/GiGaUserDB/GiGaUserManager.h b/GIGA/Common/GiGaUserDB/GiGaUserManager.h index 0ceca0b..29f4e45 100644 --- a/GIGA/Common/GiGaUserDB/GiGaUserManager.h +++ b/GIGA/Common/GiGaUserDB/GiGaUserManager.h @@ -11,6 +11,7 @@ typedef void (^userDataresponseBlock)(GiGaUser *user); +typedef void (^userErrorMsgBlock)(NSDictionary *errorCodemsg); @interface GiGaUserManager : NSObject @@ -26,6 +27,6 @@ typedef void (^userDataresponseBlock)(GiGaUser *user); */ //-(void)detectionUserUpgrade; --(void)synsisUserInfo:(userDataresponseBlock)block; +-(void)synsisUserInfo:(userDataresponseBlock)block userErrorMsgBlock:(userErrorMsgBlock)errorCodeMsg; @end diff --git a/GIGA/Common/GiGaUserDB/GiGaUserManager.m b/GIGA/Common/GiGaUserDB/GiGaUserManager.m index 38fcbb1..c35a58d 100644 --- a/GIGA/Common/GiGaUserDB/GiGaUserManager.m +++ b/GIGA/Common/GiGaUserDB/GiGaUserManager.m @@ -49,9 +49,9 @@ const static NSInteger GIGADB_USER_VER = 0;//当前数据库版本号 } //登录成功后请求用户数据 --(void)synsisUserInfo:(userDataresponseBlock)block{ +-(void)synsisUserInfo:(userDataresponseBlock)block userErrorMsgBlock:(userErrorMsgBlock)errorCodeMsg{ - GiGaBaseAPiRequest *requst = [GiGaBaseAPiRequest initWithRequestPath:@"user/v1/info" method:RequestPostMethod parms:nil]; + GiGaBaseAPiRequest *requst = [GiGaBaseAPiRequest initWithRequestPath:kApiUserInfo method:RequestPostMethod parms:nil]; weakify(self); [requst requstDataWithResult:^(GiGaAPIResult *result) { @@ -61,11 +61,14 @@ const static NSInteger GIGADB_USER_VER = 0;//当前数据库版本号 GiGaUser *user = [[GiGaUser alloc] initWithDictionary:userDic error:nil]; self.user = user; [weakSelf saveUser:user]; - if (block) { block(user); } NSLog(@"user dic ***\n%@",result.dic); + }else{ + if (errorCodeMsg) { + errorCodeMsg(requst.resultDict); + } } }]; diff --git a/GIGA/Common/Views/JYAddressPicker/JYAddressPicker.h b/GIGA/Common/Views/JYAddressPicker/JYAddressPicker.h new file mode 100644 index 0000000..025dc85 --- /dev/null +++ b/GIGA/Common/Views/JYAddressPicker/JYAddressPicker.h @@ -0,0 +1,19 @@ +// +// JYAddressPicker.h +// LakalaClient +// +// Created by flying on 2018/8/17. +// Copyright © 2018年 LR. All rights reserved. +// + +#import + +typedef void (^SelectedItemBlock)(NSArray *addressArr); + +@interface JYAddressPicker : UIViewController + ++(JYAddressPicker *)jy_showAt:(UIViewController *)vc; ++(JYAddressPicker *)jy_showAt:(UIViewController *)vc defaultShow:(NSArray *)values; +@property (nonatomic, copy) SelectedItemBlock selectedItemBlock; + +@end diff --git a/GIGA/Common/Views/JYAddressPicker/JYAddressPicker.m b/GIGA/Common/Views/JYAddressPicker/JYAddressPicker.m new file mode 100644 index 0000000..946404e --- /dev/null +++ b/GIGA/Common/Views/JYAddressPicker/JYAddressPicker.m @@ -0,0 +1,241 @@ +// +// JYAddressPicker.m +// LakalaClient +// +// Created by flying on 2018/8/17. +// Copyright © 2018年 LR. All rights reserved. +// + +#import "JYAddressPicker.h" + +#define PickerHeight 180 +#define PickerToolBarHeight 44 + +@interface JYAddressPicker () + +//picker控件数据源 +@property(nonatomic,strong)NSMutableArray *showAddressArr; +//picker控件默认展示的元素下标 +@property(nonatomic,strong)NSMutableArray *showIndexs; + +@property (nonatomic, strong) UIView *pickerContainerView; +@property (nonatomic, strong) UIPickerView *pickerView; + +@end + +@implementation JYAddressPicker + + +- (void)viewDidLoad { + [super viewDidLoad]; + self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.4]; + + [self initUI]; + + for (NSInteger index = 0; index < [self.showIndexs count]; index ++) { + + [self.pickerView selectRow:[[self.showIndexs objectAtIndex:index] integerValue] inComponent:index animated:NO]; + } +} + +-(void)initUI{ + + self.pickerContainerView = [[UIView alloc] initWithFrame:CGRectMake(0, [UIScreen mainScreen].bounds.size.height - (PickerHeight + PickerToolBarHeight), [UIScreen mainScreen].bounds.size.width, PickerHeight + PickerToolBarHeight)]; + + UIToolbar *toolBar = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, PickerToolBarHeight)]; + toolBar.barTintColor = [UIColor whiteColor]; + + UIBarButtonItem *noSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil]; + noSpace.width=10; + + UIBarButtonItem *doneBtn = [[UIBarButtonItem alloc] initWithTitle:@"确定" style:UIBarButtonItemStylePlain target:self action:@selector(done:)];; + doneBtn.tintColor = [UIColor grayColor]; + + UIBarButtonItem *cancelBtn = [[UIBarButtonItem alloc] initWithTitle:@"取消" style:UIBarButtonItemStylePlain target:self action:@selector(cancel:)]; + cancelBtn.tintColor = [UIColor grayColor]; + + UIBarButtonItem *flexSpace = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; + [toolBar setItems:[NSArray arrayWithObjects:noSpace,cancelBtn,flexSpace,doneBtn,noSpace, nil]]; + UILabel *titleLabel = [UILabel new]; + titleLabel.frame = CGRectMake(0, 0, 200, PickerToolBarHeight); + titleLabel.center = toolBar.center; + titleLabel.textAlignment = NSTextAlignmentCenter; + titleLabel.textColor = [UIColor darkTextColor]; + titleLabel.text = @"省市区选择"; + [toolBar addSubview:titleLabel]; + + self.pickerView = [[UIPickerView alloc] initWithFrame:CGRectMake(0, PickerToolBarHeight, [UIScreen mainScreen].bounds.size.width, PickerHeight)]; + self.pickerView.dataSource = self; + self.pickerView.delegate = self; + self.pickerView.backgroundColor = [UIColor whiteColor]; + + [self.pickerContainerView addSubview:toolBar]; + [self.pickerContainerView addSubview:self.pickerView]; + [self.view addSubview:self.pickerContainerView]; +} + +#pragma mark-- UIPickerViewDataSource +//列数 +- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView +{ + return [self.showIndexs count]; +} + +//每列个数 +- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component +{ + return [[self.showAddressArr objectAtIndex:component] count]; +} + + +#pragma mark-- UIPickerViewDelegate +-(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view +{ + UILabel *label = (id)view; + if (!label) + { + label= [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, [pickerView rowSizeForComponent:component].width, [pickerView rowSizeForComponent:component].height)]; + label.textAlignment = NSTextAlignmentCenter; + label.textColor = [UIColor blackColor]; + NSDictionary *dic = [[self.showAddressArr objectAtIndex:component] objectAtIndex:row]; + label.text = dic[@"text"]; + } + return label; +} + +//点击选择 +-(void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component +{ + NSArray *columnItems = [self.showAddressArr objectAtIndex:component]; + NSDictionary *selectedItem = [columnItems objectAtIndex:row]; + + if ([selectedItem[@"childrens"] count] == 0) { + //此时为最后一列可能就一列或多列的最后一列 + [self.showIndexs replaceObjectAtIndex:component withObject:@(row)]; + }else{ + + NSUInteger replaceIdx = component; + BOOL next = true; + while (next) { + if (component == replaceIdx) { + [self.showIndexs replaceObjectAtIndex:replaceIdx withObject:@(row)]; + }else{ + + if (replaceIdx < [self.showIndexs count]) { + + [self.showAddressArr replaceObjectAtIndex:replaceIdx withObject:selectedItem[@"childrens"]]; + [self.showIndexs replaceObjectAtIndex:replaceIdx withObject:@(0)]; + selectedItem = [selectedItem[@"childrens"] firstObject]; + }else{ + next = false; + } + } + + replaceIdx ++; + } + + } + [pickerView reloadAllComponents]; + //实时更新选择数据及联数据 + for (NSInteger index = 0; index < [self.showIndexs count]; index ++) { + + [self.pickerView selectRow:[[self.showIndexs objectAtIndex:index] integerValue] inComponent:index animated:NO]; + } +} + + +-(instancetype)initWith:(NSArray *)defaultValues{ + + if (self = [super init]) { + self.modalPresentationStyle = UIModalPresentationOverCurrentContext; + + self.showIndexs = [NSMutableArray array]; + self.showAddressArr = [NSMutableArray array]; + //加载本地json数据 + NSString *jsonPath = [[NSBundle mainBundle] pathForResource:@"citys" ofType:@"json"]; + NSData *data = [[NSData alloc] initWithContentsOfFile:jsonPath]; + NSError *error = nil; + NSArray *citysArr = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; + //初始化源数据 + [self defaultShowValue:[NSMutableArray arrayWithArray:defaultValues] items:citysArr]; + + } + return self; +} + ++(JYAddressPicker *)jy_showAt:(UIViewController *)vc{ + + JYAddressPicker *addressPicker = [[JYAddressPicker alloc] initWith:@[@"",@"",@""]]; + [vc presentViewController:addressPicker animated:YES completion:^{ + + }]; + return addressPicker; +} + ++(JYAddressPicker *)jy_showAt:(UIViewController *)vc defaultShow:(NSArray *)values{ + + NSParameterAssert(values); + JYAddressPicker *addressPicker = [[JYAddressPicker alloc] initWith:values]; + [vc presentViewController:addressPicker animated:YES completion:^{ + + }]; + return addressPicker; +} + +-(void)defaultShowValue:(NSMutableArray *)values items:(NSArray *)items +{ + [items enumerateObjectsUsingBlock:^(NSDictionary *obj, NSUInteger idx, BOOL * _Nonnull stop) { + if ([@"" isEqualToString:[values firstObject]]) + { + //values中没有默认值的时候values中的元素目前为@""空字符 + [self.showIndexs addObject:@(0)]; + [values removeObjectAtIndex:0]; + [self.showAddressArr addObject:items]; + [self defaultShowValue:values items:obj[@"childrens"]]; + + } + else if ([obj[@"text"] isEqualToString:[values firstObject]]) + { + [self.showIndexs addObject:@(idx)]; + [values removeObjectAtIndex:0]; + [self.showAddressArr addObject:items]; + [self defaultShowValue:values items:obj[@"childrens"]]; + } + }]; +} + +#pragma mark--确定 +-(void)done:(id)sender{ + + if (self.selectedItemBlock) { + NSMutableArray *resultArr = [NSMutableArray array]; + [self.showAddressArr enumerateObjectsUsingBlock:^(NSArray *objArr, NSUInteger idx, BOOL * _Nonnull stop) { + + NSDictionary *selectedItem = [objArr objectAtIndex:[[self.showIndexs objectAtIndex:idx] integerValue]]; + [resultArr addObject:selectedItem]; + }]; + self.selectedItemBlock(resultArr); + } + [self hide]; +} + +#pragma mark--取消 +-(void)cancel:(id)sender{ + + [self hide]; +} + +-(void)hide{ + + [self dismissViewControllerAnimated:YES completion:^{ + + }]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git a/GIGA/Common/Views/JYAddressPicker/citys.json b/GIGA/Common/Views/JYAddressPicker/citys.json new file mode 100644 index 0000000..3522fdd --- /dev/null +++ b/GIGA/Common/Views/JYAddressPicker/citys.json @@ -0,0 +1,14290 @@ +[ + { + "value": "1200", + "text": "河北省", + "childrens": [ + { + "value": "1210", + "text": "石家庄市", + "childrens": [ + { + "value": "1211", + "text": "井陉县", + "childrens": [] + }, + { + "value": "1212", + "text": "鹿泉市", + "childrens": [] + }, + { + "value": "1213", + "text": "正定县", + "childrens": [] + }, + { + "value": "1214", + "text": "栾城县", + "childrens": [] + }, + { + "value": "1221", + "text": "辛集市", + "childrens": [] + }, + { + "value": "1222", + "text": "晋州市", + "childrens": [] + }, + { + "value": "1223", + "text": "深泽县", + "childrens": [] + }, + { + "value": "1224", + "text": "无极县", + "childrens": [] + }, + { + "value": "1225", + "text": "藁城市", + "childrens": [] + }, + { + "value": "1226", + "text": "赵县", + "childrens": [] + }, + { + "value": "1227", + "text": "新乐市", + "childrens": [] + }, + { + "value": "1228", + "text": "高邑县", + "childrens": [] + }, + { + "value": "1229", + "text": "元氏县", + "childrens": [] + }, + { + "value": "1231", + "text": "赞皇县", + "childrens": [] + }, + { + "value": "1232", + "text": "平山县", + "childrens": [] + }, + { + "value": "1233", + "text": "灵寿县", + "childrens": [] + }, + { + "value": "1234", + "text": "行唐县", + "childrens": [] + }, + { + "value": "981210", + "text": "石家庄市", + "childrens": [] + } + ] + }, + { + "value": "1240", + "text": "唐山市", + "childrens": [ + { + "value": "1243", + "text": "滦县", + "childrens": [] + }, + { + "value": "1244", + "text": "滦南县", + "childrens": [] + }, + { + "value": "1245", + "text": "乐亭县", + "childrens": [] + }, + { + "value": "1246", + "text": "迁安市", + "childrens": [] + }, + { + "value": "1247", + "text": "迁西县", + "childrens": [] + }, + { + "value": "1248", + "text": "遵化市", + "childrens": [] + }, + { + "value": "1249", + "text": "玉田县", + "childrens": [] + }, + { + "value": "1251", + "text": "唐海县", + "childrens": [] + }, + { + "value": "981240", + "text": "唐山市", + "childrens": [] + } + ] + }, + { + "value": "1260", + "text": "秦皇岛市", + "childrens": [ + { + "value": "1261", + "text": "青龙满族自治县", + "childrens": [] + }, + { + "value": "1262", + "text": "昌黎县", + "childrens": [] + }, + { + "value": "1263", + "text": "抚宁县", + "childrens": [] + }, + { + "value": "1264", + "text": "卢龙县", + "childrens": [] + }, + { + "value": "981260", + "text": "秦皇岛市", + "childrens": [] + } + ] + }, + { + "value": "1270", + "text": "邯郸市", + "childrens": [ + { + "value": "1271", + "text": "邯郸县", + "childrens": [] + }, + { + "value": "1281", + "text": "大名县", + "childrens": [] + }, + { + "value": "1282", + "text": "魏县", + "childrens": [] + }, + { + "value": "1283", + "text": "曲周县", + "childrens": [] + }, + { + "value": "1284", + "text": "邱县", + "childrens": [] + }, + { + "value": "1285", + "text": "鸡泽县", + "childrens": [] + }, + { + "value": "1286", + "text": "肥乡县", + "childrens": [] + }, + { + "value": "1287", + "text": "广平县", + "childrens": [] + }, + { + "value": "1288", + "text": "成安县", + "childrens": [] + }, + { + "value": "1289", + "text": "临漳县", + "childrens": [] + }, + { + "value": "1291", + "text": "磁县", + "childrens": [] + }, + { + "value": "1292", + "text": "涉县", + "childrens": [] + }, + { + "value": "1293", + "text": "永年县", + "childrens": [] + }, + { + "value": "1294", + "text": "馆陶县", + "childrens": [] + }, + { + "value": "1295", + "text": "武安市", + "childrens": [] + }, + { + "value": "981270", + "text": "邯郸市", + "childrens": [] + } + ] + }, + { + "value": "1310", + "text": "邢台市", + "childrens": [ + { + "value": "1311", + "text": "邢台县", + "childrens": [] + }, + { + "value": "1321", + "text": "南宫市", + "childrens": [] + }, + { + "value": "1322", + "text": "沙河市", + "childrens": [] + }, + { + "value": "1323", + "text": "临城县", + "childrens": [] + }, + { + "value": "1324", + "text": "内丘县", + "childrens": [] + }, + { + "value": "1325", + "text": "柏乡县", + "childrens": [] + }, + { + "value": "1326", + "text": "隆尧县", + "childrens": [] + }, + { + "value": "1327", + "text": "任县", + "childrens": [] + }, + { + "value": "1328", + "text": "南和县", + "childrens": [] + }, + { + "value": "1329", + "text": "宁晋县", + "childrens": [] + }, + { + "value": "1331", + "text": "巨鹿县", + "childrens": [] + }, + { + "value": "1332", + "text": "新河县", + "childrens": [] + }, + { + "value": "1333", + "text": "广宗县", + "childrens": [] + }, + { + "value": "1334", + "text": "平乡县", + "childrens": [] + }, + { + "value": "1335", + "text": "威县", + "childrens": [] + }, + { + "value": "1336", + "text": "清河县", + "childrens": [] + }, + { + "value": "1337", + "text": "临西县", + "childrens": [] + }, + { + "value": "981310", + "text": "邢台市", + "childrens": [] + } + ] + }, + { + "value": "1340", + "text": "保定市", + "childrens": [ + { + "value": "1341", + "text": "满城县", + "childrens": [] + }, + { + "value": "1342", + "text": "清苑县", + "childrens": [] + }, + { + "value": "1351", + "text": "定州市", + "childrens": [] + }, + { + "value": "1352", + "text": "涿州市", + "childrens": [] + }, + { + "value": "1353", + "text": "易县", + "childrens": [] + }, + { + "value": "1354", + "text": "徐水县", + "childrens": [] + }, + { + "value": "1355", + "text": "涞源县", + "childrens": [] + }, + { + "value": "1356", + "text": "定兴县", + "childrens": [] + }, + { + "value": "1357", + "text": "顺平县", + "childrens": [] + }, + { + "value": "1358", + "text": "唐县", + "childrens": [] + }, + { + "value": "1359", + "text": "望都县", + "childrens": [] + }, + { + "value": "1361", + "text": "涞水县", + "childrens": [] + }, + { + "value": "1362", + "text": "高阳县", + "childrens": [] + }, + { + "value": "1363", + "text": "安新县", + "childrens": [] + }, + { + "value": "1364", + "text": "雄县", + "childrens": [] + }, + { + "value": "1365", + "text": "容城县", + "childrens": [] + }, + { + "value": "1366", + "text": "高碑店市", + "childrens": [] + }, + { + "value": "1367", + "text": "曲阳县", + "childrens": [] + }, + { + "value": "1368", + "text": "阜平县", + "childrens": [] + }, + { + "value": "1369", + "text": "安国市", + "childrens": [] + }, + { + "value": "1371", + "text": "博野县", + "childrens": [] + }, + { + "value": "1372", + "text": "蠡县", + "childrens": [] + }, + { + "value": "981340", + "text": "保定市", + "childrens": [] + } + ] + }, + { + "value": "1380", + "text": "张家口市", + "childrens": [ + { + "value": "1381", + "text": "宣化县", + "childrens": [] + }, + { + "value": "1391", + "text": "张北县", + "childrens": [] + }, + { + "value": "1392", + "text": "康保县", + "childrens": [] + }, + { + "value": "1393", + "text": "沽源县", + "childrens": [] + }, + { + "value": "1394", + "text": "尚义县", + "childrens": [] + }, + { + "value": "1395", + "text": "蔚县", + "childrens": [] + }, + { + "value": "1396", + "text": "阳原县", + "childrens": [] + }, + { + "value": "1397", + "text": "怀安县", + "childrens": [] + }, + { + "value": "1398", + "text": "万全县", + "childrens": [] + }, + { + "value": "1399", + "text": "怀来县", + "childrens": [] + }, + { + "value": "1401", + "text": "涿鹿县", + "childrens": [] + }, + { + "value": "1402", + "text": "赤城县", + "childrens": [] + }, + { + "value": "1403", + "text": "崇礼县", + "childrens": [] + }, + { + "value": "981380", + "text": "张家口市", + "childrens": [] + } + ] + }, + { + "value": "1410", + "text": "承德市", + "childrens": [ + { + "value": "1411", + "text": "承德县", + "childrens": [] + }, + { + "value": "1421", + "text": "宽城满族自治县", + "childrens": [] + }, + { + "value": "1422", + "text": "兴隆县", + "childrens": [] + }, + { + "value": "1423", + "text": "平泉县", + "childrens": [] + }, + { + "value": "1424", + "text": "滦平县", + "childrens": [] + }, + { + "value": "1425", + "text": "丰宁满族自治县", + "childrens": [] + }, + { + "value": "1426", + "text": "隆化县", + "childrens": [] + }, + { + "value": "1427", + "text": "围场满族蒙古族自治县", + "childrens": [] + }, + { + "value": "981410", + "text": "承德市", + "childrens": [] + } + ] + }, + { + "value": "1430", + "text": "沧州市", + "childrens": [ + { + "value": "1431", + "text": "沧县", + "childrens": [] + }, + { + "value": "1432", + "text": "青县", + "childrens": [] + }, + { + "value": "1441", + "text": "泊头市", + "childrens": [] + }, + { + "value": "1442", + "text": "任丘市", + "childrens": [] + }, + { + "value": "1443", + "text": "河间市", + "childrens": [] + }, + { + "value": "1444", + "text": "肃宁县", + "childrens": [] + }, + { + "value": "1445", + "text": "献县", + "childrens": [] + }, + { + "value": "1446", + "text": "吴桥县", + "childrens": [] + }, + { + "value": "1447", + "text": "东光县", + "childrens": [] + }, + { + "value": "1448", + "text": "南皮县", + "childrens": [] + }, + { + "value": "1449", + "text": "盐山县", + "childrens": [] + }, + { + "value": "1451", + "text": "黄骅市", + "childrens": [] + }, + { + "value": "1452", + "text": "孟村回族自治县", + "childrens": [] + }, + { + "value": "1453", + "text": "海兴县", + "childrens": [] + }, + { + "value": "981430", + "text": "沧州市", + "childrens": [] + } + ] + }, + { + "value": "1460", + "text": "廊坊市", + "childrens": [ + { + "value": "1461", + "text": "三河市", + "childrens": [] + }, + { + "value": "1462", + "text": "固安县", + "childrens": [] + }, + { + "value": "1463", + "text": "永清县", + "childrens": [] + }, + { + "value": "1464", + "text": "香河县", + "childrens": [] + }, + { + "value": "1465", + "text": "大城县", + "childrens": [] + }, + { + "value": "1466", + "text": "文安县", + "childrens": [] + }, + { + "value": "1467", + "text": "霸州市", + "childrens": [] + }, + { + "value": "1468", + "text": "大厂回族自治县", + "childrens": [] + }, + { + "value": "981460", + "text": "廊坊市", + "childrens": [] + } + ] + }, + { + "value": "1480", + "text": "衡水市", + "childrens": [ + { + "value": "1482", + "text": "冀州市", + "childrens": [] + }, + { + "value": "1483", + "text": "枣强县", + "childrens": [] + }, + { + "value": "1484", + "text": "武邑县", + "childrens": [] + }, + { + "value": "1485", + "text": "深州市", + "childrens": [] + }, + { + "value": "1486", + "text": "武强县", + "childrens": [] + }, + { + "value": "1487", + "text": "饶阳县", + "childrens": [] + }, + { + "value": "1488", + "text": "安平县", + "childrens": [] + }, + { + "value": "1489", + "text": "故城县", + "childrens": [] + }, + { + "value": "1491", + "text": "景县", + "childrens": [] + }, + { + "value": "1492", + "text": "阜城县", + "childrens": [] + }, + { + "value": "981480", + "text": "衡水市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "1600", + "text": "山西省", + "childrens": [ + { + "value": "1610", + "text": "太原市", + "childrens": [ + { + "value": "1611", + "text": "清徐县", + "childrens": [] + }, + { + "value": "1612", + "text": "阳曲县", + "childrens": [] + }, + { + "value": "1613", + "text": "娄烦县", + "childrens": [] + }, + { + "value": "1614", + "text": "古交市", + "childrens": [] + }, + { + "value": "981610", + "text": "太原市", + "childrens": [] + } + ] + }, + { + "value": "1620", + "text": "大同市", + "childrens": [ + { + "value": "1631", + "text": "阳高县", + "childrens": [] + }, + { + "value": "1632", + "text": "天镇县", + "childrens": [] + }, + { + "value": "1633", + "text": "广灵县", + "childrens": [] + }, + { + "value": "1634", + "text": "灵丘县", + "childrens": [] + }, + { + "value": "1635", + "text": "浑源县", + "childrens": [] + }, + { + "value": "1637", + "text": "左云县", + "childrens": [] + }, + { + "value": "1639", + "text": "大同县", + "childrens": [] + }, + { + "value": "981620", + "text": "大同市", + "childrens": [] + } + ] + }, + { + "value": "1650", + "text": "阳泉市", + "childrens": [ + { + "value": "1651", + "text": "平定县", + "childrens": [] + }, + { + "value": "1652", + "text": "盂县", + "childrens": [] + }, + { + "value": "981650", + "text": "阳泉市", + "childrens": [] + } + ] + }, + { + "value": "1660", + "text": "长治市", + "childrens": [ + { + "value": "1661", + "text": "长治县", + "childrens": [] + }, + { + "value": "1662", + "text": "潞城市", + "childrens": [] + }, + { + "value": "1663", + "text": "襄垣县", + "childrens": [] + }, + { + "value": "1664", + "text": "屯留县", + "childrens": [] + }, + { + "value": "1665", + "text": "平顺县", + "childrens": [] + }, + { + "value": "1666", + "text": "黎城县", + "childrens": [] + }, + { + "value": "1667", + "text": "壶关县", + "childrens": [] + }, + { + "value": "1668", + "text": "长子县", + "childrens": [] + }, + { + "value": "1669", + "text": "武乡县", + "childrens": [] + }, + { + "value": "1671", + "text": "沁县", + "childrens": [] + }, + { + "value": "1672", + "text": "沁源县", + "childrens": [] + }, + { + "value": "981660", + "text": "长治市", + "childrens": [] + } + ] + }, + { + "value": "1680", + "text": "晋城市", + "childrens": [ + { + "value": "1681", + "text": "沁水县", + "childrens": [] + }, + { + "value": "1682", + "text": "阳城县", + "childrens": [] + }, + { + "value": "1683", + "text": "高平市", + "childrens": [] + }, + { + "value": "1684", + "text": "陵川县", + "childrens": [] + }, + { + "value": "1685", + "text": "泽州县", + "childrens": [] + }, + { + "value": "981680", + "text": "晋城市", + "childrens": [] + } + ] + }, + { + "value": "1690", + "text": "朔州市", + "childrens": [ + { + "value": "1691", + "text": "山阴县", + "childrens": [] + }, + { + "value": "1692", + "text": "应县", + "childrens": [] + }, + { + "value": "1693", + "text": "右玉县", + "childrens": [] + }, + { + "value": "1694", + "text": "怀仁县", + "childrens": [] + }, + { + "value": "981690", + "text": "朔州市", + "childrens": [] + } + ] + }, + { + "value": "1710", + "text": "忻州市", + "childrens": [ + { + "value": "1712", + "text": "定襄县", + "childrens": [] + }, + { + "value": "1713", + "text": "五台县", + "childrens": [] + }, + { + "value": "1714", + "text": "原平市", + "childrens": [] + }, + { + "value": "1715", + "text": "代县", + "childrens": [] + }, + { + "value": "1716", + "text": "繁峙县", + "childrens": [] + }, + { + "value": "1717", + "text": "宁武县", + "childrens": [] + }, + { + "value": "1718", + "text": "静乐县", + "childrens": [] + }, + { + "value": "1719", + "text": "神池县", + "childrens": [] + }, + { + "value": "1721", + "text": "五寨县", + "childrens": [] + }, + { + "value": "1722", + "text": "岢岚县", + "childrens": [] + }, + { + "value": "1723", + "text": "河曲县", + "childrens": [] + }, + { + "value": "1724", + "text": "保德县", + "childrens": [] + }, + { + "value": "1725", + "text": "偏关县", + "childrens": [] + }, + { + "value": "981710", + "text": "忻州市", + "childrens": [] + } + ] + }, + { + "value": "1730", + "text": "吕梁市", + "childrens": [ + { + "value": "1731", + "text": "汾阳市", + "childrens": [] + }, + { + "value": "1732", + "text": "文水县", + "childrens": [] + }, + { + "value": "1733", + "text": "交城县", + "childrens": [] + }, + { + "value": "1734", + "text": "孝义市", + "childrens": [] + }, + { + "value": "1735", + "text": "兴县", + "childrens": [] + }, + { + "value": "1736", + "text": "临县", + "childrens": [] + }, + { + "value": "1737", + "text": "柳林县", + "childrens": [] + }, + { + "value": "1738", + "text": "石楼县", + "childrens": [] + }, + { + "value": "1739", + "text": "岚县", + "childrens": [] + }, + { + "value": "1741", + "text": "方山县", + "childrens": [] + }, + { + "value": "1743", + "text": "中阳县", + "childrens": [] + }, + { + "value": "1744", + "text": "交口县", + "childrens": [] + }, + { + "value": "981730", + "text": "吕梁市", + "childrens": [] + } + ] + }, + { + "value": "1750", + "text": "晋中市", + "childrens": [ + { + "value": "1752", + "text": "榆社县", + "childrens": [] + }, + { + "value": "1753", + "text": "左权县", + "childrens": [] + }, + { + "value": "1754", + "text": "和顺县", + "childrens": [] + }, + { + "value": "1755", + "text": "昔阳县", + "childrens": [] + }, + { + "value": "1756", + "text": "寿阳县", + "childrens": [] + }, + { + "value": "1757", + "text": "太谷县", + "childrens": [] + }, + { + "value": "1758", + "text": "祁县", + "childrens": [] + }, + { + "value": "1759", + "text": "平遥县", + "childrens": [] + }, + { + "value": "1761", + "text": "介休市", + "childrens": [] + }, + { + "value": "1762", + "text": "灵石县", + "childrens": [] + }, + { + "value": "981750", + "text": "晋中市", + "childrens": [] + } + ] + }, + { + "value": "1770", + "text": "临汾市", + "childrens": [ + { + "value": "1772", + "text": "侯马市", + "childrens": [] + }, + { + "value": "1773", + "text": "曲沃县", + "childrens": [] + }, + { + "value": "1774", + "text": "翼城县", + "childrens": [] + }, + { + "value": "1775", + "text": "襄汾县", + "childrens": [] + }, + { + "value": "1776", + "text": "洪洞县", + "childrens": [] + }, + { + "value": "1777", + "text": "霍州市", + "childrens": [] + }, + { + "value": "1778", + "text": "古县", + "childrens": [] + }, + { + "value": "1779", + "text": "安泽县", + "childrens": [] + }, + { + "value": "1781", + "text": "浮山县", + "childrens": [] + }, + { + "value": "1782", + "text": "吉县", + "childrens": [] + }, + { + "value": "1783", + "text": "乡宁县", + "childrens": [] + }, + { + "value": "1784", + "text": "蒲县", + "childrens": [] + }, + { + "value": "1785", + "text": "大宁县", + "childrens": [] + }, + { + "value": "1786", + "text": "永和县", + "childrens": [] + }, + { + "value": "1787", + "text": "隰县", + "childrens": [] + }, + { + "value": "1788", + "text": "汾西县", + "childrens": [] + }, + { + "value": "981770", + "text": "临汾市", + "childrens": [] + } + ] + }, + { + "value": "1810", + "text": "运城市", + "childrens": [ + { + "value": "1812", + "text": "永济市", + "childrens": [] + }, + { + "value": "1813", + "text": "芮城县", + "childrens": [] + }, + { + "value": "1814", + "text": "临猗县", + "childrens": [] + }, + { + "value": "1815", + "text": "万荣县", + "childrens": [] + }, + { + "value": "1816", + "text": "新绛县", + "childrens": [] + }, + { + "value": "1817", + "text": "稷山县", + "childrens": [] + }, + { + "value": "1818", + "text": "河津市", + "childrens": [] + }, + { + "value": "1819", + "text": "闻喜县", + "childrens": [] + }, + { + "value": "1821", + "text": "夏县", + "childrens": [] + }, + { + "value": "1822", + "text": "绛县", + "childrens": [] + }, + { + "value": "1823", + "text": "平陆县", + "childrens": [] + }, + { + "value": "1824", + "text": "垣曲县", + "childrens": [] + }, + { + "value": "981810", + "text": "运城市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "1900", + "text": "内蒙古自治区", + "childrens": [ + { + "value": "1910", + "text": "呼和浩特市", + "childrens": [ + { + "value": "1911", + "text": "土默特左旗", + "childrens": [] + }, + { + "value": "1912", + "text": "托克托县", + "childrens": [] + }, + { + "value": "1913", + "text": "武川县", + "childrens": [] + }, + { + "value": "1914", + "text": "和林格尔县", + "childrens": [] + }, + { + "value": "1915", + "text": "清水河县", + "childrens": [] + }, + { + "value": "981910", + "text": "呼和浩特市", + "childrens": [] + } + ] + }, + { + "value": "1920", + "text": "包头市", + "childrens": [ + { + "value": "1921", + "text": "土默特右旗", + "childrens": [] + }, + { + "value": "1922", + "text": "固阳县", + "childrens": [] + }, + { + "value": "1923", + "text": "达尔罕茂明安联合旗", + "childrens": [] + }, + { + "value": "981920", + "text": "包头市", + "childrens": [] + } + ] + }, + { + "value": "1930", + "text": "乌海市", + "childrens": [ + { + "value": "981930", + "text": "乌海市", + "childrens": [] + } + ] + }, + { + "value": "1940", + "text": "赤峰市", + "childrens": [ + { + "value": "1941", + "text": "阿鲁科尔沁旗", + "childrens": [] + }, + { + "value": "1942", + "text": "巴林左旗", + "childrens": [] + }, + { + "value": "1943", + "text": "巴林右旗", + "childrens": [] + }, + { + "value": "1944", + "text": "林西县", + "childrens": [] + }, + { + "value": "1945", + "text": "克什克腾旗", + "childrens": [] + }, + { + "value": "1946", + "text": "翁牛特旗", + "childrens": [] + }, + { + "value": "1947", + "text": "喀喇沁旗", + "childrens": [] + }, + { + "value": "1948", + "text": "宁城县", + "childrens": [] + }, + { + "value": "1949", + "text": "敖汉旗", + "childrens": [] + }, + { + "value": "981940", + "text": "赤峰市", + "childrens": [] + } + ] + }, + { + "value": "1960", + "text": "呼伦贝尔市", + "childrens": [ + { + "value": "1962", + "text": "满洲里市", + "childrens": [] + }, + { + "value": "1963", + "text": "扎兰屯市", + "childrens": [] + }, + { + "value": "1964", + "text": "牙克石市", + "childrens": [] + }, + { + "value": "1965", + "text": "阿荣旗", + "childrens": [] + }, + { + "value": "1966", + "text": "莫力达瓦达斡尔族自治旗", + "childrens": [] + }, + { + "value": "1967", + "text": "额尔古纳市", + "childrens": [] + }, + { + "value": "1968", + "text": "根河市", + "childrens": [] + }, + { + "value": "1969", + "text": "鄂伦春自治旗", + "childrens": [] + }, + { + "value": "1971", + "text": "鄂温克族自治旗", + "childrens": [] + }, + { + "value": "1972", + "text": "新巴尔虎右旗", + "childrens": [] + }, + { + "value": "1973", + "text": "新巴尔虎左旗", + "childrens": [] + }, + { + "value": "1974", + "text": "陈巴尔虎旗", + "childrens": [] + }, + { + "value": "981960", + "text": "呼伦贝尔市", + "childrens": [] + } + ] + }, + { + "value": "1980", + "text": "兴安盟", + "childrens": [ + { + "value": "1981", + "text": "乌兰浩特市", + "childrens": [] + }, + { + "value": "1982", + "text": "科尔沁右翼前旗", + "childrens": [] + }, + { + "value": "1983", + "text": "科尔沁右翼中旗", + "childrens": [] + }, + { + "value": "1984", + "text": "扎赉特旗", + "childrens": [] + }, + { + "value": "1985", + "text": "突泉县", + "childrens": [] + }, + { + "value": "1986", + "text": "阿尔山市", + "childrens": [] + }, + { + "value": "981980", + "text": "兴安盟", + "childrens": [] + } + ] + }, + { + "value": "1990", + "text": "通辽市", + "childrens": [ + { + "value": "1992", + "text": "霍林郭勒市", + "childrens": [] + }, + { + "value": "1993", + "text": "科尔沁左翼中旗", + "childrens": [] + }, + { + "value": "1994", + "text": "科尔沁左翼后旗", + "childrens": [] + }, + { + "value": "1995", + "text": "开鲁县", + "childrens": [] + }, + { + "value": "1996", + "text": "库伦旗", + "childrens": [] + }, + { + "value": "1997", + "text": "奈曼旗", + "childrens": [] + }, + { + "value": "1998", + "text": "扎鲁特旗", + "childrens": [] + }, + { + "value": "981990", + "text": "通辽市", + "childrens": [] + } + ] + }, + { + "value": "2010", + "text": "锡林郭勒盟", + "childrens": [ + { + "value": "2011", + "text": "二连浩特市", + "childrens": [] + }, + { + "value": "2012", + "text": "锡林浩特市", + "childrens": [] + }, + { + "value": "2013", + "text": "阿巴嘎旗", + "childrens": [] + }, + { + "value": "2014", + "text": "苏尼特左旗", + "childrens": [] + }, + { + "value": "2015", + "text": "苏尼特右旗", + "childrens": [] + }, + { + "value": "2016", + "text": "东乌珠穆沁旗", + "childrens": [] + }, + { + "value": "2017", + "text": "西乌珠穆沁旗", + "childrens": [] + }, + { + "value": "2018", + "text": "太仆寺旗", + "childrens": [] + }, + { + "value": "2019", + "text": "镶黄旗", + "childrens": [] + }, + { + "value": "2021", + "text": "正镶白旗", + "childrens": [] + }, + { + "value": "2022", + "text": "正蓝旗", + "childrens": [] + }, + { + "value": "2023", + "text": "多伦县", + "childrens": [] + }, + { + "value": "982010", + "text": "锡林郭勒盟", + "childrens": [] + } + ] + }, + { + "value": "2030", + "text": "乌兰察布市", + "childrens": [ + { + "value": "2035", + "text": "卓资县", + "childrens": [] + }, + { + "value": "2036", + "text": "化德县", + "childrens": [] + }, + { + "value": "2037", + "text": "商都县", + "childrens": [] + }, + { + "value": "2038", + "text": "兴和县", + "childrens": [] + }, + { + "value": "2039", + "text": "丰镇市", + "childrens": [] + }, + { + "value": "2041", + "text": "凉城县", + "childrens": [] + }, + { + "value": "2042", + "text": "察哈尔右翼前旗", + "childrens": [] + }, + { + "value": "2043", + "text": "察哈尔右翼中旗", + "childrens": [] + }, + { + "value": "2044", + "text": "察哈尔右翼后旗", + "childrens": [] + }, + { + "value": "2046", + "text": "四子王旗", + "childrens": [] + }, + { + "value": "982030", + "text": "乌兰察布市", + "childrens": [] + } + ] + }, + { + "value": "2050", + "text": "鄂尔多斯市", + "childrens": [ + { + "value": "2051", + "text": "东胜区", + "childrens": [] + }, + { + "value": "2052", + "text": "达拉特旗", + "childrens": [] + }, + { + "value": "2053", + "text": "准格尔旗", + "childrens": [] + }, + { + "value": "2054", + "text": "鄂托克前旗", + "childrens": [] + }, + { + "value": "2055", + "text": "鄂托克旗", + "childrens": [] + }, + { + "value": "2056", + "text": "杭锦旗", + "childrens": [] + }, + { + "value": "2057", + "text": "乌审旗", + "childrens": [] + }, + { + "value": "2058", + "text": "伊金霍洛旗", + "childrens": [] + }, + { + "value": "982050", + "text": "鄂尔多斯市", + "childrens": [] + } + ] + }, + { + "value": "2070", + "text": "巴彦淖尔市", + "childrens": [ + { + "value": "2072", + "text": "五原县", + "childrens": [] + }, + { + "value": "2073", + "text": "磴口县", + "childrens": [] + }, + { + "value": "2074", + "text": "乌拉特前旗", + "childrens": [] + }, + { + "value": "2075", + "text": "乌拉特中旗", + "childrens": [] + }, + { + "value": "2076", + "text": "乌拉特后旗", + "childrens": [] + }, + { + "value": "2077", + "text": "杭锦后旗", + "childrens": [] + }, + { + "value": "982070", + "text": "巴彦淖尔市", + "childrens": [] + } + ] + }, + { + "value": "2080", + "text": "阿拉善盟", + "childrens": [ + { + "value": "2081", + "text": "阿拉善左旗", + "childrens": [] + }, + { + "value": "2082", + "text": "阿拉善右旗", + "childrens": [] + }, + { + "value": "2083", + "text": "额济纳旗", + "childrens": [] + }, + { + "value": "982080", + "text": "阿拉善盟", + "childrens": [] + } + ] + } + ] + }, + { + "value": "2200", + "text": "辽宁省", + "childrens": [ + { + "value": "2210", + "text": "沈阳市", + "childrens": [ + { + "value": "2211", + "text": "新民市", + "childrens": [] + }, + { + "value": "2212", + "text": "辽中县", + "childrens": [] + }, + { + "value": "2213", + "text": "康平县", + "childrens": [] + }, + { + "value": "2214", + "text": "法库县", + "childrens": [] + }, + { + "value": "982210", + "text": "沈阳市", + "childrens": [] + } + ] + }, + { + "value": "2220", + "text": "大连市", + "childrens": [ + { + "value": "2221", + "text": "普兰店市", + "childrens": [] + }, + { + "value": "2222", + "text": "长海县", + "childrens": [] + }, + { + "value": "2223", + "text": "庄河市", + "childrens": [] + }, + { + "value": "2224", + "text": "瓦房店市", + "childrens": [] + }, + { + "value": "982220", + "text": "大连市", + "childrens": [] + } + ] + }, + { + "value": "2230", + "text": "鞍山市", + "childrens": [ + { + "value": "2231", + "text": "台安县", + "childrens": [] + }, + { + "value": "2232", + "text": "海城市", + "childrens": [] + }, + { + "value": "2233", + "text": "岫岩满族自治县", + "childrens": [] + }, + { + "value": "982230", + "text": "鞍山市", + "childrens": [] + } + ] + }, + { + "value": "2240", + "text": "抚顺市", + "childrens": [ + { + "value": "2241", + "text": "抚顺县", + "childrens": [] + }, + { + "value": "2242", + "text": "新宾满族自治县", + "childrens": [] + }, + { + "value": "2243", + "text": "清原满族自治县", + "childrens": [] + }, + { + "value": "982240", + "text": "抚顺市", + "childrens": [] + } + ] + }, + { + "value": "2250", + "text": "本溪市", + "childrens": [ + { + "value": "2251", + "text": "本溪满族自治县", + "childrens": [] + }, + { + "value": "2252", + "text": "桓仁满族自治县", + "childrens": [] + }, + { + "value": "982250", + "text": "本溪市", + "childrens": [] + } + ] + }, + { + "value": "2260", + "text": "丹东市", + "childrens": [ + { + "value": "2261", + "text": "凤城市", + "childrens": [] + }, + { + "value": "2263", + "text": "东港市", + "childrens": [] + }, + { + "value": "2264", + "text": "宽甸满族自治县", + "childrens": [] + }, + { + "value": "982260", + "text": "丹东市", + "childrens": [] + } + ] + }, + { + "value": "2270", + "text": "锦州市", + "childrens": [ + { + "value": "2272", + "text": "凌海市", + "childrens": [] + }, + { + "value": "2273", + "text": "北镇市", + "childrens": [] + }, + { + "value": "2274", + "text": "黑山县", + "childrens": [] + }, + { + "value": "2275", + "text": "义县", + "childrens": [] + }, + { + "value": "982270", + "text": "锦州市", + "childrens": [] + } + ] + }, + { + "value": "2280", + "text": "营口市", + "childrens": [ + { + "value": "2281", + "text": "大石桥市", + "childrens": [] + }, + { + "value": "2282", + "text": "盖州市", + "childrens": [] + }, + { + "value": "982280", + "text": "营口市", + "childrens": [] + } + ] + }, + { + "value": "2290", + "text": "阜新市", + "childrens": [ + { + "value": "2291", + "text": "阜新蒙古族自治县", + "childrens": [] + }, + { + "value": "2292", + "text": "彰武县", + "childrens": [] + }, + { + "value": "982290", + "text": "阜新市", + "childrens": [] + } + ] + }, + { + "value": "2310", + "text": "辽阳市", + "childrens": [ + { + "value": "2311", + "text": "辽阳县", + "childrens": [] + }, + { + "value": "2312", + "text": "灯塔市", + "childrens": [] + }, + { + "value": "982310", + "text": "辽阳市", + "childrens": [] + } + ] + }, + { + "value": "2320", + "text": "盘锦市", + "childrens": [ + { + "value": "2321", + "text": "大洼县", + "childrens": [] + }, + { + "value": "2322", + "text": "盘山县", + "childrens": [] + }, + { + "value": "982320", + "text": "盘锦市", + "childrens": [] + } + ] + }, + { + "value": "2330", + "text": "铁岭市", + "childrens": [ + { + "value": "2331", + "text": "铁岭县", + "childrens": [] + }, + { + "value": "2332", + "text": "西丰县", + "childrens": [] + }, + { + "value": "2333", + "text": "昌图县", + "childrens": [] + }, + { + "value": "2336", + "text": "调兵山市", + "childrens": [] + }, + { + "value": "2337", + "text": "开原市", + "childrens": [] + }, + { + "value": "982330", + "text": "铁岭市", + "childrens": [] + } + ] + }, + { + "value": "2340", + "text": "朝阳市", + "childrens": [ + { + "value": "2341", + "text": "朝阳县", + "childrens": [] + }, + { + "value": "2342", + "text": "建平县", + "childrens": [] + }, + { + "value": "2343", + "text": "凌源市", + "childrens": [] + }, + { + "value": "2344", + "text": "喀喇沁左翼蒙古族自治县", + "childrens": [] + }, + { + "value": "2346", + "text": "北票市", + "childrens": [] + }, + { + "value": "982340", + "text": "朝阳市", + "childrens": [] + } + ] + }, + { + "value": "2360", + "text": "葫芦岛市", + "childrens": [ + { + "value": "2361", + "text": "绥中县", + "childrens": [] + }, + { + "value": "2362", + "text": "建昌县", + "childrens": [] + }, + { + "value": "2363", + "text": "兴城市", + "childrens": [] + }, + { + "value": "982360", + "text": "葫芦岛市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "2400", + "text": "吉林省", + "childrens": [ + { + "value": "2410", + "text": "长春市", + "childrens": [ + { + "value": "2411", + "text": "榆树市", + "childrens": [] + }, + { + "value": "2412", + "text": "农安县", + "childrens": [] + }, + { + "value": "2413", + "text": "德惠市", + "childrens": [] + }, + { + "value": "2415", + "text": "九台市", + "childrens": [] + }, + { + "value": "982410", + "text": "长春市", + "childrens": [] + } + ] + }, + { + "value": "2420", + "text": "吉林市", + "childrens": [ + { + "value": "2421", + "text": "永吉县", + "childrens": [] + }, + { + "value": "2422", + "text": "舒兰市", + "childrens": [] + }, + { + "value": "2423", + "text": "磐石市", + "childrens": [] + }, + { + "value": "2424", + "text": "蛟河市", + "childrens": [] + }, + { + "value": "2425", + "text": "桦甸市", + "childrens": [] + }, + { + "value": "982420", + "text": "吉林市", + "childrens": [] + } + ] + }, + { + "value": "2430", + "text": "四平市", + "childrens": [ + { + "value": "2431", + "text": "梨树县", + "childrens": [] + }, + { + "value": "2432", + "text": "伊通满族自治县", + "childrens": [] + }, + { + "value": "2433", + "text": "双辽市", + "childrens": [] + }, + { + "value": "2434", + "text": "公主岭市", + "childrens": [] + }, + { + "value": "982430", + "text": "四平市", + "childrens": [] + } + ] + }, + { + "value": "2440", + "text": "辽源市", + "childrens": [ + { + "value": "2441", + "text": "东丰县", + "childrens": [] + }, + { + "value": "2442", + "text": "东辽县", + "childrens": [] + }, + { + "value": "982440", + "text": "辽源市", + "childrens": [] + } + ] + }, + { + "value": "2450", + "text": "通化市", + "childrens": [ + { + "value": "2451", + "text": "通化县", + "childrens": [] + }, + { + "value": "2452", + "text": "辉南县", + "childrens": [] + }, + { + "value": "2453", + "text": "柳河县", + "childrens": [] + }, + { + "value": "2454", + "text": "梅河口市", + "childrens": [] + }, + { + "value": "2455", + "text": "集安市", + "childrens": [] + }, + { + "value": "982450", + "text": "通化市", + "childrens": [] + } + ] + }, + { + "value": "2460", + "text": "白山市", + "childrens": [ + { + "value": "2461", + "text": "抚松县", + "childrens": [] + }, + { + "value": "2462", + "text": "靖宇县", + "childrens": [] + }, + { + "value": "2463", + "text": "长白朝鲜族自治县", + "childrens": [] + }, + { + "value": "2464", + "text": "临江市", + "childrens": [] + }, + { + "value": "982460", + "text": "白山市", + "childrens": [] + } + ] + }, + { + "value": "2470", + "text": "白城市", + "childrens": [ + { + "value": "2472", + "text": "洮南市", + "childrens": [] + }, + { + "value": "2474", + "text": "大安市", + "childrens": [] + }, + { + "value": "2477", + "text": "镇赉县", + "childrens": [] + }, + { + "value": "2478", + "text": "通榆县", + "childrens": [] + }, + { + "value": "982470", + "text": "白城市", + "childrens": [] + } + ] + }, + { + "value": "2490", + "text": "延边朝鲜族自治州", + "childrens": [ + { + "value": "2491", + "text": "延吉市", + "childrens": [] + }, + { + "value": "2492", + "text": "图们市", + "childrens": [] + }, + { + "value": "2493", + "text": "敦化市", + "childrens": [] + }, + { + "value": "2494", + "text": "珲春市", + "childrens": [] + }, + { + "value": "2495", + "text": "龙井市", + "childrens": [] + }, + { + "value": "2496", + "text": "和龙市", + "childrens": [] + }, + { + "value": "2497", + "text": "汪清县", + "childrens": [] + }, + { + "value": "2498", + "text": "安图县", + "childrens": [] + }, + { + "value": "982490", + "text": "延边朝鲜族自治州", + "childrens": [] + } + ] + }, + { + "value": "2510", + "text": "松原市", + "childrens": [ + { + "value": "2511", + "text": "扶余县", + "childrens": [] + }, + { + "value": "2512", + "text": "长岭县", + "childrens": [] + }, + { + "value": "2513", + "text": "前郭尔罗斯蒙古族自治县", + "childrens": [] + }, + { + "value": "2514", + "text": "乾安县", + "childrens": [] + }, + { + "value": "982510", + "text": "松原市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "2600", + "text": "黑龙江省", + "childrens": [ + { + "value": "2610", + "text": "哈尔滨市", + "childrens": [ + { + "value": "2613", + "text": "依兰县", + "childrens": [] + }, + { + "value": "2621", + "text": "双城市", + "childrens": [] + }, + { + "value": "2622", + "text": "尚志市", + "childrens": [] + }, + { + "value": "2623", + "text": "宾县", + "childrens": [] + }, + { + "value": "2624", + "text": "五常市", + "childrens": [] + }, + { + "value": "2625", + "text": "巴彦县", + "childrens": [] + }, + { + "value": "2626", + "text": "木兰县", + "childrens": [] + }, + { + "value": "2627", + "text": "通河县", + "childrens": [] + }, + { + "value": "2628", + "text": "方正县", + "childrens": [] + }, + { + "value": "2629", + "text": "延寿县", + "childrens": [] + }, + { + "value": "982610", + "text": "哈尔滨市", + "childrens": [] + } + ] + }, + { + "value": "2640", + "text": "齐齐哈尔市", + "childrens": [ + { + "value": "2641", + "text": "龙江县", + "childrens": [] + }, + { + "value": "2642", + "text": "讷河市", + "childrens": [] + }, + { + "value": "2643", + "text": "依安县", + "childrens": [] + }, + { + "value": "2644", + "text": "泰来县", + "childrens": [] + }, + { + "value": "2645", + "text": "甘南县", + "childrens": [] + }, + { + "value": "2647", + "text": "富裕县", + "childrens": [] + }, + { + "value": "2649", + "text": "克山县", + "childrens": [] + }, + { + "value": "2651", + "text": "克东县", + "childrens": [] + }, + { + "value": "2652", + "text": "拜泉县", + "childrens": [] + }, + { + "value": "982640", + "text": "齐齐哈尔市", + "childrens": [] + } + ] + }, + { + "value": "2660", + "text": "鸡西市", + "childrens": [ + { + "value": "2661", + "text": "鸡东县", + "childrens": [] + }, + { + "value": "2662", + "text": "虎林市", + "childrens": [] + }, + { + "value": "2663", + "text": "密山市", + "childrens": [] + }, + { + "value": "982660", + "text": "鸡西市", + "childrens": [] + } + ] + }, + { + "value": "2670", + "text": "鹤岗市", + "childrens": [ + { + "value": "2671", + "text": "萝北县", + "childrens": [] + }, + { + "value": "2672", + "text": "绥滨县", + "childrens": [] + }, + { + "value": "982670", + "text": "鹤岗市", + "childrens": [] + } + ] + }, + { + "value": "2680", + "text": "双鸭山市", + "childrens": [ + { + "value": "2681", + "text": "集贤县", + "childrens": [] + }, + { + "value": "2682", + "text": "宝清县", + "childrens": [] + }, + { + "value": "2683", + "text": "饶河县", + "childrens": [] + }, + { + "value": "2684", + "text": "友谊县", + "childrens": [] + }, + { + "value": "982680", + "text": "双鸭山市", + "childrens": [] + } + ] + }, + { + "value": "2690", + "text": "大庆市", + "childrens": [ + { + "value": "2691", + "text": "林甸县", + "childrens": [] + }, + { + "value": "2692", + "text": "杜尔伯特蒙古族自治县", + "childrens": [] + }, + { + "value": "2693", + "text": "肇源县", + "childrens": [] + }, + { + "value": "2694", + "text": "肇州县", + "childrens": [] + }, + { + "value": "982690", + "text": "大庆市", + "childrens": [] + } + ] + }, + { + "value": "2710", + "text": "伊春市", + "childrens": [ + { + "value": "2711", + "text": "嘉荫县", + "childrens": [] + }, + { + "value": "2712", + "text": "铁力市", + "childrens": [] + }, + { + "value": "982710", + "text": "伊春市", + "childrens": [] + } + ] + }, + { + "value": "2720", + "text": "佳木斯市", + "childrens": [ + { + "value": "2721", + "text": "桦南县", + "childrens": [] + }, + { + "value": "2723", + "text": "桦川县", + "childrens": [] + }, + { + "value": "2725", + "text": "汤原县", + "childrens": [] + }, + { + "value": "2727", + "text": "抚远县", + "childrens": [] + }, + { + "value": "2729", + "text": "同江市", + "childrens": [] + }, + { + "value": "2731", + "text": "富锦市", + "childrens": [] + }, + { + "value": "982720", + "text": "佳木斯市", + "childrens": [] + } + ] + }, + { + "value": "2740", + "text": "七台河市", + "childrens": [ + { + "value": "2741", + "text": "勃利县", + "childrens": [] + }, + { + "value": "982740", + "text": "七台河市", + "childrens": [] + } + ] + }, + { + "value": "2750", + "text": "牡丹江市", + "childrens": [ + { + "value": "2751", + "text": "宁安市", + "childrens": [] + }, + { + "value": "2752", + "text": "海林市", + "childrens": [] + }, + { + "value": "2753", + "text": "穆棱市", + "childrens": [] + }, + { + "value": "2754", + "text": "东宁县", + "childrens": [] + }, + { + "value": "2755", + "text": "林口县", + "childrens": [] + }, + { + "value": "2757", + "text": "绥芬河市", + "childrens": [] + }, + { + "value": "982750", + "text": "牡丹江市", + "childrens": [] + } + ] + }, + { + "value": "2760", + "text": "绥化市", + "childrens": [ + { + "value": "2762", + "text": "安达市", + "childrens": [] + }, + { + "value": "2763", + "text": "肇东市", + "childrens": [] + }, + { + "value": "2764", + "text": "海伦市", + "childrens": [] + }, + { + "value": "2765", + "text": "望奎县", + "childrens": [] + }, + { + "value": "2766", + "text": "兰西县", + "childrens": [] + }, + { + "value": "2767", + "text": "青冈县", + "childrens": [] + }, + { + "value": "2771", + "text": "庆安县", + "childrens": [] + }, + { + "value": "2772", + "text": "明水县", + "childrens": [] + }, + { + "value": "2773", + "text": "绥棱县", + "childrens": [] + }, + { + "value": "982760", + "text": "绥化市", + "childrens": [] + } + ] + }, + { + "value": "2780", + "text": "黑河市", + "childrens": [ + { + "value": "2782", + "text": "北安市", + "childrens": [] + }, + { + "value": "2783", + "text": "五大连池市", + "childrens": [] + }, + { + "value": "2784", + "text": "嫩江县", + "childrens": [] + }, + { + "value": "2786", + "text": "逊克县", + "childrens": [] + }, + { + "value": "2787", + "text": "孙吴县", + "childrens": [] + }, + { + "value": "982780", + "text": "黑河市", + "childrens": [] + } + ] + }, + { + "value": "2790", + "text": "大兴安岭地区", + "childrens": [ + { + "value": "2791", + "text": "呼玛县", + "childrens": [] + }, + { + "value": "2792", + "text": "塔河县", + "childrens": [] + }, + { + "value": "2793", + "text": "漠河县", + "childrens": [] + }, + { + "value": "982790", + "text": "大兴安岭地区", + "childrens": [] + } + ] + } + ] + }, + { + "value": "3000", + "text": "江苏省", + "childrens": [ + { + "value": "3010", + "text": "南京市", + "childrens": [ + { + "value": "3014", + "text": "溧水县", + "childrens": [] + }, + { + "value": "3015", + "text": "高淳县", + "childrens": [] + }, + { + "value": "983010", + "text": "南京市", + "childrens": [] + } + ] + }, + { + "value": "3020", + "text": "无锡市", + "childrens": [ + { + "value": "3022", + "text": "江阴市", + "childrens": [] + }, + { + "value": "3023", + "text": "宜兴市", + "childrens": [] + }, + { + "value": "983020", + "text": "无锡市", + "childrens": [] + } + ] + }, + { + "value": "3030", + "text": "徐州市", + "childrens": [ + { + "value": "3031", + "text": "丰县", + "childrens": [] + }, + { + "value": "3032", + "text": "沛县", + "childrens": [] + }, + { + "value": "3033", + "text": "铜山县", + "childrens": [] + }, + { + "value": "3034", + "text": "睢宁县", + "childrens": [] + }, + { + "value": "3035", + "text": "邳州市", + "childrens": [] + }, + { + "value": "3036", + "text": "新沂市", + "childrens": [] + }, + { + "value": "983030", + "text": "徐州市", + "childrens": [] + } + ] + }, + { + "value": "3040", + "text": "常州市", + "childrens": [ + { + "value": "3041", + "text": "武进区", + "childrens": [] + }, + { + "value": "3042", + "text": "金坛市", + "childrens": [] + }, + { + "value": "3043", + "text": "溧阳市", + "childrens": [] + }, + { + "value": "983040", + "text": "常州市", + "childrens": [] + } + ] + }, + { + "value": "3050", + "text": "苏州市", + "childrens": [ + { + "value": "3051", + "text": "太仓市", + "childrens": [] + }, + { + "value": "3052", + "text": "昆山市", + "childrens": [] + }, + { + "value": "3054", + "text": "吴江市", + "childrens": [] + }, + { + "value": "3055", + "text": "常熟市", + "childrens": [] + }, + { + "value": "3056", + "text": "张家港市", + "childrens": [] + }, + { + "value": "983050", + "text": "苏州市", + "childrens": [] + } + ] + }, + { + "value": "3060", + "text": "南通市", + "childrens": [ + { + "value": "3061", + "text": "海安县", + "childrens": [] + }, + { + "value": "3062", + "text": "如皋市", + "childrens": [] + }, + { + "value": "3063", + "text": "如东县", + "childrens": [] + }, + { + "value": "3065", + "text": "海门市", + "childrens": [] + }, + { + "value": "3066", + "text": "启东市", + "childrens": [] + }, + { + "value": "983060", + "text": "南通市", + "childrens": [] + } + ] + }, + { + "value": "3070", + "text": "连云港市", + "childrens": [ + { + "value": "3071", + "text": "赣榆县", + "childrens": [] + }, + { + "value": "3072", + "text": "东海县", + "childrens": [] + }, + { + "value": "3073", + "text": "灌云县", + "childrens": [] + }, + { + "value": "3074", + "text": "灌南县", + "childrens": [] + }, + { + "value": "983070", + "text": "连云港市", + "childrens": [] + } + ] + }, + { + "value": "3080", + "text": "淮安市", + "childrens": [ + { + "value": "3085", + "text": "涟水县", + "childrens": [] + }, + { + "value": "3087", + "text": "洪泽县", + "childrens": [] + }, + { + "value": "3088", + "text": "盱眙县", + "childrens": [] + }, + { + "value": "3089", + "text": "金湖县", + "childrens": [] + }, + { + "value": "983080", + "text": "淮安市", + "childrens": [] + } + ] + }, + { + "value": "3110", + "text": "盐城市", + "childrens": [ + { + "value": "3111", + "text": "响水县", + "childrens": [] + }, + { + "value": "3112", + "text": "滨海县", + "childrens": [] + }, + { + "value": "3113", + "text": "阜宁县", + "childrens": [] + }, + { + "value": "3114", + "text": "射阳县", + "childrens": [] + }, + { + "value": "3115", + "text": "建湖县", + "childrens": [] + }, + { + "value": "3116", + "text": "大丰市", + "childrens": [] + }, + { + "value": "3117", + "text": "东台市", + "childrens": [] + }, + { + "value": "983110", + "text": "盐城市", + "childrens": [] + } + ] + }, + { + "value": "3120", + "text": "扬州市", + "childrens": [ + { + "value": "3121", + "text": "高邮市", + "childrens": [] + }, + { + "value": "3122", + "text": "宝应县", + "childrens": [] + }, + { + "value": "3125", + "text": "江都市", + "childrens": [] + }, + { + "value": "3129", + "text": "仪征市", + "childrens": [] + }, + { + "value": "983120", + "text": "扬州市", + "childrens": [] + } + ] + }, + { + "value": "3140", + "text": "镇江市", + "childrens": [ + { + "value": "3142", + "text": "句容市", + "childrens": [] + }, + { + "value": "3143", + "text": "扬中市", + "childrens": [] + }, + { + "value": "3144", + "text": "丹阳市", + "childrens": [] + }, + { + "value": "983140", + "text": "镇江市", + "childrens": [] + } + ] + }, + { + "value": "3160", + "text": "泰州市", + "childrens": [ + { + "value": "3161", + "text": "兴化市", + "childrens": [] + }, + { + "value": "3162", + "text": "靖江市", + "childrens": [] + }, + { + "value": "3163", + "text": "泰兴市", + "childrens": [] + }, + { + "value": "3164", + "text": "姜堰市", + "childrens": [] + }, + { + "value": "983160", + "text": "泰州市", + "childrens": [] + } + ] + }, + { + "value": "3180", + "text": "宿迁市", + "childrens": [ + { + "value": "3181", + "text": "沭阳县", + "childrens": [] + }, + { + "value": "3182", + "text": "泗阳县", + "childrens": [] + }, + { + "value": "3183", + "text": "泗洪县", + "childrens": [] + }, + { + "value": "983180", + "text": "宿迁市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "3300", + "text": "浙江省", + "childrens": [ + { + "value": "3310", + "text": "杭州市", + "childrens": [ + { + "value": "3311", + "text": "桐庐县", + "childrens": [] + }, + { + "value": "3312", + "text": "富阳市", + "childrens": [] + }, + { + "value": "3313", + "text": "临安市", + "childrens": [] + }, + { + "value": "3315", + "text": "建德市", + "childrens": [] + }, + { + "value": "3316", + "text": "淳安县", + "childrens": [] + }, + { + "value": "983310", + "text": "杭州市", + "childrens": [] + } + ] + }, + { + "value": "3320", + "text": "宁波市", + "childrens": [ + { + "value": "3321", + "text": "象山县", + "childrens": [] + }, + { + "value": "3322", + "text": "宁海县", + "childrens": [] + }, + { + "value": "3323", + "text": "鄞州区", + "childrens": [] + }, + { + "value": "3324", + "text": "余姚市", + "childrens": [] + }, + { + "value": "3325", + "text": "慈溪市", + "childrens": [] + }, + { + "value": "3326", + "text": "奉化市", + "childrens": [] + }, + { + "value": "983320", + "text": "宁波市", + "childrens": [] + } + ] + }, + { + "value": "3330", + "text": "温州市", + "childrens": [ + { + "value": "3332", + "text": "洞头县", + "childrens": [] + }, + { + "value": "3333", + "text": "乐清市", + "childrens": [] + }, + { + "value": "3334", + "text": "永嘉县", + "childrens": [] + }, + { + "value": "3335", + "text": "平阳县", + "childrens": [] + }, + { + "value": "3336", + "text": "苍南县", + "childrens": [] + }, + { + "value": "3337", + "text": "文成县", + "childrens": [] + }, + { + "value": "3338", + "text": "泰顺县", + "childrens": [] + }, + { + "value": "3339", + "text": "瑞安市", + "childrens": [] + }, + { + "value": "983330", + "text": "温州市", + "childrens": [] + } + ] + }, + { + "value": "3350", + "text": "嘉兴市", + "childrens": [ + { + "value": "3351", + "text": "嘉善县", + "childrens": [] + }, + { + "value": "3352", + "text": "平湖市", + "childrens": [] + }, + { + "value": "3353", + "text": "海盐县", + "childrens": [] + }, + { + "value": "3354", + "text": "桐乡市", + "childrens": [] + }, + { + "value": "3355", + "text": "海宁市", + "childrens": [] + }, + { + "value": "983350", + "text": "嘉兴市", + "childrens": [] + } + ] + }, + { + "value": "3360", + "text": "湖州市", + "childrens": [ + { + "value": "3361", + "text": "德清县", + "childrens": [] + }, + { + "value": "3362", + "text": "长兴县", + "childrens": [] + }, + { + "value": "3363", + "text": "安吉县", + "childrens": [] + }, + { + "value": "983360", + "text": "湖州市", + "childrens": [] + } + ] + }, + { + "value": "3370", + "text": "绍兴市", + "childrens": [ + { + "value": "3371", + "text": "绍兴县", + "childrens": [] + }, + { + "value": "3372", + "text": "上虞市", + "childrens": [] + }, + { + "value": "3373", + "text": "嵊州市", + "childrens": [] + }, + { + "value": "3374", + "text": "新昌县", + "childrens": [] + }, + { + "value": "3375", + "text": "诸暨市", + "childrens": [] + }, + { + "value": "983370", + "text": "绍兴市", + "childrens": [] + } + ] + }, + { + "value": "3380", + "text": "金华市", + "childrens": [ + { + "value": "3382", + "text": "永康市", + "childrens": [] + }, + { + "value": "3383", + "text": "武义县", + "childrens": [] + }, + { + "value": "3384", + "text": "浦江县", + "childrens": [] + }, + { + "value": "3385", + "text": "磐安县", + "childrens": [] + }, + { + "value": "3386", + "text": "兰溪市", + "childrens": [] + }, + { + "value": "3387", + "text": "义乌市", + "childrens": [] + }, + { + "value": "3388", + "text": "东阳市", + "childrens": [] + }, + { + "value": "983380", + "text": "金华市", + "childrens": [] + } + ] + }, + { + "value": "3410", + "text": "衢州市", + "childrens": [ + { + "value": "3412", + "text": "常山县", + "childrens": [] + }, + { + "value": "3413", + "text": "开化县", + "childrens": [] + }, + { + "value": "3414", + "text": "龙游县", + "childrens": [] + }, + { + "value": "3415", + "text": "江山市", + "childrens": [] + }, + { + "value": "983410", + "text": "衢州市", + "childrens": [] + } + ] + }, + { + "value": "3420", + "text": "舟山市", + "childrens": [ + { + "value": "3421", + "text": "岱山县", + "childrens": [] + }, + { + "value": "3422", + "text": "嵊泗县", + "childrens": [] + }, + { + "value": "983420", + "text": "舟山市", + "childrens": [] + } + ] + }, + { + "value": "3430", + "text": "丽水市", + "childrens": [ + { + "value": "3432", + "text": "青田县", + "childrens": [] + }, + { + "value": "3433", + "text": "云和县", + "childrens": [] + }, + { + "value": "3434", + "text": "庆元县", + "childrens": [] + }, + { + "value": "3435", + "text": "缙云县", + "childrens": [] + }, + { + "value": "3436", + "text": "遂昌县", + "childrens": [] + }, + { + "value": "3437", + "text": "松阳县", + "childrens": [] + }, + { + "value": "3438", + "text": "景宁畲族自治县", + "childrens": [] + }, + { + "value": "3439", + "text": "龙泉市", + "childrens": [] + }, + { + "value": "983430", + "text": "丽水市", + "childrens": [] + } + ] + }, + { + "value": "3450", + "text": "台州市", + "childrens": [ + { + "value": "3451", + "text": "椒江区", + "childrens": [] + }, + { + "value": "3452", + "text": "临海市", + "childrens": [] + }, + { + "value": "3454", + "text": "温岭市", + "childrens": [] + }, + { + "value": "3455", + "text": "仙居县", + "childrens": [] + }, + { + "value": "3456", + "text": "天台县", + "childrens": [] + }, + { + "value": "3457", + "text": "三门县", + "childrens": [] + }, + { + "value": "3458", + "text": "玉环县", + "childrens": [] + }, + { + "value": "983450", + "text": "台州市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "3600", + "text": "安徽省", + "childrens": [ + { + "value": "3610", + "text": "合肥市", + "childrens": [ + { + "value": "3611", + "text": "长丰县", + "childrens": [] + }, + { + "value": "3612", + "text": "肥东县", + "childrens": [] + }, + { + "value": "3613", + "text": "肥西县", + "childrens": [] + }, + { + "value": "983610", + "text": "合肥市", + "childrens": [] + } + ] + }, + { + "value": "3620", + "text": "芜湖市", + "childrens": [ + { + "value": "3621", + "text": "芜湖县", + "childrens": [] + }, + { + "value": "3622", + "text": "繁昌县", + "childrens": [] + }, + { + "value": "3623", + "text": "南陵县", + "childrens": [] + }, + { + "value": "983620", + "text": "芜湖市", + "childrens": [] + } + ] + }, + { + "value": "3630", + "text": "蚌埠市", + "childrens": [ + { + "value": "3631", + "text": "怀远县", + "childrens": [] + }, + { + "value": "3632", + "text": "五河县", + "childrens": [] + }, + { + "value": "3633", + "text": "固镇县", + "childrens": [] + }, + { + "value": "983630", + "text": "蚌埠市", + "childrens": [] + } + ] + }, + { + "value": "3640", + "text": "淮南市", + "childrens": [ + { + "value": "3641", + "text": "凤台县", + "childrens": [] + }, + { + "value": "983640", + "text": "淮南市", + "childrens": [] + } + ] + }, + { + "value": "3650", + "text": "马鞍山市", + "childrens": [ + { + "value": "3651", + "text": "当涂县", + "childrens": [] + }, + { + "value": "983650", + "text": "马鞍山市", + "childrens": [] + } + ] + }, + { + "value": "3660", + "text": "淮北市", + "childrens": [ + { + "value": "3661", + "text": "濉溪县", + "childrens": [] + }, + { + "value": "983660", + "text": "淮北市", + "childrens": [] + } + ] + }, + { + "value": "3670", + "text": "铜陵市", + "childrens": [ + { + "value": "3671", + "text": "铜陵县", + "childrens": [] + }, + { + "value": "983670", + "text": "铜陵市", + "childrens": [] + } + ] + }, + { + "value": "3680", + "text": "安庆市", + "childrens": [ + { + "value": "3681", + "text": "桐城市", + "childrens": [] + }, + { + "value": "3682", + "text": "怀宁县", + "childrens": [] + }, + { + "value": "3683", + "text": "枞阳县", + "childrens": [] + }, + { + "value": "3684", + "text": "潜山县", + "childrens": [] + }, + { + "value": "3685", + "text": "太湖县", + "childrens": [] + }, + { + "value": "3686", + "text": "宿松县", + "childrens": [] + }, + { + "value": "3687", + "text": "望江县", + "childrens": [] + }, + { + "value": "3688", + "text": "岳西县", + "childrens": [] + }, + { + "value": "983680", + "text": "安庆市", + "childrens": [] + } + ] + }, + { + "value": "3710", + "text": "黄山市", + "childrens": [ + { + "value": "3711", + "text": "歙县", + "childrens": [] + }, + { + "value": "3712", + "text": "休宁县", + "childrens": [] + }, + { + "value": "3713", + "text": "黟县", + "childrens": [] + }, + { + "value": "3714", + "text": "祁门县", + "childrens": [] + }, + { + "value": "983710", + "text": "黄山市", + "childrens": [] + } + ] + }, + { + "value": "3720", + "text": "阜阳市", + "childrens": [ + { + "value": "3724", + "text": "临泉县", + "childrens": [] + }, + { + "value": "3725", + "text": "太和县", + "childrens": [] + }, + { + "value": "3728", + "text": "阜南县", + "childrens": [] + }, + { + "value": "3729", + "text": "颍上县", + "childrens": [] + }, + { + "value": "3731", + "text": "界首市", + "childrens": [] + }, + { + "value": "983720", + "text": "阜阳市", + "childrens": [] + } + ] + }, + { + "value": "3740", + "text": "宿州市", + "childrens": [ + { + "value": "3742", + "text": "砀山县", + "childrens": [] + }, + { + "value": "3743", + "text": "萧县", + "childrens": [] + }, + { + "value": "3745", + "text": "灵璧县", + "childrens": [] + }, + { + "value": "3746", + "text": "泗县", + "childrens": [] + }, + { + "value": "983740", + "text": "宿州市", + "childrens": [] + } + ] + }, + { + "value": "3750", + "text": "滁州市", + "childrens": [ + { + "value": "3752", + "text": "天长市", + "childrens": [] + }, + { + "value": "3753", + "text": "来安县", + "childrens": [] + }, + { + "value": "3754", + "text": "全椒县", + "childrens": [] + }, + { + "value": "3755", + "text": "定远县", + "childrens": [] + }, + { + "value": "3756", + "text": "凤阳县", + "childrens": [] + }, + { + "value": "3757", + "text": "明光市", + "childrens": [] + }, + { + "value": "983750", + "text": "滁州市", + "childrens": [] + } + ] + }, + { + "value": "3760", + "text": "六安市", + "childrens": [ + { + "value": "3763", + "text": "寿县", + "childrens": [] + }, + { + "value": "3764", + "text": "霍邱县", + "childrens": [] + }, + { + "value": "3765", + "text": "舒城县", + "childrens": [] + }, + { + "value": "3766", + "text": "金寨县", + "childrens": [] + }, + { + "value": "3767", + "text": "霍山县", + "childrens": [] + }, + { + "value": "983760", + "text": "六安市", + "childrens": [] + } + ] + }, + { + "value": "3770", + "text": "宣城市", + "childrens": [ + { + "value": "3772", + "text": "郎溪县", + "childrens": [] + }, + { + "value": "3773", + "text": "广德县", + "childrens": [] + }, + { + "value": "3774", + "text": "宁国市", + "childrens": [] + }, + { + "value": "3775", + "text": "泾县", + "childrens": [] + }, + { + "value": "3776", + "text": "旌德县", + "childrens": [] + }, + { + "value": "3777", + "text": "绩溪县", + "childrens": [] + }, + { + "value": "983770", + "text": "宣城市", + "childrens": [] + } + ] + }, + { + "value": "3780", + "text": "巢湖市", + "childrens": [ + { + "value": "3782", + "text": "庐江县", + "childrens": [] + }, + { + "value": "3783", + "text": "无为县", + "childrens": [] + }, + { + "value": "3784", + "text": "含山县", + "childrens": [] + }, + { + "value": "3785", + "text": "和县", + "childrens": [] + }, + { + "value": "983780", + "text": "巢湖市", + "childrens": [] + } + ] + }, + { + "value": "3790", + "text": "池州市", + "childrens": [ + { + "value": "3792", + "text": "东至县", + "childrens": [] + }, + { + "value": "3793", + "text": "石台县", + "childrens": [] + }, + { + "value": "3794", + "text": "青阳县", + "childrens": [] + }, + { + "value": "983790", + "text": "池州市", + "childrens": [] + } + ] + }, + { + "value": "3810", + "text": "亳州市", + "childrens": [ + { + "value": "3811", + "text": "涡阳县", + "childrens": [] + }, + { + "value": "3812", + "text": "蒙城县", + "childrens": [] + }, + { + "value": "3813", + "text": "利辛县", + "childrens": [] + }, + { + "value": "983810", + "text": "亳州市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "3900", + "text": "福建省", + "childrens": [ + { + "value": "3910", + "text": "福州市", + "childrens": [ + { + "value": "3911", + "text": "闽侯县", + "childrens": [] + }, + { + "value": "3912", + "text": "连江县", + "childrens": [] + }, + { + "value": "3913", + "text": "罗源县", + "childrens": [] + }, + { + "value": "3914", + "text": "闽清县", + "childrens": [] + }, + { + "value": "3915", + "text": "永泰县", + "childrens": [] + }, + { + "value": "3916", + "text": "长乐市", + "childrens": [] + }, + { + "value": "3917", + "text": "福清市", + "childrens": [] + }, + { + "value": "3918", + "text": "平潭县", + "childrens": [] + }, + { + "value": "983910", + "text": "福州市", + "childrens": [] + } + ] + }, + { + "value": "3930", + "text": "厦门市", + "childrens": [ + { + "value": "983930", + "text": "厦门市", + "childrens": [] + } + ] + }, + { + "value": "3940", + "text": "莆田市", + "childrens": [ + { + "value": "3942", + "text": "仙游县", + "childrens": [] + }, + { + "value": "983940", + "text": "莆田市", + "childrens": [] + } + ] + }, + { + "value": "3950", + "text": "三明市", + "childrens": [ + { + "value": "3951", + "text": "明溪县", + "childrens": [] + }, + { + "value": "3952", + "text": "清流县", + "childrens": [] + }, + { + "value": "3953", + "text": "宁化县", + "childrens": [] + }, + { + "value": "3954", + "text": "大田县", + "childrens": [] + }, + { + "value": "3955", + "text": "尤溪县", + "childrens": [] + }, + { + "value": "3956", + "text": "沙县", + "childrens": [] + }, + { + "value": "3957", + "text": "将乐县", + "childrens": [] + }, + { + "value": "3958", + "text": "泰宁县", + "childrens": [] + }, + { + "value": "3959", + "text": "建宁县", + "childrens": [] + }, + { + "value": "3961", + "text": "永安市", + "childrens": [] + }, + { + "value": "983950", + "text": "三明市", + "childrens": [] + } + ] + }, + { + "value": "3970", + "text": "泉州市", + "childrens": [ + { + "value": "3971", + "text": "惠安县", + "childrens": [] + }, + { + "value": "3972", + "text": "晋江市", + "childrens": [] + }, + { + "value": "3973", + "text": "南安市", + "childrens": [] + }, + { + "value": "3974", + "text": "安溪县", + "childrens": [] + }, + { + "value": "3975", + "text": "永春县", + "childrens": [] + }, + { + "value": "3976", + "text": "德化县", + "childrens": [] + }, + { + "value": "3977", + "text": "金门县", + "childrens": [] + }, + { + "value": "3978", + "text": "石狮市", + "childrens": [] + }, + { + "value": "983970", + "text": "泉州市", + "childrens": [] + } + ] + }, + { + "value": "3990", + "text": "漳州市", + "childrens": [ + { + "value": "3991", + "text": "龙海市", + "childrens": [] + }, + { + "value": "3992", + "text": "云霄县", + "childrens": [] + }, + { + "value": "3993", + "text": "漳浦县", + "childrens": [] + }, + { + "value": "3994", + "text": "诏安县", + "childrens": [] + }, + { + "value": "3995", + "text": "长泰县", + "childrens": [] + }, + { + "value": "3996", + "text": "东山县", + "childrens": [] + }, + { + "value": "3997", + "text": "南靖县", + "childrens": [] + }, + { + "value": "3998", + "text": "平和县", + "childrens": [] + }, + { + "value": "3999", + "text": "华安县", + "childrens": [] + }, + { + "value": "983990", + "text": "漳州市", + "childrens": [] + } + ] + }, + { + "value": "4010", + "text": "南平市", + "childrens": [ + { + "value": "4012", + "text": "邵武市", + "childrens": [] + }, + { + "value": "4013", + "text": "顺昌县", + "childrens": [] + }, + { + "value": "4014", + "text": "建阳市", + "childrens": [] + }, + { + "value": "4015", + "text": "建瓯市", + "childrens": [] + }, + { + "value": "4016", + "text": "浦城县", + "childrens": [] + }, + { + "value": "4017", + "text": "武夷山市", + "childrens": [] + }, + { + "value": "4018", + "text": "光泽县", + "childrens": [] + }, + { + "value": "4019", + "text": "松溪县", + "childrens": [] + }, + { + "value": "4021", + "text": "政和县", + "childrens": [] + }, + { + "value": "984010", + "text": "南平市", + "childrens": [] + } + ] + }, + { + "value": "4030", + "text": "宁德市", + "childrens": [ + { + "value": "4032", + "text": "福鼎市", + "childrens": [] + }, + { + "value": "4033", + "text": "霞浦县", + "childrens": [] + }, + { + "value": "4034", + "text": "福安市", + "childrens": [] + }, + { + "value": "4035", + "text": "古田县", + "childrens": [] + }, + { + "value": "4036", + "text": "屏南县", + "childrens": [] + }, + { + "value": "4037", + "text": "寿宁县", + "childrens": [] + }, + { + "value": "4038", + "text": "周宁县", + "childrens": [] + }, + { + "value": "4039", + "text": "柘荣县", + "childrens": [] + }, + { + "value": "984030", + "text": "宁德市", + "childrens": [] + } + ] + }, + { + "value": "4050", + "text": "龙岩市", + "childrens": [ + { + "value": "4052", + "text": "长汀县", + "childrens": [] + }, + { + "value": "4053", + "text": "永定县", + "childrens": [] + }, + { + "value": "4054", + "text": "上杭县", + "childrens": [] + }, + { + "value": "4055", + "text": "武平县", + "childrens": [] + }, + { + "value": "4056", + "text": "漳平市", + "childrens": [] + }, + { + "value": "4057", + "text": "连城县", + "childrens": [] + }, + { + "value": "984050", + "text": "龙岩市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "4200", + "text": "江西省", + "childrens": [ + { + "value": "4210", + "text": "南昌市", + "childrens": [ + { + "value": "4211", + "text": "南昌县", + "childrens": [] + }, + { + "value": "4212", + "text": "新建县", + "childrens": [] + }, + { + "value": "4213", + "text": "安义县", + "childrens": [] + }, + { + "value": "4214", + "text": "进贤县", + "childrens": [] + }, + { + "value": "984210", + "text": "南昌市", + "childrens": [] + } + ] + }, + { + "value": "4220", + "text": "景德镇市", + "childrens": [ + { + "value": "4221", + "text": "乐平市", + "childrens": [] + }, + { + "value": "4222", + "text": "浮梁县", + "childrens": [] + }, + { + "value": "984220", + "text": "景德镇市", + "childrens": [] + } + ] + }, + { + "value": "4230", + "text": "萍乡市", + "childrens": [ + { + "value": "4231", + "text": "莲花县", + "childrens": [] + }, + { + "value": "4232", + "text": "上栗县", + "childrens": [] + }, + { + "value": "4233", + "text": "芦溪县", + "childrens": [] + }, + { + "value": "984230", + "text": "萍乡市", + "childrens": [] + } + ] + }, + { + "value": "4240", + "text": "九江市", + "childrens": [ + { + "value": "4241", + "text": "九江县", + "childrens": [] + }, + { + "value": "4242", + "text": "瑞昌市", + "childrens": [] + }, + { + "value": "4243", + "text": "武宁县", + "childrens": [] + }, + { + "value": "4244", + "text": "修水县", + "childrens": [] + }, + { + "value": "4245", + "text": "永修县", + "childrens": [] + }, + { + "value": "4246", + "text": "德安县", + "childrens": [] + }, + { + "value": "4247", + "text": "星子县", + "childrens": [] + }, + { + "value": "4248", + "text": "都昌县", + "childrens": [] + }, + { + "value": "4249", + "text": "湖口县", + "childrens": [] + }, + { + "value": "4251", + "text": "彭泽县", + "childrens": [] + }, + { + "value": "984240", + "text": "九江市", + "childrens": [] + } + ] + }, + { + "value": "4260", + "text": "新余市", + "childrens": [ + { + "value": "4261", + "text": "分宜县", + "childrens": [] + }, + { + "value": "984260", + "text": "新余市", + "childrens": [] + } + ] + }, + { + "value": "4270", + "text": "鹰潭市", + "childrens": [ + { + "value": "4271", + "text": "贵溪市", + "childrens": [] + }, + { + "value": "4272", + "text": "余江县", + "childrens": [] + }, + { + "value": "984270", + "text": "鹰潭市", + "childrens": [] + } + ] + }, + { + "value": "4280", + "text": "赣州市", + "childrens": [ + { + "value": "4282", + "text": "赣县", + "childrens": [] + }, + { + "value": "4283", + "text": "南康市", + "childrens": [] + }, + { + "value": "4284", + "text": "信丰县", + "childrens": [] + }, + { + "value": "4285", + "text": "大余县", + "childrens": [] + }, + { + "value": "4286", + "text": "上犹县", + "childrens": [] + }, + { + "value": "4287", + "text": "崇义县", + "childrens": [] + }, + { + "value": "4288", + "text": "安远县", + "childrens": [] + }, + { + "value": "4289", + "text": "龙南县", + "childrens": [] + }, + { + "value": "4291", + "text": "定南县", + "childrens": [] + }, + { + "value": "4292", + "text": "全南县", + "childrens": [] + }, + { + "value": "4293", + "text": "宁都县", + "childrens": [] + }, + { + "value": "4294", + "text": "于都县", + "childrens": [] + }, + { + "value": "4295", + "text": "兴国县", + "childrens": [] + }, + { + "value": "4296", + "text": "瑞金市", + "childrens": [] + }, + { + "value": "4297", + "text": "会昌县", + "childrens": [] + }, + { + "value": "4298", + "text": "寻乌县", + "childrens": [] + }, + { + "value": "4299", + "text": "石城县", + "childrens": [] + }, + { + "value": "984280", + "text": "赣州市", + "childrens": [] + } + ] + }, + { + "value": "4310", + "text": "宜春市", + "childrens": [ + { + "value": "4312", + "text": "丰城市", + "childrens": [] + }, + { + "value": "4313", + "text": "樟树市", + "childrens": [] + }, + { + "value": "4314", + "text": "高安市", + "childrens": [] + }, + { + "value": "4315", + "text": "奉新县", + "childrens": [] + }, + { + "value": "4316", + "text": "万载县", + "childrens": [] + }, + { + "value": "4317", + "text": "上高县", + "childrens": [] + }, + { + "value": "4318", + "text": "宜丰县", + "childrens": [] + }, + { + "value": "4319", + "text": "靖安县", + "childrens": [] + }, + { + "value": "4321", + "text": "铜鼓县", + "childrens": [] + }, + { + "value": "984310", + "text": "宜春市", + "childrens": [] + } + ] + }, + { + "value": "4330", + "text": "上饶市", + "childrens": [ + { + "value": "4332", + "text": "上饶县", + "childrens": [] + }, + { + "value": "4333", + "text": "广丰县", + "childrens": [] + }, + { + "value": "4334", + "text": "玉山县", + "childrens": [] + }, + { + "value": "4335", + "text": "铅山县", + "childrens": [] + }, + { + "value": "4336", + "text": "横峰县", + "childrens": [] + }, + { + "value": "4337", + "text": "弋阳县", + "childrens": [] + }, + { + "value": "4338", + "text": "余干县", + "childrens": [] + }, + { + "value": "4339", + "text": "鄱阳县", + "childrens": [] + }, + { + "value": "4341", + "text": "万年县", + "childrens": [] + }, + { + "value": "4342", + "text": "德兴市", + "childrens": [] + }, + { + "value": "4343", + "text": "婺源县", + "childrens": [] + }, + { + "value": "984330", + "text": "上饶市", + "childrens": [] + } + ] + }, + { + "value": "4350", + "text": "吉安市", + "childrens": [ + { + "value": "4352", + "text": "井冈山市", + "childrens": [] + }, + { + "value": "4353", + "text": "吉安县", + "childrens": [] + }, + { + "value": "4354", + "text": "吉水县", + "childrens": [] + }, + { + "value": "4355", + "text": "峡江县", + "childrens": [] + }, + { + "value": "4356", + "text": "新干县", + "childrens": [] + }, + { + "value": "4357", + "text": "永丰县", + "childrens": [] + }, + { + "value": "4358", + "text": "泰和县", + "childrens": [] + }, + { + "value": "4359", + "text": "遂川县", + "childrens": [] + }, + { + "value": "4361", + "text": "万安县", + "childrens": [] + }, + { + "value": "4362", + "text": "安福县", + "childrens": [] + }, + { + "value": "4363", + "text": "永新县", + "childrens": [] + }, + { + "value": "984350", + "text": "吉安市", + "childrens": [] + } + ] + }, + { + "value": "4370", + "text": "抚州市", + "childrens": [ + { + "value": "4372", + "text": "南城县", + "childrens": [] + }, + { + "value": "4373", + "text": "黎川县", + "childrens": [] + }, + { + "value": "4374", + "text": "南丰县", + "childrens": [] + }, + { + "value": "4375", + "text": "崇仁县", + "childrens": [] + }, + { + "value": "4376", + "text": "乐安县", + "childrens": [] + }, + { + "value": "4377", + "text": "宜黄县", + "childrens": [] + }, + { + "value": "4378", + "text": "金溪县", + "childrens": [] + }, + { + "value": "4379", + "text": "资溪县", + "childrens": [] + }, + { + "value": "4381", + "text": "东乡县", + "childrens": [] + }, + { + "value": "4382", + "text": "广昌县", + "childrens": [] + }, + { + "value": "984370", + "text": "抚州市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "4500", + "text": "山东省", + "childrens": [ + { + "value": "4510", + "text": "济南市", + "childrens": [ + { + "value": "4511", + "text": "章丘市", + "childrens": [] + }, + { + "value": "4513", + "text": "平阴县", + "childrens": [] + }, + { + "value": "4514", + "text": "济阳县", + "childrens": [] + }, + { + "value": "4515", + "text": "商河县", + "childrens": [] + }, + { + "value": "984510", + "text": "济南市", + "childrens": [] + } + ] + }, + { + "value": "4520", + "text": "青岛市", + "childrens": [ + { + "value": "4521", + "text": "即墨市", + "childrens": [] + }, + { + "value": "4522", + "text": "胶南市", + "childrens": [] + }, + { + "value": "4523", + "text": "莱西市", + "childrens": [] + }, + { + "value": "4524", + "text": "平度市", + "childrens": [] + }, + { + "value": "4525", + "text": "胶州市", + "childrens": [] + }, + { + "value": "984520", + "text": "青岛市", + "childrens": [] + } + ] + }, + { + "value": "4530", + "text": "淄博市", + "childrens": [ + { + "value": "4531", + "text": "桓台县", + "childrens": [] + }, + { + "value": "4532", + "text": "高青县", + "childrens": [] + }, + { + "value": "4533", + "text": "沂源县", + "childrens": [] + }, + { + "value": "984530", + "text": "淄博市", + "childrens": [] + } + ] + }, + { + "value": "4540", + "text": "枣庄市", + "childrens": [ + { + "value": "4541", + "text": "滕州市", + "childrens": [] + }, + { + "value": "984540", + "text": "枣庄市", + "childrens": [] + } + ] + }, + { + "value": "4550", + "text": "东营市", + "childrens": [ + { + "value": "4551", + "text": "垦利县", + "childrens": [] + }, + { + "value": "4552", + "text": "利津县", + "childrens": [] + }, + { + "value": "4553", + "text": "广饶县", + "childrens": [] + }, + { + "value": "984550", + "text": "东营市", + "childrens": [] + } + ] + }, + { + "value": "4560", + "text": "烟台市", + "childrens": [ + { + "value": "4561", + "text": "蓬莱市", + "childrens": [] + }, + { + "value": "4562", + "text": "招远市", + "childrens": [] + }, + { + "value": "4563", + "text": "栖霞市", + "childrens": [] + }, + { + "value": "4564", + "text": "海阳市", + "childrens": [] + }, + { + "value": "4566", + "text": "长岛县", + "childrens": [] + }, + { + "value": "4567", + "text": "龙口市", + "childrens": [] + }, + { + "value": "4568", + "text": "莱阳市", + "childrens": [] + }, + { + "value": "4569", + "text": "莱州市", + "childrens": [] + }, + { + "value": "984560", + "text": "烟台市", + "childrens": [] + } + ] + }, + { + "value": "4580", + "text": "潍坊市", + "childrens": [ + { + "value": "4581", + "text": "安丘市", + "childrens": [] + }, + { + "value": "4582", + "text": "寿光市", + "childrens": [] + }, + { + "value": "4583", + "text": "临朐县", + "childrens": [] + }, + { + "value": "4584", + "text": "昌乐县", + "childrens": [] + }, + { + "value": "4585", + "text": "昌邑市", + "childrens": [] + }, + { + "value": "4586", + "text": "高密市", + "childrens": [] + }, + { + "value": "4588", + "text": "青州市", + "childrens": [] + }, + { + "value": "4589", + "text": "诸城市", + "childrens": [] + }, + { + "value": "984580", + "text": "潍坊市", + "childrens": [] + } + ] + }, + { + "value": "4610", + "text": "济宁市", + "childrens": [ + { + "value": "4611", + "text": "兖州市", + "childrens": [] + }, + { + "value": "4612", + "text": "邹城市", + "childrens": [] + }, + { + "value": "4613", + "text": "微山县", + "childrens": [] + }, + { + "value": "4614", + "text": "鱼台县", + "childrens": [] + }, + { + "value": "4615", + "text": "金乡县", + "childrens": [] + }, + { + "value": "4616", + "text": "嘉祥县", + "childrens": [] + }, + { + "value": "4617", + "text": "汶上县", + "childrens": [] + }, + { + "value": "4618", + "text": "泗水县", + "childrens": [] + }, + { + "value": "4619", + "text": "曲阜市", + "childrens": [] + }, + { + "value": "4621", + "text": "梁山县", + "childrens": [] + }, + { + "value": "984610", + "text": "济宁市", + "childrens": [] + } + ] + }, + { + "value": "4630", + "text": "泰安市", + "childrens": [ + { + "value": "4631", + "text": "宁阳县", + "childrens": [] + }, + { + "value": "4632", + "text": "肥城市", + "childrens": [] + }, + { + "value": "4633", + "text": "东平县", + "childrens": [] + }, + { + "value": "4635", + "text": "新泰市", + "childrens": [] + }, + { + "value": "984630", + "text": "泰安市", + "childrens": [] + } + ] + }, + { + "value": "4650", + "text": "威海市", + "childrens": [ + { + "value": "4651", + "text": "乳山市", + "childrens": [] + }, + { + "value": "4652", + "text": "文登市", + "childrens": [] + }, + { + "value": "4653", + "text": "荣成市", + "childrens": [] + }, + { + "value": "984650", + "text": "威海市", + "childrens": [] + } + ] + }, + { + "value": "4660", + "text": "滨州市", + "childrens": [ + { + "value": "4662", + "text": "惠民县", + "childrens": [] + }, + { + "value": "4663", + "text": "阳信县", + "childrens": [] + }, + { + "value": "4664", + "text": "无棣县", + "childrens": [] + }, + { + "value": "4665", + "text": "沾化县", + "childrens": [] + }, + { + "value": "4666", + "text": "博兴县", + "childrens": [] + }, + { + "value": "4667", + "text": "邹平县", + "childrens": [] + }, + { + "value": "984660", + "text": "滨州市", + "childrens": [] + } + ] + }, + { + "value": "4680", + "text": "德州市", + "childrens": [ + { + "value": "4682", + "text": "乐陵市", + "childrens": [] + }, + { + "value": "4683", + "text": "陵县", + "childrens": [] + }, + { + "value": "4684", + "text": "平原县", + "childrens": [] + }, + { + "value": "4685", + "text": "夏津县", + "childrens": [] + }, + { + "value": "4686", + "text": "武城县", + "childrens": [] + }, + { + "value": "4687", + "text": "齐河县", + "childrens": [] + }, + { + "value": "4688", + "text": "禹城市", + "childrens": [] + }, + { + "value": "4689", + "text": "临邑县", + "childrens": [] + }, + { + "value": "4693", + "text": "宁津县", + "childrens": [] + }, + { + "value": "4694", + "text": "庆云县", + "childrens": [] + }, + { + "value": "984680", + "text": "德州市", + "childrens": [] + } + ] + }, + { + "value": "4710", + "text": "聊城市", + "childrens": [ + { + "value": "4712", + "text": "临清市", + "childrens": [] + }, + { + "value": "4713", + "text": "阳谷县", + "childrens": [] + }, + { + "value": "4714", + "text": "莘县", + "childrens": [] + }, + { + "value": "4715", + "text": "茌平县", + "childrens": [] + }, + { + "value": "4716", + "text": "东阿县", + "childrens": [] + }, + { + "value": "4717", + "text": "冠县", + "childrens": [] + }, + { + "value": "4718", + "text": "高唐县", + "childrens": [] + }, + { + "value": "984710", + "text": "聊城市", + "childrens": [] + } + ] + }, + { + "value": "4730", + "text": "临沂市", + "childrens": [ + { + "value": "4733", + "text": "郯城县", + "childrens": [] + }, + { + "value": "4734", + "text": "苍山县", + "childrens": [] + }, + { + "value": "4735", + "text": "莒南县", + "childrens": [] + }, + { + "value": "4737", + "text": "沂水县", + "childrens": [] + }, + { + "value": "4739", + "text": "蒙阴县", + "childrens": [] + }, + { + "value": "4741", + "text": "平邑县", + "childrens": [] + }, + { + "value": "4742", + "text": "费县", + "childrens": [] + }, + { + "value": "4743", + "text": "沂南县", + "childrens": [] + }, + { + "value": "4744", + "text": "临沭县", + "childrens": [] + }, + { + "value": "984730", + "text": "临沂市", + "childrens": [] + } + ] + }, + { + "value": "4750", + "text": "菏泽市", + "childrens": [ + { + "value": "4752", + "text": "曹县", + "childrens": [] + }, + { + "value": "4753", + "text": "定陶区", + "childrens": [] + }, + { + "value": "4754", + "text": "成武县", + "childrens": [] + }, + { + "value": "4755", + "text": "单县", + "childrens": [] + }, + { + "value": "4756", + "text": "巨野县", + "childrens": [] + }, + { + "value": "4758", + "text": "郓城县", + "childrens": [] + }, + { + "value": "4759", + "text": "鄄城县", + "childrens": [] + }, + { + "value": "4761", + "text": "东明县", + "childrens": [] + }, + { + "value": "984750", + "text": "菏泽市", + "childrens": [] + } + ] + }, + { + "value": "4770", + "text": "日照市", + "childrens": [ + { + "value": "4771", + "text": "五莲县", + "childrens": [] + }, + { + "value": "4772", + "text": "莒县", + "childrens": [] + }, + { + "value": "984770", + "text": "日照市", + "childrens": [] + } + ] + }, + { + "value": "4790", + "text": "莱芜市", + "childrens": [ + { + "value": "984790", + "text": "莱芜市", + "childrens": [] + } + ] + }, + { + "value": "450001", + "text": "菏泽市", + "childrens": [] + } + ] + }, + { + "value": "4900", + "text": "河南省", + "childrens": [ + { + "value": "4910", + "text": "郑州市", + "childrens": [ + { + "value": "4911", + "text": "荥阳市", + "childrens": [] + }, + { + "value": "4912", + "text": "中牟县", + "childrens": [] + }, + { + "value": "4913", + "text": "新郑市", + "childrens": [] + }, + { + "value": "4914", + "text": "巩义市", + "childrens": [] + }, + { + "value": "4915", + "text": "登封市", + "childrens": [] + }, + { + "value": "4916", + "text": "新密市", + "childrens": [] + }, + { + "value": "984910", + "text": "郑州市", + "childrens": [] + } + ] + }, + { + "value": "4920", + "text": "开封市", + "childrens": [ + { + "value": "4921", + "text": "杞县", + "childrens": [] + }, + { + "value": "4922", + "text": "通许县", + "childrens": [] + }, + { + "value": "4923", + "text": "尉氏县", + "childrens": [] + }, + { + "value": "4924", + "text": "开封县", + "childrens": [] + }, + { + "value": "4925", + "text": "兰考县", + "childrens": [] + }, + { + "value": "984920", + "text": "开封市", + "childrens": [] + } + ] + }, + { + "value": "4930", + "text": "洛阳市", + "childrens": [ + { + "value": "4931", + "text": "偃师市", + "childrens": [] + }, + { + "value": "4932", + "text": "孟津县", + "childrens": [] + }, + { + "value": "4933", + "text": "新安县", + "childrens": [] + }, + { + "value": "4934", + "text": "栾川县", + "childrens": [] + }, + { + "value": "4935", + "text": "嵩县", + "childrens": [] + }, + { + "value": "4936", + "text": "汝阳县", + "childrens": [] + }, + { + "value": "4937", + "text": "宜阳县", + "childrens": [] + }, + { + "value": "4938", + "text": "洛宁县", + "childrens": [] + }, + { + "value": "4939", + "text": "伊川县", + "childrens": [] + }, + { + "value": "984930", + "text": "洛阳市", + "childrens": [] + } + ] + }, + { + "value": "4950", + "text": "平顶山市", + "childrens": [ + { + "value": "4951", + "text": "宝丰县", + "childrens": [] + }, + { + "value": "4952", + "text": "叶县", + "childrens": [] + }, + { + "value": "4953", + "text": "鲁山县", + "childrens": [] + }, + { + "value": "4954", + "text": "郏县", + "childrens": [] + }, + { + "value": "4956", + "text": "汝州市", + "childrens": [] + }, + { + "value": "4957", + "text": "舞钢市", + "childrens": [] + }, + { + "value": "984950", + "text": "平顶山市", + "childrens": [] + } + ] + }, + { + "value": "4960", + "text": "安阳市", + "childrens": [ + { + "value": "4961", + "text": "林州市", + "childrens": [] + }, + { + "value": "4962", + "text": "安阳县", + "childrens": [] + }, + { + "value": "4963", + "text": "汤阴县", + "childrens": [] + }, + { + "value": "4964", + "text": "滑县", + "childrens": [] + }, + { + "value": "4965", + "text": "内黄县", + "childrens": [] + }, + { + "value": "984960", + "text": "安阳市", + "childrens": [] + } + ] + }, + { + "value": "4970", + "text": "鹤壁市", + "childrens": [ + { + "value": "4971", + "text": "浚县", + "childrens": [] + }, + { + "value": "4972", + "text": "淇县", + "childrens": [] + }, + { + "value": "984970", + "text": "鹤壁市", + "childrens": [] + } + ] + }, + { + "value": "4980", + "text": "新乡市", + "childrens": [ + { + "value": "4981", + "text": "新乡县", + "childrens": [] + }, + { + "value": "4982", + "text": "获嘉县", + "childrens": [] + }, + { + "value": "4983", + "text": "原阳县", + "childrens": [] + }, + { + "value": "4984", + "text": "延津县", + "childrens": [] + }, + { + "value": "4985", + "text": "封丘县", + "childrens": [] + }, + { + "value": "4986", + "text": "长垣县", + "childrens": [] + }, + { + "value": "4987", + "text": "卫辉市", + "childrens": [] + }, + { + "value": "4988", + "text": "辉县市", + "childrens": [] + }, + { + "value": "984980", + "text": "新乡市", + "childrens": [] + } + ] + }, + { + "value": "5010", + "text": "焦作市", + "childrens": [ + { + "value": "5011", + "text": "修武县", + "childrens": [] + }, + { + "value": "5012", + "text": "博爱县", + "childrens": [] + }, + { + "value": "5013", + "text": "武陟县", + "childrens": [] + }, + { + "value": "5014", + "text": "沁阳市", + "childrens": [] + }, + { + "value": "5015", + "text": "温县", + "childrens": [] + }, + { + "value": "5016", + "text": "孟州市", + "childrens": [] + }, + { + "value": "5017", + "text": "济源市(省直辖)", + "childrens": [] + }, + { + "value": "985010", + "text": "焦作市", + "childrens": [] + } + ] + }, + { + "value": "5020", + "text": "濮阳市", + "childrens": [ + { + "value": "5021", + "text": "清丰县", + "childrens": [] + }, + { + "value": "5022", + "text": "南乐县", + "childrens": [] + }, + { + "value": "5023", + "text": "范县", + "childrens": [] + }, + { + "value": "5024", + "text": "台前县", + "childrens": [] + }, + { + "value": "5025", + "text": "濮阳县", + "childrens": [] + }, + { + "value": "985020", + "text": "濮阳市", + "childrens": [] + } + ] + }, + { + "value": "5030", + "text": "许昌市", + "childrens": [ + { + "value": "5031", + "text": "长葛市", + "childrens": [] + }, + { + "value": "5032", + "text": "许昌县", + "childrens": [] + }, + { + "value": "5033", + "text": "鄢陵县", + "childrens": [] + }, + { + "value": "5034", + "text": "禹州市", + "childrens": [] + }, + { + "value": "5035", + "text": "襄城县", + "childrens": [] + }, + { + "value": "985030", + "text": "许昌市", + "childrens": [] + } + ] + }, + { + "value": "5040", + "text": "漯河市", + "childrens": [ + { + "value": "5041", + "text": "舞阳县", + "childrens": [] + }, + { + "value": "5042", + "text": "临颍县", + "childrens": [] + }, + { + "value": "985040", + "text": "漯河市", + "childrens": [] + } + ] + }, + { + "value": "5050", + "text": "三门峡市", + "childrens": [ + { + "value": "5051", + "text": "渑池县", + "childrens": [] + }, + { + "value": "5052", + "text": "陕县", + "childrens": [] + }, + { + "value": "5053", + "text": "灵宝市", + "childrens": [] + }, + { + "value": "5054", + "text": "卢氏县", + "childrens": [] + }, + { + "value": "5055", + "text": "义马市", + "childrens": [] + }, + { + "value": "985050", + "text": "三门峡市", + "childrens": [] + } + ] + }, + { + "value": "5060", + "text": "商丘市", + "childrens": [ + { + "value": "5062", + "text": "虞城县", + "childrens": [] + }, + { + "value": "5064", + "text": "民权县", + "childrens": [] + }, + { + "value": "5065", + "text": "宁陵县", + "childrens": [] + }, + { + "value": "5066", + "text": "睢县", + "childrens": [] + }, + { + "value": "5067", + "text": "夏邑县", + "childrens": [] + }, + { + "value": "5068", + "text": "柘城县", + "childrens": [] + }, + { + "value": "5069", + "text": "永城市", + "childrens": [] + }, + { + "value": "985060", + "text": "商丘市", + "childrens": [] + } + ] + }, + { + "value": "5080", + "text": "周口市", + "childrens": [ + { + "value": "5082", + "text": "扶沟县", + "childrens": [] + }, + { + "value": "5083", + "text": "西华县", + "childrens": [] + }, + { + "value": "5084", + "text": "商水县", + "childrens": [] + }, + { + "value": "5085", + "text": "太康县", + "childrens": [] + }, + { + "value": "5086", + "text": "鹿邑县", + "childrens": [] + }, + { + "value": "5087", + "text": "郸城县", + "childrens": [] + }, + { + "value": "5088", + "text": "淮阳县", + "childrens": [] + }, + { + "value": "5089", + "text": "沈丘县", + "childrens": [] + }, + { + "value": "5091", + "text": "项城市", + "childrens": [] + }, + { + "value": "985080", + "text": "周口市", + "childrens": [] + } + ] + }, + { + "value": "5110", + "text": "驻马店市", + "childrens": [ + { + "value": "5112", + "text": "确山县", + "childrens": [] + }, + { + "value": "5113", + "text": "泌阳县", + "childrens": [] + }, + { + "value": "5114", + "text": "遂平县", + "childrens": [] + }, + { + "value": "5115", + "text": "西平县", + "childrens": [] + }, + { + "value": "5116", + "text": "上蔡县", + "childrens": [] + }, + { + "value": "5117", + "text": "汝南县", + "childrens": [] + }, + { + "value": "5118", + "text": "平舆县", + "childrens": [] + }, + { + "value": "5119", + "text": "新蔡县", + "childrens": [] + }, + { + "value": "5121", + "text": "正阳县", + "childrens": [] + }, + { + "value": "985110", + "text": "驻马店市", + "childrens": [] + } + ] + }, + { + "value": "5130", + "text": "南阳市", + "childrens": [ + { + "value": "5132", + "text": "邓州市", + "childrens": [] + }, + { + "value": "5133", + "text": "南召县", + "childrens": [] + }, + { + "value": "5134", + "text": "方城县", + "childrens": [] + }, + { + "value": "5135", + "text": "西峡县", + "childrens": [] + }, + { + "value": "5137", + "text": "镇平县", + "childrens": [] + }, + { + "value": "5138", + "text": "内乡县", + "childrens": [] + }, + { + "value": "5139", + "text": "淅川县", + "childrens": [] + }, + { + "value": "5141", + "text": "社旗县", + "childrens": [] + }, + { + "value": "5142", + "text": "唐河县", + "childrens": [] + }, + { + "value": "5143", + "text": "新野县", + "childrens": [] + }, + { + "value": "5144", + "text": "桐柏县", + "childrens": [] + }, + { + "value": "985130", + "text": "南阳市", + "childrens": [] + } + ] + }, + { + "value": "5150", + "text": "信阳市", + "childrens": [ + { + "value": "5152", + "text": "息县", + "childrens": [] + }, + { + "value": "5153", + "text": "淮滨县", + "childrens": [] + }, + { + "value": "5155", + "text": "潢川县", + "childrens": [] + }, + { + "value": "5156", + "text": "光山县", + "childrens": [] + }, + { + "value": "5157", + "text": "固始县", + "childrens": [] + }, + { + "value": "5158", + "text": "商城县", + "childrens": [] + }, + { + "value": "5159", + "text": "罗山县", + "childrens": [] + }, + { + "value": "5161", + "text": "新县", + "childrens": [] + }, + { + "value": "985150", + "text": "信阳市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "5200", + "text": "湖北省", + "childrens": [ + { + "value": "5210", + "text": "武汉市", + "childrens": [ + { + "value": "985210", + "text": "武汉市", + "childrens": [] + } + ] + }, + { + "value": "5220", + "text": "黄石市", + "childrens": [ + { + "value": "5221", + "text": "大冶市", + "childrens": [] + }, + { + "value": "5222", + "text": "阳新县", + "childrens": [] + }, + { + "value": "985220", + "text": "黄石市", + "childrens": [] + } + ] + }, + { + "value": "5230", + "text": "十堰市", + "childrens": [ + { + "value": "5231", + "text": "郧县", + "childrens": [] + }, + { + "value": "5232", + "text": "郧西县", + "childrens": [] + }, + { + "value": "5233", + "text": "竹山县", + "childrens": [] + }, + { + "value": "5234", + "text": "竹溪县", + "childrens": [] + }, + { + "value": "5235", + "text": "房县", + "childrens": [] + }, + { + "value": "5236", + "text": "丹江口市", + "childrens": [] + }, + { + "value": "985230", + "text": "十堰市", + "childrens": [] + } + ] + }, + { + "value": "5250", + "text": "宜昌市", + "childrens": [ + { + "value": "5251", + "text": "宜都市", + "childrens": [] + }, + { + "value": "5262", + "text": "当阳市", + "childrens": [] + }, + { + "value": "5264", + "text": "枝江市", + "childrens": [] + }, + { + "value": "5265", + "text": "远安县", + "childrens": [] + }, + { + "value": "5266", + "text": "兴山县", + "childrens": [] + }, + { + "value": "5267", + "text": "秭归县", + "childrens": [] + }, + { + "value": "5268", + "text": "长阳土家族自治县", + "childrens": [] + }, + { + "value": "5269", + "text": "五峰土家族自治县", + "childrens": [] + }, + { + "value": "985250", + "text": "宜昌市", + "childrens": [] + } + ] + }, + { + "value": "5270", + "text": "随州市", + "childrens": [ + { + "value": "5271", + "text": "广水市", + "childrens": [] + }, + { + "value": "5272", + "text": "随县", + "childrens": [] + }, + { + "value": "985270", + "text": "随州市", + "childrens": [] + } + ] + }, + { + "value": "5280", + "text": "襄樊市", + "childrens": [ + { + "value": "5282", + "text": "宜城市", + "childrens": [] + }, + { + "value": "5283", + "text": "南漳县", + "childrens": [] + }, + { + "value": "5284", + "text": "谷城县", + "childrens": [] + }, + { + "value": "5285", + "text": "保康县", + "childrens": [] + }, + { + "value": "5287", + "text": "老河口市", + "childrens": [] + }, + { + "value": "5288", + "text": "枣阳市", + "childrens": [] + }, + { + "value": "985280", + "text": "襄樊市", + "childrens": [] + } + ] + }, + { + "value": "5310", + "text": "鄂州市", + "childrens": [ + { + "value": "5311", + "text": "神农架林区(省直辖)", + "childrens": [] + }, + { + "value": "985310", + "text": "鄂州市", + "childrens": [] + } + ] + }, + { + "value": "5320", + "text": "荆门市", + "childrens": [ + { + "value": "5321", + "text": "京山县", + "childrens": [] + }, + { + "value": "5322", + "text": "沙洋县", + "childrens": [] + }, + { + "value": "5323", + "text": "钟祥市", + "childrens": [] + }, + { + "value": "985320", + "text": "荆门市", + "childrens": [] + } + ] + }, + { + "value": "5330", + "text": "黄冈市", + "childrens": [ + { + "value": "5331", + "text": "麻城市", + "childrens": [] + }, + { + "value": "5332", + "text": "武穴市", + "childrens": [] + }, + { + "value": "5333", + "text": "团风县", + "childrens": [] + }, + { + "value": "5334", + "text": "红安县", + "childrens": [] + }, + { + "value": "5335", + "text": "罗田县", + "childrens": [] + }, + { + "value": "5336", + "text": "英山县", + "childrens": [] + }, + { + "value": "5337", + "text": "浠水县", + "childrens": [] + }, + { + "value": "5338", + "text": "蕲春县", + "childrens": [] + }, + { + "value": "5339", + "text": "黄梅县", + "childrens": [] + }, + { + "value": "985330", + "text": "黄冈市", + "childrens": [] + } + ] + }, + { + "value": "5350", + "text": "孝感市", + "childrens": [ + { + "value": "5351", + "text": "孝昌县", + "childrens": [] + }, + { + "value": "5352", + "text": "应城市", + "childrens": [] + }, + { + "value": "5353", + "text": "安陆市", + "childrens": [] + }, + { + "value": "5355", + "text": "大悟县", + "childrens": [] + }, + { + "value": "5356", + "text": "云梦县", + "childrens": [] + }, + { + "value": "5357", + "text": "汉川市", + "childrens": [] + }, + { + "value": "985350", + "text": "孝感市", + "childrens": [] + } + ] + }, + { + "value": "5360", + "text": "咸宁市", + "childrens": [ + { + "value": "5363", + "text": "嘉鱼县", + "childrens": [] + }, + { + "value": "5364", + "text": "通城县", + "childrens": [] + }, + { + "value": "5365", + "text": "崇阳县", + "childrens": [] + }, + { + "value": "5366", + "text": "通山县", + "childrens": [] + }, + { + "value": "5367", + "text": "赤壁市", + "childrens": [] + }, + { + "value": "985360", + "text": "咸宁市", + "childrens": [] + } + ] + }, + { + "value": "5370", + "text": "荆州市", + "childrens": [ + { + "value": "5371", + "text": "仙桃市(省直辖)", + "childrens": [] + }, + { + "value": "5372", + "text": "石首市", + "childrens": [] + }, + { + "value": "5373", + "text": "洪湖市", + "childrens": [] + }, + { + "value": "5374", + "text": "天门市(省直辖)", + "childrens": [] + }, + { + "value": "5375", + "text": "潜江市(省直辖)", + "childrens": [] + }, + { + "value": "5376", + "text": "江陵县", + "childrens": [] + }, + { + "value": "5377", + "text": "松滋市", + "childrens": [] + }, + { + "value": "5378", + "text": "公安县", + "childrens": [] + }, + { + "value": "5379", + "text": "监利县", + "childrens": [] + }, + { + "value": "985370", + "text": "荆州市", + "childrens": [] + } + ] + }, + { + "value": "5410", + "text": "恩施土家族苗族自治州", + "childrens": [ + { + "value": "5411", + "text": "恩施市", + "childrens": [] + }, + { + "value": "5412", + "text": "利川市", + "childrens": [] + }, + { + "value": "5413", + "text": "建始县", + "childrens": [] + }, + { + "value": "5414", + "text": "巴东县", + "childrens": [] + }, + { + "value": "5415", + "text": "宣恩县", + "childrens": [] + }, + { + "value": "5416", + "text": "咸丰县", + "childrens": [] + }, + { + "value": "5417", + "text": "来凤县", + "childrens": [] + }, + { + "value": "5418", + "text": "鹤峰县", + "childrens": [] + }, + { + "value": "985410", + "text": "恩施土家族苗族自治州", + "childrens": [] + } + ] + } + ] + }, + { + "value": "5500", + "text": "湖南省", + "childrens": [ + { + "value": "5510", + "text": "长沙市", + "childrens": [ + { + "value": "5511", + "text": "长沙县", + "childrens": [] + }, + { + "value": "5512", + "text": "望城县", + "childrens": [] + }, + { + "value": "5513", + "text": "浏阳市", + "childrens": [] + }, + { + "value": "5514", + "text": "宁乡县", + "childrens": [] + }, + { + "value": "985510", + "text": "长沙市", + "childrens": [] + } + ] + }, + { + "value": "5520", + "text": "株洲市", + "childrens": [ + { + "value": "5521", + "text": "株洲县", + "childrens": [] + }, + { + "value": "5522", + "text": "攸县", + "childrens": [] + }, + { + "value": "5523", + "text": "茶陵县", + "childrens": [] + }, + { + "value": "5524", + "text": "炎陵县", + "childrens": [] + }, + { + "value": "5525", + "text": "醴陵市", + "childrens": [] + }, + { + "value": "985520", + "text": "株洲市", + "childrens": [] + } + ] + }, + { + "value": "5530", + "text": "湘潭市", + "childrens": [ + { + "value": "5531", + "text": "湘潭县", + "childrens": [] + }, + { + "value": "5532", + "text": "湘乡市", + "childrens": [] + }, + { + "value": "5533", + "text": "韶山市", + "childrens": [] + }, + { + "value": "985530", + "text": "湘潭市", + "childrens": [] + } + ] + }, + { + "value": "5540", + "text": "衡阳市", + "childrens": [ + { + "value": "5541", + "text": "衡阳县", + "childrens": [] + }, + { + "value": "5542", + "text": "衡南县", + "childrens": [] + }, + { + "value": "5543", + "text": "衡山县", + "childrens": [] + }, + { + "value": "5544", + "text": "衡东县", + "childrens": [] + }, + { + "value": "5545", + "text": "常宁市", + "childrens": [] + }, + { + "value": "5546", + "text": "祁东县", + "childrens": [] + }, + { + "value": "5547", + "text": "耒阳市", + "childrens": [] + }, + { + "value": "985540", + "text": "衡阳市", + "childrens": [] + } + ] + }, + { + "value": "5550", + "text": "邵阳市", + "childrens": [ + { + "value": "5551", + "text": "邵东县", + "childrens": [] + }, + { + "value": "5552", + "text": "新邵县", + "childrens": [] + }, + { + "value": "5553", + "text": "邵阳县", + "childrens": [] + }, + { + "value": "5554", + "text": "隆回县", + "childrens": [] + }, + { + "value": "5555", + "text": "洞口县", + "childrens": [] + }, + { + "value": "5556", + "text": "武冈市", + "childrens": [] + }, + { + "value": "5557", + "text": "绥宁县", + "childrens": [] + }, + { + "value": "5558", + "text": "新宁县", + "childrens": [] + }, + { + "value": "5559", + "text": "城步苗族自治县", + "childrens": [] + }, + { + "value": "985550", + "text": "邵阳市", + "childrens": [] + } + ] + }, + { + "value": "5570", + "text": "岳阳市", + "childrens": [ + { + "value": "5571", + "text": "岳阳县", + "childrens": [] + }, + { + "value": "5572", + "text": "临湘市", + "childrens": [] + }, + { + "value": "5573", + "text": "华容县", + "childrens": [] + }, + { + "value": "5574", + "text": "湘阴县", + "childrens": [] + }, + { + "value": "5575", + "text": "平江县", + "childrens": [] + }, + { + "value": "5576", + "text": "汨罗市", + "childrens": [] + }, + { + "value": "985570", + "text": "岳阳市", + "childrens": [] + } + ] + }, + { + "value": "5580", + "text": "常德市", + "childrens": [ + { + "value": "5581", + "text": "安乡县", + "childrens": [] + }, + { + "value": "5582", + "text": "汉寿县", + "childrens": [] + }, + { + "value": "5583", + "text": "澧县", + "childrens": [] + }, + { + "value": "5584", + "text": "临澧县", + "childrens": [] + }, + { + "value": "5585", + "text": "桃源县", + "childrens": [] + }, + { + "value": "5586", + "text": "石门县", + "childrens": [] + }, + { + "value": "5587", + "text": "津市市", + "childrens": [] + }, + { + "value": "985580", + "text": "常德市", + "childrens": [] + } + ] + }, + { + "value": "5590", + "text": "张家界市", + "childrens": [ + { + "value": "5591", + "text": "慈利县", + "childrens": [] + }, + { + "value": "5592", + "text": "桑植县", + "childrens": [] + }, + { + "value": "985590", + "text": "张家界市", + "childrens": [] + } + ] + }, + { + "value": "5610", + "text": "益阳市", + "childrens": [ + { + "value": "5612", + "text": "沅江市", + "childrens": [] + }, + { + "value": "5614", + "text": "南县", + "childrens": [] + }, + { + "value": "5615", + "text": "桃江县", + "childrens": [] + }, + { + "value": "5616", + "text": "安化县", + "childrens": [] + }, + { + "value": "985610", + "text": "益阳市", + "childrens": [] + } + ] + }, + { + "value": "5620", + "text": "娄底市", + "childrens": [ + { + "value": "5622", + "text": "冷水江市", + "childrens": [] + }, + { + "value": "5623", + "text": "涟源市", + "childrens": [] + }, + { + "value": "5624", + "text": "双峰县", + "childrens": [] + }, + { + "value": "5625", + "text": "新化县", + "childrens": [] + }, + { + "value": "985620", + "text": "娄底市", + "childrens": [] + } + ] + }, + { + "value": "5630", + "text": "郴州市", + "childrens": [ + { + "value": "5632", + "text": "资兴市", + "childrens": [] + }, + { + "value": "5634", + "text": "桂阳县", + "childrens": [] + }, + { + "value": "5635", + "text": "永兴县", + "childrens": [] + }, + { + "value": "5636", + "text": "宜章县", + "childrens": [] + }, + { + "value": "5637", + "text": "嘉禾县", + "childrens": [] + }, + { + "value": "5638", + "text": "临武县", + "childrens": [] + }, + { + "value": "5639", + "text": "汝城县", + "childrens": [] + }, + { + "value": "5641", + "text": "桂东县", + "childrens": [] + }, + { + "value": "5642", + "text": "安仁县", + "childrens": [] + }, + { + "value": "985630", + "text": "郴州市", + "childrens": [] + } + ] + }, + { + "value": "5650", + "text": "永州市", + "childrens": [ + { + "value": "5653", + "text": "东安县", + "childrens": [] + }, + { + "value": "5654", + "text": "道县", + "childrens": [] + }, + { + "value": "5655", + "text": "宁远县", + "childrens": [] + }, + { + "value": "5656", + "text": "江永县", + "childrens": [] + }, + { + "value": "5657", + "text": "江华瑶族自治县", + "childrens": [] + }, + { + "value": "5658", + "text": "蓝山县", + "childrens": [] + }, + { + "value": "5659", + "text": "新田县", + "childrens": [] + }, + { + "value": "5661", + "text": "双牌县", + "childrens": [] + }, + { + "value": "5662", + "text": "祁阳县", + "childrens": [] + }, + { + "value": "985650", + "text": "永州市", + "childrens": [] + } + ] + }, + { + "value": "5670", + "text": "怀化市", + "childrens": [ + { + "value": "5672", + "text": "洪江市", + "childrens": [] + }, + { + "value": "5674", + "text": "沅陵县", + "childrens": [] + }, + { + "value": "5675", + "text": "辰溪县", + "childrens": [] + }, + { + "value": "5676", + "text": "溆浦县", + "childrens": [] + }, + { + "value": "5677", + "text": "麻阳苗族自治县", + "childrens": [] + }, + { + "value": "5678", + "text": "新晃侗族自治县", + "childrens": [] + }, + { + "value": "5679", + "text": "芷江侗族自治县", + "childrens": [] + }, + { + "value": "5681", + "text": "会同县", + "childrens": [] + }, + { + "value": "5682", + "text": "靖州苗族侗族自治县", + "childrens": [] + }, + { + "value": "5683", + "text": "通道侗族自治县", + "childrens": [] + }, + { + "value": "5684", + "text": "中方县", + "childrens": [] + }, + { + "value": "985670", + "text": "怀化市", + "childrens": [] + } + ] + }, + { + "value": "5690", + "text": "湘西土家族苗族自治州", + "childrens": [ + { + "value": "5691", + "text": "吉首市", + "childrens": [] + }, + { + "value": "5692", + "text": "泸溪县", + "childrens": [] + }, + { + "value": "5693", + "text": "凤凰县", + "childrens": [] + }, + { + "value": "5694", + "text": "花垣县", + "childrens": [] + }, + { + "value": "5695", + "text": "保靖县", + "childrens": [] + }, + { + "value": "5696", + "text": "古丈县", + "childrens": [] + }, + { + "value": "5697", + "text": "永顺县", + "childrens": [] + }, + { + "value": "5698", + "text": "龙山县", + "childrens": [] + }, + { + "value": "985690", + "text": "湘西土家族苗族自治州", + "childrens": [] + } + ] + } + ] + }, + { + "value": "5800", + "text": "广东省", + "childrens": [ + { + "value": "5810", + "text": "广州市", + "childrens": [ + { + "value": "5812", + "text": "从化市", + "childrens": [] + }, + { + "value": "5813", + "text": "增城市", + "childrens": [] + }, + { + "value": "985810", + "text": "广州市", + "childrens": [] + } + ] + }, + { + "value": "5820", + "text": "韶关市", + "childrens": [ + { + "value": "5822", + "text": "始兴县", + "childrens": [] + }, + { + "value": "5823", + "text": "南雄市", + "childrens": [] + }, + { + "value": "5824", + "text": "仁化县", + "childrens": [] + }, + { + "value": "5825", + "text": "乐昌市", + "childrens": [] + }, + { + "value": "5826", + "text": "翁源县", + "childrens": [] + }, + { + "value": "5827", + "text": "乳源瑶族自治县", + "childrens": [] + }, + { + "value": "5828", + "text": "新丰县", + "childrens": [] + }, + { + "value": "985820", + "text": "韶关市", + "childrens": [] + } + ] + }, + { + "value": "5840", + "text": "深圳市", + "childrens": [ + { + "value": "985840", + "text": "深圳市", + "childrens": [] + } + ] + }, + { + "value": "5850", + "text": "珠海市", + "childrens": [ + { + "value": "985850", + "text": "珠海市", + "childrens": [] + } + ] + }, + { + "value": "5860", + "text": "汕头市", + "childrens": [ + { + "value": "5863", + "text": "南澳县", + "childrens": [] + }, + { + "value": "985860", + "text": "汕头市", + "childrens": [] + } + ] + }, + { + "value": "5880", + "text": "佛山市", + "childrens": [ + { + "value": "5881", + "text": "三水区", + "childrens": [] + }, + { + "value": "5882", + "text": "南海区", + "childrens": [] + }, + { + "value": "5883", + "text": "顺德区", + "childrens": [] + }, + { + "value": "985880", + "text": "佛山市", + "childrens": [] + } + ] + }, + { + "value": "5890", + "text": "江门市", + "childrens": [ + { + "value": "5892", + "text": "台山市", + "childrens": [] + }, + { + "value": "5893", + "text": "恩平市", + "childrens": [] + }, + { + "value": "5894", + "text": "开平市", + "childrens": [] + }, + { + "value": "5895", + "text": "鹤山市", + "childrens": [] + }, + { + "value": "985890", + "text": "江门市", + "childrens": [] + } + ] + }, + { + "value": "5910", + "text": "湛江市", + "childrens": [ + { + "value": "5911", + "text": "吴川市", + "childrens": [] + }, + { + "value": "5912", + "text": "廉江市", + "childrens": [] + }, + { + "value": "5913", + "text": "遂溪县", + "childrens": [] + }, + { + "value": "5914", + "text": "雷州市", + "childrens": [] + }, + { + "value": "5915", + "text": "徐闻县", + "childrens": [] + }, + { + "value": "985910", + "text": "湛江市", + "childrens": [] + } + ] + }, + { + "value": "5920", + "text": "茂名市", + "childrens": [ + { + "value": "5921", + "text": "信宜市", + "childrens": [] + }, + { + "value": "5922", + "text": "高州市", + "childrens": [] + }, + { + "value": "5923", + "text": "电白县", + "childrens": [] + }, + { + "value": "5924", + "text": "化州市", + "childrens": [] + }, + { + "value": "985920", + "text": "茂名市", + "childrens": [] + } + ] + }, + { + "value": "5930", + "text": "肇庆市", + "childrens": [ + { + "value": "5931", + "text": "高要市", + "childrens": [] + }, + { + "value": "5932", + "text": "四会市", + "childrens": [] + }, + { + "value": "5933", + "text": "广宁县", + "childrens": [] + }, + { + "value": "5934", + "text": "怀集县", + "childrens": [] + }, + { + "value": "5935", + "text": "封开县", + "childrens": [] + }, + { + "value": "5936", + "text": "德庆县", + "childrens": [] + }, + { + "value": "985930", + "text": "肇庆市", + "childrens": [] + } + ] + }, + { + "value": "5950", + "text": "惠州市", + "childrens": [ + { + "value": "5952", + "text": "博罗县", + "childrens": [] + }, + { + "value": "5953", + "text": "惠东县", + "childrens": [] + }, + { + "value": "5954", + "text": "龙门县", + "childrens": [] + }, + { + "value": "985950", + "text": "惠州市", + "childrens": [] + } + ] + }, + { + "value": "5960", + "text": "梅州市", + "childrens": [ + { + "value": "5961", + "text": "梅县", + "childrens": [] + }, + { + "value": "5962", + "text": "大埔县", + "childrens": [] + }, + { + "value": "5963", + "text": "丰顺县", + "childrens": [] + }, + { + "value": "5964", + "text": "五华县", + "childrens": [] + }, + { + "value": "5965", + "text": "兴宁市", + "childrens": [] + }, + { + "value": "5966", + "text": "平远县", + "childrens": [] + }, + { + "value": "5967", + "text": "蕉岭县", + "childrens": [] + }, + { + "value": "985960", + "text": "梅州市", + "childrens": [] + } + ] + }, + { + "value": "5970", + "text": "汕尾市", + "childrens": [ + { + "value": "5971", + "text": "海丰县", + "childrens": [] + }, + { + "value": "5972", + "text": "陆丰市", + "childrens": [] + }, + { + "value": "5973", + "text": "陆河县", + "childrens": [] + }, + { + "value": "985970", + "text": "汕尾市", + "childrens": [] + } + ] + }, + { + "value": "5980", + "text": "河源市", + "childrens": [ + { + "value": "5981", + "text": "紫金县", + "childrens": [] + }, + { + "value": "5982", + "text": "龙川县", + "childrens": [] + }, + { + "value": "5983", + "text": "连平县", + "childrens": [] + }, + { + "value": "5984", + "text": "和平县", + "childrens": [] + }, + { + "value": "5985", + "text": "东源县", + "childrens": [] + }, + { + "value": "985980", + "text": "河源市", + "childrens": [] + } + ] + }, + { + "value": "5990", + "text": "阳江市", + "childrens": [ + { + "value": "5991", + "text": "阳西县", + "childrens": [] + }, + { + "value": "5992", + "text": "阳春市", + "childrens": [] + }, + { + "value": "5993", + "text": "阳东县", + "childrens": [] + }, + { + "value": "985990", + "text": "阳江市", + "childrens": [] + } + ] + }, + { + "value": "6010", + "text": "清远市", + "childrens": [ + { + "value": "6011", + "text": "佛冈县", + "childrens": [] + }, + { + "value": "6012", + "text": "英德市", + "childrens": [] + }, + { + "value": "6013", + "text": "阳山县", + "childrens": [] + }, + { + "value": "6014", + "text": "连州市", + "childrens": [] + }, + { + "value": "6015", + "text": "连山壮族瑶族自治县", + "childrens": [] + }, + { + "value": "6016", + "text": "连南瑶族自治县", + "childrens": [] + }, + { + "value": "6017", + "text": "清新县", + "childrens": [] + }, + { + "value": "986010", + "text": "清远市", + "childrens": [] + } + ] + }, + { + "value": "6020", + "text": "东莞市", + "childrens": [ + { + "value": "986020", + "text": "东莞市", + "childrens": [] + }, + { + "value": "986021", + "text": "虎门", + "childrens": [] + } + ] + }, + { + "value": "6030", + "text": "中山市", + "childrens": [ + { + "value": "986030", + "text": "中山市", + "childrens": [] + } + ] + }, + { + "value": "6040", + "text": "潮州市", + "childrens": [ + { + "value": "6041", + "text": "潮安县", + "childrens": [] + }, + { + "value": "6042", + "text": "饶平县", + "childrens": [] + }, + { + "value": "986040", + "text": "潮州市", + "childrens": [] + } + ] + }, + { + "value": "6050", + "text": "揭阳市", + "childrens": [ + { + "value": "6051", + "text": "揭东县", + "childrens": [] + }, + { + "value": "6052", + "text": "揭西县", + "childrens": [] + }, + { + "value": "6053", + "text": "惠来县", + "childrens": [] + }, + { + "value": "6054", + "text": "普宁市", + "childrens": [] + }, + { + "value": "986050", + "text": "揭阳市", + "childrens": [] + } + ] + }, + { + "value": "6060", + "text": "云浮市", + "childrens": [ + { + "value": "6061", + "text": "新兴县", + "childrens": [] + }, + { + "value": "6062", + "text": "郁南县", + "childrens": [] + }, + { + "value": "6063", + "text": "云安县", + "childrens": [] + }, + { + "value": "6064", + "text": "罗定市", + "childrens": [] + }, + { + "value": "986060", + "text": "云浮市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "6100", + "text": "广西壮族自治区", + "childrens": [ + { + "value": "6110", + "text": "南宁市", + "childrens": [ + { + "value": "6112", + "text": "武鸣县", + "childrens": [] + }, + { + "value": "6122", + "text": "横县", + "childrens": [] + }, + { + "value": "6123", + "text": "宾阳县", + "childrens": [] + }, + { + "value": "6124", + "text": "上林县", + "childrens": [] + }, + { + "value": "6125", + "text": "隆安县", + "childrens": [] + }, + { + "value": "6126", + "text": "马山县", + "childrens": [] + }, + { + "value": "986110", + "text": "南宁市", + "childrens": [] + } + ] + }, + { + "value": "6140", + "text": "柳州市", + "childrens": [ + { + "value": "6141", + "text": "柳江县", + "childrens": [] + }, + { + "value": "6142", + "text": "柳城县", + "childrens": [] + }, + { + "value": "6152", + "text": "鹿寨县", + "childrens": [] + }, + { + "value": "6156", + "text": "融安县", + "childrens": [] + }, + { + "value": "6157", + "text": "三江侗族自治县", + "childrens": [] + }, + { + "value": "6158", + "text": "融水苗族自治县", + "childrens": [] + }, + { + "value": "986140", + "text": "柳州市", + "childrens": [] + } + ] + }, + { + "value": "6170", + "text": "桂林市", + "childrens": [ + { + "value": "6171", + "text": "阳朔县", + "childrens": [] + }, + { + "value": "6172", + "text": "临桂县", + "childrens": [] + }, + { + "value": "6181", + "text": "灵川县", + "childrens": [] + }, + { + "value": "6182", + "text": "全州县", + "childrens": [] + }, + { + "value": "6183", + "text": "兴安县", + "childrens": [] + }, + { + "value": "6184", + "text": "永福县", + "childrens": [] + }, + { + "value": "6185", + "text": "灌阳县", + "childrens": [] + }, + { + "value": "6186", + "text": "龙胜各族自治县", + "childrens": [] + }, + { + "value": "6187", + "text": "资源县", + "childrens": [] + }, + { + "value": "6188", + "text": "平乐县", + "childrens": [] + }, + { + "value": "6189", + "text": "荔蒲县", + "childrens": [] + }, + { + "value": "6191", + "text": "恭城瑶族自治县", + "childrens": [] + }, + { + "value": "986170", + "text": "桂林市", + "childrens": [] + } + ] + }, + { + "value": "6210", + "text": "梧州市", + "childrens": [ + { + "value": "6211", + "text": "苍梧县", + "childrens": [] + }, + { + "value": "6221", + "text": "岑溪市", + "childrens": [] + }, + { + "value": "6222", + "text": "藤县", + "childrens": [] + }, + { + "value": "6224", + "text": "蒙山县", + "childrens": [] + }, + { + "value": "986210", + "text": "梧州市", + "childrens": [] + } + ] + }, + { + "value": "6230", + "text": "北海市", + "childrens": [ + { + "value": "6231", + "text": "合浦县", + "childrens": [] + }, + { + "value": "986230", + "text": "北海市", + "childrens": [] + } + ] + }, + { + "value": "6240", + "text": "玉林市", + "childrens": [ + { + "value": "6245", + "text": "容县", + "childrens": [] + }, + { + "value": "6246", + "text": "北流市", + "childrens": [] + }, + { + "value": "6247", + "text": "陆川县", + "childrens": [] + }, + { + "value": "6248", + "text": "博白县", + "childrens": [] + }, + { + "value": "6249", + "text": "兴业县", + "childrens": [] + }, + { + "value": "986240", + "text": "玉林市", + "childrens": [] + } + ] + }, + { + "value": "6260", + "text": "百色市", + "childrens": [ + { + "value": "6262", + "text": "田阳县", + "childrens": [] + }, + { + "value": "6263", + "text": "田东县", + "childrens": [] + }, + { + "value": "6264", + "text": "平果县", + "childrens": [] + }, + { + "value": "6265", + "text": "德保县", + "childrens": [] + }, + { + "value": "6266", + "text": "靖西县", + "childrens": [] + }, + { + "value": "6267", + "text": "那坡县", + "childrens": [] + }, + { + "value": "6268", + "text": "凌云县", + "childrens": [] + }, + { + "value": "6269", + "text": "乐业县", + "childrens": [] + }, + { + "value": "6271", + "text": "田林县", + "childrens": [] + }, + { + "value": "6272", + "text": "隆林各族自治县", + "childrens": [] + }, + { + "value": "6273", + "text": "西林县", + "childrens": [] + }, + { + "value": "986260", + "text": "百色市", + "childrens": [] + } + ] + }, + { + "value": "6280", + "text": "河池市", + "childrens": [ + { + "value": "6282", + "text": "宜州市", + "childrens": [] + }, + { + "value": "6283", + "text": "罗城仫佬族自治县", + "childrens": [] + }, + { + "value": "6284", + "text": "环江毛南族自治县", + "childrens": [] + }, + { + "value": "6285", + "text": "南丹县", + "childrens": [] + }, + { + "value": "6286", + "text": "天峨县", + "childrens": [] + }, + { + "value": "6287", + "text": "凤山县", + "childrens": [] + }, + { + "value": "6288", + "text": "东兰县", + "childrens": [] + }, + { + "value": "6289", + "text": "巴马瑶族自治县", + "childrens": [] + }, + { + "value": "6291", + "text": "都安瑶族自治县", + "childrens": [] + }, + { + "value": "6292", + "text": "大化瑶族自治县", + "childrens": [] + }, + { + "value": "986280", + "text": "河池市", + "childrens": [] + } + ] + }, + { + "value": "6310", + "text": "钦州市", + "childrens": [ + { + "value": "6314", + "text": "灵山县", + "childrens": [] + }, + { + "value": "6315", + "text": "浦北县", + "childrens": [] + }, + { + "value": "986310", + "text": "钦州市", + "childrens": [] + } + ] + }, + { + "value": "6320", + "text": "防城港市", + "childrens": [ + { + "value": "6321", + "text": "上思县", + "childrens": [] + }, + { + "value": "6322", + "text": "东兴市", + "childrens": [] + }, + { + "value": "986320", + "text": "防城港市", + "childrens": [] + } + ] + }, + { + "value": "6330", + "text": "贵港市", + "childrens": [ + { + "value": "6331", + "text": "平南县", + "childrens": [] + }, + { + "value": "6332", + "text": "桂平市", + "childrens": [] + }, + { + "value": "986330", + "text": "贵港市", + "childrens": [] + } + ] + }, + { + "value": "6340", + "text": "贺州市", + "childrens": [ + { + "value": "6341", + "text": "昭平县", + "childrens": [] + }, + { + "value": "6342", + "text": "钟山县", + "childrens": [] + }, + { + "value": "6343", + "text": "富川瑶族自治县", + "childrens": [] + }, + { + "value": "986340", + "text": "贺州市", + "childrens": [] + } + ] + }, + { + "value": "6350", + "text": "来宾市", + "childrens": [ + { + "value": "6351", + "text": "忻城县", + "childrens": [] + }, + { + "value": "6352", + "text": "象州县", + "childrens": [] + }, + { + "value": "6353", + "text": "武宣县", + "childrens": [] + }, + { + "value": "6354", + "text": "金秀瑶族自治县", + "childrens": [] + }, + { + "value": "6355", + "text": "合山市", + "childrens": [] + }, + { + "value": "986350", + "text": "来宾市", + "childrens": [] + } + ] + }, + { + "value": "6360", + "text": "崇左市", + "childrens": [ + { + "value": "6361", + "text": "扶绥县", + "childrens": [] + }, + { + "value": "6362", + "text": "宁明县", + "childrens": [] + }, + { + "value": "6363", + "text": "龙州县", + "childrens": [] + }, + { + "value": "6364", + "text": "大新县", + "childrens": [] + }, + { + "value": "6365", + "text": "天等县", + "childrens": [] + }, + { + "value": "6366", + "text": "凭祥市", + "childrens": [] + }, + { + "value": "986360", + "text": "崇左市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "6400", + "text": "海南省", + "childrens": [ + { + "value": "6410", + "text": "海口市", + "childrens": [ + { + "value": "986410", + "text": "海口市", + "childrens": [] + } + ] + }, + { + "value": "6420", + "text": "三亚市", + "childrens": [ + { + "value": "6421", + "text": "五指山市", + "childrens": [] + }, + { + "value": "6423", + "text": "文昌市", + "childrens": [] + }, + { + "value": "6424", + "text": "琼海市", + "childrens": [] + }, + { + "value": "6425", + "text": "万宁市", + "childrens": [] + }, + { + "value": "6426", + "text": "定安县", + "childrens": [] + }, + { + "value": "6427", + "text": "屯昌县", + "childrens": [] + }, + { + "value": "6428", + "text": "澄迈县", + "childrens": [] + }, + { + "value": "6429", + "text": "临高县", + "childrens": [] + }, + { + "value": "6431", + "text": "儋州市", + "childrens": [] + }, + { + "value": "6432", + "text": "白沙黎族自治县", + "childrens": [] + }, + { + "value": "6433", + "text": "昌江黎族自治县", + "childrens": [] + }, + { + "value": "6434", + "text": "东方市(省直辖)", + "childrens": [] + }, + { + "value": "6435", + "text": "乐东黎族自治县(省直辖)", + "childrens": [] + }, + { + "value": "6436", + "text": "陵水黎族自治县(省直辖)", + "childrens": [] + }, + { + "value": "6437", + "text": "保亭黎族苗族自治县(省直辖)", + "childrens": [] + }, + { + "value": "6438", + "text": "琼中黎族苗族自治县(省直辖)", + "childrens": [] + }, + { + "value": "6439", + "text": "西沙群岛", + "childrens": [] + }, + { + "value": "6441", + "text": "南沙群岛", + "childrens": [] + }, + { + "value": "6442", + "text": "中沙群岛的岛礁及其海域", + "childrens": [] + }, + { + "value": "986420", + "text": "三亚市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "6500", + "text": "四川省", + "childrens": [ + { + "value": "6510", + "text": "成都市", + "childrens": [ + { + "value": "6511", + "text": "金堂县", + "childrens": [] + }, + { + "value": "6512", + "text": "双流县", + "childrens": [] + }, + { + "value": "6514", + "text": "郫县", + "childrens": [] + }, + { + "value": "6516", + "text": "彭州市", + "childrens": [] + }, + { + "value": "6517", + "text": "崇州市", + "childrens": [] + }, + { + "value": "6518", + "text": "大邑县", + "childrens": [] + }, + { + "value": "6519", + "text": "邛崃市", + "childrens": [] + }, + { + "value": "6521", + "text": "蒲江县", + "childrens": [] + }, + { + "value": "6522", + "text": "新津县", + "childrens": [] + }, + { + "value": "6523", + "text": "都江堰市", + "childrens": [] + }, + { + "value": "986510", + "text": "成都市", + "childrens": [] + } + ] + }, + { + "value": "6550", + "text": "自贡市", + "childrens": [ + { + "value": "6551", + "text": "荣县", + "childrens": [] + }, + { + "value": "6552", + "text": "富顺县", + "childrens": [] + }, + { + "value": "986550", + "text": "自贡市", + "childrens": [] + } + ] + }, + { + "value": "6560", + "text": "攀枝花市", + "childrens": [ + { + "value": "6561", + "text": "米易县", + "childrens": [] + }, + { + "value": "6562", + "text": "盐边县", + "childrens": [] + }, + { + "value": "986560", + "text": "攀枝花市", + "childrens": [] + } + ] + }, + { + "value": "6570", + "text": "泸州市", + "childrens": [ + { + "value": "6571", + "text": "泸县", + "childrens": [] + }, + { + "value": "6572", + "text": "合江县", + "childrens": [] + }, + { + "value": "6574", + "text": "叙永县", + "childrens": [] + }, + { + "value": "6575", + "text": "古蔺县", + "childrens": [] + }, + { + "value": "986570", + "text": "泸州市", + "childrens": [] + } + ] + }, + { + "value": "6580", + "text": "德阳市", + "childrens": [ + { + "value": "6581", + "text": "绵竹市", + "childrens": [] + }, + { + "value": "6582", + "text": "中江县", + "childrens": [] + }, + { + "value": "6583", + "text": "什邡市", + "childrens": [] + }, + { + "value": "6584", + "text": "广汉市", + "childrens": [] + }, + { + "value": "6585", + "text": "罗江县", + "childrens": [] + }, + { + "value": "986580", + "text": "德阳市", + "childrens": [] + } + ] + }, + { + "value": "6590", + "text": "绵阳市", + "childrens": [ + { + "value": "6591", + "text": "三台县", + "childrens": [] + }, + { + "value": "6592", + "text": "盐亭县", + "childrens": [] + }, + { + "value": "6593", + "text": "安县", + "childrens": [] + }, + { + "value": "6594", + "text": "梓潼县", + "childrens": [] + }, + { + "value": "6595", + "text": "北川羌族自治县", + "childrens": [] + }, + { + "value": "6596", + "text": "平武县", + "childrens": [] + }, + { + "value": "6597", + "text": "江油市", + "childrens": [] + }, + { + "value": "986590", + "text": "绵阳市", + "childrens": [] + } + ] + }, + { + "value": "6610", + "text": "广元市", + "childrens": [ + { + "value": "6611", + "text": "旺苍县", + "childrens": [] + }, + { + "value": "6612", + "text": "青川县", + "childrens": [] + }, + { + "value": "6613", + "text": "剑阁县", + "childrens": [] + }, + { + "value": "6614", + "text": "苍溪县", + "childrens": [] + }, + { + "value": "986610", + "text": "广元市", + "childrens": [] + } + ] + }, + { + "value": "6620", + "text": "遂宁市", + "childrens": [ + { + "value": "6621", + "text": "蓬溪县", + "childrens": [] + }, + { + "value": "6622", + "text": "射洪县", + "childrens": [] + }, + { + "value": "6623", + "text": "大英县", + "childrens": [] + }, + { + "value": "986620", + "text": "遂宁市", + "childrens": [] + } + ] + }, + { + "value": "6630", + "text": "内江市", + "childrens": [ + { + "value": "6634", + "text": "威远县", + "childrens": [] + }, + { + "value": "6635", + "text": "资中县", + "childrens": [] + }, + { + "value": "6638", + "text": "隆昌县", + "childrens": [] + }, + { + "value": "986630", + "text": "内江市", + "childrens": [] + } + ] + }, + { + "value": "6650", + "text": "乐山市", + "childrens": [ + { + "value": "6653", + "text": "犍为县", + "childrens": [] + }, + { + "value": "6654", + "text": "井研县", + "childrens": [] + }, + { + "value": "6655", + "text": "夹江县", + "childrens": [] + }, + { + "value": "6658", + "text": "沐川县", + "childrens": [] + }, + { + "value": "6662", + "text": "峨边彝族自治县", + "childrens": [] + }, + { + "value": "6663", + "text": "马边彝族自治县", + "childrens": [] + }, + { + "value": "6664", + "text": "峨眉山市", + "childrens": [] + }, + { + "value": "986650", + "text": "乐山市", + "childrens": [] + } + ] + }, + { + "value": "6670", + "text": "眉山市", + "childrens": [ + { + "value": "6671", + "text": "仁寿县", + "childrens": [] + }, + { + "value": "6672", + "text": "彭山县", + "childrens": [] + }, + { + "value": "6673", + "text": "洪雅县", + "childrens": [] + }, + { + "value": "6674", + "text": "丹棱县", + "childrens": [] + }, + { + "value": "6675", + "text": "青神县", + "childrens": [] + }, + { + "value": "986670", + "text": "眉山市", + "childrens": [] + } + ] + }, + { + "value": "6690", + "text": "广安市", + "childrens": [ + { + "value": "6691", + "text": "岳池县", + "childrens": [] + }, + { + "value": "6692", + "text": "武胜县", + "childrens": [] + }, + { + "value": "6693", + "text": "邻水县", + "childrens": [] + }, + { + "value": "6694", + "text": "华蓥市", + "childrens": [] + }, + { + "value": "986690", + "text": "广安市", + "childrens": [] + } + ] + }, + { + "value": "6710", + "text": "宜宾市", + "childrens": [ + { + "value": "6712", + "text": "宜宾县", + "childrens": [] + }, + { + "value": "6713", + "text": "南溪县", + "childrens": [] + }, + { + "value": "6714", + "text": "江安县", + "childrens": [] + }, + { + "value": "6715", + "text": "长宁县", + "childrens": [] + }, + { + "value": "6716", + "text": "高县", + "childrens": [] + }, + { + "value": "6717", + "text": "筠连县", + "childrens": [] + }, + { + "value": "6718", + "text": "珙县", + "childrens": [] + }, + { + "value": "6719", + "text": "兴文县", + "childrens": [] + }, + { + "value": "6721", + "text": "屏山县", + "childrens": [] + }, + { + "value": "986710", + "text": "宜宾市", + "childrens": [] + } + ] + }, + { + "value": "6730", + "text": "南充市", + "childrens": [ + { + "value": "6734", + "text": "南部县", + "childrens": [] + }, + { + "value": "6736", + "text": "营山县", + "childrens": [] + }, + { + "value": "6738", + "text": "蓬安县", + "childrens": [] + }, + { + "value": "6739", + "text": "仪陇县", + "childrens": [] + }, + { + "value": "6742", + "text": "西充县", + "childrens": [] + }, + { + "value": "6743", + "text": "阆中市", + "childrens": [] + }, + { + "value": "986730", + "text": "南充市", + "childrens": [] + } + ] + }, + { + "value": "6750", + "text": "达州市", + "childrens": [ + { + "value": "6752", + "text": "达县", + "childrens": [] + }, + { + "value": "6753", + "text": "宣汉县", + "childrens": [] + }, + { + "value": "6754", + "text": "开江县", + "childrens": [] + }, + { + "value": "6755", + "text": "万源市", + "childrens": [] + }, + { + "value": "6761", + "text": "大竹县", + "childrens": [] + }, + { + "value": "6762", + "text": "渠县", + "childrens": [] + }, + { + "value": "986750", + "text": "达州市", + "childrens": [] + } + ] + }, + { + "value": "6770", + "text": "雅安市", + "childrens": [ + { + "value": "6772", + "text": "名山县", + "childrens": [] + }, + { + "value": "6773", + "text": "荥经县", + "childrens": [] + }, + { + "value": "6774", + "text": "汉源县", + "childrens": [] + }, + { + "value": "6775", + "text": "石棉县", + "childrens": [] + }, + { + "value": "6776", + "text": "天全县", + "childrens": [] + }, + { + "value": "6777", + "text": "芦山县", + "childrens": [] + }, + { + "value": "6778", + "text": "宝兴县", + "childrens": [] + }, + { + "value": "986770", + "text": "雅安市", + "childrens": [] + } + ] + }, + { + "value": "6790", + "text": "阿坝藏族羌族自治州", + "childrens": [ + { + "value": "6791", + "text": "汶川县", + "childrens": [] + }, + { + "value": "6792", + "text": "理县", + "childrens": [] + }, + { + "value": "6793", + "text": "茂县", + "childrens": [] + }, + { + "value": "6794", + "text": "松潘县", + "childrens": [] + }, + { + "value": "6795", + "text": "九寨沟县", + "childrens": [] + }, + { + "value": "6796", + "text": "金川县", + "childrens": [] + }, + { + "value": "6797", + "text": "小金县", + "childrens": [] + }, + { + "value": "6798", + "text": "黑水县", + "childrens": [] + }, + { + "value": "6799", + "text": "马尔康县", + "childrens": [] + }, + { + "value": "6801", + "text": "壤塘县", + "childrens": [] + }, + { + "value": "6802", + "text": "阿坝县", + "childrens": [] + }, + { + "value": "6803", + "text": "若尔盖县", + "childrens": [] + }, + { + "value": "6804", + "text": "红原县", + "childrens": [] + }, + { + "value": "986790", + "text": "阿坝藏族羌族自治州", + "childrens": [] + } + ] + }, + { + "value": "6810", + "text": "甘孜藏族自治州", + "childrens": [ + { + "value": "6811", + "text": "康定县", + "childrens": [] + }, + { + "value": "6812", + "text": "泸定县", + "childrens": [] + }, + { + "value": "6813", + "text": "丹巴县", + "childrens": [] + }, + { + "value": "6814", + "text": "九龙县", + "childrens": [] + }, + { + "value": "6815", + "text": "雅江县", + "childrens": [] + }, + { + "value": "6816", + "text": "道孚县", + "childrens": [] + }, + { + "value": "6817", + "text": "炉霍县", + "childrens": [] + }, + { + "value": "6818", + "text": "甘孜县", + "childrens": [] + }, + { + "value": "6819", + "text": "新龙县", + "childrens": [] + }, + { + "value": "6821", + "text": "德格县", + "childrens": [] + }, + { + "value": "6822", + "text": "白玉县", + "childrens": [] + }, + { + "value": "6823", + "text": "石渠县", + "childrens": [] + }, + { + "value": "6824", + "text": "色达县", + "childrens": [] + }, + { + "value": "6825", + "text": "理塘县", + "childrens": [] + }, + { + "value": "6826", + "text": "巴塘县", + "childrens": [] + }, + { + "value": "6827", + "text": "乡城县", + "childrens": [] + }, + { + "value": "6828", + "text": "稻城县", + "childrens": [] + }, + { + "value": "6829", + "text": "得荣县", + "childrens": [] + }, + { + "value": "986810", + "text": "甘孜藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "6840", + "text": "凉山彝族自治州", + "childrens": [ + { + "value": "6841", + "text": "西昌市", + "childrens": [] + }, + { + "value": "6842", + "text": "木里藏族自治县", + "childrens": [] + }, + { + "value": "6843", + "text": "盐源县", + "childrens": [] + }, + { + "value": "6844", + "text": "德昌县", + "childrens": [] + }, + { + "value": "6845", + "text": "会理县", + "childrens": [] + }, + { + "value": "6846", + "text": "会东县", + "childrens": [] + }, + { + "value": "6847", + "text": "宁南县", + "childrens": [] + }, + { + "value": "6848", + "text": "普格县", + "childrens": [] + }, + { + "value": "6849", + "text": "布拖县", + "childrens": [] + }, + { + "value": "6851", + "text": "金阳县", + "childrens": [] + }, + { + "value": "6852", + "text": "昭觉县", + "childrens": [] + }, + { + "value": "6853", + "text": "喜德县", + "childrens": [] + }, + { + "value": "6854", + "text": "冕宁县", + "childrens": [] + }, + { + "value": "6855", + "text": "越西县", + "childrens": [] + }, + { + "value": "6856", + "text": "甘洛县", + "childrens": [] + }, + { + "value": "6857", + "text": "美姑县", + "childrens": [] + }, + { + "value": "6858", + "text": "雷波县", + "childrens": [] + }, + { + "value": "986840", + "text": "凉山彝族自治州", + "childrens": [] + } + ] + }, + { + "value": "6870", + "text": "巴中市", + "childrens": [ + { + "value": "6871", + "text": "通江县", + "childrens": [] + }, + { + "value": "6872", + "text": "南江县", + "childrens": [] + }, + { + "value": "6873", + "text": "平昌县", + "childrens": [] + }, + { + "value": "986870", + "text": "巴中市", + "childrens": [] + } + ] + }, + { + "value": "6880", + "text": "资阳市", + "childrens": [ + { + "value": "6881", + "text": "安岳县", + "childrens": [] + }, + { + "value": "6882", + "text": "乐至县", + "childrens": [] + }, + { + "value": "6883", + "text": "简阳市", + "childrens": [] + }, + { + "value": "986880", + "text": "资阳市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "7000", + "text": "贵州省", + "childrens": [ + { + "value": "7010", + "text": "贵阳市", + "childrens": [ + { + "value": "7011", + "text": "开阳县", + "childrens": [] + }, + { + "value": "7012", + "text": "息烽县", + "childrens": [] + }, + { + "value": "7013", + "text": "修文县", + "childrens": [] + }, + { + "value": "7014", + "text": "清镇市", + "childrens": [] + }, + { + "value": "987010", + "text": "贵阳市", + "childrens": [] + } + ] + }, + { + "value": "7020", + "text": "六盘水市", + "childrens": [ + { + "value": "7021", + "text": "水城县", + "childrens": [] + }, + { + "value": "7022", + "text": "盘县", + "childrens": [] + }, + { + "value": "987020", + "text": "六盘水市", + "childrens": [] + } + ] + }, + { + "value": "7030", + "text": "遵义市", + "childrens": [ + { + "value": "7032", + "text": "遵义县", + "childrens": [] + }, + { + "value": "7033", + "text": "桐梓县", + "childrens": [] + }, + { + "value": "7034", + "text": "绥阳县", + "childrens": [] + }, + { + "value": "7035", + "text": "正安县", + "childrens": [] + }, + { + "value": "7036", + "text": "道真仡佬族苗族自治县", + "childrens": [] + }, + { + "value": "7037", + "text": "务川仡佬族苗族自治县", + "childrens": [] + }, + { + "value": "7038", + "text": "凤冈县", + "childrens": [] + }, + { + "value": "7039", + "text": "湄潭县", + "childrens": [] + }, + { + "value": "7041", + "text": "余庆县", + "childrens": [] + }, + { + "value": "7042", + "text": "仁怀市", + "childrens": [] + }, + { + "value": "7043", + "text": "赤水市", + "childrens": [] + }, + { + "value": "7044", + "text": "习水县", + "childrens": [] + }, + { + "value": "987030", + "text": "遵义市", + "childrens": [] + } + ] + }, + { + "value": "7050", + "text": "铜仁地区", + "childrens": [ + { + "value": "7051", + "text": "铜仁市", + "childrens": [] + }, + { + "value": "7052", + "text": "江口县", + "childrens": [] + }, + { + "value": "7053", + "text": "玉屏侗族自治县", + "childrens": [] + }, + { + "value": "7054", + "text": "石阡县", + "childrens": [] + }, + { + "value": "7055", + "text": "思南县", + "childrens": [] + }, + { + "value": "7056", + "text": "印江土家族苗族自治县", + "childrens": [] + }, + { + "value": "7057", + "text": "德江县", + "childrens": [] + }, + { + "value": "7058", + "text": "沿河土家族自治县", + "childrens": [] + }, + { + "value": "7059", + "text": "松桃苗族自治县", + "childrens": [] + }, + { + "value": "7061", + "text": "万山特区", + "childrens": [] + }, + { + "value": "987050", + "text": "铜仁地区", + "childrens": [] + } + ] + }, + { + "value": "7070", + "text": "黔西南布依族苗族自治州", + "childrens": [ + { + "value": "7071", + "text": "兴义市", + "childrens": [] + }, + { + "value": "7072", + "text": "兴仁县", + "childrens": [] + }, + { + "value": "7073", + "text": "普安县", + "childrens": [] + }, + { + "value": "7074", + "text": "晴隆县", + "childrens": [] + }, + { + "value": "7075", + "text": "贞丰县", + "childrens": [] + }, + { + "value": "7076", + "text": "望谟县", + "childrens": [] + }, + { + "value": "7077", + "text": "册亨县", + "childrens": [] + }, + { + "value": "7078", + "text": "安龙县", + "childrens": [] + }, + { + "value": "987070", + "text": "黔西南布依族苗族自治州", + "childrens": [] + } + ] + }, + { + "value": "7090", + "text": "毕节地区", + "childrens": [ + { + "value": "7091", + "text": "毕节市", + "childrens": [] + }, + { + "value": "7092", + "text": "大方县", + "childrens": [] + }, + { + "value": "7093", + "text": "黔西县", + "childrens": [] + }, + { + "value": "7094", + "text": "金沙县", + "childrens": [] + }, + { + "value": "7095", + "text": "织金县", + "childrens": [] + }, + { + "value": "7096", + "text": "纳雍县", + "childrens": [] + }, + { + "value": "7097", + "text": "威宁彝族回族苗族自治县", + "childrens": [] + }, + { + "value": "7098", + "text": "赫章县", + "childrens": [] + }, + { + "value": "987090", + "text": "毕节地区", + "childrens": [] + } + ] + }, + { + "value": "7110", + "text": "安顺市", + "childrens": [ + { + "value": "7117", + "text": "平坝县", + "childrens": [] + }, + { + "value": "7118", + "text": "普定县", + "childrens": [] + }, + { + "value": "7119", + "text": "关岭布依族苗族自治县", + "childrens": [] + }, + { + "value": "7121", + "text": "镇宁布依族苗族自治县", + "childrens": [] + }, + { + "value": "7122", + "text": "紫云苗族布依族自治县", + "childrens": [] + }, + { + "value": "987110", + "text": "安顺市", + "childrens": [] + } + ] + }, + { + "value": "7130", + "text": "黔东南苗族侗族自治州", + "childrens": [ + { + "value": "7131", + "text": "凯里市", + "childrens": [] + }, + { + "value": "7132", + "text": "黄平县", + "childrens": [] + }, + { + "value": "7133", + "text": "施秉县", + "childrens": [] + }, + { + "value": "7134", + "text": "三穗县", + "childrens": [] + }, + { + "value": "7135", + "text": "镇远县", + "childrens": [] + }, + { + "value": "7136", + "text": "岑巩县", + "childrens": [] + }, + { + "value": "7137", + "text": "天柱县", + "childrens": [] + }, + { + "value": "7138", + "text": "锦屏县", + "childrens": [] + }, + { + "value": "7139", + "text": "剑河县", + "childrens": [] + }, + { + "value": "7141", + "text": "台江县", + "childrens": [] + }, + { + "value": "7142", + "text": "黎平县", + "childrens": [] + }, + { + "value": "7143", + "text": "榕江县", + "childrens": [] + }, + { + "value": "7144", + "text": "从江县", + "childrens": [] + }, + { + "value": "7145", + "text": "雷山县", + "childrens": [] + }, + { + "value": "7146", + "text": "麻江县", + "childrens": [] + }, + { + "value": "7147", + "text": "丹寨县", + "childrens": [] + }, + { + "value": "987130", + "text": "黔东南苗族侗族自治州", + "childrens": [] + } + ] + }, + { + "value": "7150", + "text": "黔南布依族苗族自治州", + "childrens": [ + { + "value": "7151", + "text": "都匀市", + "childrens": [] + }, + { + "value": "7152", + "text": "荔波县", + "childrens": [] + }, + { + "value": "7153", + "text": "贵定县", + "childrens": [] + }, + { + "value": "7154", + "text": "福泉市", + "childrens": [] + }, + { + "value": "7155", + "text": "瓮安县", + "childrens": [] + }, + { + "value": "7156", + "text": "独山县", + "childrens": [] + }, + { + "value": "7157", + "text": "平塘县", + "childrens": [] + }, + { + "value": "7158", + "text": "罗甸县", + "childrens": [] + }, + { + "value": "7159", + "text": "长顺县", + "childrens": [] + }, + { + "value": "7161", + "text": "龙里县", + "childrens": [] + }, + { + "value": "7162", + "text": "惠水县", + "childrens": [] + }, + { + "value": "7163", + "text": "三都水族自治县", + "childrens": [] + }, + { + "value": "987150", + "text": "黔南布依族苗族自治州", + "childrens": [] + } + ] + } + ] + }, + { + "value": "7300", + "text": "云南省", + "childrens": [ + { + "value": "7310", + "text": "昆明市", + "childrens": [ + { + "value": "7311", + "text": "呈贡县", + "childrens": [] + }, + { + "value": "7312", + "text": "晋宁县", + "childrens": [] + }, + { + "value": "7313", + "text": "安宁市", + "childrens": [] + }, + { + "value": "7314", + "text": "富民县", + "childrens": [] + }, + { + "value": "7315", + "text": "宜良县", + "childrens": [] + }, + { + "value": "7316", + "text": "石林彝族自治县", + "childrens": [] + }, + { + "value": "7317", + "text": "嵩明县", + "childrens": [] + }, + { + "value": "7318", + "text": "禄劝彝族苗族自治县", + "childrens": [] + }, + { + "value": "7319", + "text": "寻甸回族彝族自治县", + "childrens": [] + }, + { + "value": "987310", + "text": "昆明市", + "childrens": [] + } + ] + }, + { + "value": "7340", + "text": "昭通市", + "childrens": [ + { + "value": "7342", + "text": "鲁甸县", + "childrens": [] + }, + { + "value": "7343", + "text": "巧家县", + "childrens": [] + }, + { + "value": "7344", + "text": "盐津县", + "childrens": [] + }, + { + "value": "7345", + "text": "大关县", + "childrens": [] + }, + { + "value": "7346", + "text": "永善县", + "childrens": [] + }, + { + "value": "7347", + "text": "绥江县", + "childrens": [] + }, + { + "value": "7348", + "text": "镇雄县", + "childrens": [] + }, + { + "value": "7349", + "text": "彝良县", + "childrens": [] + }, + { + "value": "7351", + "text": "威信县", + "childrens": [] + }, + { + "value": "7352", + "text": "水富县", + "childrens": [] + }, + { + "value": "987340", + "text": "昭通市", + "childrens": [] + } + ] + }, + { + "value": "7360", + "text": "曲靖市", + "childrens": [ + { + "value": "7362", + "text": "马龙县", + "childrens": [] + }, + { + "value": "7363", + "text": "宣威市", + "childrens": [] + }, + { + "value": "7364", + "text": "富源县", + "childrens": [] + }, + { + "value": "7365", + "text": "罗平县", + "childrens": [] + }, + { + "value": "7366", + "text": "师宗县", + "childrens": [] + }, + { + "value": "7367", + "text": "陆良县", + "childrens": [] + }, + { + "value": "7369", + "text": "会泽县", + "childrens": [] + }, + { + "value": "7371", + "text": "沾益县", + "childrens": [] + }, + { + "value": "987360", + "text": "曲靖市", + "childrens": [] + } + ] + }, + { + "value": "7380", + "text": "楚雄彝族自治州", + "childrens": [ + { + "value": "7381", + "text": "楚雄市", + "childrens": [] + }, + { + "value": "7382", + "text": "双柏县", + "childrens": [] + }, + { + "value": "7383", + "text": "牟定县", + "childrens": [] + }, + { + "value": "7384", + "text": "南华县", + "childrens": [] + }, + { + "value": "7385", + "text": "姚安县", + "childrens": [] + }, + { + "value": "7386", + "text": "大姚县", + "childrens": [] + }, + { + "value": "7387", + "text": "永仁县", + "childrens": [] + }, + { + "value": "7388", + "text": "元谋县", + "childrens": [] + }, + { + "value": "7389", + "text": "武定县", + "childrens": [] + }, + { + "value": "7391", + "text": "禄丰县", + "childrens": [] + }, + { + "value": "987380", + "text": "楚雄彝族自治州", + "childrens": [] + } + ] + }, + { + "value": "7410", + "text": "玉溪市", + "childrens": [ + { + "value": "7412", + "text": "江川县", + "childrens": [] + }, + { + "value": "7413", + "text": "澄江县", + "childrens": [] + }, + { + "value": "7414", + "text": "通海县", + "childrens": [] + }, + { + "value": "7415", + "text": "华宁县", + "childrens": [] + }, + { + "value": "7416", + "text": "易门县", + "childrens": [] + }, + { + "value": "7417", + "text": "峨山彝族自治县", + "childrens": [] + }, + { + "value": "7418", + "text": "新平彝族傣族自治县", + "childrens": [] + }, + { + "value": "7419", + "text": "元江哈尼族彝族傣族自治县", + "childrens": [] + }, + { + "value": "987410", + "text": "玉溪市", + "childrens": [] + } + ] + }, + { + "value": "7430", + "text": "红河哈尼族彝族自治州", + "childrens": [ + { + "value": "7431", + "text": "个旧市", + "childrens": [] + }, + { + "value": "7432", + "text": "开远市", + "childrens": [] + }, + { + "value": "7433", + "text": "蒙自县", + "childrens": [] + }, + { + "value": "7434", + "text": "屏边苗族自治县", + "childrens": [] + }, + { + "value": "7435", + "text": "建水县", + "childrens": [] + }, + { + "value": "7436", + "text": "石屏县", + "childrens": [] + }, + { + "value": "7437", + "text": "弥勒县", + "childrens": [] + }, + { + "value": "7438", + "text": "泸西县", + "childrens": [] + }, + { + "value": "7439", + "text": "元阳县", + "childrens": [] + }, + { + "value": "7441", + "text": "红河县", + "childrens": [] + }, + { + "value": "7442", + "text": "金平苗族瑶族傣族自治县", + "childrens": [] + }, + { + "value": "7443", + "text": "绿春县", + "childrens": [] + }, + { + "value": "7444", + "text": "河口瑶族自治县", + "childrens": [] + }, + { + "value": "987430", + "text": "红河哈尼族彝族自治州", + "childrens": [] + } + ] + }, + { + "value": "7450", + "text": "文山壮族苗族自治州", + "childrens": [ + { + "value": "7451", + "text": "文山县", + "childrens": [] + }, + { + "value": "7452", + "text": "砚山县", + "childrens": [] + }, + { + "value": "7453", + "text": "西畴县", + "childrens": [] + }, + { + "value": "7454", + "text": "麻栗坡县", + "childrens": [] + }, + { + "value": "7455", + "text": "马关县", + "childrens": [] + }, + { + "value": "7456", + "text": "丘北县", + "childrens": [] + }, + { + "value": "7457", + "text": "广南县", + "childrens": [] + }, + { + "value": "7458", + "text": "富宁县", + "childrens": [] + }, + { + "value": "987450", + "text": "文山壮族苗族自治州", + "childrens": [] + } + ] + }, + { + "value": "7470", + "text": "普洱市", + "childrens": [ + { + "value": "7472", + "text": "宁洱哈尼族彝族自治县", + "childrens": [] + }, + { + "value": "7473", + "text": "墨江哈尼族自治县", + "childrens": [] + }, + { + "value": "7474", + "text": "景东彝族自治县", + "childrens": [] + }, + { + "value": "7475", + "text": "景谷傣族彝族自治县", + "childrens": [] + }, + { + "value": "7476", + "text": "镇沅彝族哈尼族拉祜族自治县", + "childrens": [] + }, + { + "value": "7477", + "text": "江城哈尼族彝族自治县", + "childrens": [] + }, + { + "value": "7478", + "text": "孟连傣族拉祜族佤族自治县", + "childrens": [] + }, + { + "value": "7479", + "text": "澜沧拉祜族自治县", + "childrens": [] + }, + { + "value": "7481", + "text": "西盟佤族自治县", + "childrens": [] + }, + { + "value": "987470", + "text": "普洱市", + "childrens": [] + } + ] + }, + { + "value": "7490", + "text": "西双版纳傣族自治州", + "childrens": [ + { + "value": "7491", + "text": "景洪市", + "childrens": [] + }, + { + "value": "7492", + "text": "勐海县", + "childrens": [] + }, + { + "value": "7493", + "text": "勐腊县", + "childrens": [] + }, + { + "value": "987490", + "text": "西双版纳傣族自治州", + "childrens": [] + } + ] + }, + { + "value": "7510", + "text": "大理白族自治州", + "childrens": [ + { + "value": "7511", + "text": "大理市", + "childrens": [] + }, + { + "value": "7512", + "text": "漾濞彝族自治县", + "childrens": [] + }, + { + "value": "7513", + "text": "祥云县", + "childrens": [] + }, + { + "value": "7514", + "text": "宾川县", + "childrens": [] + }, + { + "value": "7515", + "text": "弥渡县", + "childrens": [] + }, + { + "value": "7516", + "text": "南涧彝族自治县", + "childrens": [] + }, + { + "value": "7517", + "text": "巍山彝族回族自治县", + "childrens": [] + }, + { + "value": "7518", + "text": "永平县", + "childrens": [] + }, + { + "value": "7519", + "text": "云龙县", + "childrens": [] + }, + { + "value": "7521", + "text": "洱源县", + "childrens": [] + }, + { + "value": "7522", + "text": "剑川县", + "childrens": [] + }, + { + "value": "7523", + "text": "鹤庆县", + "childrens": [] + }, + { + "value": "987510", + "text": "大理白族自治州", + "childrens": [] + } + ] + }, + { + "value": "7530", + "text": "保山市", + "childrens": [ + { + "value": "7532", + "text": "施甸县", + "childrens": [] + }, + { + "value": "7533", + "text": "腾冲县", + "childrens": [] + }, + { + "value": "7534", + "text": "龙陵县", + "childrens": [] + }, + { + "value": "7535", + "text": "昌宁县", + "childrens": [] + }, + { + "value": "987530", + "text": "保山市", + "childrens": [] + } + ] + }, + { + "value": "7540", + "text": "德宏傣族景颇族自治州", + "childrens": [ + { + "value": "7542", + "text": "潞西市", + "childrens": [] + }, + { + "value": "7543", + "text": "梁河县", + "childrens": [] + }, + { + "value": "7544", + "text": "盈江县", + "childrens": [] + }, + { + "value": "7545", + "text": "陇川县", + "childrens": [] + }, + { + "value": "7546", + "text": "瑞丽市", + "childrens": [] + }, + { + "value": "987540", + "text": "德宏傣族景颇族自治州", + "childrens": [] + } + ] + }, + { + "value": "7550", + "text": "丽江市", + "childrens": [ + { + "value": "7552", + "text": "永胜县", + "childrens": [] + }, + { + "value": "7553", + "text": "华坪县", + "childrens": [] + }, + { + "value": "7554", + "text": "宁蒗彝族自治县", + "childrens": [] + }, + { + "value": "7555", + "text": "玉龙纳西族自治县", + "childrens": [] + }, + { + "value": "987550", + "text": "丽江市", + "childrens": [] + } + ] + }, + { + "value": "7560", + "text": "怒江傈僳族自治州", + "childrens": [ + { + "value": "7561", + "text": "泸水县", + "childrens": [] + }, + { + "value": "7562", + "text": "福贡县", + "childrens": [] + }, + { + "value": "7563", + "text": "贡山独龙族怒族自治县", + "childrens": [] + }, + { + "value": "7564", + "text": "兰坪白族普米族自治县", + "childrens": [] + }, + { + "value": "987560", + "text": "怒江傈僳族自治州", + "childrens": [] + } + ] + }, + { + "value": "7570", + "text": "迪庆藏族自治州", + "childrens": [ + { + "value": "7571", + "text": "香格里拉县", + "childrens": [] + }, + { + "value": "7572", + "text": "德钦县", + "childrens": [] + }, + { + "value": "7573", + "text": "维西傈僳族自治县", + "childrens": [] + }, + { + "value": "987570", + "text": "迪庆藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "7580", + "text": "临沧市", + "childrens": [ + { + "value": "7582", + "text": "凤庆县", + "childrens": [] + }, + { + "value": "7583", + "text": "云县", + "childrens": [] + }, + { + "value": "7584", + "text": "永德县", + "childrens": [] + }, + { + "value": "7585", + "text": "镇康县", + "childrens": [] + }, + { + "value": "7586", + "text": "双江拉祜族佤族布朗族傣族自治县", + "childrens": [] + }, + { + "value": "7587", + "text": "耿马傣族佤族自治县", + "childrens": [] + }, + { + "value": "7588", + "text": "沧源佤族自治县", + "childrens": [] + }, + { + "value": "987580", + "text": "临沧市", + "childrens": [] + } + ] + }, + { + "value": "730001", + "text": "思茅市", + "childrens": [] + } + ] + }, + { + "value": "7700", + "text": "西藏自治区", + "childrens": [ + { + "value": "7710", + "text": "拉萨市", + "childrens": [ + { + "value": "7711", + "text": "林周县", + "childrens": [] + }, + { + "value": "7712", + "text": "当雄县", + "childrens": [] + }, + { + "value": "7713", + "text": "尼木县", + "childrens": [] + }, + { + "value": "7714", + "text": "曲水县", + "childrens": [] + }, + { + "value": "7715", + "text": "堆龙德庆县", + "childrens": [] + }, + { + "value": "7716", + "text": "达孜县", + "childrens": [] + }, + { + "value": "7717", + "text": "墨竹工卡县", + "childrens": [] + }, + { + "value": "987710", + "text": "拉萨市", + "childrens": [] + } + ] + }, + { + "value": "7720", + "text": "昌都地区", + "childrens": [ + { + "value": "7721", + "text": "昌都县", + "childrens": [] + }, + { + "value": "7722", + "text": "江达县", + "childrens": [] + }, + { + "value": "7723", + "text": "贡觉县", + "childrens": [] + }, + { + "value": "7724", + "text": "类乌齐县", + "childrens": [] + }, + { + "value": "7725", + "text": "丁青县", + "childrens": [] + }, + { + "value": "7726", + "text": "察雅县", + "childrens": [] + }, + { + "value": "7727", + "text": "八宿县", + "childrens": [] + }, + { + "value": "7728", + "text": "左贡县", + "childrens": [] + }, + { + "value": "7729", + "text": "芒康县", + "childrens": [] + }, + { + "value": "7731", + "text": "洛隆县", + "childrens": [] + }, + { + "value": "7732", + "text": "边坝县", + "childrens": [] + }, + { + "value": "987720", + "text": "昌都地区", + "childrens": [] + } + ] + }, + { + "value": "7740", + "text": "山南地区", + "childrens": [ + { + "value": "7741", + "text": "乃东县", + "childrens": [] + }, + { + "value": "7742", + "text": "扎囊县", + "childrens": [] + }, + { + "value": "7743", + "text": "贡嘎县", + "childrens": [] + }, + { + "value": "7744", + "text": "桑日县", + "childrens": [] + }, + { + "value": "7745", + "text": "琼结县", + "childrens": [] + }, + { + "value": "7746", + "text": "曲松县", + "childrens": [] + }, + { + "value": "7747", + "text": "措美县", + "childrens": [] + }, + { + "value": "7748", + "text": "洛扎县", + "childrens": [] + }, + { + "value": "7749", + "text": "加查县", + "childrens": [] + }, + { + "value": "7751", + "text": "隆子县", + "childrens": [] + }, + { + "value": "7752", + "text": "错那县", + "childrens": [] + }, + { + "value": "7753", + "text": "浪卡子县", + "childrens": [] + }, + { + "value": "987740", + "text": "山南地区", + "childrens": [] + } + ] + }, + { + "value": "7760", + "text": "日喀则地区", + "childrens": [ + { + "value": "7761", + "text": "日喀则市", + "childrens": [] + }, + { + "value": "7762", + "text": "南木林县", + "childrens": [] + }, + { + "value": "7763", + "text": "江孜县", + "childrens": [] + }, + { + "value": "7764", + "text": "定日县", + "childrens": [] + }, + { + "value": "7765", + "text": "萨迦县", + "childrens": [] + }, + { + "value": "7766", + "text": "拉孜县", + "childrens": [] + }, + { + "value": "7767", + "text": "昂仁县", + "childrens": [] + }, + { + "value": "7768", + "text": "谢通门县", + "childrens": [] + }, + { + "value": "7769", + "text": "白朗县", + "childrens": [] + }, + { + "value": "7771", + "text": "仁布县", + "childrens": [] + }, + { + "value": "7772", + "text": "康马县", + "childrens": [] + }, + { + "value": "7773", + "text": "定结县", + "childrens": [] + }, + { + "value": "7774", + "text": "仲巴县", + "childrens": [] + }, + { + "value": "7775", + "text": "亚东县", + "childrens": [] + }, + { + "value": "7776", + "text": "吉隆县", + "childrens": [] + }, + { + "value": "7777", + "text": "聂拉木县", + "childrens": [] + }, + { + "value": "7778", + "text": "萨嘎县", + "childrens": [] + }, + { + "value": "7779", + "text": "岗巴县", + "childrens": [] + }, + { + "value": "987760", + "text": "日喀则地区", + "childrens": [] + } + ] + }, + { + "value": "7790", + "text": "那曲地区", + "childrens": [ + { + "value": "7791", + "text": "那曲县", + "childrens": [] + }, + { + "value": "7792", + "text": "嘉黎县", + "childrens": [] + }, + { + "value": "7793", + "text": "比如县", + "childrens": [] + }, + { + "value": "7794", + "text": "聂荣县", + "childrens": [] + }, + { + "value": "7795", + "text": "安多县", + "childrens": [] + }, + { + "value": "7796", + "text": "申扎县", + "childrens": [] + }, + { + "value": "7797", + "text": "索县", + "childrens": [] + }, + { + "value": "7798", + "text": "班戈县", + "childrens": [] + }, + { + "value": "7799", + "text": "巴青县", + "childrens": [] + }, + { + "value": "7801", + "text": "尼玛县以及双湖特别区", + "childrens": [] + }, + { + "value": "987790", + "text": "那曲地区", + "childrens": [] + } + ] + }, + { + "value": "7810", + "text": "阿里地区", + "childrens": [ + { + "value": "7811", + "text": "普兰县", + "childrens": [] + }, + { + "value": "7812", + "text": "札达县", + "childrens": [] + }, + { + "value": "7813", + "text": "噶尔县", + "childrens": [] + }, + { + "value": "7814", + "text": "日土县", + "childrens": [] + }, + { + "value": "7815", + "text": "革吉县", + "childrens": [] + }, + { + "value": "7816", + "text": "改则县", + "childrens": [] + }, + { + "value": "7817", + "text": "措勤县", + "childrens": [] + }, + { + "value": "987810", + "text": "阿里地区", + "childrens": [] + } + ] + }, + { + "value": "7830", + "text": "林芝地区", + "childrens": [ + { + "value": "7831", + "text": "林芝县", + "childrens": [] + }, + { + "value": "7832", + "text": "工布江达县", + "childrens": [] + }, + { + "value": "7833", + "text": "米林县", + "childrens": [] + }, + { + "value": "7834", + "text": "墨脱县", + "childrens": [] + }, + { + "value": "7835", + "text": "波密县", + "childrens": [] + }, + { + "value": "7836", + "text": "察隅县", + "childrens": [] + }, + { + "value": "7837", + "text": "朗县", + "childrens": [] + }, + { + "value": "987830", + "text": "林芝地区", + "childrens": [] + } + ] + } + ] + }, + { + "value": "7900", + "text": "陕西省", + "childrens": [ + { + "value": "7910", + "text": "西安市", + "childrens": [ + { + "value": "7912", + "text": "蓝田县", + "childrens": [] + }, + { + "value": "7914", + "text": "周至县", + "childrens": [] + }, + { + "value": "7915", + "text": "户县", + "childrens": [] + }, + { + "value": "7916", + "text": "高陵县", + "childrens": [] + }, + { + "value": "987910", + "text": "西安市", + "childrens": [] + } + ] + }, + { + "value": "7920", + "text": "铜川市", + "childrens": [ + { + "value": "7922", + "text": "宜君县", + "childrens": [] + }, + { + "value": "987920", + "text": "铜川市", + "childrens": [] + } + ] + }, + { + "value": "7930", + "text": "宝鸡市", + "childrens": [ + { + "value": "7932", + "text": "凤翔县", + "childrens": [] + }, + { + "value": "7933", + "text": "岐山县", + "childrens": [] + }, + { + "value": "7934", + "text": "扶风县", + "childrens": [] + }, + { + "value": "7935", + "text": "眉县", + "childrens": [] + }, + { + "value": "7936", + "text": "陇县", + "childrens": [] + }, + { + "value": "7937", + "text": "千阳县", + "childrens": [] + }, + { + "value": "7938", + "text": "麟游县", + "childrens": [] + }, + { + "value": "7939", + "text": "凤县", + "childrens": [] + }, + { + "value": "7941", + "text": "太白县", + "childrens": [] + }, + { + "value": "987930", + "text": "宝鸡市", + "childrens": [] + } + ] + }, + { + "value": "7950", + "text": "咸阳市", + "childrens": [ + { + "value": "7951", + "text": "兴平市", + "childrens": [] + }, + { + "value": "7952", + "text": "三原县", + "childrens": [] + }, + { + "value": "7953", + "text": "泾阳县", + "childrens": [] + }, + { + "value": "7954", + "text": "乾县", + "childrens": [] + }, + { + "value": "7955", + "text": "礼泉县", + "childrens": [] + }, + { + "value": "7956", + "text": "永寿县", + "childrens": [] + }, + { + "value": "7957", + "text": "彬县", + "childrens": [] + }, + { + "value": "7958", + "text": "长武县", + "childrens": [] + }, + { + "value": "7959", + "text": "旬邑县", + "childrens": [] + }, + { + "value": "7961", + "text": "淳化县", + "childrens": [] + }, + { + "value": "7962", + "text": "武功县", + "childrens": [] + }, + { + "value": "987950", + "text": "咸阳市", + "childrens": [] + } + ] + }, + { + "value": "7970", + "text": "渭南市", + "childrens": [ + { + "value": "7972", + "text": "韩城市", + "childrens": [] + }, + { + "value": "7973", + "text": "华县", + "childrens": [] + }, + { + "value": "7974", + "text": "华阴市", + "childrens": [] + }, + { + "value": "7975", + "text": "潼关县", + "childrens": [] + }, + { + "value": "7976", + "text": "大荔县", + "childrens": [] + }, + { + "value": "7977", + "text": "蒲城县", + "childrens": [] + }, + { + "value": "7978", + "text": "澄城县", + "childrens": [] + }, + { + "value": "7979", + "text": "白水县", + "childrens": [] + }, + { + "value": "7981", + "text": "合阳县", + "childrens": [] + }, + { + "value": "7982", + "text": "富平县", + "childrens": [] + }, + { + "value": "987970", + "text": "渭南市", + "childrens": [] + } + ] + }, + { + "value": "7990", + "text": "汉中市", + "childrens": [ + { + "value": "7992", + "text": "南郑县", + "childrens": [] + }, + { + "value": "7993", + "text": "城固县", + "childrens": [] + }, + { + "value": "7994", + "text": "洋县", + "childrens": [] + }, + { + "value": "7995", + "text": "西乡县", + "childrens": [] + }, + { + "value": "7996", + "text": "勉县", + "childrens": [] + }, + { + "value": "7997", + "text": "宁强县", + "childrens": [] + }, + { + "value": "7998", + "text": "略阳县", + "childrens": [] + }, + { + "value": "7999", + "text": "镇巴县", + "childrens": [] + }, + { + "value": "8001", + "text": "留坝县", + "childrens": [] + }, + { + "value": "8002", + "text": "佛坪县", + "childrens": [] + }, + { + "value": "987990", + "text": "汉中市", + "childrens": [] + } + ] + }, + { + "value": "8010", + "text": "安康市", + "childrens": [ + { + "value": "8012", + "text": "汉阴县", + "childrens": [] + }, + { + "value": "8013", + "text": "石泉县", + "childrens": [] + }, + { + "value": "8014", + "text": "宁陕县", + "childrens": [] + }, + { + "value": "8015", + "text": "紫阳县", + "childrens": [] + }, + { + "value": "8016", + "text": "岚皋县", + "childrens": [] + }, + { + "value": "8017", + "text": "平利县", + "childrens": [] + }, + { + "value": "8018", + "text": "镇坪县", + "childrens": [] + }, + { + "value": "8019", + "text": "旬阳县", + "childrens": [] + }, + { + "value": "8021", + "text": "白河县", + "childrens": [] + }, + { + "value": "988010", + "text": "安康市", + "childrens": [] + } + ] + }, + { + "value": "8030", + "text": "商洛市", + "childrens": [ + { + "value": "8032", + "text": "洛南县", + "childrens": [] + }, + { + "value": "8033", + "text": "丹凤县", + "childrens": [] + }, + { + "value": "8034", + "text": "商南县", + "childrens": [] + }, + { + "value": "8035", + "text": "山阳县", + "childrens": [] + }, + { + "value": "8036", + "text": "镇安县", + "childrens": [] + }, + { + "value": "8037", + "text": "柞水县", + "childrens": [] + }, + { + "value": "988030", + "text": "商洛市", + "childrens": [] + } + ] + }, + { + "value": "8040", + "text": "延安市", + "childrens": [ + { + "value": "8042", + "text": "延长县", + "childrens": [] + }, + { + "value": "8043", + "text": "延川县", + "childrens": [] + }, + { + "value": "8044", + "text": "子长县", + "childrens": [] + }, + { + "value": "8045", + "text": "安塞县", + "childrens": [] + }, + { + "value": "8046", + "text": "志丹县", + "childrens": [] + }, + { + "value": "8047", + "text": "吴起县", + "childrens": [] + }, + { + "value": "8048", + "text": "甘泉县", + "childrens": [] + }, + { + "value": "8049", + "text": "富县", + "childrens": [] + }, + { + "value": "8051", + "text": "洛川县", + "childrens": [] + }, + { + "value": "8052", + "text": "宜川县", + "childrens": [] + }, + { + "value": "8053", + "text": "黄龙县", + "childrens": [] + }, + { + "value": "8054", + "text": "黄陵县", + "childrens": [] + }, + { + "value": "988040", + "text": "延安市", + "childrens": [] + } + ] + }, + { + "value": "8060", + "text": "榆林市", + "childrens": [ + { + "value": "8062", + "text": "神木县", + "childrens": [] + }, + { + "value": "8063", + "text": "府谷县", + "childrens": [] + }, + { + "value": "8064", + "text": "横山县", + "childrens": [] + }, + { + "value": "8065", + "text": "靖边县", + "childrens": [] + }, + { + "value": "8066", + "text": "定边县", + "childrens": [] + }, + { + "value": "8067", + "text": "绥德县", + "childrens": [] + }, + { + "value": "8068", + "text": "米脂县", + "childrens": [] + }, + { + "value": "8069", + "text": "佳县", + "childrens": [] + }, + { + "value": "8071", + "text": "吴堡县", + "childrens": [] + }, + { + "value": "8072", + "text": "清涧县", + "childrens": [] + }, + { + "value": "8073", + "text": "子洲县", + "childrens": [] + }, + { + "value": "988060", + "text": "榆林市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "8200", + "text": "甘肃省", + "childrens": [ + { + "value": "8210", + "text": "兰州市", + "childrens": [ + { + "value": "8211", + "text": "永登县", + "childrens": [] + }, + { + "value": "8212", + "text": "皋兰县", + "childrens": [] + }, + { + "value": "8213", + "text": "榆中县", + "childrens": [] + }, + { + "value": "988210", + "text": "兰州市", + "childrens": [] + } + ] + }, + { + "value": "8220", + "text": "嘉峪关市", + "childrens": [ + { + "value": "988220", + "text": "嘉峪关市", + "childrens": [] + } + ] + }, + { + "value": "8230", + "text": "金昌市", + "childrens": [ + { + "value": "8231", + "text": "永昌县", + "childrens": [] + }, + { + "value": "988230", + "text": "金昌市", + "childrens": [] + } + ] + }, + { + "value": "8240", + "text": "白银市", + "childrens": [ + { + "value": "8241", + "text": "靖远县", + "childrens": [] + }, + { + "value": "8242", + "text": "会宁县", + "childrens": [] + }, + { + "value": "8243", + "text": "景泰县", + "childrens": [] + }, + { + "value": "988240", + "text": "白银市", + "childrens": [] + } + ] + }, + { + "value": "8250", + "text": "天水市", + "childrens": [ + { + "value": "8251", + "text": "清水县", + "childrens": [] + }, + { + "value": "8252", + "text": "秦安县", + "childrens": [] + }, + { + "value": "8253", + "text": "甘谷县", + "childrens": [] + }, + { + "value": "8254", + "text": "武山县", + "childrens": [] + }, + { + "value": "8255", + "text": "张家川回族自治县", + "childrens": [] + }, + { + "value": "988250", + "text": "天水市", + "childrens": [] + } + ] + }, + { + "value": "8260", + "text": "酒泉市", + "childrens": [ + { + "value": "8261", + "text": "玉门市", + "childrens": [] + }, + { + "value": "8263", + "text": "敦煌市", + "childrens": [] + }, + { + "value": "8264", + "text": "金塔县", + "childrens": [] + }, + { + "value": "8265", + "text": "肃北蒙古族自治县", + "childrens": [] + }, + { + "value": "8266", + "text": "阿克塞哈萨克族自治县", + "childrens": [] + }, + { + "value": "8267", + "text": "瓜州县", + "childrens": [] + }, + { + "value": "988260", + "text": "酒泉市", + "childrens": [] + } + ] + }, + { + "value": "8270", + "text": "张掖市", + "childrens": [ + { + "value": "8272", + "text": "肃南裕固族自治县", + "childrens": [] + }, + { + "value": "8273", + "text": "民乐县", + "childrens": [] + }, + { + "value": "8274", + "text": "临泽县", + "childrens": [] + }, + { + "value": "8275", + "text": "高台县", + "childrens": [] + }, + { + "value": "8276", + "text": "山丹县", + "childrens": [] + }, + { + "value": "988270", + "text": "张掖市", + "childrens": [] + } + ] + }, + { + "value": "8280", + "text": "武威市", + "childrens": [ + { + "value": "8282", + "text": "民勤县", + "childrens": [] + }, + { + "value": "8283", + "text": "古浪县", + "childrens": [] + }, + { + "value": "8284", + "text": "天祝藏族自治县", + "childrens": [] + }, + { + "value": "988280", + "text": "武威市", + "childrens": [] + } + ] + }, + { + "value": "8290", + "text": "定西市", + "childrens": [ + { + "value": "8292", + "text": "通渭县", + "childrens": [] + }, + { + "value": "8293", + "text": "陇西县", + "childrens": [] + }, + { + "value": "8294", + "text": "渭源县", + "childrens": [] + }, + { + "value": "8295", + "text": "临洮县", + "childrens": [] + }, + { + "value": "8296", + "text": "漳县", + "childrens": [] + }, + { + "value": "8297", + "text": "岷县", + "childrens": [] + }, + { + "value": "988290", + "text": "定西市", + "childrens": [] + } + ] + }, + { + "value": "8310", + "text": "陇南市", + "childrens": [ + { + "value": "8312", + "text": "宕昌县", + "childrens": [] + }, + { + "value": "8313", + "text": "成县", + "childrens": [] + }, + { + "value": "8314", + "text": "康县", + "childrens": [] + }, + { + "value": "8315", + "text": "文县", + "childrens": [] + }, + { + "value": "8316", + "text": "西和县", + "childrens": [] + }, + { + "value": "8317", + "text": "礼县", + "childrens": [] + }, + { + "value": "8318", + "text": "两当县", + "childrens": [] + }, + { + "value": "8319", + "text": "徽县", + "childrens": [] + }, + { + "value": "988310", + "text": "陇南市", + "childrens": [] + } + ] + }, + { + "value": "8330", + "text": "平凉市", + "childrens": [ + { + "value": "8332", + "text": "泾川县", + "childrens": [] + }, + { + "value": "8333", + "text": "灵台县", + "childrens": [] + }, + { + "value": "8334", + "text": "崇信县", + "childrens": [] + }, + { + "value": "8335", + "text": "华亭县", + "childrens": [] + }, + { + "value": "8336", + "text": "庄浪县", + "childrens": [] + }, + { + "value": "8337", + "text": "静宁县", + "childrens": [] + }, + { + "value": "988330", + "text": "平凉市", + "childrens": [] + } + ] + }, + { + "value": "8340", + "text": "庆阳市", + "childrens": [ + { + "value": "8342", + "text": "庆城县", + "childrens": [] + }, + { + "value": "8343", + "text": "环县", + "childrens": [] + }, + { + "value": "8344", + "text": "华池县", + "childrens": [] + }, + { + "value": "8345", + "text": "合水县", + "childrens": [] + }, + { + "value": "8346", + "text": "正宁县", + "childrens": [] + }, + { + "value": "8347", + "text": "宁县", + "childrens": [] + }, + { + "value": "8348", + "text": "镇原县", + "childrens": [] + }, + { + "value": "988340", + "text": "庆阳市", + "childrens": [] + } + ] + }, + { + "value": "8360", + "text": "临夏回族自治州", + "childrens": [ + { + "value": "8361", + "text": "临夏市", + "childrens": [] + }, + { + "value": "8362", + "text": "临夏县", + "childrens": [] + }, + { + "value": "8363", + "text": "康乐县", + "childrens": [] + }, + { + "value": "8364", + "text": "永靖县", + "childrens": [] + }, + { + "value": "8365", + "text": "广河县", + "childrens": [] + }, + { + "value": "8366", + "text": "和政县", + "childrens": [] + }, + { + "value": "8367", + "text": "东乡族自治县", + "childrens": [] + }, + { + "value": "8368", + "text": "积石山保安族东乡族撒拉族自治县", + "childrens": [] + }, + { + "value": "988360", + "text": "临夏回族自治州", + "childrens": [] + } + ] + }, + { + "value": "8380", + "text": "甘南藏族自治州", + "childrens": [ + { + "value": "8381", + "text": "临潭县", + "childrens": [] + }, + { + "value": "8382", + "text": "卓尼县", + "childrens": [] + }, + { + "value": "8383", + "text": "舟曲县", + "childrens": [] + }, + { + "value": "8384", + "text": "迭部县", + "childrens": [] + }, + { + "value": "8385", + "text": "玛曲县", + "childrens": [] + }, + { + "value": "8386", + "text": "碌曲县", + "childrens": [] + }, + { + "value": "8387", + "text": "夏河县", + "childrens": [] + }, + { + "value": "8388", + "text": "合作市", + "childrens": [] + }, + { + "value": "988380", + "text": "甘南藏族自治州", + "childrens": [] + } + ] + } + ] + }, + { + "value": "8500", + "text": "青海省", + "childrens": [ + { + "value": "8510", + "text": "西宁市", + "childrens": [ + { + "value": "8511", + "text": "大通回族土族自治县", + "childrens": [] + }, + { + "value": "8512", + "text": "湟中县", + "childrens": [] + }, + { + "value": "8513", + "text": "湟源县", + "childrens": [] + }, + { + "value": "988510", + "text": "西宁市", + "childrens": [] + } + ] + }, + { + "value": "8520", + "text": "海东地区", + "childrens": [ + { + "value": "8521", + "text": "平安县", + "childrens": [] + }, + { + "value": "8522", + "text": "民和回族土族自治县", + "childrens": [] + }, + { + "value": "8523", + "text": "乐都县", + "childrens": [] + }, + { + "value": "8526", + "text": "互助土族自治县", + "childrens": [] + }, + { + "value": "8527", + "text": "化隆回族自治县", + "childrens": [] + }, + { + "value": "8528", + "text": "循化撒拉族自治县", + "childrens": [] + }, + { + "value": "988520", + "text": "海东地区", + "childrens": [] + } + ] + }, + { + "value": "8540", + "text": "海北藏族自治州", + "childrens": [ + { + "value": "8541", + "text": "门源回族自治县", + "childrens": [] + }, + { + "value": "8542", + "text": "祁连县", + "childrens": [] + }, + { + "value": "8543", + "text": "海晏县", + "childrens": [] + }, + { + "value": "8544", + "text": "刚察县", + "childrens": [] + }, + { + "value": "988540", + "text": "海北藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "8550", + "text": "黄南藏族自治州", + "childrens": [ + { + "value": "8551", + "text": "同仁县", + "childrens": [] + }, + { + "value": "8552", + "text": "尖扎县", + "childrens": [] + }, + { + "value": "8553", + "text": "泽库县", + "childrens": [] + }, + { + "value": "8554", + "text": "河南蒙古族自治县", + "childrens": [] + }, + { + "value": "988550", + "text": "黄南藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "8560", + "text": "海南藏族自治州", + "childrens": [ + { + "value": "8561", + "text": "共和县", + "childrens": [] + }, + { + "value": "8562", + "text": "同德县", + "childrens": [] + }, + { + "value": "8563", + "text": "贵德县", + "childrens": [] + }, + { + "value": "8564", + "text": "兴海县", + "childrens": [] + }, + { + "value": "8565", + "text": "贵南县", + "childrens": [] + }, + { + "value": "988560", + "text": "海南藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "8570", + "text": "果洛藏族自治州", + "childrens": [ + { + "value": "8571", + "text": "玛沁县", + "childrens": [] + }, + { + "value": "8572", + "text": "班玛县", + "childrens": [] + }, + { + "value": "8573", + "text": "甘德县", + "childrens": [] + }, + { + "value": "8574", + "text": "达日县", + "childrens": [] + }, + { + "value": "8575", + "text": "久治县", + "childrens": [] + }, + { + "value": "8576", + "text": "玛多县", + "childrens": [] + }, + { + "value": "988570", + "text": "果洛藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "8580", + "text": "玉树藏族自治州", + "childrens": [ + { + "value": "8581", + "text": "玉树县", + "childrens": [] + }, + { + "value": "8582", + "text": "杂多县", + "childrens": [] + }, + { + "value": "8583", + "text": "称多县", + "childrens": [] + }, + { + "value": "8584", + "text": "治多县", + "childrens": [] + }, + { + "value": "8585", + "text": "囊谦县", + "childrens": [] + }, + { + "value": "8586", + "text": "曲麻莱县", + "childrens": [] + }, + { + "value": "988580", + "text": "玉树藏族自治州", + "childrens": [] + } + ] + }, + { + "value": "8590", + "text": "海西蒙古族藏族自治州", + "childrens": [ + { + "value": "8591", + "text": "格尔木市", + "childrens": [] + }, + { + "value": "8592", + "text": "德令哈市", + "childrens": [] + }, + { + "value": "8593", + "text": "乌兰县", + "childrens": [] + }, + { + "value": "8594", + "text": "都兰县", + "childrens": [] + }, + { + "value": "8595", + "text": "天峻县", + "childrens": [] + }, + { + "value": "988590", + "text": "海西蒙古族藏族自治州", + "childrens": [] + } + ] + } + ] + }, + { + "value": "8700", + "text": "宁夏回族自治区", + "childrens": [ + { + "value": "8710", + "text": "银川市", + "childrens": [ + { + "value": "8711", + "text": "永宁县", + "childrens": [] + }, + { + "value": "8712", + "text": "贺兰县", + "childrens": [] + }, + { + "value": "8713", + "text": "灵武市", + "childrens": [] + }, + { + "value": "988710", + "text": "银川市", + "childrens": [] + } + ] + }, + { + "value": "8720", + "text": "石嘴山市", + "childrens": [ + { + "value": "8721", + "text": "平罗县", + "childrens": [] + }, + { + "value": "988720", + "text": "石嘴山市", + "childrens": [] + } + ] + }, + { + "value": "8730", + "text": "吴忠市", + "childrens": [ + { + "value": "8732", + "text": "青铜峡市", + "childrens": [] + }, + { + "value": "8736", + "text": "盐池县", + "childrens": [] + }, + { + "value": "8737", + "text": "同心县", + "childrens": [] + }, + { + "value": "988730", + "text": "吴忠市", + "childrens": [] + } + ] + }, + { + "value": "8740", + "text": "固原市", + "childrens": [ + { + "value": "8743", + "text": "西吉县", + "childrens": [] + }, + { + "value": "8744", + "text": "隆德县", + "childrens": [] + }, + { + "value": "8745", + "text": "泾源县", + "childrens": [] + }, + { + "value": "8746", + "text": "彭阳县", + "childrens": [] + }, + { + "value": "988740", + "text": "固原市", + "childrens": [] + } + ] + }, + { + "value": "8750", + "text": "中卫市", + "childrens": [ + { + "value": "8751", + "text": "中宁县", + "childrens": [] + }, + { + "value": "8752", + "text": "海原县", + "childrens": [] + }, + { + "value": "988750", + "text": "中卫市", + "childrens": [] + } + ] + } + ] + }, + { + "value": "8800", + "text": "新疆维吾尔自治区", + "childrens": [ + { + "value": "8810", + "text": "乌鲁木齐市", + "childrens": [ + { + "value": "8811", + "text": "乌鲁木齐县", + "childrens": [] + }, + { + "value": "988810", + "text": "乌鲁木齐市", + "childrens": [] + } + ] + }, + { + "value": "8820", + "text": "克拉玛依市", + "childrens": [ + { + "value": "988820", + "text": "克拉玛依市", + "childrens": [] + } + ] + }, + { + "value": "8830", + "text": "吐鲁番地区", + "childrens": [ + { + "value": "8831", + "text": "吐鲁番市", + "childrens": [] + }, + { + "value": "8832", + "text": "鄯善县", + "childrens": [] + }, + { + "value": "8833", + "text": "托克逊县", + "childrens": [] + }, + { + "value": "988830", + "text": "吐鲁番地区", + "childrens": [] + } + ] + }, + { + "value": "8840", + "text": "哈密地区", + "childrens": [ + { + "value": "8841", + "text": "哈密市", + "childrens": [] + }, + { + "value": "8842", + "text": "巴里坤哈萨克自治县", + "childrens": [] + }, + { + "value": "8843", + "text": "伊吾县", + "childrens": [] + }, + { + "value": "988840", + "text": "哈密地区", + "childrens": [] + } + ] + }, + { + "value": "8850", + "text": "昌吉回族自治州", + "childrens": [ + { + "value": "8851", + "text": "昌吉市", + "childrens": [] + }, + { + "value": "8853", + "text": "呼图壁县", + "childrens": [] + }, + { + "value": "8854", + "text": "玛纳斯县", + "childrens": [] + }, + { + "value": "8855", + "text": "奇台县", + "childrens": [] + }, + { + "value": "8856", + "text": "阜康市", + "childrens": [] + }, + { + "value": "8857", + "text": "吉木萨尔县", + "childrens": [] + }, + { + "value": "8858", + "text": "木垒哈萨克自治县", + "childrens": [] + }, + { + "value": "988850", + "text": "昌吉回族自治州", + "childrens": [] + } + ] + }, + { + "value": "8870", + "text": "博尔塔拉蒙古族自治州", + "childrens": [ + { + "value": "8871", + "text": "博乐市", + "childrens": [] + }, + { + "value": "8872", + "text": "精河县", + "childrens": [] + }, + { + "value": "8873", + "text": "温泉县", + "childrens": [] + }, + { + "value": "988870", + "text": "博尔塔拉蒙古族自治州", + "childrens": [] + } + ] + }, + { + "value": "8880", + "text": "巴音郭楞蒙古族自治州", + "childrens": [ + { + "value": "8881", + "text": "库尔勒市", + "childrens": [] + }, + { + "value": "8882", + "text": "轮台县", + "childrens": [] + }, + { + "value": "8883", + "text": "尉犁县", + "childrens": [] + }, + { + "value": "8884", + "text": "若羌县", + "childrens": [] + }, + { + "value": "8885", + "text": "且末县", + "childrens": [] + }, + { + "value": "8886", + "text": "焉耆回族自治县", + "childrens": [] + }, + { + "value": "8887", + "text": "和静县", + "childrens": [] + }, + { + "value": "8888", + "text": "和硕县", + "childrens": [] + }, + { + "value": "8889", + "text": "博湖县", + "childrens": [] + }, + { + "value": "988880", + "text": "巴音郭楞蒙古族自治州", + "childrens": [] + } + ] + }, + { + "value": "8910", + "text": "阿克苏地区", + "childrens": [ + { + "value": "8911", + "text": "阿克苏市", + "childrens": [] + }, + { + "value": "8912", + "text": "温宿县", + "childrens": [] + }, + { + "value": "8913", + "text": "库车县", + "childrens": [] + }, + { + "value": "8914", + "text": "沙雅县", + "childrens": [] + }, + { + "value": "8915", + "text": "新和县", + "childrens": [] + }, + { + "value": "8916", + "text": "拜城县", + "childrens": [] + }, + { + "value": "8917", + "text": "乌什县", + "childrens": [] + }, + { + "value": "8918", + "text": "阿瓦提县", + "childrens": [] + }, + { + "value": "8919", + "text": "柯坪县", + "childrens": [] + }, + { + "value": "988910", + "text": "阿克苏地区", + "childrens": [] + } + ] + }, + { + "value": "8930", + "text": "克孜勒苏柯尔克孜自治州", + "childrens": [ + { + "value": "8931", + "text": "阿图什市", + "childrens": [] + }, + { + "value": "8932", + "text": "阿克陶县", + "childrens": [] + }, + { + "value": "8933", + "text": "阿合奇县", + "childrens": [] + }, + { + "value": "8934", + "text": "乌恰县", + "childrens": [] + }, + { + "value": "988930", + "text": "克孜勒苏柯尔克孜自治州", + "childrens": [] + } + ] + }, + { + "value": "8940", + "text": "喀什地区", + "childrens": [ + { + "value": "8941", + "text": "喀什市", + "childrens": [] + }, + { + "value": "8942", + "text": "疏附县", + "childrens": [] + }, + { + "value": "8943", + "text": "疏勒县", + "childrens": [] + }, + { + "value": "8944", + "text": "英吉沙县", + "childrens": [] + }, + { + "value": "8945", + "text": "泽普县", + "childrens": [] + }, + { + "value": "8946", + "text": "莎车县", + "childrens": [] + }, + { + "value": "8947", + "text": "叶城县", + "childrens": [] + }, + { + "value": "8948", + "text": "麦盖提县", + "childrens": [] + }, + { + "value": "8949", + "text": "岳普湖县", + "childrens": [] + }, + { + "value": "8951", + "text": "伽师县", + "childrens": [] + }, + { + "value": "8952", + "text": "巴楚县", + "childrens": [] + }, + { + "value": "8953", + "text": "塔什库尔干塔吉克自治县", + "childrens": [] + }, + { + "value": "988940", + "text": "喀什地区", + "childrens": [] + } + ] + }, + { + "value": "8960", + "text": "和田地区", + "childrens": [ + { + "value": "8961", + "text": "和田市", + "childrens": [] + }, + { + "value": "8962", + "text": "和田县", + "childrens": [] + }, + { + "value": "8963", + "text": "墨玉县", + "childrens": [] + }, + { + "value": "8964", + "text": "皮山县", + "childrens": [] + }, + { + "value": "8965", + "text": "洛浦县", + "childrens": [] + }, + { + "value": "8966", + "text": "策勒县", + "childrens": [] + }, + { + "value": "8967", + "text": "于田县", + "childrens": [] + }, + { + "value": "8968", + "text": "民丰县", + "childrens": [] + }, + { + "value": "988960", + "text": "和田地区", + "childrens": [] + } + ] + }, + { + "value": "8980", + "text": "伊犁哈萨克自治州", + "childrens": [ + { + "value": "8981", + "text": "奎屯市", + "childrens": [] + }, + { + "value": "8991", + "text": "伊宁市", + "childrens": [] + }, + { + "value": "8992", + "text": "伊宁县", + "childrens": [] + }, + { + "value": "8993", + "text": "察布查尔锡伯自治县", + "childrens": [] + }, + { + "value": "8994", + "text": "霍城县", + "childrens": [] + }, + { + "value": "8995", + "text": "巩留县", + "childrens": [] + }, + { + "value": "8996", + "text": "新源县", + "childrens": [] + }, + { + "value": "8997", + "text": "昭苏县", + "childrens": [] + }, + { + "value": "8998", + "text": "特克斯县", + "childrens": [] + }, + { + "value": "8999", + "text": "尼勒克县", + "childrens": [] + }, + { + "value": "988980", + "text": "伊犁哈萨克自治州", + "childrens": [] + } + ] + }, + { + "value": "9010", + "text": "塔城地区", + "childrens": [ + { + "value": "9011", + "text": "塔城市", + "childrens": [] + }, + { + "value": "9012", + "text": "额敏县", + "childrens": [] + }, + { + "value": "9013", + "text": "乌苏市", + "childrens": [] + }, + { + "value": "9014", + "text": "沙湾县", + "childrens": [] + }, + { + "value": "9015", + "text": "托里县", + "childrens": [] + }, + { + "value": "9016", + "text": "裕民县", + "childrens": [] + }, + { + "value": "9017", + "text": "和布克赛尔蒙古自治县", + "childrens": [] + }, + { + "value": "989010", + "text": "塔城地区", + "childrens": [] + } + ] + }, + { + "value": "9020", + "text": "阿勒泰地区", + "childrens": [ + { + "value": "9021", + "text": "阿勒泰市", + "childrens": [] + }, + { + "value": "9022", + "text": "布尔津县", + "childrens": [] + }, + { + "value": "9023", + "text": "富蕴县", + "childrens": [] + }, + { + "value": "9024", + "text": "福海县", + "childrens": [] + }, + { + "value": "9025", + "text": "哈巴河县", + "childrens": [] + }, + { + "value": "9026", + "text": "青河县", + "childrens": [] + }, + { + "value": "9027", + "text": "吉木乃县", + "childrens": [] + }, + { + "value": "9028", + "text": "石河子市(自治区直辖)", + "childrens": [] + }, + { + "value": "9041", + "text": "阿拉尔市(自治区直辖)", + "childrens": [] + }, + { + "value": "9042", + "text": "图木舒克市(自治区直辖)", + "childrens": [] + }, + { + "value": "9043", + "text": "五家渠市(自治区直辖)", + "childrens": [] + }, + { + "value": "989020", + "text": "阿勒泰地区", + "childrens": [] + } + ] + } + ] + }, + { + "value": "991000", + "text": "北京市", + "childrens": [ + { + "value": "1000", + "text": "北京市", + "childrens": [ + { + "value": "1027", + "text": "密云县", + "childrens": [] + }, + { + "value": "1028", + "text": "延庆县", + "childrens": [] + }, + { + "value": "100001", + "text": "东城区", + "childrens": [] + }, + { + "value": "100002", + "text": "西城区", + "childrens": [] + }, + { + "value": "100003", + "text": "崇文区", + "childrens": [] + }, + { + "value": "100004", + "text": "宣武区", + "childrens": [] + }, + { + "value": "100005", + "text": "朝阳区", + "childrens": [] + }, + { + "value": "100006", + "text": "丰台区", + "childrens": [] + }, + { + "value": "100007", + "text": "石景山区", + "childrens": [] + }, + { + "value": "100008", + "text": "海淀区", + "childrens": [] + }, + { + "value": "100009", + "text": "门头沟区", + "childrens": [] + }, + { + "value": "100010", + "text": "房山区", + "childrens": [] + }, + { + "value": "100011", + "text": "通州区", + "childrens": [] + }, + { + "value": "100012", + "text": "顺义区", + "childrens": [] + }, + { + "value": "100013", + "text": "昌平区", + "childrens": [] + }, + { + "value": "100014", + "text": "大兴区", + "childrens": [] + }, + { + "value": "100015", + "text": "怀柔区", + "childrens": [] + }, + { + "value": "100016", + "text": "平谷区", + "childrens": [] + } + ] + } + ] + }, + { + "value": "991100", + "text": "天津市", + "childrens": [ + { + "value": "1100", + "text": "天津市", + "childrens": [ + { + "value": "1121", + "text": "宁河县", + "childrens": [] + }, + { + "value": "1123", + "text": "静海县", + "childrens": [] + }, + { + "value": "1125", + "text": "蓟县", + "childrens": [] + }, + { + "value": "110001", + "text": "和平区", + "childrens": [] + }, + { + "value": "110002", + "text": "河东区", + "childrens": [] + }, + { + "value": "110003", + "text": "河西区", + "childrens": [] + }, + { + "value": "110004", + "text": "南开区", + "childrens": [] + }, + { + "value": "110005", + "text": "河北区", + "childrens": [] + }, + { + "value": "110006", + "text": "红桥区", + "childrens": [] + }, + { + "value": "110007", + "text": "塘沽区", + "childrens": [] + }, + { + "value": "110008", + "text": "汉沽区", + "childrens": [] + }, + { + "value": "110009", + "text": "大港区", + "childrens": [] + }, + { + "value": "110010", + "text": "东丽区", + "childrens": [] + }, + { + "value": "110011", + "text": "西青区", + "childrens": [] + }, + { + "value": "110012", + "text": "津南区", + "childrens": [] + }, + { + "value": "110013", + "text": "北辰区", + "childrens": [] + }, + { + "value": "110014", + "text": "武清区", + "childrens": [] + }, + { + "value": "110015", + "text": "宝坻区", + "childrens": [] + }, + { + "value": "110016", + "text": "蓟县", + "childrens": [] + } + ] + } + ] + }, + { + "value": "992900", + "text": "上海市", + "childrens": [ + { + "value": "2900", + "text": "上海市", + "childrens": [ + { + "value": "2929", + "text": "崇明县", + "childrens": [] + }, + { + "value": "290001", + "text": "黄浦区", + "childrens": [] + }, + { + "value": "290002", + "text": "徐汇区", + "childrens": [] + }, + { + "value": "290003", + "text": "长宁区", + "childrens": [] + }, + { + "value": "290004", + "text": "静安区", + "childrens": [] + }, + { + "value": "290005", + "text": "普陀区", + "childrens": [] + }, + { + "value": "290006", + "text": "闸北区", + "childrens": [] + }, + { + "value": "290007", + "text": "虹口区", + "childrens": [] + }, + { + "value": "290008", + "text": "杨浦区", + "childrens": [] + }, + { + "value": "290009", + "text": "闵行区", + "childrens": [] + }, + { + "value": "290010", + "text": "宝山区", + "childrens": [] + }, + { + "value": "290011", + "text": "嘉定区", + "childrens": [] + }, + { + "value": "290012", + "text": "浦东新区", + "childrens": [] + }, + { + "value": "290013", + "text": "金山区", + "childrens": [] + }, + { + "value": "290014", + "text": "松江区", + "childrens": [] + }, + { + "value": "290015", + "text": "青浦区", + "childrens": [] + }, + { + "value": "290016", + "text": "南汇区", + "childrens": [] + }, + { + "value": "290017", + "text": "奉贤区", + "childrens": [] + } + ] + } + ] + }, + { + "value": "996900", + "text": "重庆市", + "childrens": [ + { + "value": "6900", + "text": "重庆市", + "childrens": [ + { + "value": "6901", + "text": "大足区", + "childrens": [] + }, + { + "value": "6902", + "text": "合川区", + "childrens": [] + }, + { + "value": "6903", + "text": "万州区", + "childrens": [] + }, + { + "value": "6904", + "text": "涪陵区", + "childrens": [] + }, + { + "value": "6905", + "text": "渝中区", + "childrens": [] + }, + { + "value": "6906", + "text": "九龙坡区", + "childrens": [] + }, + { + "value": "6907", + "text": "南岸区", + "childrens": [] + }, + { + "value": "6908", + "text": "北碚区", + "childrens": [] + }, + { + "value": "6909", + "text": "綦江区", + "childrens": [] + }, + { + "value": "6911", + "text": "渝北区", + "childrens": [] + }, + { + "value": "6912", + "text": "巴南区", + "childrens": [] + }, + { + "value": "6913", + "text": "黔江区", + "childrens": [] + }, + { + "value": "6914", + "text": "潼南区", + "childrens": [] + }, + { + "value": "6915", + "text": "铜梁区", + "childrens": [] + }, + { + "value": "6916", + "text": "长寿区", + "childrens": [] + }, + { + "value": "6917", + "text": "江津区", + "childrens": [] + }, + { + "value": "6918", + "text": "荣昌区", + "childrens": [] + }, + { + "value": "6919", + "text": "璧山区", + "childrens": [] + }, + { + "value": "6921", + "text": "梁平县", + "childrens": [] + }, + { + "value": "6922", + "text": "城口县", + "childrens": [] + }, + { + "value": "6923", + "text": "丰都县", + "childrens": [] + }, + { + "value": "6924", + "text": "垫江县", + "childrens": [] + }, + { + "value": "6925", + "text": "武隆县", + "childrens": [] + }, + { + "value": "6926", + "text": "忠县", + "childrens": [] + }, + { + "value": "6927", + "text": "开县", + "childrens": [] + }, + { + "value": "6928", + "text": "云阳县", + "childrens": [] + }, + { + "value": "6929", + "text": "奉节县", + "childrens": [] + }, + { + "value": "6931", + "text": "巫山县", + "childrens": [] + }, + { + "value": "6932", + "text": "巫溪县", + "childrens": [] + }, + { + "value": "6933", + "text": "石柱土家族自治县", + "childrens": [] + }, + { + "value": "6934", + "text": "秀山土家族苗族自治县", + "childrens": [] + }, + { + "value": "6935", + "text": "酉阳土家族苗族自治县", + "childrens": [] + }, + { + "value": "6936", + "text": "彭水苗族土家族自治县", + "childrens": [] + }, + { + "value": "6937", + "text": "沙坪坝区", + "childrens": [] + }, + { + "value": "6938", + "text": "江北区", + "childrens": [] + }, + { + "value": "6939", + "text": "大渡口区", + "childrens": [] + }, + { + "value": "6941", + "text": "永川区", + "childrens": [] + }, + { + "value": "6942", + "text": "南川区", + "childrens": [] + }, + { + "value": "690010", + "text": "万盛区", + "childrens": [] + }, + { + "value": "690011", + "text": "双桥区", + "childrens": [] + } + ] + } + ] + } +] diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateBaseViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDateBaseViewController.h new file mode 100644 index 0000000..4d9e1d1 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateBaseViewController.h @@ -0,0 +1,43 @@ +// +// LYSDateBaseViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateBasicViewController.h" +#import "LYSDatePickerSelectDelegate.h" + +extern NSString *const LYSDatePickerWillAppearNotifition; // 窗口将要出现 +extern NSString *const LYSDatePickerDidAppearNotifition; // 窗口已经出现 +extern NSString *const LYSDatePickerWillDisAppearNotifition; // 窗口将要消失 +extern NSString *const LYSDatePickerDidDisAppearNotifition; // 窗口已经消失 + +extern NSString *const LYSDatePickerDidCancelNotifition; // 取消弹窗 +extern NSString *const LYSDatePickerDidSelectDateNotifition; // 提交日期 + +@interface LYSDateBaseViewController : LYSDateBasicViewController + +// 监听代理 +@property(nonatomic, assign)id delegate; + +// 提交日期选择器 +@property(nonatomic, copy)void(^didSelectDatePicker)(NSDate *date); + +// 获取选择日期 +@property(nonatomic, strong)NSDate *date; + +// 提交日期 +- (void)commitDatePicker; + +// 取消弹窗 +- (void)cancelDatePicker; + +// 创建单例 ++ (instancetype)shareInstance; + +// 释放单例 ++ (void)shareRelease; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateBaseViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDateBaseViewController.m new file mode 100644 index 0000000..8b2597f --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateBaseViewController.m @@ -0,0 +1,74 @@ +// +// LYSDateBaseViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateBaseViewController.h" + +NSString *const LYSDatePickerWillAppearNotifition = @"LYSDatePickerWillAppearNotifition"; +NSString *const LYSDatePickerDidAppearNotifition = @"LYSDatePickerDidAppearNotifition"; +NSString *const LYSDatePickerWillDisAppearNotifition = @"LYSDatePickerWillDisAppearNotifition"; +NSString *const LYSDatePickerDidDisAppearNotifition = @"LYSDatePickerDidDisAppearNotifition"; + +NSString *const LYSDatePickerDidCancelNotifition = @"LYSDatePickerDidCancelNotifition"; +NSString *const LYSDatePickerDidSelectDateNotifition = @"LYSDatePickerDidSelectDateNotifition"; + +@interface LYSDateBaseViewController () + +@end + +static id datePicker = nil; + +@implementation LYSDateBaseViewController + ++ (instancetype)shareInstance +{ + if (!datePicker) { + datePicker = [[[self class] alloc] init]; + } + return datePicker; +} + ++ (void)shareRelease +{ + datePicker = nil; +} + +- (void)commitDatePicker +{ + [[NSNotificationCenter defaultCenter] postNotificationName:LYSDatePickerDidSelectDateNotifition + object:nil + userInfo:@{@"date":self.date}]; + if (self.didSelectDatePicker) + { + self.didSelectDatePicker(self.date); + } + + if (self.delegate && [self.delegate respondsToSelector:@selector(pickerViewController:didSelectDate:)]) + { + [self.delegate pickerViewController:(LYSDatePickerController *)self didSelectDate:self.date]; + } + +} + +- (void)cancelDatePicker { + if (self.delegate && [self.delegate respondsToSelector:@selector(pickerViewControllerDidCancel:)]) { + [self.delegate pickerViewControllerDidCancel:(LYSDatePickerController *)self]; + } + [[NSNotificationCenter defaultCenter] postNotificationName:LYSDatePickerDidCancelNotifition object:nil]; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateBasicViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDateBasicViewController.h new file mode 100644 index 0000000..dbd0763 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateBasicViewController.h @@ -0,0 +1,16 @@ +// +// LYSDateBasicViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/7. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +@interface LYSDateBasicViewController : UIViewController +// 获取最外层控制器 ++ (UIViewController *)windowRootViewController; +// 创建给定颜色和透明度的图片 +- (UIImage *)imageWithColor:(UIColor *)color alpha:(CGFloat)alpha; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateBasicViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDateBasicViewController.m new file mode 100644 index 0000000..907eb1a --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateBasicViewController.m @@ -0,0 +1,53 @@ +// +// LYSDateBasicViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/7. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateBasicViewController.h" + +@interface LYSDateBasicViewController () + +@end + +@implementation LYSDateBasicViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +// 获取最外层控制器 ++ (UIViewController *)windowRootViewController +{ + UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; + return keyWindow.rootViewController; +} +// 创建给定颜色和透明度的图片 +- (UIImage *)imageWithColor:(UIColor *)color alpha:(CGFloat)alpha +{ + // 创建一个color对象 + UIColor *tempColor = [color colorWithAlphaComponent:alpha]; + // 声明一个绘制大小 + CGSize colorSize = CGSizeMake(1, 1); + UIGraphicsBeginImageContext(colorSize); + // 开始绘制颜色区域 + CGContextRef context = UIGraphicsGetCurrentContext(); + // 根据提供的颜色给相应绘制内容填充 + CGContextSetFillColorWithColor(context, tempColor.CGColor); + // 设置填充相应的区域 + CGContextFillRect(context, CGRectMake(0, 0, 1, 1)); + // 声明UIImage对象 + UIImage *img = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return img; +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateContentView.h b/GIGA/Common/Views/LYSDatePickerController/LYSDateContentView.h new file mode 100644 index 0000000..45eab89 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateContentView.h @@ -0,0 +1,14 @@ +// +// LYSDateContentView.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +@interface LYSDateContentView : UIView +// 刷新视图高度 +- (void)refreshContentHeight; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateContentView.m b/GIGA/Common/Views/LYSDatePickerController/LYSDateContentView.m new file mode 100644 index 0000000..3794bf3 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateContentView.m @@ -0,0 +1,38 @@ +// +// LYSDateContentView.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateContentView.h" + +@implementation LYSDateContentView + +- (instancetype)init +{ + self = [super init]; + if (self) { + self.frame = CGRectMake(0, CGRectGetHeight([UIScreen mainScreen].bounds), CGRectGetWidth([UIScreen mainScreen].bounds), 0); + } + return self; +} + +- (void)refreshContentHeight +{ + CGFloat height = 0; + for (UIView *view in self.subviews) { + height += CGRectGetHeight(view.frame); + } + CGRect contentFrame = self.frame; + contentFrame.size.height = height; + self.frame = contentFrame; +} + +// 禁止事件向下传递 +- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { + +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateHeaderViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDateHeaderViewController.h new file mode 100644 index 0000000..68a8389 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateHeaderViewController.h @@ -0,0 +1,17 @@ +// +// LYSDateHeaderViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePopViewController.h" +#import "LYSDatePickerHeaderView.h" + +@interface LYSDateHeaderViewController : LYSDatePopViewController +// 头视图高度,只有当headerView是默认创建的时候,才有效 +@property (nonatomic,assign)CGFloat pickHeaderHeight; +// 选择器头视图,可以自定义 +@property (nonatomic,strong)LYSDatePickerHeaderView *headerView; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateHeaderViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDateHeaderViewController.m new file mode 100644 index 0000000..9a679f4 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateHeaderViewController.m @@ -0,0 +1,73 @@ +// +// LYSDateHeaderViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateHeaderViewController.h" +#import + +#define Rect(x,y,w,h) CGRectMake(x, y, w, h) +#define ScreenWidth CGRectGetWidth([UIScreen mainScreen].bounds) +#define ScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds) + +@interface LYSDateHeaderViewController () + +@end + +@implementation LYSDateHeaderViewController + +- (instancetype)init +{ + self = [super init]; + if (self) { + self.pickHeaderHeight = 40; + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. + // 初始化头视图 + [self initHeaderView]; +} + +- (LYSDatePickerHeaderView *)headerView +{ + if (!_headerView) { + _headerView = [[LYSDatePickerHeaderView alloc] init]; + objc_setAssociatedObject(_headerView, @"tag", @(YES), OBJC_ASSOCIATION_ASSIGN); + _headerView.backgroundColor = [UIColor whiteColor]; + } + return _headerView; +} + +// 初始化头视图 +- (void)initHeaderView +{ + id tag = objc_getAssociatedObject(self.headerView, @"tag"); + if (tag && [tag boolValue]) { + CGFloat headerViewHeight = self.pickHeaderHeight; + self.headerView.frame = Rect(0, 0, ScreenWidth, headerViewHeight); + self.headerView.headerHeight = headerViewHeight; + self.headerView.headerVC = self; + [self.contentView addSubview:self.headerView]; + } else { + CGRect headerFrame = self.headerView.frame; + headerFrame.origin = CGPointZero; + headerFrame.size.width = ScreenWidth; + self.headerView.frame = headerFrame; + [self.contentView addSubview:self.headerView]; + } +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateIndicatorViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDateIndicatorViewController.h new file mode 100644 index 0000000..63f6b95 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateIndicatorViewController.h @@ -0,0 +1,18 @@ +// +// LYSDateIndicatorViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateHeaderViewController.h" + +@interface LYSDateIndicatorViewController : LYSDateHeaderViewController +// 是否显示分割线 +@property (nonatomic,assign)BOOL showIndicator; +// 分割线颜色 +@property (nonatomic,strong)UIColor *indicatorColor; +// 分割线高度 +@property(nonatomic, assign)CGFloat indicatorHeight; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateIndicatorViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDateIndicatorViewController.m new file mode 100644 index 0000000..5b06aa4 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateIndicatorViewController.m @@ -0,0 +1,59 @@ +// +// LYSDateIndicatorViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateIndicatorViewController.h" + +#define Rect(x,y,w,h) CGRectMake(x, y, w, h) +#define ScreenWidth CGRectGetWidth([UIScreen mainScreen].bounds) +#define ScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds) + +@interface LYSDateIndicatorViewController () + +@end + +@implementation LYSDateIndicatorViewController + +- (instancetype)init +{ + self = [super init]; + if (self) { + // 默认显示分割线 + self.showIndicator = YES; + // 分割线默认颜色 + self.indicatorColor = [UIColor colorWithRed:238/255.0 green:238/255.0 blue:238/255.0 alpha:1]; + // 分割线高度 + self.indicatorHeight = 5; + } + return self; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. + // 设置分割线 + [self initIndicator]; +} + +// 初始化分割线 +- (void)initIndicator +{ + if (self.showIndicator) { + CGFloat headerViewHeight = CGRectGetHeight(self.headerView.frame); + UIImage *line = [self imageWithColor:self.indicatorColor alpha:1]; + UIImageView *lineView = [[UIImageView alloc] initWithImage:line]; + lineView.frame = Rect(0, headerViewHeight, ScreenWidth, self.indicatorHeight); + [self.contentView addSubview:lineView]; + } +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateLogicViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDateLogicViewController.h new file mode 100644 index 0000000..f732452 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateLogicViewController.h @@ -0,0 +1,45 @@ +// +// LYSDateLogicViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerViewController.h" +#import "LYSDatePickerTypeDayAndTimeDelegate.h" +#import "LYSDatePickerTypeDayDelegate.h" +#import "LYSDatePickerTypeTimeDelegate.h" + +typedef enum : NSUInteger { + LYSDatePickerTypeDay, // 年月日 + LYSDatePickerTypeDayAndTime, // 年月日,时分 + LYSDatePickerTypeTime, // 时分 +} LYSDatePickerType; + +@interface LYSDateLogicViewController : LYSDatePickerViewController + +// 选择器itemLabel,可以通过此属性对选择器设置字体大小和颜色,背景色以及对其方式 +@property (nonatomic,strong,readonly)UILabel *subLabel; +// 日期开始时间 +@property (nonatomic,assign)int fromYear; +// 日期结束时间 +@property (nonatomic,assign)int toYear; +// 默认选中日期 +@property (nonatomic,strong)NSDate *selectDate; +// 选择器类型 +@property (nonatomic,assign)LYSDatePickerType pickType; + +// 是否对某一粒度进行无限循环,默认是NO +@property(nonatomic, assign)BOOL yearLoop; +@property(nonatomic, assign)BOOL monthLoop; +@property(nonatomic, assign)BOOL dayLoop; +@property(nonatomic, assign)BOOL hourLoop; +@property(nonatomic, assign)BOOL minuteLoop; + +// 是否显示星期几 +@property(nonatomic, assign)BOOL showWeakDay; +// 星期显示类型 +@property(nonatomic, assign)LYSDatePickerWeakDayType weakDayType; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDateLogicViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDateLogicViewController.m new file mode 100644 index 0000000..9a2e720 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDateLogicViewController.m @@ -0,0 +1,119 @@ +// +// LYSDateLogicViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateLogicViewController.h" + +#define IS5SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(320, 568)) +#define IS6SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 667)) +#define IS6SPBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(414, 736)) +#define ISXBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 812)) + +#define FontRank(A,B,C,D,E) (IS5SBOOL ? A : (IS6SBOOL ? B : (IS6SPBOOL ? C : (ISXBOOL ? D : E)))) + +@interface LYSDateLogicViewController () + +@property (nonatomic,strong,readwrite)UILabel *subLabel; // 选择器itemLabel +@property (nonatomic,strong)LYSDatePickerTypeBase *typeBase; // 默认选择类型 + +@end + +@implementation LYSDateLogicViewController + +- (instancetype)init { + self = [super init]; + if (self) { + self.fromYear = 1970; // 默认开始年份 + self.toYear = 2070; // 默认结束年份 + self.pickType = LYSDatePickerTypeDayAndTime; // 默认选择器类型 + self.selectDate = [NSDate date]; // 默认选中日期 + } + return self; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + + // 初始化选择器类型 + [self initPickerType]; + + // 设置默认日期 + [self.typeBase defaultWithDate:self.selectDate]; + [self.typeBase updateDatePicker]; +} + +- (UILabel *)subLabel +{ + if (!_subLabel) { + _subLabel = [[UILabel alloc] init]; + _subLabel = [[UILabel alloc] init]; + _subLabel.textAlignment = NSTextAlignmentCenter; + _subLabel.textColor = [UIColor blackColor]; + _subLabel.font = [UIFont systemFontOfSize:FontRank(14,16,16,16,16)]; +#ifdef DEBUG +// _subLabel.backgroundColor = [UIColor redColor]; +#endif + } + return _subLabel; +} + +// 初始化选择器类型 +- (void)initPickerType { + + switch (self.pickType) { + case LYSDatePickerTypeDayAndTime: + { + self.typeBase = [[LYSDatePickerTypeDayAndTimeDelegate alloc] initWithPickerView:self.pickView]; + } + break; + case LYSDatePickerTypeDay: + { + self.typeBase = [[LYSDatePickerTypeDayDelegate alloc] initWithPickerView:self.pickView]; + } + break; + case LYSDatePickerTypeTime: + { + self.typeBase = [[LYSDatePickerTypeTimeDelegate alloc] initWithPickerView:self.pickView]; + } + break; + default: + break; + } + + self.typeBase.fromYear = self.fromYear; + self.typeBase.toYear = self.toYear; + self.typeBase.titleLabel = self.subLabel; + + self.typeBase.yearLoop = self.yearLoop; + self.typeBase.monthLoop = self.monthLoop; + self.typeBase.dayLoop = self.dayLoop; + self.typeBase.hourLoop = self.hourLoop; + self.typeBase.minuteLoop = self.minuteLoop; + + self.typeBase.showWeakDay = self.showWeakDay; + self.typeBase.weakDayType = self.weakDayType; + + self.pickView.delegate = self.typeBase; + self.pickView.dataSource = self.typeBase; + + __weak LYSDateLogicViewController *weakSelf = self; + [self.typeBase setDidSelectItem:^(NSDate *date) { + weakSelf.date = date; + if ([weakSelf.headerView respondsToSelector:@selector(updateDate:)]) { + [weakSelf.headerView updateDate:date]; + } + }]; + +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerController.h new file mode 100644 index 0000000..2eec213 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerController.h @@ -0,0 +1,57 @@ +// +// LYSDatePickerController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/2. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateLogicViewController.h" +#import "LYSDatePickerSelectDelegate.h" + +@interface LYSDatePickerController : LYSDateLogicViewController + +// 设置视图高度 ++ (void)customPickerViewHeight:(CGFloat)height; +// 设置开始年份 ++ (void)customFromYear:(int)fromYear; +// 设置结束年份 ++ (void)customToYear:(int)toYear; +// 设置默认选中日期 ++ (void)customSelectDate:(NSDate *)date; +// 设置弹出类型 ++ (void)customPickerType:(LYSDatePickerType)type; +// 设置代理 ++ (void)customPickerDelegate:(id)delegate; +// 监听日期选择回调 ++ (void)customdidSelectDatePicker:(void(^)(NSDate *date))didSelectDatePicker; +// 点击页面空白部分是否隐藏日期选择器 ++ (void)customClickOuterHiddenEnable:(BOOL)clickOuterHiddenEnable; +// 设置头视图高度 ++ (void)customPickHeaderHeight:(CGFloat)pickHeaderHeight; +// 自定义头视图 ++ (void)customHeaderView:(LYSDatePickerHeaderView *)headerView; +// 设置是否显示分割线 ++ (void)customShowIndicator:(BOOL)showIndicator; +// 设置分割线颜色 ++ (void)customIndicatorColor:(UIColor *)indicatorColor; +// 设置分割线高度 ++ (void)customIndicatorHeight:(CGFloat)indicatorHeight; +// 设置是否显示星期几 ++ (void)customShowWeakDay:(BOOL)showWeakDay; +// 设置是星期类型 ++ (void)customWeakDayType:(BOOL)weakDayType; + +// 弹出日期选择器,此方法没有设置类型和默认选中日期 ++ (void)alertDatePickerInWindowRootVC; ++ (void)alertDatePickerWithController:(UIViewController *)controller; + +// 弹出日期选择器,附带类型,日期为当前时间 ++ (void)alertDatePickerInWindowRootVCWithType:(LYSDatePickerType)pickerType; ++ (void)alertDatePickerWithController:(UIViewController *)controller type:(LYSDatePickerType)pickerType; + +// 弹出日期选择器,附带类型和默认选中日期 ++ (void)alertDatePickerInWindowRootVCWithType:(LYSDatePickerType)pickerType selectDate:(NSDate *)selectDate; ++ (void)alertDatePickerWithController:(UIViewController *)controller type:(LYSDatePickerType)pickerType selectDate:(NSDate *)selectDate; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerController.m new file mode 100644 index 0000000..e896ba6 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerController.m @@ -0,0 +1,176 @@ +// +// LYSDatePickerController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/2. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerController.h" + +#define Rect(x,y,w,h) CGRectMake(x, y, w, h) +#define ScreenWidth CGRectGetWidth([UIScreen mainScreen].bounds) +#define ScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds) + +@interface LYSDatePickerController () + +@end + +@implementation LYSDatePickerController + +#pragma mark - 设置视图高度 - ++ (void)customPickerViewHeight:(CGFloat)height +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.pickViewHeight = height; +} + +#pragma mark - 设置开始年份 - ++ (void)customFromYear:(int)fromYear +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.fromYear = fromYear; +} + +#pragma mark - 设置结束年份 - ++ (void)customToYear:(int)toYear +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.toYear = toYear; +} + +#pragma mark - 设置默认选中日期 - ++ (void)customSelectDate:(NSDate *)date +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.selectDate = date; +} + +#pragma mark - 设置弹出类型 - ++ (void)customPickerType:(LYSDatePickerType)type +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.pickType = type; +} +#pragma mark - 设置代理 - ++ (void)customPickerDelegate:(id)delegate { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.delegate = delegate; +} + +#pragma mark - 监听日期选择回调 - ++ (void)customdidSelectDatePicker:(void(^)(NSDate *date))didSelectDatePicker { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.didSelectDatePicker = didSelectDatePicker; +} + +#pragma mark - 点击页面空白部分是否隐藏日期选择器 - ++ (void)customClickOuterHiddenEnable:(BOOL)clickOuterHiddenEnable { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.clickOuterHiddenEnable = clickOuterHiddenEnable; +} + +#pragma mark - 设置头视图高度 - ++ (void)customPickHeaderHeight:(CGFloat)pickHeaderHeight { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.pickHeaderHeight = pickHeaderHeight; +} +#pragma mark - 自定义头视图 - ++ (void)customHeaderView:(LYSDatePickerHeaderView *)headerView { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.headerView = headerView; +} +#pragma mark - 设置是否显示分割线 - ++ (void)customShowIndicator:(BOOL)showIndicator { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.showIndicator = showIndicator; +} +#pragma mark - 设置分割线颜色 - ++ (void)customIndicatorColor:(UIColor *)indicatorColor { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.indicatorColor = indicatorColor; +} +#pragma mark - 设置分割线高度 - ++ (void)customIndicatorHeight:(CGFloat)indicatorHeight { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.indicatorHeight = indicatorHeight; +} +// 设置是否显示星期几 ++ (void)customShowWeakDay:(BOOL)showWeakDay { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.showWeakDay = showWeakDay; +} +// 设置是星期类型 ++ (void)customWeakDayType:(BOOL)showWeakDay { + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.showWeakDay = showWeakDay; +} + +#pragma mark - 弹出日期选择器 - ++ (void)alertDatePickerInWindowRootVC +{ + [LYSDatePickerController showDatePickerInWindowRootVC]; +} + ++ (void)alertDatePickerWithController:(UIViewController *)controller +{ + [LYSDatePickerController showDatePickerWithController:controller]; +} + +#pragma mark - 弹出日期选择器,附带类型 - ++ (void)alertDatePickerInWindowRootVCWithType:(LYSDatePickerType)pickerType +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.selectDate = [NSDate date]; + datePicker.pickType = pickerType; + [LYSDatePickerController showDatePickerInWindowRootVC]; +} + ++ (void)alertDatePickerWithController:(UIViewController *)controller type:(LYSDatePickerType)pickerType +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.selectDate = [NSDate date]; + datePicker.pickType = pickerType; + [LYSDatePickerController showDatePickerWithController:controller]; +} + +#pragma mark - 弹出日期选择器,附带类型和默认选中日期 - ++ (void)alertDatePickerInWindowRootVCWithType:(LYSDatePickerType)pickerType selectDate:(NSDate *)selectDate +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.selectDate = selectDate; + datePicker.pickType = pickerType; + [LYSDatePickerController showDatePickerInWindowRootVC]; +} + ++ (void)alertDatePickerWithController:(UIViewController *)controller type:(LYSDatePickerType)pickerType selectDate:(NSDate *)selectDate +{ + LYSDatePickerController *datePicker = [LYSDatePickerController shareInstance]; + datePicker.selectDate = selectDate; + datePicker.pickType = pickerType; + [LYSDatePickerController showDatePickerWithController:controller];; +} + +- (void)viewDidLoad { + [super viewDidLoad]; +} + +- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event +{ + if (self.clickOuterHiddenEnable) { + [self hiddenDatePicker]; + } +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (void)dealloc { +#ifdef DEBUG + NSLog(@"释放"); +#endif +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerHeaderView.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerHeaderView.h new file mode 100644 index 0000000..ce085cf --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerHeaderView.h @@ -0,0 +1,41 @@ +// +// LYSDatePickerHeaderView.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import +#import "LYSDatePickerItem.h" + +@class LYSDateHeaderViewController; + +// 如果要自定义头视图,并且要实时获取选择时间,可以让自定义视图遵循这个代理方法即可 +@protocol LYSDatePickerHeaderViewProtocol + +- (void)updateDate:(NSDate *)date; + +@end + +@interface LYSDatePickerHeaderView : UIView + +@property(nonatomic, weak)LYSDateHeaderViewController *headerVC; + +// 头视图左侧按钮,可以自定义 +@property(nonatomic, strong)LYSDatePickerItem *leftItem; +// 头视图右侧按钮,可以自定义 +@property(nonatomic, strong)LYSDatePickerItem *rightItem; +// 头视图中间按钮,可以自定义 +@property(nonatomic, strong)LYSDatePickerItem *centerItem; + +// 默认是NO,即不实时显示选择时间 +@property(nonatomic, assign)BOOL showTimeLabel; +// 当showTimeLabel为YES时,默认使用这个属性作为中间按钮 +@property(nonatomic, strong)LYSDatePickerItem *tileLabelItem; +// 当实时监控选择时间时,默认显示的时间格式 +@property(nonatomic, copy)NSString *titleDateFormat; + +@property(nonatomic, assign)CGFloat headerHeight; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerHeaderView.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerHeaderView.m new file mode 100644 index 0000000..9cb2c44 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerHeaderView.m @@ -0,0 +1,140 @@ +// +// LYSDatePickerHeaderView.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerHeaderView.h" +#import "LYSDateHeaderViewController.h" + +@implementation LYSDatePickerHeaderView + +- (instancetype)init +{ + self = [super init]; + if (self) { + self.showTimeLabel = YES; + self.titleDateFormat = @"yyyy-MM-dd HH:mm:ss"; + [self customSubViews]; + } + return self; +} + +- (LYSDatePickerItem *)leftItem +{ + if (!_leftItem) { + _leftItem = [LYSDatePickerItem btnWithTitle:@"取消" target:self action:@selector(cancelAction:)]; + } + return _leftItem; +} + +- (LYSDatePickerItem *)rightItem +{ + if (!_rightItem) { + _rightItem = [LYSDatePickerItem btnWithTitle:@"确定" target:self action:@selector(commitAction:)]; + } + return _rightItem; +} + +- (LYSDatePickerItem *)centerItem +{ + if (!_centerItem) { + _centerItem = [LYSDatePickerItem labelWithTitle:@"日期选择器"]; + } + return _centerItem; +} + +- (LYSDatePickerItem *)tileLabelItem +{ + if (!_tileLabelItem) { + _tileLabelItem = [LYSDatePickerItem labelWithTitle:@""]; + } + return _tileLabelItem; +} + +- (void)cancelAction:(LYSDatePickerItem *)sender { + [self.headerVC cancelDatePicker]; + [self.headerVC hiddenDatePicker]; +} + +- (void)commitAction:(LYSDatePickerItem *)sender { + [self.headerVC commitDatePicker]; + [self.headerVC hiddenDatePicker]; +} + +- (void)customSubViews { + [self addSubview:self.leftItem.itemView]; + [self addSubview:self.rightItem.itemView]; + if (self.showTimeLabel) { + [self addSubview:self.tileLabelItem.itemView]; + } else { + [self addSubview:self.centerItem.itemView]; + } +} + +- (void)setShowTimeLabel:(BOOL)showTimeLabel +{ + _showTimeLabel = showTimeLabel; + if (_showTimeLabel) { + [self.centerItem.itemView removeFromSuperview]; + [self addSubview:self.tileLabelItem.itemView]; + } else { + [self.tileLabelItem.itemView removeFromSuperview]; + [self addSubview:self.centerItem.itemView]; + } +} + +- (void)setHeaderHeight:(CGFloat)headerHeight +{ + _headerHeight = headerHeight; + + [self.leftItem updateSize]; + + CGRect leftItemFrame = self.leftItem.itemView.frame; + leftItemFrame.origin.x = 5; + leftItemFrame.origin.y = (_headerHeight - CGRectGetHeight(leftItemFrame))/2.0; + self.leftItem.itemView.frame = leftItemFrame; + + [self.rightItem updateSize]; + + CGRect rightItemFrame = self.rightItem.itemView.frame; + rightItemFrame.origin.x = [UIScreen mainScreen].bounds.size.width - CGRectGetWidth(rightItemFrame) - 5; + rightItemFrame.origin.y = (_headerHeight - CGRectGetHeight(rightItemFrame))/2.0; + self.rightItem.itemView.frame = rightItemFrame; + + if (self.showTimeLabel) { + [self.tileLabelItem updateSize]; + CGRect titleLabelItemFrame = self.tileLabelItem.itemView.frame; + titleLabelItemFrame.origin.x = ([UIScreen mainScreen].bounds.size.width - CGRectGetWidth(titleLabelItemFrame))/2.0; + titleLabelItemFrame.origin.y = (_headerHeight - CGRectGetHeight(titleLabelItemFrame))/2.0; + self.tileLabelItem.itemView.frame = titleLabelItemFrame; + } else { + [self.centerItem updateSize]; + CGRect centerItemFrame = self.centerItem.itemView.frame; + centerItemFrame.origin.x = ([UIScreen mainScreen].bounds.size.width - CGRectGetWidth(centerItemFrame))/2.0; + centerItemFrame.origin.y = (_headerHeight - CGRectGetHeight(centerItemFrame))/2.0; + self.centerItem.itemView.frame = centerItemFrame; + } + +} + +- (void)updateDate:(NSDate *)date { + if (self.showTimeLabel) { + NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; + [dateFormat setDateFormat:self.titleDateFormat]; + self.tileLabelItem.title = [dateFormat stringFromDate:date]; + [self.tileLabelItem updateSize]; + CGRect titleLabelItemFrame = self.tileLabelItem.itemView.frame; + titleLabelItemFrame.origin.x = ([UIScreen mainScreen].bounds.size.width - CGRectGetWidth(titleLabelItemFrame))/2.0; + titleLabelItemFrame.origin.y = (_headerHeight - CGRectGetHeight(titleLabelItemFrame))/2.0; + self.tileLabelItem.itemView.frame = titleLabelItemFrame; + } +} + +- (CGSize)sizeWithTitle:(NSString *)title font:(UIFont *)font { + return [title boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width, 100) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName: font} context:nil].size; +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerItem.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerItem.h new file mode 100644 index 0000000..740edaf --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerItem.h @@ -0,0 +1,26 @@ +// +// LYSDatePickerItem.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +@interface LYSDatePickerItem : NSObject + +@property (nonatomic,strong,readonly)UIView *itemView; + +@property(nonatomic, strong)UIFont *itemFont; +@property(nonatomic, strong)UIColor *textColor; +@property(nonatomic, strong)NSString *title; + ++ (instancetype)btnWithTitle:(NSString *)title target:(id)target action:(SEL)action; +- (instancetype)initBtnWithTitle:(NSString *)title target:(id)target action:(SEL)action; + ++ (instancetype)labelWithTitle:(NSString *)title; +- (instancetype)initLabelWithTitle:(NSString *)title; + +- (void)updateSize; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerItem.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerItem.m new file mode 100644 index 0000000..860ab49 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerItem.m @@ -0,0 +1,150 @@ +// +// LYSDatePickerItem.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerItem.h" + +@interface LYSDatePickerItem () + +@property (nonatomic,strong)NSInvocation *invocation; +@property (nonatomic,strong,readwrite)UIView *itemView; + +@end + +@implementation LYSDatePickerItem + +@synthesize textColor = _textColor; +@synthesize itemFont = _itemFont; +@synthesize title = _title; + ++ (instancetype)btnWithTitle:(NSString *)title target:(id)target action:(SEL)action +{ + return [[LYSDatePickerItem alloc] initBtnWithTitle:title target:target action:action]; +} + ++ (instancetype)labelWithTitle:(NSString *)title +{ + return [[LYSDatePickerItem alloc] initLabelWithTitle:title]; +} + +- (instancetype)initBtnWithTitle:(NSString *)title target:(id)target action:(SEL)action +{ + self = [super init]; + if (self) { + UIButton *btn = [[UIButton alloc] init]; + btn.titleLabel.font = [UIFont systemFontOfSize:16]; + [btn setTitle:title forState:(UIControlStateNormal)]; + [btn setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)]; + [btn addTarget:self action:@selector(btnAction) forControlEvents:(UIControlEventTouchUpInside)]; + self.invocation = [NSInvocation invocationWithMethodSignature:[target methodSignatureForSelector:action]]; + [self.invocation setSelector:action]; + [self.invocation setTarget:target]; + // 从2开始是因为前两个参数已经被selector和target占用 + [self.invocation setArgument:&self atIndex:2]; + self.itemView = btn; + } + return self; +} + +- (instancetype)initLabelWithTitle:(NSString *)title +{ + self = [super init]; + if (self) { + UILabel *label = [[UILabel alloc] init]; + label.textColor = [UIColor blackColor]; + label.font = [UIFont systemFontOfSize:16]; + label.text = title; + self.itemView = label; + } + return self; +} + +- (void)btnAction { + [_invocation invoke]; +} + +- (void)updateSize +{ + CGRect frame = self.itemView.frame; + frame.size = [self sizeWithTitle:self.title font:self.itemFont]; + self.itemView.frame = frame; +} + +- (CGSize)sizeWithTitle:(NSString *)title font:(UIFont *)font { + return [title boundingRectWithSize:CGSizeMake([UIScreen mainScreen].bounds.size.width, 100) options:(NSStringDrawingUsesLineFragmentOrigin) attributes:@{NSFontAttributeName: font} context:nil].size; +} + +- (UIColor *)textColor { + if ([self.itemView isKindOfClass:[UIButton class]]) { + UIButton *itemView = (UIButton *)self.itemView; + return [itemView titleColorForState:(UIControlStateNormal)]; + } + if ([self.itemView isKindOfClass:[UILabel class]]) { + UILabel *itemView = (UILabel *)self.itemView; + return itemView.textColor; + } + return nil; +} + +- (UIFont *)itemFont { + if ([self.itemView isKindOfClass:[UIButton class]]) { + UIButton *itemView = (UIButton *)self.itemView; + return itemView.titleLabel.font; + } + if ([self.itemView isKindOfClass:[UILabel class]]) { + UILabel *itemView = (UILabel *)self.itemView; + return itemView.font; + } + return nil; +} + +- (NSString *)title { + if ([self.itemView isKindOfClass:[UIButton class]]) { + UIButton *itemView = (UIButton *)self.itemView; + return [itemView titleForState:(UIControlStateNormal)]; + } + if ([self.itemView isKindOfClass:[UILabel class]]) { + UILabel *itemView = (UILabel *)self.itemView; + return itemView.text; + } + return nil; +} + +- (void)setTextColor:(UIColor *)textColor { + _textColor = textColor; + if ([self.itemView isKindOfClass:[UIButton class]]) { + UIButton *itemView = (UIButton *)self.itemView; + [itemView setTitleColor:_textColor forState:(UIControlStateNormal)]; + } + if ([self.itemView isKindOfClass:[UILabel class]]) { + UILabel *itemView = (UILabel *)self.itemView; + itemView.textColor = _textColor; + } +} +- (void)setItemFont:(UIFont *)itemFont { + _itemFont = itemFont; + if ([self.itemView isKindOfClass:[UIButton class]]) { + UIButton *itemView = (UIButton *)self.itemView; + itemView.titleLabel.font = _itemFont; + } + if ([self.itemView isKindOfClass:[UILabel class]]) { + UILabel *itemView = (UILabel *)self.itemView; + itemView.font = _itemFont; + } +} +- (void)setTitle:(NSString *)title { + _title = title; + if ([self.itemView isKindOfClass:[UIButton class]]) { + UIButton *itemView = (UIButton *)self.itemView; + [itemView setTitle:_title forState:(UIControlStateNormal)]; + } + if ([self.itemView isKindOfClass:[UILabel class]]) { + UILabel *itemView = (UILabel *)self.itemView; + itemView.text = _title; + } +} +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerLabel.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerLabel.h new file mode 100644 index 0000000..247e018 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerLabel.h @@ -0,0 +1,13 @@ +// +// LYSDatePickerLabel.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/7. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +@interface LYSDatePickerLabel : UILabel ++ (instancetype)Label; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerLabel.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerLabel.m new file mode 100644 index 0000000..c80c86b --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerLabel.m @@ -0,0 +1,63 @@ +// +// LYSDatePickerLabel.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/7. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerLabel.h" + +@interface LYSDatePickerLabel () + +@end + +static NSMutableArray *useingLabelAry = nil; +static NSMutableArray *spareLabelAry = nil; + +@implementation LYSDatePickerLabel + ++ (instancetype)Label +{ + if (!useingLabelAry) { + useingLabelAry = [NSMutableArray array]; + } + + if (!spareLabelAry) { + spareLabelAry = [NSMutableArray array]; + } + + if ([spareLabelAry count] > 0) { + LYSDatePickerLabel *label = [spareLabelAry lastObject]; + [useingLabelAry addObject:label]; + [spareLabelAry removeObject:label]; + label.frame = CGRectZero; + return label; + } else { + LYSDatePickerLabel *label = [[LYSDatePickerLabel alloc] init]; + [useingLabelAry addObject:label]; + return label; + } + +} + +- (void)willMoveToSuperview:(UIView *)newSuperview { + if (!newSuperview) { + [spareLabelAry addObject:self]; + [useingLabelAry removeObject:self]; + } + if (useingLabelAry.count == 0) { + useingLabelAry = nil; + spareLabelAry = nil; + } +} + +/* +// Only override drawRect: if you perform custom drawing. +// An empty implementation adversely affects performance during animation. +- (void)drawRect:(CGRect)rect { + // Drawing code +} +*/ + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerManager.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerManager.h new file mode 100644 index 0000000..f077459 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerManager.h @@ -0,0 +1,40 @@ +// +// LYSDatePickerManager.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/3. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +@interface LYSDatePickerManager : NSObject +// 获取年列表 +- (NSArray *)fetchYearsWithFromYear:(int)fromYear to:(int)toYear; +// 获取月列表 +- (NSArray *)fetchMonthsWithYear:(int)year; +// 获取天列表(不包含星期几) +- (NSArray *)fetchDaysWithYear:(int)year month:(int)month; +// 获取日列表(包含星期几) +- (NSArray *)fetchDaysAndWeekDayWithYear:(int)year month:(int)month isShortWeekName:(BOOL)isShortName identifier:(NSString *)identifier; +// 获取小时 +- (NSArray *)fetchHour; +// 获取分钟 +- (NSArray *)fetchMinutes; +// 获取给定日期所在的月有多少天 +- (NSUInteger)fetchDaysOfMonthWithDate:(NSDate *)date; +// 获取给定日期所在的年有多少天 +- (NSUInteger)fecthDaysOfYearWithDate:(NSDate *)date; +// 获取给定日期所在月第一天的日期 +- (NSDate *)fetchFirstDayOfMonthWithDate:(NSDate *)date; +// 获取给定日期所在月最后一天的日期 +- (NSDate *)fetchLastDayOfMonthWithDate:(NSDate *)date; +// 获取给定日期是星期几 +- (NSInteger)fetchWeekdayNumWithDate:(NSDate *)date; +// 获取给定日期是星期几 +- (NSString *)fetchWeekdayNameWithDate:(NSDate *)date isShortName:(BOOL)isShortName localeIdentifier:(NSString *)localeIdentifier; +// 获取给定日期是星期几 +- (NSString *)fetchWeekdayCNNameWithDate:(NSDate *)date isShortName:(BOOL)isShortName; +// 获取给定日期是星期几 +- (NSString *)fetchWeekdayENNameWithDate:(NSDate *)date isShortName:(BOOL)isShortName; +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerManager.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerManager.m new file mode 100644 index 0000000..e6e1195 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerManager.m @@ -0,0 +1,225 @@ +// +// LYSDatePickerManager.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/3. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerManager.h" + +@interface LYSDatePickerManager () + +@property (nonatomic,strong)NSCalendar *gregorian; +// 获取年列表 +@property (nonatomic,assign)int year_from; +@property (nonatomic,assign)int year_to; +@property (nonatomic,strong)NSArray *years; + +// 获取月列表 +@property (nonatomic,assign)int month_year; +@property (nonatomic,strong)NSArray *months; + +// 获取天列表(不包含星期几) +@property (nonatomic,assign)int day_year; +@property (nonatomic,assign)int day_month; +@property (nonatomic,strong)NSArray *days; + +// 获取天列表(包含星期几) +@property (nonatomic,assign)int weekday_year; +@property (nonatomic,assign)int weekday_month; +@property (nonatomic,strong)NSArray *weekdays; + +// 获取小时 +@property (nonatomic,strong)NSArray *hours; + +// 获取分钟 +@property (nonatomic,strong)NSArray *minutes; +@end + +@implementation LYSDatePickerManager + +#pragma mark - 计算日期 - +- (NSCalendar *)gregorian +{ + if (!_gregorian) { + _gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + } + return _gregorian; +} +// 获取年列表 +- (NSArray *)fetchYearsWithFromYear:(int)fromYear to:(int)toYear +{ + BOOL isCan = _year_from == fromYear && _year_to == toYear && _years && [_years count] > 0; + if (!isCan) { + NSMutableArray *tempAry = [NSMutableArray array]; + for (int i = fromYear; i <= toYear; i++) { + [tempAry addObject:[NSString stringWithFormat:@"%d",i]]; + } + _years = tempAry;_year_from = fromYear;_year_to = toYear; + } + return _years; +} +// 获取月列表 +- (NSArray *)fetchMonthsWithYear:(int)year +{ + BOOL isCan = _month_year == year && _months && [_months count] > 0; + if (!isCan) { + NSDate *tempDate = [self dateWithString:[NSString stringWithFormat:@"%@",@(year)] formatter:@"yyyy"]; + NSInteger length = [self.gregorian rangeOfUnit:NSCalendarUnitMonth inUnit:NSCalendarUnitYear forDate:tempDate].length; + NSMutableArray *tempAry = [NSMutableArray array]; + for (int i = 1; i <= length; i++) { + [tempAry addObject:[NSString stringWithFormat:@"%d",i]]; + } + _months = tempAry;_month_year= year; + } + return _months; +} +// 获取日列表(不包含星期几) +- (NSArray *)fetchDaysWithYear:(int)year month:(int)month +{ + BOOL isCan = _day_year == year && _day_month == month && _days && [_days count] > 0; + if (!isCan) { + NSDate *tempDate = [self dateWithString:[NSString stringWithFormat:@"%@/%@",@(year),@(month)] formatter:@"yyyy/MM"]; + NSInteger length = [self.gregorian rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:tempDate].length; + NSMutableArray *tempAry = [NSMutableArray array]; + for (int i = 1; i <= length; i++) { + [tempAry addObject:[NSString stringWithFormat:@"%d",i]]; + } + _days = tempAry;_day_month = month;_day_year = year; + } + return _days; +} + +// 获取日列表(包含星期几) +- (NSArray *)fetchDaysAndWeekDayWithYear:(int)year month:(int)month isShortWeekName:(BOOL)isShortName identifier:(NSString *)identifier +{ + BOOL isCan = _weekday_year == year && _weekday_month == month && _weekdays && [_weekdays count] > 0; + if (!isCan) { + NSDate *tempDate = [self dateWithString:[NSString stringWithFormat:@"%@/%@",@(year),@(month)] formatter:@"yyyy/MM"]; + NSInteger length = [self.gregorian rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:tempDate].length; + unsigned unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond; + NSDateComponents *comps = [self.gregorian components:unitFlags fromDate:tempDate]; + [comps setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; + NSMutableArray *tempAry = [NSMutableArray array]; + for (int i = 1; i <= length; i++) { + [comps setDay:i]; + NSString *str = @""; + if ([identifier isEqualToString:@"zh_CN"]) { + str = [self fetchWeekdayCNNameWithDate:[self.gregorian dateFromComponents:comps] isShortName:isShortName]; + } + if ([identifier isEqualToString:@"en_US"]) { + str = [self fetchWeekdayENNameWithDate:[self.gregorian dateFromComponents:comps] isShortName:isShortName]; + } + [tempAry addObject:str]; + } + _weekdays = tempAry;_weekday_month = month;_weekday_year = year; + } + return _weekdays; +} +// 获取小时 +- (NSArray *)fetchHour +{ + BOOL isCan = _hours && [_hours count] > 0; + if (!isCan) { + NSMutableArray *tempAry = [NSMutableArray array]; + for (int i = 0; i <= 23; i++) { + NSString *str = [NSString stringWithFormat:@"%d",i]; + if (i < 10) { + str = [NSString stringWithFormat:@"0%@",str]; + } + [tempAry addObject:str]; + } + _hours = tempAry; + } + return _hours; +} + +// 获取分钟 +- (NSArray *)fetchMinutes +{ + BOOL isCan = _minutes && [_minutes count] > 0; + if (!isCan) { + NSMutableArray *tempAry = [NSMutableArray array]; + for (int i = 0; i <= 59; i++) { + NSString *str = [NSString stringWithFormat:@"%d",i]; + if (i < 10) { + str = [NSString stringWithFormat:@"0%@",str]; + } + [tempAry addObject:str]; + } + _minutes = tempAry; + } + return _minutes; +} + +- (NSDate *)dateWithString:(NSString *)dateStr formatter:(NSString *)formatStr +{ + NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; + formatter.dateFormat = formatStr; + return [formatter dateFromString:dateStr]; +} +// 获取给定日期所在的月有多少天 +- (NSUInteger)fetchDaysOfMonthWithDate:(NSDate *)date +{ + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + NSRange range = [gregorian rangeOfUnit:NSCalendarUnitDay inUnit:NSCalendarUnitMonth forDate:date]; + return range.length; +} +// 获取给定日期所在的年有多少天 +- (NSUInteger)fecthDaysOfYearWithDate:(NSDate *)date +{ + NSUInteger days = 0; + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + NSDateComponents *comps = [gregorian components:NSCalendarUnitYear fromDate:date]; + for (NSUInteger i=1; i<=12; i++) { + [comps setMonth:i]; + days += [self fetchDaysOfMonthWithDate:[gregorian dateFromComponents:comps]]; + } + return days; +} +// 获取给定日期所在月第一天的日期 +- (NSDate *)fetchFirstDayOfMonthWithDate:(NSDate *)date +{ + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + unsigned unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond; + NSDateComponents *comps = [gregorian components:unitFlags fromDate:date]; + [comps setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; // 使用UTC或GMT解决时区相差8小时的问题 + [comps setDay:1]; + return [gregorian dateFromComponents:comps]; +} +// 获取给定日期所在月最后一天的日期 +- (NSDate *)fetchLastDayOfMonthWithDate:(NSDate *)date +{ + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + unsigned unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond; + NSDateComponents *comps = [gregorian components:unitFlags fromDate:date]; + [comps setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; // 使用UTC或GMT解决时区相差8小时的问题 + [comps setDay:[self fetchDaysOfMonthWithDate:date]]; + return [gregorian dateFromComponents:comps]; +} +// 获取给定日期是星期几 +- (NSInteger)fetchWeekdayNumWithDate:(NSDate *)date +{ + return [[[NSCalendar currentCalendar] components:NSCalendarUnitWeekday fromDate:date] weekday]; +} +// 获取给定日期是星期几 +- (NSString *)fetchWeekdayNameWithDate:(NSDate *)date isShortName:(BOOL)isShortName localeIdentifier:(NSString *)localeIdentifier +{ + NSDateFormatter *formatter = [NSDateFormatter new]; + formatter.timeZone = [NSTimeZone timeZoneWithAbbreviation:@"UTC"]; + formatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:localeIdentifier]; + formatter.dateFormat = isShortName ? @"EE" : @"EEEE"; + return [formatter stringFromDate:date]; +} +// 获取给定日期是星期几 +- (NSString *)fetchWeekdayCNNameWithDate:(NSDate *)date isShortName:(BOOL)isShortName +{ + return [self fetchWeekdayNameWithDate:date isShortName:isShortName localeIdentifier:@"zh_CN"]; +} +// 获取给定日期是星期几 +- (NSString *)fetchWeekdayENNameWithDate:(NSDate *)date isShortName:(BOOL)isShortName +{ + return [self fetchWeekdayNameWithDate:date isShortName:isShortName localeIdentifier:@"en_US"]; +} +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerSelectDelegate.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerSelectDelegate.h new file mode 100644 index 0000000..6a1d105 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerSelectDelegate.h @@ -0,0 +1,26 @@ +// +// LYSDatePickerSelectDelegate.h +// LYSDatePickerController +// +// Created by liyangshuai on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +@class LYSDatePickerController; + +@protocol LYSDatePickerSelectDelegate + +@optional +// 日期选择器点击确定按钮时触发 +- (void)pickerViewController:(LYSDatePickerController *)pickerVC didSelectDate:(NSDate *)date; +// 日期选择器生命周期 +- (void)pickerViewControllerWillAppear:(LYSDatePickerController *)pickerVC; +- (void)pickerViewControllerDidAppear:(LYSDatePickerController *)pickerVC; +- (void)pickerViewControllerWillDisAppear:(LYSDatePickerController *)pickerVC; +- (void)pickerViewControllerdidDisAppear:(LYSDatePickerController *)pickerVC; +// 日期选择器点击取消按钮时触发 +- (void)pickerViewControllerDidCancel:(LYSDatePickerController *)pickerVC; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeBase.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeBase.h new file mode 100644 index 0000000..880f017 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeBase.h @@ -0,0 +1,61 @@ +// +// LYSDatePickerTypeBase.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import + +typedef enum : NSUInteger { + LYSDatePickerWeakDayTypeCNDefault, + LYSDatePickerWeakDayTypeCNShort, + LYSDatePickerWeakDayTypeUSDefault, + LYSDatePickerWeakDayTypeUSShort +} LYSDatePickerWeakDayType; + +@interface LYSDatePickerTypeBase : NSObject + +@property (nonatomic,weak)UIPickerView *pickView; + +@property(nonatomic, copy)void(^didSelectItem)(NSDate *date); + +- (instancetype)initWithPickerView:(UIPickerView *)pickerView; + +// 日期开始时间 +@property (nonatomic,assign)int fromYear; +// 日期结束时间 +@property (nonatomic,assign)int toYear; + +@property(nonatomic, weak)UILabel *titleLabel; + +@property (nonatomic,assign)int currentYear; +@property (nonatomic,assign)int currentMonth; +@property (nonatomic,assign)int currentDay; +@property (nonatomic,assign)int currentHour; +@property (nonatomic,assign)int currentMinute; + +@property(nonatomic, assign)BOOL yearLoop; +@property(nonatomic, assign)BOOL monthLoop; +@property(nonatomic, assign)BOOL dayLoop; +@property(nonatomic, assign)BOOL hourLoop; +@property(nonatomic, assign)BOOL minuteLoop; + +@property(nonatomic, assign)BOOL showWeakDay; +@property(nonatomic, assign)LYSDatePickerWeakDayType weakDayType; + +@property (nonatomic,strong,readonly)NSArray *years; +@property (nonatomic,strong,readonly)NSArray *months; +@property (nonatomic,strong,readonly)NSArray *days; +@property (nonatomic,strong,readonly)NSArray *weekDays; +@property (nonatomic,strong,readonly)NSArray *weekDaysShortName; +@property (nonatomic,strong,readonly)NSArray *hours; +@property (nonatomic,strong,readonly)NSArray *minutes; + +// 拆分日期对象,获取时间粒度 +- (void)defaultWithDate:(NSDate *)date; +// 更新选择器 +- (void)updateDatePicker; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeBase.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeBase.m new file mode 100644 index 0000000..47d1030 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeBase.m @@ -0,0 +1,90 @@ +// +// LYSDatePickerTypeBase.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeBase.h" +#import "LYSDatePickerManager.h" + +@interface LYSDatePickerTypeBase () + +@property (nonatomic,strong)LYSDatePickerManager *pickerManager; + +@end + +@implementation LYSDatePickerTypeBase + +- (instancetype)initWithPickerView:(UIPickerView *)pickerView +{ + if (self = [super init]) { + self.pickView = pickerView; + self.pickerManager = [[LYSDatePickerManager alloc] init]; + } + return self; +} + +- (NSArray *)years +{ + return [self.pickerManager fetchYearsWithFromYear:self.fromYear to:self.toYear]; +} + +- (NSArray *)months +{ + return [self.pickerManager fetchMonthsWithYear:self.currentYear]; +} + +- (NSArray *)days +{ + return [self.pickerManager fetchDaysWithYear:self.currentYear month:self.currentMonth]; +} + +- (NSArray *)weekDays +{ + if (self.weakDayType == LYSDatePickerWeakDayTypeCNDefault) { + return [self.pickerManager fetchDaysAndWeekDayWithYear:self.currentYear month:self.currentMonth isShortWeekName:NO identifier:@"zh_CN"]; + } + if (self.weakDayType == LYSDatePickerWeakDayTypeUSDefault) { + return [self.pickerManager fetchDaysAndWeekDayWithYear:self.currentYear month:self.currentMonth isShortWeekName:NO identifier:@"en_US"]; + } + return [self.pickerManager fetchDaysAndWeekDayWithYear:self.currentYear month:self.currentMonth isShortWeekName:NO identifier:@"zh_CN"]; +} + +- (NSArray *)weekDaysShortName +{ + if (self.weakDayType == LYSDatePickerWeakDayTypeCNShort) { + return [self.pickerManager fetchDaysAndWeekDayWithYear:self.currentYear month:self.currentMonth isShortWeekName:YES identifier:@"zh_CN"]; + } + if (self.weakDayType == LYSDatePickerWeakDayTypeUSShort) { + return [self.pickerManager fetchDaysAndWeekDayWithYear:self.currentYear month:self.currentMonth isShortWeekName:YES identifier:@"en_US"]; + } + return [self.pickerManager fetchDaysAndWeekDayWithYear:self.currentYear month:self.currentMonth isShortWeekName:YES identifier:@"zh_CN"]; +} + +- (NSArray *)hours +{ + return [self.pickerManager fetchHour]; +} + +- (NSArray *)minutes +{ + return [self.pickerManager fetchMinutes]; +} + +- (NSInteger)numberOfComponentsInPickerView:(nonnull UIPickerView *)pickerView +{ + return 0; +} + +- (NSInteger)pickerView:(nonnull UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component +{ + return 0; +} +// 拆分日期对象,获取时间粒度 +- (void)defaultWithDate:(NSDate *)date {} +// 更新选择器 +- (void)updateDatePicker {} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayAndTimeDelegate.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayAndTimeDelegate.h new file mode 100644 index 0000000..1ca24cd --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayAndTimeDelegate.h @@ -0,0 +1,13 @@ +// +// LYSDatePickerTypeDayAndTimeDelegate.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeBase.h" + +@interface LYSDatePickerTypeDayAndTimeDelegate : LYSDatePickerTypeBase + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayAndTimeDelegate.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayAndTimeDelegate.m new file mode 100644 index 0000000..059c39d --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayAndTimeDelegate.m @@ -0,0 +1,239 @@ +// +// LYSDatePickerTypeDayAndTimeDelegate.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeDayAndTimeDelegate.h" +#import "LYSDatePickerLabel.h" + +#define IS5SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(320, 568)) +#define IS6SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 667)) +#define IS6SPBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(414, 736)) +#define ISXBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 812)) + +#define WidthRank(A,B,C,D,E) (IS5SBOOL ? A : (IS6SBOOL ? B : (IS6SPBOOL ? C : (ISXBOOL ? D : E)))) + +@implementation LYSDatePickerTypeDayAndTimeDelegate + +- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView +{ + return 5; +} + +- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component +{ + switch (component) { + case 0: + { + return [self.years count] * (self.yearLoop ? 100 : 1); + } + break; + case 1: + { + return [self.months count] * (self.monthLoop ? 100 : 1); + } + break; + case 2: + { + return [self.days count] * (self.dayLoop ? 100 : 1); + } + break; + case 3: + { + return [self.hours count] * (self.hourLoop ? 100 : 1); + } + break; + case 4: + { + return [self.minutes count] * (self.minuteLoop ? 100 : 1); + } + break; + default: + break; + } + return 0; +} + +- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component { + switch (component) { + case 0: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(5.5, 5.5, 5.5, 5.5, 5.5); + } + break; + case 1: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(7.0, 7.0, 7.0, 7.0, 7.0); + } + break; + case 2: + { + if (self.showWeakDay && self.weakDayType == LYSDatePickerWeakDayTypeUSDefault) { + return CGRectGetWidth(pickerView.frame) / WidthRank(3.0, 3.0, 3.0, 3.0, 3.0); + } else { + return CGRectGetWidth(pickerView.frame) / WidthRank(4.0, 4.0, 4.0, 4.0, 4.0); + } + } + break; + case 3: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(7.0, 7.0, 7.0, 7.0, 7.0); + } + break; + case 4: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(7.0, 7.0, 7.0, 7.0, 7.0); + } + break; + default: + break; + } + return 0; +} + +- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { + LYSDatePickerLabel *label = [LYSDatePickerLabel Label]; + label.textAlignment = self.titleLabel.textAlignment; + label.backgroundColor = self.titleLabel.backgroundColor; + label.font = self.titleLabel.font; + label.textColor = self.titleLabel.textColor; + switch (component) { + case 0: + { + id str = [self.years objectAtIndex:(row % [[self years] count])]; + label.text = [NSString stringWithFormat:@"%@年",str]; + } + break; + case 1: + { + id str = [self.months objectAtIndex:(row % [[self months] count])]; + label.text = [NSString stringWithFormat:@"%@月",str]; + } + break; + case 2: + { + id str = [self.days objectAtIndex:(row % [[self days] count])]; + if (self.showWeakDay) { + id week = @""; + if (self.weakDayType == LYSDatePickerWeakDayTypeUSShort || self.weakDayType == LYSDatePickerWeakDayTypeCNShort) { + week = [self.weekDaysShortName objectAtIndex:(row % [[self weekDaysShortName] count])]; + } + if (self.weakDayType == LYSDatePickerWeakDayTypeUSDefault || self.weakDayType == LYSDatePickerWeakDayTypeCNDefault) { + week = [self.weekDays objectAtIndex:(row % [[self weekDays] count])]; + } + label.text = [NSString stringWithFormat:@"%@日 %@",str,week]; + }else { + label.text = [NSString stringWithFormat:@"%@日",str]; + } + } + break; + case 3: + { + id str = [self.hours objectAtIndex:(row % [[self hours] count])]; + label.text = [NSString stringWithFormat:@"%@时",str]; + } + break; + case 4: + { + id str = [self.minutes objectAtIndex:(row % [[self minutes] count])]; + label.text = [NSString stringWithFormat:@"%@分",str]; + } + break; + default: + break; + } + return label; +} + +- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { + switch (component) { + case 0: + { + self.currentYear = [[self.years objectAtIndex:(row % [[self years] count])] intValue]; + [pickerView reloadComponent:2]; + } + break; + case 1: + { + self.currentMonth = [[self.months objectAtIndex:(row % [[self months] count])] intValue]; + [pickerView reloadComponent:2]; + } + break; + case 2: + { + self.currentDay = [[self.days objectAtIndex:(row % [[self days] count])] intValue]; + } + break; + case 3: + { + self.currentHour = [[self.hours objectAtIndex:(row % [[self hours] count])] intValue]; + } + break; + case 4: + { + self.currentMinute = [[self.minutes objectAtIndex:(row % [[self minutes] count])] intValue]; + } + break; + default: + break; + } + + if (self.didSelectItem) { + self.didSelectItem([self dateWithYear:self.currentYear month:self.currentMonth day:self.currentDay hour:self.currentHour minute:self.currentMinute]); + } +} + +- (NSDate *)dateWithYear:(int)year month:(int)month day:(int)day hour:(int)hour minute:(int)minute +{ + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + unsigned unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond; + NSDateComponents *comps = [gregorian components:unitFlags fromDate:[NSDate date]]; +// [comps setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; + [comps setYear:year]; + [comps setMonth:month]; + [comps setDay:day]; + [comps setHour:hour]; + [comps setMinute:minute]; + [comps setSecond:0]; + return [gregorian dateFromComponents:comps]; +} + +// 拆分日期对象,获取时间粒度 +- (void)defaultWithDate:(NSDate *)date { + NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; + [dateFormat setDateFormat:@"yyyy/MM/dd/HH/mm"]; + NSString *currentDate = [dateFormat stringFromDate:date]; + NSArray *currentDateAry = [currentDate componentsSeparatedByString:@"/"]; + self.currentYear = [[currentDateAry objectAtIndex:0] intValue]; + self.currentMonth = [[currentDateAry objectAtIndex:1] intValue]; + self.currentDay = [[currentDateAry objectAtIndex:2] intValue]; + self.currentHour = [[currentDateAry objectAtIndex:3] intValue]; + self.currentMinute = [[currentDateAry objectAtIndex:4] intValue]; + if (self.didSelectItem) { + self.didSelectItem([self dateWithYear:self.currentYear month:self.currentMonth day:self.currentDay hour:self.currentHour minute:self.currentMinute]); + } +} + +// 更新选择器 +- (void)updateDatePicker { + NSInteger yearIndex = self.currentYear - self.fromYear; + NSInteger monthIndex = self.currentMonth - 1; + NSInteger dayIndex = self.currentDay - 1; + NSInteger hourIndex = self.currentHour; + NSInteger minuteIndex = self.currentMinute; + yearIndex = yearIndex > [self.years count] - 1 ? [self.years count] - 1 : yearIndex; + monthIndex = monthIndex > [self.months count] - 1 ? [self.months count] - 1 : monthIndex; + dayIndex = dayIndex > [self.days count] - 1 ? [self.days count] - 1 : dayIndex; + hourIndex = hourIndex > [self.hours count] - 1 ? [self.hours count] - 1 : hourIndex; + minuteIndex = minuteIndex > [self.minutes count] - 1 ? [self.minutes count] - 1 : minuteIndex; + [self.pickView selectRow:yearIndex inComponent:0 animated:NO]; + [self.pickView selectRow:monthIndex inComponent:1 animated:NO]; + [self.pickView selectRow:dayIndex inComponent:2 animated:NO]; + [self.pickView selectRow:hourIndex inComponent:3 animated:NO]; + [self.pickView selectRow:minuteIndex inComponent:4 animated:NO]; +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayDelegate.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayDelegate.h new file mode 100644 index 0000000..c8bb09b --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayDelegate.h @@ -0,0 +1,13 @@ +// +// LYSDatePickerTypeDayDelegate.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeBase.h" + +@interface LYSDatePickerTypeDayDelegate : LYSDatePickerTypeBase + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayDelegate.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayDelegate.m new file mode 100644 index 0000000..915e798 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeDayDelegate.m @@ -0,0 +1,185 @@ +// +// LYSDatePickerTypeDayDelegate.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeDayDelegate.h" +#import "LYSDatePickerLabel.h" + +#define IS5SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(320, 568)) +#define IS6SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 667)) +#define IS6SPBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(414, 736)) +#define ISXBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 812)) + +#define WidthRank(A,B,C,D,E) (IS5SBOOL ? A : (IS6SBOOL ? B : (IS6SPBOOL ? C : (ISXBOOL ? D : E)))) + +@implementation LYSDatePickerTypeDayDelegate + +- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView +{ + return 3; +} +- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component +{ + switch (component) { + case 0: + { + return [self.years count] * (self.yearLoop ? 100 : 1); + } + break; + case 1: + { + return [self.months count] * (self.monthLoop ? 100 : 1); + } + break; + case 2: + { + return [self.days count] * (self.dayLoop ? 100 : 1); + } + break; + default: + break; + } + return 0; +} +- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component +{ + switch (component) { + case 0: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(5.5, 5.5, 5.5, 5.5, 5.5); + } + break; + case 1: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(7.0, 7.0, 7.0, 7.0, 7.0); + } + break; + case 2: + { + if (self.showWeakDay && self.weakDayType == LYSDatePickerWeakDayTypeUSDefault) { + return CGRectGetWidth(pickerView.frame) / WidthRank(3.0, 3.0, 3.0, 3.0, 3.0); + } else { + return CGRectGetWidth(pickerView.frame) / WidthRank(4.0, 4.0, 4.0, 4.0, 4.0); + } + } + break; + default: + break; + } + return 0; +} +- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view +{ + LYSDatePickerLabel *label = [LYSDatePickerLabel Label]; + label.textAlignment = self.titleLabel.textAlignment; + label.backgroundColor = self.titleLabel.backgroundColor; + label.font = self.titleLabel.font; + label.textColor = self.titleLabel.textColor; + switch (component) { + case 0: + { + id str = [self.years objectAtIndex:(row % [[self years] count])]; + label.text = [NSString stringWithFormat:@"%@年",str]; + } + break; + case 1: + { + id str = [self.months objectAtIndex:(row % [[self months] count])]; + label.text = [NSString stringWithFormat:@"%@月",str]; + } + break; + case 2: + { + id str = [self.days objectAtIndex:(row % [[self days] count])]; + if (self.showWeakDay) { + id week = @""; + if (self.weakDayType == LYSDatePickerWeakDayTypeUSShort || self.weakDayType == LYSDatePickerWeakDayTypeCNShort) { + week = [self.weekDaysShortName objectAtIndex:(row % [[self weekDaysShortName] count])]; + } + if (self.weakDayType == LYSDatePickerWeakDayTypeUSDefault || self.weakDayType == LYSDatePickerWeakDayTypeCNDefault) { + week = [self.weekDays objectAtIndex:(row % [[self weekDays] count])]; + } + label.text = [NSString stringWithFormat:@"%@日 %@",str,week]; + }else { + label.text = [NSString stringWithFormat:@"%@日",str]; + } + } + break; + default: + break; + } + return label; +} +- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { + switch (component) { + case 0: + { + self.currentYear = [[self.years objectAtIndex:(row % [[self years] count])] intValue]; + [pickerView reloadComponent:2]; + } + break; + case 1: + { + self.currentMonth = [[self.months objectAtIndex:(row % [[self months] count])] intValue]; + [pickerView reloadComponent:2]; + } + break; + case 2: + { + self.currentDay = [[self.days objectAtIndex:(row % [[self days] count])] intValue]; + } + break; + default: + break; + } + if (self.didSelectItem) { + self.didSelectItem([self dateWithYear:self.currentYear month:self.currentMonth day:self.currentDay]); + } +} + +- (NSDate *)dateWithYear:(int)year month:(int)month day:(int)day +{ + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + unsigned unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond; + NSDateComponents *comps = [gregorian components:unitFlags fromDate:[NSDate date]]; + // [comps setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; + [comps setYear:year]; + [comps setMonth:month]; + [comps setDay:day]; + [comps setHour:0]; + [comps setMinute:0]; + [comps setSecond:0]; + return [gregorian dateFromComponents:comps]; +} + +// 拆分日期对象,获取时间粒度 +- (void)defaultWithDate:(NSDate *)date { + NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; + [dateFormat setDateFormat:@"yyyy/MM/dd"]; + NSString *currentDate = [dateFormat stringFromDate:date]; + NSArray *currentDateAry = [currentDate componentsSeparatedByString:@"/"]; + self.currentYear = [[currentDateAry objectAtIndex:0] intValue]; + self.currentMonth = [[currentDateAry objectAtIndex:1] intValue]; + self.currentDay = [[currentDateAry objectAtIndex:2] intValue]; + if (self.didSelectItem) { + self.didSelectItem([self dateWithYear:self.currentYear month:self.currentMonth day:self.currentDay]); + } +} + +// 更新选择器 +- (void)updateDatePicker { + NSInteger yearIndex = self.currentYear - self.fromYear; + NSInteger monthIndex = self.currentMonth - 1; + NSInteger dayIndex = self.currentDay - 1; + yearIndex = yearIndex > [self.years count] - 1 ? [self.years count] - 1 : yearIndex; + monthIndex = monthIndex > [self.months count] - 1 ? [self.months count] - 1 : monthIndex; + dayIndex = dayIndex > [self.days count] - 1 ? [self.days count] - 1 : dayIndex; + [self.pickView selectRow:yearIndex inComponent:0 animated:NO]; + [self.pickView selectRow:monthIndex inComponent:1 animated:NO]; + [self.pickView selectRow:dayIndex inComponent:2 animated:NO]; +} +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeTimeDelegate.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeTimeDelegate.h new file mode 100644 index 0000000..08e96da --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeTimeDelegate.h @@ -0,0 +1,13 @@ +// +// LYSDatePickerTypeTimeDelegate.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeBase.h" + +@interface LYSDatePickerTypeTimeDelegate : LYSDatePickerTypeBase + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeTimeDelegate.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeTimeDelegate.m new file mode 100644 index 0000000..1db1847 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerTypeTimeDelegate.m @@ -0,0 +1,142 @@ +// +// LYSDatePickerTypeTimeDelegate.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/4. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerTypeTimeDelegate.h" +#import "LYSDatePickerLabel.h" + +#define IS5SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(320, 568)) +#define IS6SBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 667)) +#define IS6SPBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(414, 736)) +#define ISXBOOL CGSizeEqualToSize([UIScreen mainScreen].bounds.size, CGSizeMake(375, 812)) + +#define WidthRank(A,B,C,D,E) (IS5SBOOL ? A : (IS6SBOOL ? B : (IS6SPBOOL ? C : (ISXBOOL ? D : E)))) + +@implementation LYSDatePickerTypeTimeDelegate + +- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView +{ + return 2; +} + +- (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component +{ + switch (component) { + case 0: + { + return [self.hours count] * (self.hourLoop ? 100 : 1); + } + break; + case 1: + { + return [self.minutes count] * (self.minuteLoop ? 100 : 1); + } + break; + default: + break; + } + return 0; +} +- (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component +{ + switch (component) { + case 0: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(5.5, 5.5, 5.5, 5.5, 5.5); + } + break; + case 1: + { + return CGRectGetWidth(pickerView.frame) / WidthRank(5.5, 5.5, 5.5, 5.5, 5.5); + } + break; + default: + break; + } + return 0; +} +- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view +{ + LYSDatePickerLabel *label = [LYSDatePickerLabel Label]; + label.textAlignment = self.titleLabel.textAlignment; + label.backgroundColor = self.titleLabel.backgroundColor; + label.font = self.titleLabel.font; + label.textColor = self.titleLabel.textColor; + switch (component) { + case 0: + { + id str = [self.hours objectAtIndex:(row % [[self hours] count])]; + label.text = [NSString stringWithFormat:@"%@时",str]; + } + break; + case 1: + { + id str = [self.minutes objectAtIndex:(row % [[self minutes] count])]; + label.text = [NSString stringWithFormat:@"%@分",str]; + } + break; + default: + break; + } + return label; +} +- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component +{ + switch (component) { + case 0: + { + self.currentHour = [[self.hours objectAtIndex:(row % [[self hours] count])] intValue]; + } + break; + case 1: + { + self.currentMinute = [[self.minutes objectAtIndex:(row % [[self minutes] count])] intValue]; + } + break; + default: + break; + } + if (self.didSelectItem) { + self.didSelectItem([self dateWithHour:self.currentHour minute:self.currentMinute]); + } +} + +- (NSDate *)dateWithHour:(int)hour minute:(int)minute +{ + NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian]; + unsigned unitFlags = NSCalendarUnitYear | NSCalendarUnitMonth | NSCalendarUnitDay | NSCalendarUnitHour | NSCalendarUnitMinute | NSCalendarUnitSecond; + NSDateComponents *comps = [gregorian components:unitFlags fromDate:[NSDate date]]; + // [comps setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; + [comps setHour:hour]; + [comps setMinute:minute]; + [comps setSecond:0]; + return [gregorian dateFromComponents:comps]; +} + +// 拆分日期对象,获取时间粒度 +- (void)defaultWithDate:(NSDate *)date { + NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; + [dateFormat setDateFormat:@"HH/mm"]; + NSString *currentDate = [dateFormat stringFromDate:date]; + NSArray *currentDateAry = [currentDate componentsSeparatedByString:@"/"]; + self.currentHour = [[currentDateAry objectAtIndex:0] intValue]; + self.currentMinute = [[currentDateAry objectAtIndex:1] intValue]; + if (self.didSelectItem) { + self.didSelectItem([self dateWithHour:self.currentHour minute:self.currentMinute]); + } +} + +// 更新选择器 +- (void)updateDatePicker { + NSInteger hourIndex = self.currentHour; + NSInteger minuteIndex = self.currentMinute; + hourIndex = hourIndex > [self.hours count] - 1 ? [self.hours count] - 1 : hourIndex; + minuteIndex = minuteIndex > [self.minutes count] - 1 ? [self.minutes count] - 1 : minuteIndex; + [self.pickView selectRow:hourIndex inComponent:0 animated:NO]; + [self.pickView selectRow:minuteIndex inComponent:1 animated:NO]; +} +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerViewController.h new file mode 100644 index 0000000..6183e3d --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerViewController.h @@ -0,0 +1,17 @@ +// +// LYSDatePickerViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateIndicatorViewController.h" + +@interface LYSDatePickerViewController : LYSDateIndicatorViewController +// 选择器视图 +@property (nonatomic,strong,readonly)UIPickerView *pickView; +// 选择器视图颜色 +@property (nonatomic,assign)CGFloat pickViewHeight; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerViewController.m new file mode 100644 index 0000000..bd79ffe --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePickerViewController.m @@ -0,0 +1,71 @@ +// +// LYSDatePickerViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePickerViewController.h" +#import + +#define Rect(x,y,w,h) CGRectMake(x, y, w, h) +#define ScreenWidth CGRectGetWidth([UIScreen mainScreen].bounds) +#define ScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds) + +@interface LYSDatePickerViewController () + +// 选择器视图 +@property (nonatomic,strong,readwrite)UIPickerView *pickView; + +@end + +@implementation LYSDatePickerViewController + +- (instancetype)init +{ + self = [super init]; + if (self) { + // 默认选择器高度 + self.pickViewHeight = 220; + } + return self; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. + // 初始化选择器 + [self initPickerView]; +} + +- (UIPickerView *)pickView +{ + if (!_pickView) { + CGFloat headerViewHeight = 0; + id tag = objc_getAssociatedObject(self.headerView, @"tag"); + if (tag && [tag boolValue]) { + headerViewHeight = self.pickHeaderHeight; + }else { + headerViewHeight = CGRectGetHeight(self.headerView.frame); + } + if (self.showIndicator) { + headerViewHeight += self.indicatorHeight; + } + _pickView = [[UIPickerView alloc] initWithFrame:CGRectMake(0, headerViewHeight, ScreenWidth, self.pickViewHeight)]; + } + return _pickView; +} + +// 初始化选择器 +- (void)initPickerView +{ + [self.contentView addSubview:self.pickView]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePopViewController.h b/GIGA/Common/Views/LYSDatePickerController/LYSDatePopViewController.h new file mode 100644 index 0000000..dddef81 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePopViewController.h @@ -0,0 +1,38 @@ +// +// LYSDatePopViewController.h +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDateBaseViewController.h" +#import "LYSDateContentView.h" + +@interface LYSDatePopViewController : LYSDateBaseViewController +// 弹窗弹出视图 +@property (nonatomic,strong,readonly)LYSDateContentView *contentView; + +@property(nonatomic, assign)BOOL clickOuterHiddenEnable; + +// 动画显示contentView +- (void)showAnimationContentViewWithCompletion:(void(^)(BOOL finished))completion; +// 动画隐藏contentView +- (void)hiddenAnimationContentViewWithCompletion:(void(^)(BOOL finished))completion; + +// 弹出 +- (void)showDatePickerWithController:(UIViewController *)controller; +// 弹出 ++ (void)showDatePickerWithController:(UIViewController *)controller; + +// 在UIWindow的根视图上弹出 +- (void)showDatePickerInWindowRootVC; +// 在UIWindow的根视图上弹出 ++ (void)showDatePickerInWindowRootVC; + +// 隐藏 +- (void)hiddenDatePicker; +// 隐藏 ++ (void)hiddenDatePicker; + +@end diff --git a/GIGA/Common/Views/LYSDatePickerController/LYSDatePopViewController.m b/GIGA/Common/Views/LYSDatePickerController/LYSDatePopViewController.m new file mode 100644 index 0000000..139d705 --- /dev/null +++ b/GIGA/Common/Views/LYSDatePickerController/LYSDatePopViewController.m @@ -0,0 +1,175 @@ +// +// LYSDatePopViewController.m +// LYSDatePickerController +// +// Created by HENAN on 2018/5/5. +// Copyright © 2018年 liyangshuai. All rights reserved. +// + +#import "LYSDatePopViewController.h" + +#define Rect(x,y,w,h) CGRectMake(x, y, w, h) +#define ScreenWidth CGRectGetWidth([UIScreen mainScreen].bounds) +#define ScreenHeight CGRectGetHeight([UIScreen mainScreen].bounds) + +@interface LYSDatePopViewController () + +@property (nonatomic,strong,readwrite)LYSDateContentView *contentView; + +@end + +@implementation LYSDatePopViewController + +- (instancetype)init +{ + self = [super init]; + if (self) { + self.modalPresentationStyle = UIModalPresentationOverCurrentContext; + self.clickOuterHiddenEnable = YES; + } + return self; +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view. +// self.view.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.2]; +// self.view.alpha = 0; + // 设置内容视图 + [self initContentView]; +} + +- (LYSDateContentView *)contentView +{ + if (!_contentView) { + _contentView = [[LYSDateContentView alloc] init]; + _contentView.backgroundColor = [UIColor whiteColor]; + _contentView.layer.shadowColor = [UIColor colorWithRed:238/255.0 green:238/255.0 blue:238/255.0 alpha:1].CGColor; + _contentView.layer.shadowOffset = CGSizeMake(0, -3); + _contentView.layer.shadowOpacity = 0.2; + } + return _contentView; +} + +// 设置内容视图 +- (void)initContentView +{ + [self.view addSubview:self.contentView]; +} + +// 动画显示contentView +- (void)showAnimationContentViewWithCompletion:(void(^)(BOOL finished))completion +{ + [[NSNotificationCenter defaultCenter] postNotificationName:LYSDatePickerWillAppearNotifition object:nil]; + if (self.delegate && [self.delegate respondsToSelector:@selector(pickerViewControllerWillAppear:)]) { + [self.delegate pickerViewControllerWillAppear:(LYSDatePickerController *)self]; + } + [self.contentView refreshContentHeight]; + CGFloat contentHeight = CGRectGetHeight(self.contentView.frame); + CGFloat tabHeight = [self superExistTab] ? 49 : 0; + [UIView animateWithDuration:0.2 delay:0 options:(UIViewAnimationOptionCurveEaseOut) animations:^{ +// self.view.alpha = 1; + self.contentView.frame = Rect(0, ScreenHeight - contentHeight - tabHeight, ScreenWidth, contentHeight); + } completion:^(BOOL finished) { + [[NSNotificationCenter defaultCenter] postNotificationName:LYSDatePickerDidAppearNotifition object:nil]; + if (self.delegate && [self.delegate respondsToSelector:@selector(pickerViewControllerDidAppear:)]) { + [self.delegate pickerViewControllerDidAppear:(LYSDatePickerController *)self]; + } + if (completion) { + completion(finished); + } + }]; +} + +// 动画隐藏contentView +- (void)hiddenAnimationContentViewWithCompletion:(void(^)(BOOL finished))completion +{ + [[NSNotificationCenter defaultCenter] postNotificationName:LYSDatePickerWillDisAppearNotifition object:nil]; + if (self.delegate && [self.delegate respondsToSelector:@selector(pickerViewControllerWillDisAppear:)]) { + [self.delegate pickerViewControllerWillDisAppear:(LYSDatePickerController *)self]; + } + [self.contentView refreshContentHeight]; + CGFloat contentHeight = CGRectGetHeight(self.contentView.frame); + [UIView animateWithDuration:0.2 delay:0 options:(UIViewAnimationOptionCurveEaseIn) animations:^{ + self.view.alpha = 0; + self.contentView.frame = Rect(0, ScreenHeight, ScreenWidth, contentHeight); + } completion:^(BOOL finished) { + [[NSNotificationCenter defaultCenter] postNotificationName:LYSDatePickerDidDisAppearNotifition object:nil]; + if (self.delegate && [self.delegate respondsToSelector:@selector(pickerViewControllerdidDisAppear:)]) { + [self.delegate pickerViewControllerdidDisAppear:(LYSDatePickerController *)self]; + } + if (completion) { + completion(finished); + } + }]; +} + +// 弹出 +- (void)showDatePickerWithController:(UIViewController *)controller { + [controller presentViewController:self animated:NO completion:^{ + [self showAnimationContentViewWithCompletion:nil]; + }]; +} + +// 弹出 ++ (void)showDatePickerWithController:(UIViewController *)controller { + [controller presentViewController:[[self class] shareInstance] animated:NO completion:^{ + [[[self class] shareInstance] showAnimationContentViewWithCompletion:nil]; + }]; +} + +// 在UIWindow的根视图上弹出 +- (void)showDatePickerInWindowRootVC { + [[[self class] windowRootViewController] presentViewController:self animated:NO completion:^{ + [self showAnimationContentViewWithCompletion:nil]; + }]; +} + +// 在UIWindow的根视图上弹出 ++ (void)showDatePickerInWindowRootVC { + [[[self class] windowRootViewController] presentViewController:[[self class] shareInstance] animated:NO completion:^{ + [[[self class] shareInstance] showAnimationContentViewWithCompletion:nil]; + }]; +} + +// 隐藏 +- (void)hiddenDatePicker { + [self hiddenAnimationContentViewWithCompletion:^(BOOL finished) { + [self dismissViewControllerAnimated:NO completion:^{ + [[self class] shareRelease]; + }]; + }]; +} + +// 隐藏 ++ (void)hiddenDatePicker { + [[[self class] shareInstance] hiddenAnimationContentViewWithCompletion:^(BOOL finished) { + [[[self class] shareInstance] dismissViewControllerAnimated:NO completion:^{ + [[self class] shareRelease]; + }]; + }]; +} + +- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event +{ + if (self.clickOuterHiddenEnable) { + [self hiddenDatePicker]; + } +} + +- (BOOL)superExistTab +{ + UIViewController *parentVC = self.presentingViewController; + while (parentVC != nil && ![parentVC isKindOfClass:[UITabBarController class]]) { + parentVC = parentVC.parentViewController; + } + return [parentVC isKindOfClass:[UITabBarController class]]; +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/GIGA/Config/ApiRequestConfig.h b/GIGA/Config/ApiRequestConfig.h new file mode 100644 index 0000000..2efe92f --- /dev/null +++ b/GIGA/Config/ApiRequestConfig.h @@ -0,0 +1,16 @@ +// +// ApiRequestConfig.h +// GIGA +// +// Created by lianxiang on 2018/9/16. +// Copyright © 2018年 com.giga.ios. All rights reserved. +// + +#ifndef ApiRequestConfig_h +#define ApiRequestConfig_h +//登录 +#define kApiUserLogin @"sys/v1/login" +//获取用户信息 +#define kApiUserInfo @"user/v1/info" + +#endif /* ApiRequestConfig_h */ diff --git a/GIGA/GIGA.pch b/GIGA/GIGA.pch index 2e2ab6b..97befa4 100644 --- a/GIGA/GIGA.pch +++ b/GIGA/GIGA.pch @@ -23,6 +23,9 @@ #import "MobClickList.h" #import "TTTAttributedLabel.h" #import "GiGaUserManager.h" +#import "GiGaUser.h" +#import "ApiRequestConfig.h" + #ifdef DEBUG #define GILog(fmt,...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__) diff --git a/GIGA/Modules/LogIn/Controller/GiGaUserLoginVC.m b/GIGA/Modules/LogIn/Controller/GiGaUserLoginVC.m index 69d632c..427bad3 100644 --- a/GIGA/Modules/LogIn/Controller/GiGaUserLoginVC.m +++ b/GIGA/Modules/LogIn/Controller/GiGaUserLoginVC.m @@ -201,8 +201,8 @@ //[GIGAMBHUDHelper messageAddto:self.view title:@"登录中..."]; [self.view makeToastActivity:CSToastPositionCenter]; - - NSString *url = [NSString stringWithFormat:@"%@sys/v1/login",[GiGaServerConfig getMainUrl]]; + NSString *baseapi = [GiGaServerConfig getMainUrl]; + NSString *url = [NSString stringWithFormat:@"%@%@",baseapi,kApiUserLogin]; [GiGaNetManager userbodyRequest:url params:params completionHandler:^(NSURLResponse *response, NSDictionary *resDic, NSError * _Nullable error) { GILog(@"%@",resDic); [self.view hideToastActivity]; @@ -320,10 +320,14 @@ [MobClick endEvent:MobClick_UserLogin]; GIGA_WIndowTost(@"登录成功!"); //请求用户数据 + [[GiGaUserManager shareUser] synsisUserInfo:^(GiGaUser *user) { - NSLog(@"%@",user.userId); + GILog(@"user.userId:%@",user.userId); + NC_POST_NAME_OBJECT(kUserLoginSuccessNoti, nil); + } userErrorMsgBlock:^(NSDictionary *errorCodemsg) { + }]; - NC_POST_NAME_OBJECT(kUserLoginSuccessNoti, nil); + [self dismissViewControllerAnimated:YES completion:nil]; } diff --git a/GIGA/Modules/Mask/Controller/GiGaMaskTaskViewController.m b/GIGA/Modules/Mask/Controller/GiGaMaskTaskViewController.m index b60cf12..ff82d43 100644 --- a/GIGA/Modules/Mask/Controller/GiGaMaskTaskViewController.m +++ b/GIGA/Modules/Mask/Controller/GiGaMaskTaskViewController.m @@ -597,7 +597,6 @@ NSURL *url = [NSURL URLWithString:imageUrl]; [self.rightNavUserBtn sd_setImageWithURL:url forState:UIControlStateNormal]; - //[self.rightNavUserBtn sd_setBackgroundImageWithURL:url forState:UIControlStateNormal]; } @@ -663,7 +662,6 @@ if (user.headImgUrl && ![user.headImgUrl isKindOfClass:[NSNull class]] ) { [self refreshUserIcon:user.headImgUrl]; } - } #pragma mark - 退出登录通知 diff --git a/GIGA/Modules/Me/Controller/GiGaMeViewController.m b/GIGA/Modules/Me/Controller/GiGaMeViewController.m index d125cca..318eae8 100644 --- a/GIGA/Modules/Me/Controller/GiGaMeViewController.m +++ b/GIGA/Modules/Me/Controller/GiGaMeViewController.m @@ -47,9 +47,13 @@ if (!currentuser) { [self.view makeToastActivity:CSToastPositionCenter]; + [[GiGaUserManager shareUser] synsisUserInfo:^(GiGaUser *user) { - [self.view hideToastActivity]; - self.user = user; + [self.view hideToastActivity]; + self.user = user; + } userErrorMsgBlock:^(NSDictionary *errorCodemsg) { + [self.view hideToastActivity]; + GIGA_ShowToast(errorCodemsg[@"msg"]); }]; }else{ self.user = currentuser; diff --git a/GIGA/Modules/Me/Controller/GiGaUserViewController.m b/GIGA/Modules/Me/Controller/GiGaUserViewController.m index 32a713f..30d1e4c 100644 --- a/GIGA/Modules/Me/Controller/GiGaUserViewController.m +++ b/GIGA/Modules/Me/Controller/GiGaUserViewController.m @@ -12,9 +12,13 @@ #import "GIGaUserWeChatViewCell.h" #import "GiGaUserSexViewCell.h" #import "GIGaUserCityViewCell.h" +#import "GiGaUser.h" +#import "GiGaUserManager.h" +#import "LYSDatePickerController.h" +#import "JYAddressPicker.h" -@interface GiGaUserViewController () - +@interface GiGaUserViewController () +@property (nonatomic,strong) GiGaUser *user; @end @implementation GiGaUserViewController @@ -24,6 +28,7 @@ [super viewDidLoad]; // Do any additional setup after loading the view. //self.title = @"个人中心"; + self.user = [[GiGaUserManager shareUser] getCurrentUser]; [self addNavTitile:@"个人信息"]; UIButton *saveBtn = [UIButton buttonWithType:UIButtonTypeCustom]; @@ -73,7 +78,7 @@ cell = [[[NSBundle mainBundle] loadNibNamed:@"GIGaUserInfoAvatorCell" owner:self options:nil] lastObject]; } - + [cell loadCellData:indexPath user:self.user]; return cell; }else if (indexPath.section == 1 && indexPath.row < 2){ GIGaUserIDViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GIGaUserIDViewCell"]; @@ -81,15 +86,18 @@ cell = [[[NSBundle mainBundle] loadNibNamed:@"GIGaUserIDViewCell" owner:self options:nil] lastObject]; } + + [cell loadCellData:indexPath user: self.user]; return cell; }else if (indexPath.section == 1 && indexPath.row == 2){ - GIGaUserWeChatViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GIGaUserWeChatViewCell"]; + GIGaUserWeChatViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GIGaUserWeChatViewCell"]; if(!cell){ cell = [[[NSBundle mainBundle] loadNibNamed:@"GIGaUserWeChatViewCell" owner:self options:nil] lastObject]; } + [cell loadCellData:indexPath user:self.user]; return cell; }else if (indexPath.section == 2 && indexPath.row == 0){ @@ -98,7 +106,13 @@ cell = [[[NSBundle mainBundle] loadNibNamed:@"GiGaUserSexViewCell" owner:self options:nil] lastObject]; } - + [cell loadCellData:indexPath user:self.user]; + //0 女 1 男 + weakify(self); + [cell userSelectSexAction:^(int sex) { + weakSelf.user.sexCode = sex; + }]; + GILog(@"sex:%d",self.user.sexCode); return cell; }else if (indexPath.section == 2 && indexPath.row >= 1){ @@ -106,16 +120,39 @@ if(!cell){ cell = [[[NSBundle mainBundle] loadNibNamed:@"GIGaUserCityViewCell" owner:self options:nil] lastObject]; } - + [cell loadCellData:indexPath user:self.user]; return cell; } - return nil; - } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ - + GILog(@"sex:%d",self.user.sexCode); + if (indexPath.section == 2 && indexPath.row == 1) { + [LYSDatePickerController alertDatePickerWithController:self type:(LYSDatePickerTypeDay)]; + [LYSDatePickerController customPickerDelegate:self]; + [LYSDatePickerController customdidSelectDatePicker:^(NSDate *date) { + NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; + [dateFormat setDateFormat:@"yyyy/MM/dd"]; + NSString *currentDate = [dateFormat stringFromDate:date]; + UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; + cell.detailTextLabel.text = currentDate; + }]; + + }else if (indexPath.section == 2 && indexPath.row == 2){ + JYAddressPicker *addressPicker = [JYAddressPicker jy_showAt:self]; + addressPicker.selectedItemBlock = ^(NSArray *addressArr) { + + NSString *province = [addressArr objectAtIndex:0][@"text"]; + NSString *city = [addressArr objectAtIndex:1][@"text"]; + NSString *county = [addressArr objectAtIndex:2][@"text"]; + + NSString *addres = [NSString stringWithFormat:@"%@%@%@",province,city,county]; + GILog(@"%@",addres); + + }; + } + } - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ diff --git a/GIGA/Modules/Me/Model/GiGaUser.h b/GIGA/Modules/Me/Model/GiGaUser.h index 0de8d66..dc5862f 100644 --- a/GIGA/Modules/Me/Model/GiGaUser.h +++ b/GIGA/Modules/Me/Model/GiGaUser.h @@ -26,7 +26,7 @@ @property(nonatomic,copy) NSString *occupationCode; @property(nonatomic,copy) NSString *provinceId; @property(nonatomic,copy) NSString *provinceName; -@property(nonatomic,copy) NSString *sexCode; +@property(nonatomic,assign) int sexCode; @property(nonatomic,copy) NSString *sexName; @property(nonatomic,copy) NSString *weixin; diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.h b/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.h index 9e1cede..6cacf86 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.h +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.h @@ -9,5 +9,8 @@ #import @interface GIGaUserCityViewCell : UITableViewCell +-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user; +@property (weak, nonatomic) IBOutlet UILabel *cityLabel; +@property (weak, nonatomic) IBOutlet UILabel *detalTitle; @end diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.m b/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.m index ec7326c..df71219 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.m +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.m @@ -15,6 +15,33 @@ // Initialization code } +-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user{ + if (indexPath.section == 2 && indexPath.row == 1) { + self.cityLabel.text = @"生日"; + if (user.birthday && ![user.birthday isKindOfClass:[NSNull class]]) { + self.detalTitle.text = user.birthday; + }else{ + self.detalTitle.text = @"选择生日"; + } + + }else if (indexPath.section == 2 && indexPath.row == 2){ + self.cityLabel.text = @"城市"; + if (user.cityName && ![user.cityName isKindOfClass:[NSNull class]]) { + self.detalTitle.text = user.cityName; + }else{ + self.detalTitle.text = @"选择城市"; + } + }else if (indexPath.section == 2 && indexPath.row == 3){ + self.cityLabel.text = @"职业"; + if (user.occupationCode && ![user.occupationCode isKindOfClass:[NSNull class]]) { + self.detalTitle.text = user.occupationCode; + }else{ + self.detalTitle.text = @"选择职业"; + } + } + +} + - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.xib b/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.xib index 2e9abea..9b3cb18 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.xib +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserCityViewCell.xib @@ -59,7 +59,11 @@ - + + + + + diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.h b/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.h index 99fcdb6..87c1c0f 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.h +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.h @@ -9,5 +9,8 @@ #import @interface GIGaUserIDViewCell : UITableViewCell +-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user; +@property (weak, nonatomic) IBOutlet UILabel *IdLabel; +@property (weak, nonatomic) IBOutlet UILabel *userTitle; @end diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.m b/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.m index 1aa569e..e664b60 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.m +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.m @@ -14,7 +14,22 @@ [super awakeFromNib]; // Initialization code } - +- (void)loadCellData:(NSIndexPath *)indexPath user:(GiGaUser*)user{ + + if (indexPath.section == 1 && indexPath.row == 0 ) { + + self.IdLabel.text = user.userId; + self.userTitle.text = @"用户ID"; + + }else if (indexPath.section == 1 && indexPath.row == 1){ + self.userTitle.text = @"昵称"; + if (user.nickName && ![user.nickName isKindOfClass:[NSNull class]]) { + self.IdLabel.text = user.nickName; + }else{ + self.IdLabel.text = @"昵称"; + } + } +} - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.xib b/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.xib index 5f4af15..04b6744 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.xib +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserIDViewCell.xib @@ -50,6 +50,10 @@ + + + + diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.h b/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.h index 2f6518f..d775022 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.h +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.h @@ -9,5 +9,6 @@ #import @interface GIGaUserInfoAvatorCell : UITableViewCell - +@property (weak, nonatomic) IBOutlet UIImageView *userAvator; +-(void)loadCellData:(NSIndexPath*)indexPath user:(GiGaUser*)user; @end diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.m b/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.m index a35adae..b206ef6 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.m +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.m @@ -7,12 +7,22 @@ // #import "GIGaUserInfoAvatorCell.h" +#import "UIImageView+WebCache.h" @implementation GIGaUserInfoAvatorCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code + self.userAvator.layer.masksToBounds = YES; + self.userAvator.layer.cornerRadius = self.userAvator.frame.size.height /2 ; + +} +- (void)loadCellData:(NSIndexPath *)indexPath user:(GiGaUser *)user{ + if (user.headImgUrl && ![user.headImgUrl isKindOfClass:[NSNull class]]) { + [self.userAvator sd_setImageWithURL:[NSURL URLWithString:user.headImgUrl]]; + } + } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { diff --git a/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.xib b/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.xib index d7dec09..f09fdda 100644 --- a/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.xib +++ b/GIGA/Modules/Me/View/userInfoView/GIGaUserInfoAvatorCell.xib @@ -26,7 +26,7 @@ -