Commit 50bf41b0013082a9cb6cbd9d5e14a6bf82b1bf08
Merge branch 'master' of http://bj.gitlab.cnlive.com/ios-team/CNLiveMateCode
# Conflicts: # metaCode.xcodeproj/project.pbxproj # metaCode/Classes/Other/AppDelegate.swift
Showing
8 changed files
with
192 additions
and
74 deletions
metaCode.xcodeproj/project.pbxproj
| @@ -49,6 +49,7 @@ | @@ -49,6 +49,7 @@ | ||
| 49 | 79F4B11C2A33036E00993C03 /* CNLiveMineInfoAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79F4B11B2A33036E00993C03 /* CNLiveMineInfoAlertView.swift */; }; | 49 | 79F4B11C2A33036E00993C03 /* CNLiveMineInfoAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79F4B11B2A33036E00993C03 /* CNLiveMineInfoAlertView.swift */; }; |
| 50 | 7C2703302A36CBE30061EC50 /* CNCertificationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C27032F2A36CBE30061EC50 /* CNCertificationView.swift */; }; | 50 | 7C2703302A36CBE30061EC50 /* CNCertificationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C27032F2A36CBE30061EC50 /* CNCertificationView.swift */; }; |
| 51 | 7C2703332A36CC660061EC50 /* CNLiveGlobalBlock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C2703322A36CC660061EC50 /* CNLiveGlobalBlock.swift */; }; | 51 | 7C2703332A36CC660061EC50 /* CNLiveGlobalBlock.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C2703322A36CC660061EC50 /* CNLiveGlobalBlock.swift */; }; |
| 52 | + 7C2703362A3AFD3A0061EC50 /* CNLiveEnvironment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C2703352A3AFD3A0061EC50 /* CNLiveEnvironment.swift */; }; | ||
| 52 | 7C4931292A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C4931282A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift */; }; | 53 | 7C4931292A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C4931282A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift */; }; |
| 53 | 7C49312D2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C49312C2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift */; }; | 54 | 7C49312D2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C49312C2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift */; }; |
| 54 | 7C4931312A2F142F000E44B4 /* CNHomePageBackgroupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C4931302A2F142F000E44B4 /* CNHomePageBackgroupView.swift */; }; | 55 | 7C4931312A2F142F000E44B4 /* CNHomePageBackgroupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C4931302A2F142F000E44B4 /* CNHomePageBackgroupView.swift */; }; |
| @@ -56,11 +57,11 @@ | @@ -56,11 +57,11 @@ | ||
| 56 | 7C4931362A307B60000E44B4 /* slide_up.gif in Resources */ = {isa = PBXBuildFile; fileRef = 7C4931352A307B60000E44B4 /* slide_up.gif */; }; | 57 | 7C4931362A307B60000E44B4 /* slide_up.gif in Resources */ = {isa = PBXBuildFile; fileRef = 7C4931352A307B60000E44B4 /* slide_up.gif */; }; |
| 57 | 7C4931382A307BDB000E44B4 /* CNHomePageGuideView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C4931372A307BDB000E44B4 /* CNHomePageGuideView.swift */; }; | 58 | 7C4931382A307BDB000E44B4 /* CNHomePageGuideView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C4931372A307BDB000E44B4 /* CNHomePageGuideView.swift */; }; |
| 58 | 7CD675292A270F6A008354C1 /* WJColorChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675282A270F6A008354C1 /* WJColorChange.m */; }; | 59 | 7CD675292A270F6A008354C1 /* WJColorChange.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675282A270F6A008354C1 /* WJColorChange.m */; }; |
| 59 | - 7CD6753C2A2740B0008354C1 /* CNBottomPayMoneyRemindView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675372A2740B0008354C1 /* CNBottomPayMoneyRemindView.swift */; }; | 60 | + 7CD6753C2A2740B0008354C1 /* CNUpSlideViewRemindView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675372A2740B0008354C1 /* CNUpSlideViewRemindView.swift */; }; |
| 60 | 7CD6753D2A2740B0008354C1 /* CNMainView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675382A2740B0008354C1 /* CNMainView.swift */; }; | 61 | 7CD6753D2A2740B0008354C1 /* CNMainView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675382A2740B0008354C1 /* CNMainView.swift */; }; |
| 61 | - 7CD6753E2A2740B0008354C1 /* CNPayMoneyCodeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675392A2740B0008354C1 /* CNPayMoneyCodeView.swift */; }; | ||
| 62 | - 7CD6753F2A2740B0008354C1 /* CNTopCollectMoneyRemindView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD6753A2A2740B0008354C1 /* CNTopCollectMoneyRemindView.swift */; }; | ||
| 63 | - 7CD675402A2740B0008354C1 /* CNCollectMoneyCodeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD6753B2A2740B0008354C1 /* CNCollectMoneyCodeView.swift */; }; | 62 | + 7CD6753E2A2740B0008354C1 /* CNUpSlideView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675392A2740B0008354C1 /* CNUpSlideView.swift */; }; |
| 63 | + 7CD6753F2A2740B0008354C1 /* CNDownSlideViewRemindView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD6753A2A2740B0008354C1 /* CNDownSlideViewRemindView.swift */; }; | ||
| 64 | + 7CD675402A2740B0008354C1 /* CNDownSlideView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD6753B2A2740B0008354C1 /* CNDownSlideView.swift */; }; | ||
| 64 | 7CD675422A2740F8008354C1 /* CNCustomIndexView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675412A2740F8008354C1 /* CNCustomIndexView.swift */; }; | 65 | 7CD675422A2740F8008354C1 /* CNCustomIndexView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675412A2740F8008354C1 /* CNCustomIndexView.swift */; }; |
| 65 | 7CD675472A274167008354C1 /* NewPagedFlowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675442A274167008354C1 /* NewPagedFlowView.m */; }; | 66 | 7CD675472A274167008354C1 /* NewPagedFlowView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675442A274167008354C1 /* NewPagedFlowView.m */; }; |
| 66 | 7CD675482A274167008354C1 /* PGIndexBannerSubiew.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675462A274167008354C1 /* PGIndexBannerSubiew.m */; }; | 67 | 7CD675482A274167008354C1 /* PGIndexBannerSubiew.m in Sources */ = {isa = PBXBuildFile; fileRef = 7CD675462A274167008354C1 /* PGIndexBannerSubiew.m */; }; |
| @@ -138,6 +139,7 @@ | @@ -138,6 +139,7 @@ | ||
| 138 | 79F4B11B2A33036E00993C03 /* CNLiveMineInfoAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveMineInfoAlertView.swift; sourceTree = "<group>"; }; | 139 | 79F4B11B2A33036E00993C03 /* CNLiveMineInfoAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveMineInfoAlertView.swift; sourceTree = "<group>"; }; |
| 139 | 7C27032F2A36CBE30061EC50 /* CNCertificationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNCertificationView.swift; sourceTree = "<group>"; }; | 140 | 7C27032F2A36CBE30061EC50 /* CNCertificationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNCertificationView.swift; sourceTree = "<group>"; }; |
| 140 | 7C2703322A36CC660061EC50 /* CNLiveGlobalBlock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveGlobalBlock.swift; sourceTree = "<group>"; }; | 141 | 7C2703322A36CC660061EC50 /* CNLiveGlobalBlock.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveGlobalBlock.swift; sourceTree = "<group>"; }; |
| 142 | + 7C2703352A3AFD3A0061EC50 /* CNLiveEnvironment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveEnvironment.swift; sourceTree = "<group>"; }; | ||
| 141 | 7C4931282A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveBaseTabBarViewController.swift; sourceTree = "<group>"; }; | 143 | 7C4931282A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNLiveBaseTabBarViewController.swift; sourceTree = "<group>"; }; |
| 142 | 7C49312C2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITabBar+CNBadge.swift"; sourceTree = "<group>"; }; | 144 | 7C49312C2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITabBar+CNBadge.swift"; sourceTree = "<group>"; }; |
| 143 | 7C4931302A2F142F000E44B4 /* CNHomePageBackgroupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNHomePageBackgroupView.swift; sourceTree = "<group>"; }; | 145 | 7C4931302A2F142F000E44B4 /* CNHomePageBackgroupView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNHomePageBackgroupView.swift; sourceTree = "<group>"; }; |
| @@ -147,11 +149,11 @@ | @@ -147,11 +149,11 @@ | ||
| 147 | 7CD675262A270F69008354C1 /* metaCode-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "metaCode-Bridging-Header.h"; sourceTree = "<group>"; }; | 149 | 7CD675262A270F69008354C1 /* metaCode-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "metaCode-Bridging-Header.h"; sourceTree = "<group>"; }; |
| 148 | 7CD675272A270F6A008354C1 /* WJColorChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WJColorChange.h; sourceTree = "<group>"; }; | 150 | 7CD675272A270F6A008354C1 /* WJColorChange.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WJColorChange.h; sourceTree = "<group>"; }; |
| 149 | 7CD675282A270F6A008354C1 /* WJColorChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WJColorChange.m; sourceTree = "<group>"; }; | 151 | 7CD675282A270F6A008354C1 /* WJColorChange.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WJColorChange.m; sourceTree = "<group>"; }; |
| 150 | - 7CD675372A2740B0008354C1 /* CNBottomPayMoneyRemindView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNBottomPayMoneyRemindView.swift; sourceTree = "<group>"; }; | 152 | + 7CD675372A2740B0008354C1 /* CNUpSlideViewRemindView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNUpSlideViewRemindView.swift; sourceTree = "<group>"; }; |
| 151 | 7CD675382A2740B0008354C1 /* CNMainView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNMainView.swift; sourceTree = "<group>"; }; | 153 | 7CD675382A2740B0008354C1 /* CNMainView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNMainView.swift; sourceTree = "<group>"; }; |
| 152 | - 7CD675392A2740B0008354C1 /* CNPayMoneyCodeView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNPayMoneyCodeView.swift; sourceTree = "<group>"; }; | ||
| 153 | - 7CD6753A2A2740B0008354C1 /* CNTopCollectMoneyRemindView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNTopCollectMoneyRemindView.swift; sourceTree = "<group>"; }; | ||
| 154 | - 7CD6753B2A2740B0008354C1 /* CNCollectMoneyCodeView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNCollectMoneyCodeView.swift; sourceTree = "<group>"; }; | 154 | + 7CD675392A2740B0008354C1 /* CNUpSlideView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNUpSlideView.swift; sourceTree = "<group>"; }; |
| 155 | + 7CD6753A2A2740B0008354C1 /* CNDownSlideViewRemindView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNDownSlideViewRemindView.swift; sourceTree = "<group>"; }; | ||
| 156 | + 7CD6753B2A2740B0008354C1 /* CNDownSlideView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CNDownSlideView.swift; sourceTree = "<group>"; }; | ||
| 155 | 7CD675412A2740F8008354C1 /* CNCustomIndexView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNCustomIndexView.swift; sourceTree = "<group>"; }; | 157 | 7CD675412A2740F8008354C1 /* CNCustomIndexView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CNCustomIndexView.swift; sourceTree = "<group>"; }; |
| 156 | 7CD675432A274167008354C1 /* PGIndexBannerSubiew.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGIndexBannerSubiew.h; sourceTree = "<group>"; }; | 158 | 7CD675432A274167008354C1 /* PGIndexBannerSubiew.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PGIndexBannerSubiew.h; sourceTree = "<group>"; }; |
| 157 | 7CD675442A274167008354C1 /* NewPagedFlowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NewPagedFlowView.m; sourceTree = "<group>"; }; | 159 | 7CD675442A274167008354C1 /* NewPagedFlowView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NewPagedFlowView.m; sourceTree = "<group>"; }; |
| @@ -308,6 +310,7 @@ | @@ -308,6 +310,7 @@ | ||
| 308 | 7963988A2A260B3300D045EB /* Classes */ = { | 310 | 7963988A2A260B3300D045EB /* Classes */ = { |
| 309 | isa = PBXGroup; | 311 | isa = PBXGroup; |
| 310 | children = ( | 312 | children = ( |
| 313 | + 7C2703342A3AFD130061EC50 /* Environment */, | ||
| 311 | 7C2703312A36CC430061EC50 /* GlobalBlock */, | 314 | 7C2703312A36CC430061EC50 /* GlobalBlock */, |
| 312 | 798A44F32A3077ED00815935 /* CustomView */, | 315 | 798A44F32A3077ED00815935 /* CustomView */, |
| 313 | 790D01832A2D89E100C5978D /* Extensions */, | 316 | 790D01832A2D89E100C5978D /* Extensions */, |
| @@ -441,6 +444,14 @@ | @@ -441,6 +444,14 @@ | ||
| 441 | path = GlobalBlock; | 444 | path = GlobalBlock; |
| 442 | sourceTree = "<group>"; | 445 | sourceTree = "<group>"; |
| 443 | }; | 446 | }; |
| 447 | + 7C2703342A3AFD130061EC50 /* Environment */ = { | ||
| 448 | + isa = PBXGroup; | ||
| 449 | + children = ( | ||
| 450 | + 7C2703352A3AFD3A0061EC50 /* CNLiveEnvironment.swift */, | ||
| 451 | + ); | ||
| 452 | + path = Environment; | ||
| 453 | + sourceTree = "<group>"; | ||
| 454 | + }; | ||
| 444 | 7CD675212A26F844008354C1 /* HomePage */ = { | 455 | 7CD675212A26F844008354C1 /* HomePage */ = { |
| 445 | isa = PBXGroup; | 456 | isa = PBXGroup; |
| 446 | children = ( | 457 | children = ( |
| @@ -453,11 +464,11 @@ | @@ -453,11 +464,11 @@ | ||
| 453 | 7CD675232A26F8F8008354C1 /* View */ = { | 464 | 7CD675232A26F8F8008354C1 /* View */ = { |
| 454 | isa = PBXGroup; | 465 | isa = PBXGroup; |
| 455 | children = ( | 466 | children = ( |
| 456 | - 7CD675372A2740B0008354C1 /* CNBottomPayMoneyRemindView.swift */, | ||
| 457 | - 7CD6753B2A2740B0008354C1 /* CNCollectMoneyCodeView.swift */, | 467 | + 7CD675372A2740B0008354C1 /* CNUpSlideViewRemindView.swift */, |
| 468 | + 7CD6753B2A2740B0008354C1 /* CNDownSlideView.swift */, | ||
| 458 | 7CD675382A2740B0008354C1 /* CNMainView.swift */, | 469 | 7CD675382A2740B0008354C1 /* CNMainView.swift */, |
| 459 | - 7CD675392A2740B0008354C1 /* CNPayMoneyCodeView.swift */, | ||
| 460 | - 7CD6753A2A2740B0008354C1 /* CNTopCollectMoneyRemindView.swift */, | 470 | + 7CD675392A2740B0008354C1 /* CNUpSlideView.swift */, |
| 471 | + 7CD6753A2A2740B0008354C1 /* CNDownSlideViewRemindView.swift */, | ||
| 461 | 7CD675412A2740F8008354C1 /* CNCustomIndexView.swift */, | 472 | 7CD675412A2740F8008354C1 /* CNCustomIndexView.swift */, |
| 462 | 7C4931302A2F142F000E44B4 /* CNHomePageBackgroupView.swift */, | 473 | 7C4931302A2F142F000E44B4 /* CNHomePageBackgroupView.swift */, |
| 463 | 7C4931372A307BDB000E44B4 /* CNHomePageGuideView.swift */, | 474 | 7C4931372A307BDB000E44B4 /* CNHomePageGuideView.swift */, |
| @@ -807,6 +818,9 @@ | @@ -807,6 +818,9 @@ | ||
| 807 | 7CD6753E2A2740B0008354C1 /* CNPayMoneyCodeView.swift in Sources */, | 818 | 7CD6753E2A2740B0008354C1 /* CNPayMoneyCodeView.swift in Sources */, |
| 808 | 7CD675402A2740B0008354C1 /* CNCollectMoneyCodeView.swift in Sources */, | 819 | 7CD675402A2740B0008354C1 /* CNCollectMoneyCodeView.swift in Sources */, |
| 809 | 792E57D92A3AA2F2005834DB /* CNLiveCommonBaseModel.swift in Sources */, | 820 | 792E57D92A3AA2F2005834DB /* CNLiveCommonBaseModel.swift in Sources */, |
| 821 | + 7CD6753E2A2740B0008354C1 /* CNUpSlideView.swift in Sources */, | ||
| 822 | + 7CD675402A2740B0008354C1 /* CNDownSlideView.swift in Sources */, | ||
| 823 | + 7C2703362A3AFD3A0061EC50 /* CNLiveEnvironment.swift in Sources */, | ||
| 810 | 798A44FD2A309EBA00815935 /* CNLiveTypeFeedBackViewController.swift in Sources */, | 824 | 798A44FD2A309EBA00815935 /* CNLiveTypeFeedBackViewController.swift in Sources */, |
| 811 | 7CD6754F2A2840B9008354C1 /* CNMetaCodeHomePageController.swift in Sources */, | 825 | 7CD6754F2A2840B9008354C1 /* CNMetaCodeHomePageController.swift in Sources */, |
| 812 | 792E57DB2A3AE9F4005834DB /* CNLiveCommonQiniuTool.swift in Sources */, | 826 | 792E57DB2A3AE9F4005834DB /* CNLiveCommonQiniuTool.swift in Sources */, |
| @@ -834,8 +848,8 @@ | @@ -834,8 +848,8 @@ | ||
| 834 | 7CD675422A2740F8008354C1 /* CNCustomIndexView.swift in Sources */, | 848 | 7CD675422A2740F8008354C1 /* CNCustomIndexView.swift in Sources */, |
| 835 | 7C4931292A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift in Sources */, | 849 | 7C4931292A2D8BA8000E44B4 /* CNLiveBaseTabBarViewController.swift in Sources */, |
| 836 | 79F4B1162A32B96B00993C03 /* CNLiveMineInfoViewController.swift in Sources */, | 850 | 79F4B1162A32B96B00993C03 /* CNLiveMineInfoViewController.swift in Sources */, |
| 837 | - 7CD6753F2A2740B0008354C1 /* CNTopCollectMoneyRemindView.swift in Sources */, | ||
| 838 | - 7CD6753C2A2740B0008354C1 /* CNBottomPayMoneyRemindView.swift in Sources */, | 851 | + 7CD6753F2A2740B0008354C1 /* CNDownSlideViewRemindView.swift in Sources */, |
| 852 | + 7CD6753C2A2740B0008354C1 /* CNUpSlideViewRemindView.swift in Sources */, | ||
| 839 | 798A44E82A30134400815935 /* CNLiveMineHeaderView.swift in Sources */, | 853 | 798A44E82A30134400815935 /* CNLiveMineHeaderView.swift in Sources */, |
| 840 | 7C49312D2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift in Sources */, | 854 | 7C49312D2A2DB9FA000E44B4 /* UITabBar+CNBadge.swift in Sources */, |
| 841 | 790D019A2A2DCAE400C5978D /* CNLiveViewController.swift in Sources */, | 855 | 790D019A2A2DCAE400C5978D /* CNLiveViewController.swift in Sources */, |
metaCode/Classes/Environment/CNLiveEnvironment.swift
0 → 100644
| 1 | +// | ||
| 2 | +// CNLiveEnvironment.swift | ||
| 3 | +// metaCode | ||
| 4 | +// | ||
| 5 | +// Created by daojian on 2023/6/15. | ||
| 6 | +// | ||
| 7 | + | ||
| 8 | +import Foundation | ||
| 9 | + | ||
| 10 | +///当前应用的APPID | ||
| 11 | +let APPId: String = CNLiveEnvironmentManager.shared.appId | ||
| 12 | +///当前应用的APPKey | ||
| 13 | +let APPKey: String = CNLiveEnvironmentManager.shared.appKey | ||
| 14 | +///当前应用的网络请求域名 | ||
| 15 | +let APPBaseUrl: String! = CNLiveEnvironmentManager.shared.baseUrl | ||
| 16 | + | ||
| 17 | + | ||
| 18 | +///当前APP的环境 | ||
| 19 | +let APPCurrentEnvironment: CNLiveEnvironment = CNLiveEnvironmentManager.shared.currentEnvironment | ||
| 20 | + | ||
| 21 | +///是否是开发环境 | ||
| 22 | +let IsDevEnvironment: Bool = (CNLiveEnvironmentManager.shared.currentEnvironment == .development) | ||
| 23 | +///是否是testFlight 环境 | ||
| 24 | +let IsTestFlightEnvironment: Bool = (CNLiveEnvironmentManager.shared.currentEnvironment == .testFlight) | ||
| 25 | +///是否是线上环境 | ||
| 26 | +let IsProductionEnvironment: Bool = (CNLiveEnvironmentManager.shared.currentEnvironment == .production) | ||
| 27 | + | ||
| 28 | +///APP 环境类型 | ||
| 29 | +enum CNLiveEnvironment { | ||
| 30 | + ///开发环境 | ||
| 31 | + case development | ||
| 32 | + ///testFlight 环境 | ||
| 33 | + case testFlight | ||
| 34 | + ///线上环境 | ||
| 35 | + case production | ||
| 36 | + | ||
| 37 | +} | ||
| 38 | + | ||
| 39 | +class CNLiveEnvironmentManager: NSObject{ | ||
| 40 | + | ||
| 41 | + //单例类 | ||
| 42 | + static let shared = CNLiveEnvironmentManager() | ||
| 43 | + | ||
| 44 | + var appId: String | ||
| 45 | + var appKey: String | ||
| 46 | + var baseUrl: String | ||
| 47 | + | ||
| 48 | + ///当前环境 | ||
| 49 | + var currentEnvironment: CNLiveEnvironment | ||
| 50 | + | ||
| 51 | + //重新init方法为私有,不让外部调用 | ||
| 52 | + private override init() { | ||
| 53 | + self.appId = "" | ||
| 54 | + self.appKey = "" | ||
| 55 | + self.baseUrl = "" | ||
| 56 | + self.currentEnvironment = .development | ||
| 57 | + } | ||
| 58 | + //重新copy 和 mutableCopy 方法 | ||
| 59 | + override func copy() -> Any { | ||
| 60 | + return self | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + override func mutableCopy() -> Any { | ||
| 64 | + return self | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + //配置环境 | ||
| 68 | + func setupEnvironment(environment: CNLiveEnvironment){ | ||
| 69 | + | ||
| 70 | + self.currentEnvironment = environment | ||
| 71 | + | ||
| 72 | + switch environment { | ||
| 73 | + case .development: | ||
| 74 | + self.developmentEnvironment() | ||
| 75 | + case .testFlight: | ||
| 76 | + self.testFlightEnvironment() | ||
| 77 | + case .production: | ||
| 78 | + self.productionEnvironment() | ||
| 79 | + } | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + //开发环境配置 | ||
| 83 | + func developmentEnvironment(){ | ||
| 84 | + self.appId = "802_li40qhp922" | ||
| 85 | + self.appKey = "ae3a7ad3e4b9beb7cfe2078db648ebb89aa249ca2e82ac" | ||
| 86 | + self.baseUrl = "https://api.cnlive.com" | ||
| 87 | + } | ||
| 88 | + //testFlight 环境配置 | ||
| 89 | + func testFlightEnvironment(){ | ||
| 90 | + self.appId = "802_li40qhp922" | ||
| 91 | + self.appKey = "ae3a7ad3e4b9beb7cfe2078db648ebb89aa249ca2e82ac" | ||
| 92 | + self.baseUrl = "https://api.cnlive.com" | ||
| 93 | + } | ||
| 94 | + //production 生产环境配置 | ||
| 95 | + func productionEnvironment(){ | ||
| 96 | + self.appId = "802_li40qhp922" | ||
| 97 | + self.appKey = "ae3a7ad3e4b9beb7cfe2078db648ebb89aa249ca2e82ac" | ||
| 98 | + self.baseUrl = "https://api.cnlive.com" | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | +} |
metaCode/Classes/Main/HomePage/View/CNCustomIndexView.swift
| @@ -136,9 +136,9 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -136,9 +136,9 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 136 | return mainView | 136 | return mainView |
| 137 | }() | 137 | }() |
| 138 | 138 | ||
| 139 | - ///收钱view | ||
| 140 | - lazy var collectMoneyCodeView: CNCollectMoneyCodeView = { | ||
| 141 | - let collectionView = CNCollectMoneyCodeView.init(frame: CGRectMake(-25, 0, self.frame.size.width + 50, self.frame.size.height)) | 139 | + ///下滑显示的VIew |
| 140 | + lazy var downSlideView: CNDownSlideView = { | ||
| 141 | + let collectionView = CNDownSlideView.init(frame: CGRectMake(-25, 0, self.frame.size.width + 50, self.frame.size.height)) | ||
| 142 | collectionView.backAction = {[weak self] in | 142 | collectionView.backAction = {[weak self] in |
| 143 | self?.baseScrollView.setContentOffset(CGPoint(x: 0, y: (self!.baseScrollView.height)), animated: true) | 143 | self?.baseScrollView.setContentOffset(CGPoint(x: 0, y: (self!.baseScrollView.height)), animated: true) |
| 144 | self?.superScrollView?.isScrollEnabled = true | 144 | self?.superScrollView?.isScrollEnabled = true |
| @@ -146,33 +146,33 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -146,33 +146,33 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 146 | let time = DispatchTime.now() + 0.5 | 146 | let time = DispatchTime.now() + 0.5 |
| 147 | DispatchQueue.main.asyncAfter(deadline:time, execute: DispatchWorkItem(block: { | 147 | DispatchQueue.main.asyncAfter(deadline:time, execute: DispatchWorkItem(block: { |
| 148 | //下滑提醒View回到初始位置 | 148 | //下滑提醒View回到初始位置 |
| 149 | - self?.topCollectMoneyRemindView.top = -((self?.topCollectMoneyRemindView.height)! + 50) | 149 | + self?.downSlideViewRemindView.top = -((self?.downSlideViewRemindView.height)! + 50) |
| 150 | })) | 150 | })) |
| 151 | 151 | ||
| 152 | } | 152 | } |
| 153 | return collectionView | 153 | return collectionView |
| 154 | }() | 154 | }() |
| 155 | 155 | ||
| 156 | - ///付钱view | ||
| 157 | - lazy var payMoneyCodeView : CNPayMoneyCodeView = { | ||
| 158 | - let payMoneyCodeView = CNPayMoneyCodeView(frame: CGRectMake(-25, self.frame.size.height*2 + 120,self.frame.size.width+50, self.frame.size.height - 120)) | 156 | + ///上滑显示的View |
| 157 | + lazy var upSlideView : CNUpSlideView = { | ||
| 158 | + let upSlideView = CNUpSlideView(frame: CGRectMake(-25, self.frame.size.height*2 + 120,self.frame.size.width+50, self.frame.size.height - 120)) | ||
| 159 | 159 | ||
| 160 | - return payMoneyCodeView | 160 | + return upSlideView |
| 161 | }() | 161 | }() |
| 162 | 162 | ||
| 163 | - ///上滑付钱提醒view | ||
| 164 | - lazy var bottomPayMoneyRemindView: CNBottomPayMoneyRemindView = { | 163 | + ///上滑提醒view |
| 164 | + lazy var upSlideViewRemindView: CNUpSlideViewRemindView = { | ||
| 165 | let W: CGFloat = UIScreen.main.bounds.width-100 | 165 | let W: CGFloat = UIScreen.main.bounds.width-100 |
| 166 | let H: CGFloat = W/2 | 166 | let H: CGFloat = W/2 |
| 167 | - let bottomView = CNBottomPayMoneyRemindView.init(frame: CGRectMake(25, self.height, W,H)) | 167 | + let bottomView = CNUpSlideViewRemindView.init(frame: CGRectMake(25, self.height, W,H)) |
| 168 | bottomView.backgroundColor = UIColor.clear | 168 | bottomView.backgroundColor = UIColor.clear |
| 169 | return bottomView | 169 | return bottomView |
| 170 | }() | 170 | }() |
| 171 | - /// 下滑收钱提醒view | ||
| 172 | - lazy var topCollectMoneyRemindView:CNTopCollectMoneyRemindView = { | 171 | + /// 下滑提醒view |
| 172 | + lazy var downSlideViewRemindView:CNDownSlideViewRemindView = { | ||
| 173 | let W: CGFloat = UIScreen.main.bounds.width-100 | 173 | let W: CGFloat = UIScreen.main.bounds.width-100 |
| 174 | let H: CGFloat = W/2 | 174 | let H: CGFloat = W/2 |
| 175 | - let topView = CNTopCollectMoneyRemindView.init(frame: CGRectMake(25, -H - 50, W,H)) | 175 | + let topView = CNDownSlideViewRemindView.init(frame: CGRectMake(25, -H - 50, W,H)) |
| 176 | topView.backgroundColor = .clear | 176 | topView.backgroundColor = .clear |
| 177 | 177 | ||
| 178 | return topView | 178 | return topView |
| @@ -184,6 +184,7 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -184,6 +184,7 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 184 | topNavView.alpha = 0 | 184 | topNavView.alpha = 0 |
| 185 | topNavView.closeAction = { [weak self ] in | 185 | topNavView.closeAction = { [weak self ] in |
| 186 | self!.baseScrollView.setContentOffset(CGPoint(x: 0, y: self!.baseScrollView.height), animated: true) | 186 | self!.baseScrollView.setContentOffset(CGPoint(x: 0, y: self!.baseScrollView.height), animated: true) |
| 187 | + self?.superScrollView?.isScrollEnabled = true | ||
| 187 | } | 188 | } |
| 188 | return topNavView | 189 | return topNavView |
| 189 | }() | 190 | }() |
| @@ -200,22 +201,21 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -200,22 +201,21 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 200 | 201 | ||
| 201 | // MARK: - 添加UI | 202 | // MARK: - 添加UI |
| 202 | func initUI(){ | 203 | func initUI(){ |
| 203 | - self.addSubview(self.bottomPayMoneyRemindView) | ||
| 204 | - self.addSubview(self.topCollectMoneyRemindView) | 204 | + self.addSubview(self.upSlideViewRemindView) |
| 205 | + self.addSubview(self.downSlideViewRemindView) | ||
| 205 | 206 | ||
| 206 | self.addSubview(self.baseScrollView) | 207 | self.addSubview(self.baseScrollView) |
| 207 | self.addSubview(self.topNavView) | 208 | self.addSubview(self.topNavView) |
| 208 | self.topNavView.setTitleString(title: "志愿者") | 209 | self.topNavView.setTitleString(title: "志愿者") |
| 209 | 210 | ||
| 210 | - self.baseScrollView.addSubview(self.collectMoneyCodeView) | 211 | + self.baseScrollView.addSubview(self.downSlideView) |
| 211 | self.baseScrollView.addSubview(self.mainView) | 212 | self.baseScrollView.addSubview(self.mainView) |
| 212 | - self.baseScrollView.addSubview(self.payMoneyCodeView) | 213 | + self.baseScrollView.addSubview(self.upSlideView) |
| 213 | 214 | ||
| 214 | //默认偏移到中间 | 215 | //默认偏移到中间 |
| 215 | self.baseScrollView.setContentOffset(CGPointMake(0, self.frame.size.height), animated: false) | 216 | self.baseScrollView.setContentOffset(CGPointMake(0, self.frame.size.height), animated: false) |
| 216 | } | 217 | } |
| 217 | 218 | ||
| 218 | -// // MARK: - 手势 | ||
| 219 | // func addCustomGestureRecognizer(){ | 219 | // func addCustomGestureRecognizer(){ |
| 220 | // let singleTap: UITapGestureRecognizer = UITapGestureRecognizer.init(target: self, action: #selector(singleCellTapAction)) | 220 | // let singleTap: UITapGestureRecognizer = UITapGestureRecognizer.init(target: self, action: #selector(singleCellTapAction)) |
| 221 | // | 221 | // |
| @@ -272,36 +272,36 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -272,36 +272,36 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 272 | 272 | ||
| 273 | //当self.baseScrollView的偏移量大于 self.baseScrollView.height时,显示上滑提醒view | 273 | //当self.baseScrollView的偏移量大于 self.baseScrollView.height时,显示上滑提醒view |
| 274 | if(currentOffset > self.baseScrollView.height){ | 274 | if(currentOffset > self.baseScrollView.height){ |
| 275 | - self.bottomPayMoneyRemindView.top = self.height - (currentOffset - self.baseScrollView.height)*1.5 | 275 | + self.upSlideViewRemindView.top = self.height - (currentOffset - self.baseScrollView.height)*1.5 |
| 276 | } | 276 | } |
| 277 | - //上滑滑动到临近值,让bottomPayMoneyRemindView位置一直停留在底部,并慢慢消失 | ||
| 278 | - if (self.bottomPayMoneyRemindView.top < self.height - self.bottomPayMoneyRemindView.height) { | ||
| 279 | - /**让bottomPayMoneyRemindView位置一直停留在底部*/ | ||
| 280 | - self.bottomPayMoneyRemindView.top = self.height - self.bottomPayMoneyRemindView.height | 277 | + //上滑滑动到临近值,让upSlideViewRemindView位置一直停留在底部,并慢慢消失 |
| 278 | + if (self.upSlideViewRemindView.top < self.height - self.upSlideViewRemindView.height) { | ||
| 279 | + /**让upSlideViewRemindView位置一直停留在底部*/ | ||
| 280 | + self.upSlideViewRemindView.top = self.height - self.upSlideViewRemindView.height | ||
| 281 | 281 | ||
| 282 | - /**渐渐隐藏bottomPayMoneyRemindView,缓冲距离为20*/ | ||
| 283 | - let bottomPayMoneyRemindViewMaxOffset: CGFloat = self.baseScrollView.height+self.bottomPayMoneyRemindView.height | ||
| 284 | - self.bottomPayMoneyRemindView.alpha = (20-(currentOffset - bottomPayMoneyRemindViewMaxOffset))/20.00 | 282 | + /**渐渐隐藏upSlideViewRemindView,缓冲距离为20*/ |
| 283 | + let upSlideViewRemindViewMaxOffset: CGFloat = self.baseScrollView.height+self.upSlideViewRemindView.height | ||
| 284 | + self.upSlideViewRemindView.alpha = (20-(currentOffset - upSlideViewRemindViewMaxOffset))/20.00 | ||
| 285 | 285 | ||
| 286 | } | 286 | } |
| 287 | 287 | ||
| 288 | //当self.baseScrollView的偏移量小于 self.baseScrollView.height时,显示下滑提醒view | 288 | //当self.baseScrollView的偏移量小于 self.baseScrollView.height时,显示下滑提醒view |
| 289 | if(currentOffset < self.baseScrollView.height){ | 289 | if(currentOffset < self.baseScrollView.height){ |
| 290 | - self.topCollectMoneyRemindView.bottom = (self.baseScrollView.height - currentOffset)*1.5 | 290 | + self.downSlideViewRemindView.bottom = (self.baseScrollView.height - currentOffset)*1.5 |
| 291 | } | 291 | } |
| 292 | - //下滑滑动到临近值,让topCollectMoneyRemindView位置一直停留在顶部,并慢慢消失 | ||
| 293 | - if (self.topCollectMoneyRemindView.bottom > self.topCollectMoneyRemindView.height) { | 292 | + //下滑滑动到临近值,让downSlideViewRemindView位置一直停留在顶部,并慢慢消失 |
| 293 | + if (self.downSlideViewRemindView.bottom > self.downSlideViewRemindView.height) { | ||
| 294 | 294 | ||
| 295 | - /**让topCollectMoneyRemindView位置一直停留在底部*/ | ||
| 296 | - self.topCollectMoneyRemindView.bottom = self.topCollectMoneyRemindView.height | 295 | + /**让downSlideViewRemindView位置一直停留在底部*/ |
| 296 | + self.downSlideViewRemindView.bottom = self.downSlideViewRemindView.height | ||
| 297 | 297 | ||
| 298 | - /**渐渐隐藏topCollectMoneyRemindView,缓冲距离为20*/ | ||
| 299 | - let topCollectMoneyRemindViewMinOffset: CGFloat = self.baseScrollView.height-self.topCollectMoneyRemindView.height | ||
| 300 | - self.topCollectMoneyRemindView.alpha = (20-(topCollectMoneyRemindViewMinOffset - currentOffset))/20.00 | 298 | + /**渐渐隐藏downSlideViewRemindView,缓冲距离为20*/ |
| 299 | + let downSlideViewRemindViewMinOffset: CGFloat = self.baseScrollView.height-self.downSlideViewRemindView.height | ||
| 300 | + self.downSlideViewRemindView.alpha = (20-(downSlideViewRemindViewMinOffset - currentOffset))/20.00 | ||
| 301 | 301 | ||
| 302 | - //让系统及时更新topCollectMoneyRemindView | ||
| 303 | -// self.topCollectMoneyRemindView.setNeedsLayout() | ||
| 304 | -// self.topCollectMoneyRemindView.layoutIfNeeded() | 302 | + //让系统及时更新downSlideViewRemindView |
| 303 | +// self.downSlideViewRemindView.setNeedsLayout() | ||
| 304 | +// self.downSlideViewRemindView.layoutIfNeeded() | ||
| 305 | } | 305 | } |
| 306 | 306 | ||
| 307 | 307 | ||
| @@ -331,10 +331,10 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -331,10 +331,10 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 331 | self.topNavView.alpha = 0 | 331 | self.topNavView.alpha = 0 |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | - //隐藏collectMoneyCodeView的bottomView | 334 | + //隐藏downSlideView的bottomView |
| 335 | if scrollView.contentOffset.y > 10{ | 335 | if scrollView.contentOffset.y > 10{ |
| 336 | - self.collectMoneyCodeView.bottomView.isHidden = true | ||
| 337 | - self.collectMoneyCodeView.contentView.backgroundColor = .clear | 336 | + self.downSlideView.bottomView.isHidden = true |
| 337 | + self.downSlideView.contentView.backgroundColor = .clear | ||
| 338 | } | 338 | } |
| 339 | 339 | ||
| 340 | delegate?.customIndexViewDidScroll(scrollView: self.baseScrollView) | 340 | delegate?.customIndexViewDidScroll(scrollView: self.baseScrollView) |
| @@ -360,9 +360,9 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -360,9 +360,9 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 360 | 360 | ||
| 361 | 361 | ||
| 362 | if scrollView.contentOffset.y == 0{ | 362 | if scrollView.contentOffset.y == 0{ |
| 363 | - //滚动到第一页,显示collectMoneyCodeView的底部view | ||
| 364 | - self.collectMoneyCodeView.bottomView.isHidden = false | ||
| 365 | - self.collectMoneyCodeView.contentView.backgroundColor = KVCBackgroupColor | 363 | + //滚动到第一页,显示downSlideView的底部view |
| 364 | + self.downSlideView.bottomView.isHidden = false | ||
| 365 | + self.downSlideView.contentView.backgroundColor = KVCBackgroupColor | ||
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | 368 | ||
| @@ -370,7 +370,7 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | @@ -370,7 +370,7 @@ class CNCustomIndexView:PGIndexBannerSubiew, UIScrollViewDelegate, WJColorChange | ||
| 370 | self.bringSubviewToFront(self.topNavView) | 370 | self.bringSubviewToFront(self.topNavView) |
| 371 | 371 | ||
| 372 | //下滑提醒View回到初始位置 | 372 | //下滑提醒View回到初始位置 |
| 373 | - self.topCollectMoneyRemindView.top = -(self.topCollectMoneyRemindView.height + 50) | 373 | + self.downSlideViewRemindView.top = -(self.downSlideViewRemindView.height + 50) |
| 374 | 374 | ||
| 375 | //外部代理 | 375 | //外部代理 |
| 376 | self.delegate?.customIndexViewDidEndScroll(scrollView: scrollView) | 376 | self.delegate?.customIndexViewDidEndScroll(scrollView: scrollView) |
metaCode/Classes/Main/HomePage/View/CNCollectMoneyCodeView.swift renamed to metaCode/Classes/Main/HomePage/View/CNDownSlideView.swift
| 1 | // | 1 | // |
| 2 | -// CNCollectMoneyCodeView.swift | 2 | +// CNDownSlideView.swift |
| 3 | // metaCode | 3 | // metaCode |
| 4 | // | 4 | // |
| 5 | // Created by daojian on 2023/5/30. | 5 | // Created by daojian on 2023/5/30. |
| @@ -11,8 +11,8 @@ import YYCategories | @@ -11,8 +11,8 @@ import YYCategories | ||
| 11 | 11 | ||
| 12 | typealias backBlock = ()->Void; | 12 | typealias backBlock = ()->Void; |
| 13 | 13 | ||
| 14 | -///收钱码View | ||
| 15 | -class CNCollectMoneyCodeView:UIView{ | 14 | +///下滑显示的View |
| 15 | +class CNDownSlideView:UIView{ | ||
| 16 | //返回首页 | 16 | //返回首页 |
| 17 | var backAction:backBlock? | 17 | var backAction:backBlock? |
| 18 | 18 |
metaCode/Classes/Main/HomePage/View/CNTopCollectMoneyRemindView.swift renamed to metaCode/Classes/Main/HomePage/View/CNDownSlideViewRemindView.swift
| 1 | // | 1 | // |
| 2 | -// CNTopCollectMoneyRemindView.swift | 2 | +// CNDownSlideViewRemindView.swift |
| 3 | // metaCode | 3 | // metaCode |
| 4 | // | 4 | // |
| 5 | // Created by daojian on 2023/5/31. | 5 | // Created by daojian on 2023/5/31. |
| @@ -8,8 +8,8 @@ | @@ -8,8 +8,8 @@ | ||
| 8 | import Foundation | 8 | import Foundation |
| 9 | import YYCategories | 9 | import YYCategories |
| 10 | 10 | ||
| 11 | -///收钱下拉显示提醒View | ||
| 12 | -class CNTopCollectMoneyRemindView : UIView{ | 11 | +///下滑显示提醒View |
| 12 | +class CNDownSlideViewRemindView : UIView{ | ||
| 13 | override init(frame: CGRect) { | 13 | override init(frame: CGRect) { |
| 14 | super.init(frame: frame) | 14 | super.init(frame: frame) |
| 15 | self.initUI() | 15 | self.initUI() |
metaCode/Classes/Main/HomePage/View/CNPayMoneyCodeView.swift renamed to metaCode/Classes/Main/HomePage/View/CNUpSlideView.swift
| 1 | // | 1 | // |
| 2 | -// CNPayMoneyCodeView.swift | 2 | +// CNUpSlideView.swift |
| 3 | // metaCode | 3 | // metaCode |
| 4 | // | 4 | // |
| 5 | // Created by daojian on 2023/5/31. | 5 | // Created by daojian on 2023/5/31. |
| @@ -9,8 +9,8 @@ import Foundation | @@ -9,8 +9,8 @@ import Foundation | ||
| 9 | import YYCategories | 9 | import YYCategories |
| 10 | import WebKit | 10 | import WebKit |
| 11 | 11 | ||
| 12 | -///付钱码view | ||
| 13 | -class CNPayMoneyCodeView:UIView{ | 12 | +///上滑显示的VIew |
| 13 | +class CNUpSlideView:UIView{ | ||
| 14 | override init(frame: CGRect) { | 14 | override init(frame: CGRect) { |
| 15 | super.init(frame: frame) | 15 | super.init(frame: frame) |
| 16 | self.initUI() | 16 | self.initUI() |
metaCode/Classes/Main/HomePage/View/CNBottomPayMoneyRemindView.swift renamed to metaCode/Classes/Main/HomePage/View/CNUpSlideViewRemindView.swift
| 1 | // | 1 | // |
| 2 | -// CNBottomPayMoneyRemindView.swift | 2 | +// CNUpSlideViewRemindView.swift |
| 3 | // metaCode | 3 | // metaCode |
| 4 | // | 4 | // |
| 5 | // Created by daojian on 2023/5/31. | 5 | // Created by daojian on 2023/5/31. |
| @@ -8,8 +8,8 @@ | @@ -8,8 +8,8 @@ | ||
| 8 | import Foundation | 8 | import Foundation |
| 9 | import YYCategories | 9 | import YYCategories |
| 10 | 10 | ||
| 11 | -/// 底部付钱上拉显示提醒View | ||
| 12 | -class CNBottomPayMoneyRemindView:UIView{ | 11 | +/// 上拉显示提醒View |
| 12 | +class CNUpSlideViewRemindView:UIView{ | ||
| 13 | 13 | ||
| 14 | override init(frame: CGRect) { | 14 | override init(frame: CGRect) { |
| 15 | super.init(frame: frame) | 15 | super.init(frame: frame) |
metaCode/Classes/Other/AppDelegate.swift
| @@ -18,6 +18,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | @@ -18,6 +18,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | ||
| 18 | 18 | ||
| 19 | // Override point for customization after application launch. | 19 | // Override point for customization after application launch. |
| 20 | 20 | ||
| 21 | + //设置APP环境 | ||
| 22 | + CNLiveEnvironmentManager.shared.setupEnvironment(environment: .development) | ||
| 23 | + | ||
| 21 | window = UIWindow.init(frame: UIScreen.main.bounds) | 24 | window = UIWindow.init(frame: UIScreen.main.bounds) |
| 22 | window?.backgroundColor = KVCBackgroupColor | 25 | window?.backgroundColor = KVCBackgroupColor |
| 23 | let is_login = UserDefaults.standard.bool(forKey: "is_login") | 26 | let is_login = UserDefaults.standard.bool(forKey: "is_login") |
| @@ -48,13 +51,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | @@ -48,13 +51,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | ||
| 48 | let kAppBundleID = Bundle.main.bundleIdentifier ?? "" | 51 | let kAppBundleID = Bundle.main.bundleIdentifier ?? "" |
| 49 | let uuid : String = UIDevice.current.identifierForVendor?.uuidString.replacingOccurrences(of: "-", with: "") ?? "" | 52 | let uuid : String = UIDevice.current.identifierForVendor?.uuidString.replacingOccurrences(of: "-", with: "") ?? "" |
| 50 | let ver : String = Bundle.main.infoDictionary?["CFBundleVersion"] as! String | 53 | let ver : String = Bundle.main.infoDictionary?["CFBundleVersion"] as! String |
| 51 | - let p : Dictionary = ["platform_id":kAppBundleID,"uuid":uuid,"plat":"i","ver":ver,"appId":"802_li40qhp922","timestamp":String(NSNumber(floatLiteral: Date().timeIntervalSince1970).intValue),"clientPlat":"i","frmId":"ios"] | 54 | + let p : Dictionary = ["platform_id":kAppBundleID,"uuid":uuid,"plat":"i","ver":ver,"appId":APPId,"timestamp":String(NSNumber(floatLiteral: Date().timeIntervalSince1970).intValue),"clientPlat":"i","frmId":"ios"] |
| 52 | CNLiveNetworking.setupDefaultParam(p) | 55 | CNLiveNetworking.setupDefaultParam(p) |
| 53 | CNLiveNetworking.setupShowDataResult(false) | 56 | CNLiveNetworking.setupShowDataResult(false) |
| 54 | - CNLiveNetworking.setupSignKey("ae3a7ad3e4b9beb7cfe2078db648ebb89aa249ca2e82ac") | 57 | + CNLiveNetworking.setupSignKey(APPKey) |
| 55 | CNLiveNetworking.setAllowRequestDefaultArgument(true) | 58 | CNLiveNetworking.setAllowRequestDefaultArgument(true) |
| 56 | CNLiveNetworking.setResponseSerializerType(.JSON) | 59 | CNLiveNetworking.setResponseSerializerType(.JSON) |
| 57 | - CNLiveNetworking.setupBaseURL("https://api.cnlive.com") | 60 | + CNLiveNetworking.setupBaseURL(APPBaseUrl) |
| 58 | } | 61 | } |
| 59 | 62 | ||
| 60 | 63 |