Commit 417178a5 authored by Mazy's avatar Mazy

add ranking view

parents 02330ed2 ca3c6021
......@@ -14,10 +14,11 @@
64BF50C825679155000F2554 /* GYRankingViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 64BF50C625679155000F2554 /* GYRankingViewCell.xib */; };
64BF50CD256794B3000F2554 /* GYRankingHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 64BF50CC256794B3000F2554 /* GYRankingHeaderView.m */; };
64BF50D1256794C8000F2554 /* GYRankingHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 64BF50D0256794C8000F2554 /* GYRankingHeaderView.xib */; };
64BF50D725679B72000F2554 /* UIColor+HExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 64BF50D625679B72000F2554 /* UIColor+HExtension.m */; };
64BF50DC25679F9F000F2554 /* GYRankingListModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 64BF50DB25679F9F000F2554 /* GYRankingListModel.m */; };
64BF50E12567AB98000F2554 /* GYRankingUserInfoView.m in Sources */ = {isa = PBXBuildFile; fileRef = 64BF50E02567AB98000F2554 /* GYRankingUserInfoView.m */; };
64BF50E52567ABA6000F2554 /* GYRankingUserInfoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 64BF50E42567ABA6000F2554 /* GYRankingUserInfoView.xib */; };
64BF50F02567B482000F2554 /* GYRankingFooterView.m in Sources */ = {isa = PBXBuildFile; fileRef = 64BF50EF2567B482000F2554 /* GYRankingFooterView.m */; };
64BF50F42567B490000F2554 /* GYRankingFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 64BF50F32567B490000F2554 /* GYRankingFooterView.xib */; };
64D45DF125495D010066055C /* UnityFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 64D45DF025495D010066055C /* UnityFramework.framework */; };
64D45DF225495D010066055C /* UnityFramework.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 64D45DF025495D010066055C /* UnityFramework.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
64E8CA10254132E300AF1416 /* BGKeychainTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 64E8CA0F254132E300AF1416 /* BGKeychainTool.m */; };
......@@ -32,6 +33,16 @@
686352082563E0E400F7BAD3 /* WelfareCenterVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 686352062563E0E400F7BAD3 /* WelfareCenterVC.xib */; };
686352292563E26900F7BAD3 /* WelfareCenterCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 686352272563E26900F7BAD3 /* WelfareCenterCell.m */; };
6863522A2563E26900F7BAD3 /* WelfareCenterCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 686352282563E26900F7BAD3 /* WelfareCenterCell.xib */; };
6882AD002566A68A008CF1F3 /* ClockInVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 6882ACFE2566A68A008CF1F3 /* ClockInVC.m */; };
6882AD012566A68A008CF1F3 /* ClockInVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6882ACFF2566A68A008CF1F3 /* ClockInVC.xib */; };
68A81D192566461A003C1BF1 /* UIView+AdaptScreen.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D102566461A003C1BF1 /* UIView+AdaptScreen.m */; };
68A81D1A2566461A003C1BF1 /* UIView+WHView.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D112566461A003C1BF1 /* UIView+WHView.m */; };
68A81D1B2566461A003C1BF1 /* ESLyhXibView.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D142566461A003C1BF1 /* ESLyhXibView.m */; };
68A81D1C2566461A003C1BF1 /* UIView+DHExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D162566461A003C1BF1 /* UIView+DHExtension.m */; };
68A81D1D2566461A003C1BF1 /* UIColor+HExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D172566461A003C1BF1 /* UIColor+HExtension.m */; };
68A81D1E2566461A003C1BF1 /* UIView+HExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D182566461A003C1BF1 /* UIView+HExtension.m */; };
68A81D34256647AB003C1BF1 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D33256647AB003C1BF1 /* BaseViewController.m */; };
68A81D4E25664F29003C1BF1 /* WelfareCenterData.m in Sources */ = {isa = PBXBuildFile; fileRef = 68A81D4D25664F29003C1BF1 /* WelfareCenterData.m */; };
6E42AF336D54EF2C5073BB5C /* Pods_GYDemo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 917ED4A8EF1F82D94F8A8E38 /* Pods_GYDemo.framework */; };
A91A7879253EE56B00F9B216 /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = A91A7878253EE56B00F9B216 /* AppDelegate.mm */; };
A91A7882253EE56B00F9B216 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A91A7880253EE56B00F9B216 /* Main.storyboard */; };
......@@ -136,13 +147,14 @@
64BF50CB256794B3000F2554 /* GYRankingHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GYRankingHeaderView.h; sourceTree = "<group>"; };
64BF50CC256794B3000F2554 /* GYRankingHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GYRankingHeaderView.m; sourceTree = "<group>"; };
64BF50D0256794C8000F2554 /* GYRankingHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GYRankingHeaderView.xib; sourceTree = "<group>"; };
64BF50D525679B72000F2554 /* UIColor+HExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+HExtension.h"; sourceTree = "<group>"; };
64BF50D625679B72000F2554 /* UIColor+HExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+HExtension.m"; sourceTree = "<group>"; };
64BF50DA25679F9F000F2554 /* GYRankingListModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GYRankingListModel.h; sourceTree = "<group>"; };
64BF50DB25679F9F000F2554 /* GYRankingListModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GYRankingListModel.m; sourceTree = "<group>"; };
64BF50DF2567AB98000F2554 /* GYRankingUserInfoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GYRankingUserInfoView.h; sourceTree = "<group>"; };
64BF50E02567AB98000F2554 /* GYRankingUserInfoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GYRankingUserInfoView.m; sourceTree = "<group>"; };
64BF50E42567ABA6000F2554 /* GYRankingUserInfoView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GYRankingUserInfoView.xib; sourceTree = "<group>"; };
64BF50EE2567B482000F2554 /* GYRankingFooterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GYRankingFooterView.h; sourceTree = "<group>"; };
64BF50EF2567B482000F2554 /* GYRankingFooterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GYRankingFooterView.m; sourceTree = "<group>"; };
64BF50F32567B490000F2554 /* GYRankingFooterView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GYRankingFooterView.xib; sourceTree = "<group>"; };
64D45DF025495D010066055C /* UnityFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = UnityFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; };
64E8CA062541318100AF1416 /* UnityFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = UnityFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; };
64E8CA0E254132E300AF1416 /* BGKeychainTool.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BGKeychainTool.h; sourceTree = "<group>"; };
......@@ -166,6 +178,25 @@
686352262563E26900F7BAD3 /* WelfareCenterCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WelfareCenterCell.h; sourceTree = "<group>"; };
686352272563E26900F7BAD3 /* WelfareCenterCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WelfareCenterCell.m; sourceTree = "<group>"; };
686352282563E26900F7BAD3 /* WelfareCenterCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WelfareCenterCell.xib; sourceTree = "<group>"; };
6882ACFD2566A68A008CF1F3 /* ClockInVC.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ClockInVC.h; sourceTree = "<group>"; };
6882ACFE2566A68A008CF1F3 /* ClockInVC.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ClockInVC.m; sourceTree = "<group>"; };
6882ACFF2566A68A008CF1F3 /* ClockInVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ClockInVC.xib; sourceTree = "<group>"; };
68A81D0C2566461A003C1BF1 /* UIView+HExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+HExtension.h"; sourceTree = "<group>"; };
68A81D0D2566461A003C1BF1 /* UIColor+HExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+HExtension.h"; sourceTree = "<group>"; };
68A81D0E2566461A003C1BF1 /* UIView+DHExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+DHExtension.h"; sourceTree = "<group>"; };
68A81D102566461A003C1BF1 /* UIView+AdaptScreen.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+AdaptScreen.m"; sourceTree = "<group>"; };
68A81D112566461A003C1BF1 /* UIView+WHView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+WHView.m"; sourceTree = "<group>"; };
68A81D122566461A003C1BF1 /* ESLyhXibView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ESLyhXibView.h; sourceTree = "<group>"; };
68A81D132566461A003C1BF1 /* UIView+AdaptScreen.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+AdaptScreen.h"; sourceTree = "<group>"; };
68A81D142566461A003C1BF1 /* ESLyhXibView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ESLyhXibView.m; sourceTree = "<group>"; };
68A81D152566461A003C1BF1 /* UIView+WHView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+WHView.h"; sourceTree = "<group>"; };
68A81D162566461A003C1BF1 /* UIView+DHExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+DHExtension.m"; sourceTree = "<group>"; };
68A81D172566461A003C1BF1 /* UIColor+HExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+HExtension.m"; sourceTree = "<group>"; };
68A81D182566461A003C1BF1 /* UIView+HExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+HExtension.m"; sourceTree = "<group>"; };
68A81D32256647AB003C1BF1 /* BaseViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BaseViewController.h; sourceTree = "<group>"; };
68A81D33256647AB003C1BF1 /* BaseViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BaseViewController.m; sourceTree = "<group>"; };
68A81D4C25664F29003C1BF1 /* WelfareCenterData.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WelfareCenterData.h; sourceTree = "<group>"; };
68A81D4D25664F29003C1BF1 /* WelfareCenterData.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WelfareCenterData.m; sourceTree = "<group>"; };
917ED4A8EF1F82D94F8A8E38 /* Pods_GYDemo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_GYDemo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
A91A7874253EE56B00F9B216 /* GYDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GYDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
A91A7877253EE56B00F9B216 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
......@@ -301,15 +332,6 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
64BF50D425679B65000F2554 /* Extension */ = {
isa = PBXGroup;
children = (
64BF50D525679B72000F2554 /* UIColor+HExtension.h */,
64BF50D625679B72000F2554 /* UIColor+HExtension.m */,
);
path = Extension;
sourceTree = "<group>";
};
64F8966F255FABB800AF9AD7 /* SCAds */ = {
isa = PBXGroup;
children = (
......@@ -345,6 +367,68 @@
path = model;
sourceTree = "<group>";
};
6882ACFB2566A61E008CF1F3 /* Welfare */ = {
isa = PBXGroup;
children = (
6882AD062566A6FD008CF1F3 /* model */,
);
path = Welfare;
sourceTree = "<group>";
};
6882ACFC2566A63D008CF1F3 /* ClockIn */ = {
isa = PBXGroup;
children = (
6882AD072566A73C008CF1F3 /* clmodel */,
6882ACFD2566A68A008CF1F3 /* ClockInVC.h */,
6882ACFE2566A68A008CF1F3 /* ClockInVC.m */,
6882ACFF2566A68A008CF1F3 /* ClockInVC.xib */,
);
path = ClockIn;
sourceTree = "<group>";
};
6882AD062566A6FD008CF1F3 /* model */ = {
isa = PBXGroup;
children = (
68A81D4C25664F29003C1BF1 /* WelfareCenterData.h */,
68A81D4D25664F29003C1BF1 /* WelfareCenterData.m */,
);
path = model;
sourceTree = "<group>";
};
6882AD072566A73C008CF1F3 /* clmodel */ = {
isa = PBXGroup;
children = (
);
path = clmodel;
sourceTree = "<group>";
};
68A81D0B2566461A003C1BF1 /* category */ = {
isa = PBXGroup;
children = (
68A81D0D2566461A003C1BF1 /* UIColor+HExtension.h */,
68A81D172566461A003C1BF1 /* UIColor+HExtension.m */,
68A81D0F2566461A003C1BF1 /* UIView */,
68A81D0E2566461A003C1BF1 /* UIView+DHExtension.h */,
68A81D162566461A003C1BF1 /* UIView+DHExtension.m */,
68A81D0C2566461A003C1BF1 /* UIView+HExtension.h */,
68A81D182566461A003C1BF1 /* UIView+HExtension.m */,
);
path = category;
sourceTree = "<group>";
};
68A81D0F2566461A003C1BF1 /* UIView */ = {
isa = PBXGroup;
children = (
68A81D102566461A003C1BF1 /* UIView+AdaptScreen.m */,
68A81D112566461A003C1BF1 /* UIView+WHView.m */,
68A81D122566461A003C1BF1 /* ESLyhXibView.h */,
68A81D132566461A003C1BF1 /* UIView+AdaptScreen.h */,
68A81D142566461A003C1BF1 /* ESLyhXibView.m */,
68A81D152566461A003C1BF1 /* UIView+WHView.h */,
);
path = UIView;
sourceTree = "<group>";
};
A3BE8AD6E326D640425E6E5A /* Frameworks */ = {
isa = PBXGroup;
children = (
......@@ -382,7 +466,7 @@
A91A7876253EE56B00F9B216 /* GYDemo */ = {
isa = PBXGroup;
children = (
64BF50D425679B65000F2554 /* Extension */,
68A81D0B2566461A003C1BF1 /* category */,
A9F5CF402546728E0035F17B /* GYDemo.entitlements */,
A91A7877253EE56B00F9B216 /* AppDelegate.h */,
A91A7878253EE56B00F9B216 /* AppDelegate.mm */,
......@@ -567,6 +651,9 @@
64BF50CB256794B3000F2554 /* GYRankingHeaderView.h */,
64BF50CC256794B3000F2554 /* GYRankingHeaderView.m */,
64BF50D0256794C8000F2554 /* GYRankingHeaderView.xib */,
64BF50EE2567B482000F2554 /* GYRankingFooterView.h */,
64BF50EF2567B482000F2554 /* GYRankingFooterView.m */,
64BF50F32567B490000F2554 /* GYRankingFooterView.xib */,
64BF50DF2567AB98000F2554 /* GYRankingUserInfoView.h */,
64BF50E02567AB98000F2554 /* GYRankingUserInfoView.m */,
64BF50E42567ABA6000F2554 /* GYRankingUserInfoView.xib */,
......@@ -598,6 +685,10 @@
A9AB9DE22541CA3800F0D766 /* ViewController */ = {
isa = PBXGroup;
children = (
68A81D32256647AB003C1BF1 /* BaseViewController.h */,
68A81D33256647AB003C1BF1 /* BaseViewController.m */,
6882ACFC2566A63D008CF1F3 /* ClockIn */,
6882ACFB2566A61E008CF1F3 /* Welfare */,
A91A7917253EF26700F9B216 /* GYWheelSurfViewController.h */,
A91A7918253EF26700F9B216 /* GYWheelSurfViewController.m */,
A91A7995253FDEFD00F9B216 /* GYSettingViewController.h */,
......@@ -732,6 +823,7 @@
64022D60255D6B8700513333 /* GYCashSixAwardAlertView.xib in Resources */,
A91A7887253EE56D00F9B216 /* LaunchScreen.storyboard in Resources */,
A9AB9D7225403E6B00F0D766 /* GYTaskCell.xib in Resources */,
6882AD012566A68A008CF1F3 /* ClockInVC.xib in Resources */,
A9AB9D62254039FD00F0D766 /* GYTaskAlertView.xib in Resources */,
6863522A2563E26900F7BAD3 /* WelfareCenterCell.xib in Resources */,
A93AF227254AB23E002E8CBE /* GYCountDownTimeView.xib in Resources */,
......@@ -748,6 +840,7 @@
A91A7884253EE56D00F9B216 /* Assets.xcassets in Resources */,
A91A7882253EE56B00F9B216 /* Main.storyboard in Resources */,
A91A7982253F248E00F9B216 /* GYGiftAlertView.xib in Resources */,
64BF50F42567B490000F2554 /* GYRankingFooterView.xib in Resources */,
64BF50C825679155000F2554 /* GYRankingViewCell.xib in Resources */,
64BF50E52567ABA6000F2554 /* GYRankingUserInfoView.xib in Resources */,
A93AF243254AED79002E8CBE /* GYWithDrawAlertView.xib in Resources */,
......@@ -840,15 +933,19 @@
A93AF23F254AED6D002E8CBE /* GYWithDrawAlertView.m in Sources */,
64E8CA10254132E300AF1416 /* BGKeychainTool.m in Sources */,
A91A7919253EF26700F9B216 /* GYWheelSurfViewController.m in Sources */,
64BF50F02567B482000F2554 /* GYRankingFooterView.m in Sources */,
A9AB9D6925403E3500F0D766 /* GYTaskAlertCollectionHeaderView.m in Sources */,
A9AB9D932541222A00F0D766 /* GYWebViewController.m in Sources */,
A91A7950253F14C300F9B216 /* ZJGuideConfig.m in Sources */,
A91A7879253EE56B00F9B216 /* AppDelegate.mm in Sources */,
A9AB9D7B254046CB00F0D766 /* WTProgressView.m in Sources */,
A91A7944253F0BBA00F9B216 /* GYSignInModel.m in Sources */,
64BF50D725679B72000F2554 /* UIColor+HExtension.m in Sources */,
68A81D1A2566461A003C1BF1 /* UIView+WHView.m in Sources */,
A91A78F2253EE87500F9B216 /* AESCipher.m in Sources */,
A91A7997253FDEFD00F9B216 /* GYSettingViewController.m in Sources */,
68A81D192566461A003C1BF1 /* UIView+AdaptScreen.m in Sources */,
68A81D1C2566461A003C1BF1 /* UIView+DHExtension.m in Sources */,
6882AD002566A68A008CF1F3 /* ClockInVC.m in Sources */,
A91A794E253F14C300F9B216 /* LaunchScreenPlaceHolderVC.m in Sources */,
686352292563E26900F7BAD3 /* WelfareCenterCell.m in Sources */,
64F8967F255FABB800AF9AD7 /* AddCSJADManager.m in Sources */,
......@@ -857,6 +954,7 @@
A9AB9D842540672D00F0D766 /* GYDayTaskModel.m in Sources */,
A91A7902253EE8E300F9B216 /* KeychainItemManager.m in Sources */,
64BF50CD256794B3000F2554 /* GYRankingHeaderView.m in Sources */,
68A81D1B2566461A003C1BF1 /* ESLyhXibView.m in Sources */,
A93AF23A254AD071002E8CBE /* RingView.m in Sources */,
A91A7903253EE8E300F9B216 /* Data.m in Sources */,
A9AB9D7A254046CB00F0D766 /* ProgressView.m in Sources */,
......@@ -864,8 +962,10 @@
64BF50BF25678F52000F2554 /* GYRankingViewController.m in Sources */,
A91A7963253F192A00F9B216 /* GYRedPacketView.m in Sources */,
A91A78D5253EE75500F9B216 /* CGUserManager.m in Sources */,
68A81D34256647AB003C1BF1 /* BaseViewController.m in Sources */,
A9AB9D7125403E6B00F0D766 /* GYTaskCell.m in Sources */,
A91A79A1253FE25A00F9B216 /* GYSettingCell.m in Sources */,
68A81D1D2566461A003C1BF1 /* UIColor+HExtension.m in Sources */,
A91A79C5254024A400F9B216 /* GYOrderInfoModel.m in Sources */,
A91A79B22540199800F9B216 /* GYOrderAlertView.m in Sources */,
A91A79AB25400BAD00F9B216 /* GYGiftCell.m in Sources */,
......@@ -882,12 +982,14 @@
A91A7988253F310D00F9B216 /* GYOpenBoxModel.m in Sources */,
A9AB9DCC2541C3AA00F0D766 /* GYBaseModel.m in Sources */,
A9AB9D5D254039EE00F0D766 /* GYTaskAlertView.m in Sources */,
68A81D1E2566461A003C1BF1 /* UIView+HExtension.m in Sources */,
64F89682255FABB800AF9AD7 /* IOSADManager.m in Sources */,
64F89683255FABB800AF9AD7 /* GYAdsTrackMode.m in Sources */,
A91A7913253EEF5100F9B216 /* GYWheelSurfModel.m in Sources */,
64BF50DC25679F9F000F2554 /* GYRankingListModel.m in Sources */,
686352072563E0E400F7BAD3 /* WelfareCenterVC.m in Sources */,
64F8967E255FABB800AF9AD7 /* AddSigmobADManager.m in Sources */,
68A81D4E25664F29003C1BF1 /* WelfareCenterData.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......
......@@ -153,10 +153,10 @@ NSDictionary* appLaunchOpts;
web.url = WelfareURL;
}
// WelfareCenterVC * vc = [[WelfareCenterVC alloc]init];
WelfareCenterVC * vc = [[WelfareCenterVC alloc]init];
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:vc];
UINavigationController * nav = [[UINavigationController alloc] initWithRootViewController:web];
nav.modalPresentationStyle = UIModalPresentationFullScreen;
[[[self ufw] appController].window.rootViewController presentViewController:nav
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "OpenTreasureChest@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "OpenTreasureChest@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "TreasureChestClose@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "TreasureChestClose@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "arrow_left@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "arrow_left@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
//
// UIColor+HExtension.h
// ExerciseAnimation
//
// Created by L.mac on 2019/5/10.
// Copyright © 2019 L.mac. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIColor (HExtension)
/**
使用 16 进制数字创建颜色,例如 0xFF0000 创建红色
@param hex 16 进制无符号32位整数
@return 颜色
*/
+ (instancetype)colorWithHex:(uint32_t)hex;
/**
产生随机色
@return 随机色
*/
+ (instancetype)randomColor;
/**
支持三种格式颜色字符串@"123456" @"0x123456" @"#123456"输入
@param color 十六进制颜色字符串
@param alpha 透明度
@return Color
*/
+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha;
/**
支持三种格式颜色字符串@"123456" @"0x123456" @"#123456"输入
@param color 十六进制颜色字符串
@return Color
*/
+ (UIColor *)colorWithHexString:(NSString *)color;
@end
NS_ASSUME_NONNULL_END
//
// UIColor+HExtension.m
// ExerciseAnimation
//
// Created by L.mac on 2019/5/10.
// Copyright © 2019 L.mac. All rights reserved.
//
#import "UIColor+HExtension.h"
@implementation UIColor (HExtension)
+ (instancetype)colorWithHex:(uint32_t)hex {
int red, green, blue;
blue = hex & 0x000000FF;
green = ((hex & 0x0000FF00) >> 8);
red = ((hex & 0x00FF0000) >> 16);
return [UIColor colorWithRed:red/255.0f
green:green/255.0f
blue:blue/255.0f
alpha:1.0f];
}
+ (instancetype)randomColor {
return [UIColor colorWithRed:((float)arc4random_uniform(256) / 255.0) green:((float)arc4random_uniform(256) / 255.0) blue:((float)arc4random_uniform(256) / 255.0) alpha:1.0];
}
+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha{
NSString *cString = [[color stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] uppercaseString];
// String should be 6 or 8 characters
if ([cString length] < 6)
{
return [UIColor clearColor];
}
// strip 0X if it appears
//如果是0x开头的,那么截取字符串,字符串从索引为2的位置开始,一直到末尾
if ([cString hasPrefix:@"0X"])
{
cString = [cString substringFromIndex:2];
}
//如果是#开头的,那么截取字符串,字符串从索引为1的位置开始,一直到末尾
if ([cString hasPrefix:@"#"])
{
cString = [cString substringFromIndex:1];
}
if ([cString length] != 6)
{
return [UIColor clearColor];
}
// Separate into r, g, b substrings
NSRange range;
range.location = 0;
range.length = 2;
//r
NSString *rString = [cString substringWithRange:range];
//g
range.location = 2;
NSString *gString = [cString substringWithRange:range];
//b
range.location = 4;
NSString *bString = [cString substringWithRange:range];
// Scan values
unsigned int r, g, b;
[[NSScanner scannerWithString:rString] scanHexInt:&r];
[[NSScanner scannerWithString:gString] scanHexInt:&g];
[[NSScanner scannerWithString:bString] scanHexInt:&b];
return [UIColor colorWithRed:((float)r / 255.0f) green:((float)g / 255.0f) blue:((float)b / 255.0f) alpha:alpha];
}
+ (UIColor *)colorWithHexString:(NSString *)color{
//默认alpha值为1
return [self colorWithHexString:color alpha:1.0f];
}
@end
......@@ -13,12 +13,17 @@
#ifndef GYPrefixHeader_pch
#define GYPrefixHeader_pch
//测试
//正式
//#define ServerReport @"http://reporttest.zhangxinhulian.com"
//#define ServerHost @"http://feedapitest2.zhangxinhulian.com" // 服务端接口地址
//#define ServerAds @"http://bstest.zhangxinhulian.com/v4/ads"
////正式
#define ServerReport @"http://report.clouddistribute.net"
#define ServerHost @"https://feedapi.clouddistribute.net" // 服务端接口地址
#define ServerAds @"http://bs.clouddistribute.net/v4/ads"
#define WXAppId @"wxe7a03eb52cce1b51"
#define WXAppSecret @"6fa72a89ea188c4dff5729cff328b587"
#define WXUniversalLink @"https://feedapi.clouddistribute.net/LuckFarm/"
......@@ -100,6 +105,14 @@
#import "IOSADManager.h" //AD
#pragma mark - base
#import "BaseViewController.h"
#pragma mark - pod
#import <Masonry/Masonry.h>
#pragma mark - 分类
#import "UIView+HExtension.h"
#import "UIColor+HExtension.h"
//奖励类型 1 水滴 2 果子 3 种子 4 金币 5 加速剂 6 红包
typedef enum : NSUInteger {
......
......@@ -24,6 +24,10 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, assign) NSInteger targetNum;
@property (nonatomic, copy) NSString * url;
@end
NS_ASSUME_NONNULL_END
......@@ -45,9 +45,7 @@ typedef enum : NSUInteger {
task_process,// 获取福利中心进度
taskListWithStat,//获取福利中心列表和状态
rank_list, //排行榜
//
ddcy_clock_list, //打卡提现-列表
} TQNetwortGetAction;
......@@ -79,7 +77,12 @@ typedef enum : NSUInteger {
awardMultiple, //领取翻倍奖励v3
adForcePost, // 取消视频播放回调
welfareVideoReport, //福利任务--激励视频任务完成
cash2Coin
cash2Coin, //
complete_task, // 领取任务奖励 福利中心
clock_wd, //打卡提xian - tixian
welfare_task_box,//打开宝箱 福利中心
} TQNetwortPostAction;
......
......@@ -88,12 +88,14 @@ static CGNetworkTools* _tools = nil;
return @"/app/v1/game/farm/rp_list";
case cloudCheck:
return @"/app/v1/game/farm/cloud_check";
case task_process:
return @"/app/v2/novel/taskListWithStat";
case taskListWithStat:
return @"/app/v2/novel/taskListWithStat";
case task_process:
return @"/app/v1/game/task_process";
case rank_list:
return @"/app/v1/game/farm/rank_list";
case ddcy_clock_list:
return @"/app/v1/game/ddcy/clock_list";
default:
return @"";
}
......@@ -152,6 +154,12 @@ static CGNetworkTools* _tools = nil;
return @"/app/v1/game/welfare_video_report";
case cash2Coin:
return @"/app/v1/game/farm/cash2Coin";
case complete_task:
return @"/app/v1/game/complete-task";
case clock_wd:
return @"/app/v1/game/ddcy/clock_wd";
case welfare_task_box:
return @"/app/v1/game/farm/welfare_task_box";
default:
return @"";
}
......@@ -162,8 +170,9 @@ static CGNetworkTools* _tools = nil;
// GET 请求
- (void)getWithAction: (TQNetwortGetAction)action parameters:(id)parameters success: (void(^)(id response))success failure:(void(^)(NSError * error)) failure{
// get 请求
NSString *urlString = [ServerHost stringByAppendingPathComponent: [self convertGetActionToString:action]];
// NSString *urlString = [ServerHost stringByAppendingPathComponent: [self convertGetActionToString:action]];
NSString *urlString = [ServerHost stringByAppendingString:[self convertGetActionToString:action]];
NSDictionary *params = [self setRequestParams: parameters];
[self GET: urlString parameters: params headers:nil progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
......
//
// GYRankingFooterView.h
// GYDemo
//
// Created by Mazy on 2020/11/20.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface GYRankingFooterView : UIView
@end
NS_ASSUME_NONNULL_END
//
// GYRankingFooterView.m
// GYDemo
//
// Created by Mazy on 2020/11/20.
//
#import "GYRankingFooterView.h"
@implementation GYRankingFooterView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17125"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="414" height="99"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="140.57971014492756" y="-173.10267857142856"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
......@@ -19,6 +19,8 @@ NS_ASSUME_NONNULL_BEGIN
@property (weak, nonatomic) IBOutlet UILabel *diamondLabel;
@property (weak, nonatomic) IBOutlet UIView *bottomView;
- (void)configWithRankingListModel: (GYRankingListModel *)model;
@end
......
......@@ -8,7 +8,7 @@
#import "GYRankingViewCell.h"
#import <AFNetworking/AFNetworking.h>
#import <UIImageView+AFNetworking.h>
#import "UIView+DHExtension.h"
@implementation GYRankingViewCell
- (void)configWithRankingListModel: (GYRankingListModel *)model {
......@@ -28,6 +28,8 @@
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
// [self.bottomView roundCorners: UIRectCornerBottomLeft | UIRectCornerBottomRight radius:15];
// self.bottomView.layer.bo
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
......
......@@ -11,18 +11,57 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="GYRankingViewCell" rowHeight="65" id="KGk-i7-Jjw" customClass="GYRankingViewCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="65"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="GYRankingViewCell" rowHeight="146" id="KGk-i7-Jjw" customClass="GYRankingViewCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="146"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="65"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="146"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ryi-Rd-WwP">
<rect key="frame" x="10" y="57" width="355" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="JOg-gr-cyg"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="15"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.56470588239999997" green="0.30588235289999999" blue="0.1019607843" alpha="1" colorSpace="calibratedRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2nb-Xi-mik">
<rect key="frame" x="10" y="57" width="355" height="15"/>
<color key="backgroundColor" red="0.9773164392" green="0.93786484000000003" blue="0.83179932830000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="15" id="iLw-Gr-FdW"/>
<constraint firstAttribute="height" constant="15" id="iXJ-Pc-p5J"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4nl-4O-dnY">
<rect key="frame" x="10" y="0.0" width="2" height="77"/>
<color key="backgroundColor" red="0.56470588235294117" green="0.30588235294117649" blue="0.10196078431372549" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="2" id="zUX-94-CSM"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OSe-nu-1eM">
<rect key="frame" x="363" y="0.0" width="2" height="77"/>
<color key="backgroundColor" red="0.56470588239999997" green="0.30588235289999999" blue="0.1019607843" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="2" id="9ry-jU-ATn"/>
</constraints>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="NAf-ZP-5qH">
<rect key="frame" x="20" y="8" width="335" height="57"/>
<rect key="frame" x="20" y="8" width="335" height="64"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tCF-Qa-Nqx">
<rect key="frame" x="12" y="13.5" width="28" height="30"/>
<rect key="frame" x="12" y="17" width="28" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="jLS-DM-MfP"/>
<constraint firstAttribute="width" constant="28" id="wjF-Lu-K09"/>
......@@ -33,7 +72,7 @@
</state>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="UlW-Bz-gwY">
<rect key="frame" x="45" y="8.5" width="40" height="40"/>
<rect key="frame" x="45" y="12" width="40" height="40"/>
<color key="backgroundColor" systemColor="systemGroupedBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Kyf-fY-9P3"/>
......@@ -46,13 +85,13 @@
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="永树" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="c7W-51-aUa">
<rect key="frame" x="100" y="18" width="100" height="21.5"/>
<rect key="frame" x="100" y="21.5" width="100" height="21.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="0.40000000000000002" green="0.30980392156862746" blue="0.19215686274509802" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100钻" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumScaleFactor="0.5" translatesAutoresizingMaskIntoConstraints="NO" id="qJG-2r-WkK">
<rect key="frame" x="280" y="19.5" width="50" height="18"/>
<rect key="frame" x="280" y="23" width="50" height="18"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="lpg-Yh-scg"/>
</constraints>
......@@ -61,7 +100,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="11997" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ydH-3c-rQt">
<rect key="frame" x="210" y="19.5" width="60" height="18"/>
<rect key="frame" x="210" y="23" width="60" height="18"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="KvM-Cg-gCM"/>
</constraints>
......@@ -81,6 +120,7 @@
<constraint firstItem="tCF-Qa-Nqx" firstAttribute="centerY" secondItem="NAf-ZP-5qH" secondAttribute="centerY" id="MkK-yB-9Qn"/>
<constraint firstItem="qJG-2r-WkK" firstAttribute="leading" secondItem="ydH-3c-rQt" secondAttribute="trailing" constant="10" id="Tgn-t7-zcG"/>
<constraint firstItem="tCF-Qa-Nqx" firstAttribute="leading" secondItem="NAf-ZP-5qH" secondAttribute="leading" constant="12" id="UCY-jc-L7K"/>
<constraint firstAttribute="height" constant="64" id="We1-QM-tuf"/>
<constraint firstItem="UlW-Bz-gwY" firstAttribute="centerY" secondItem="NAf-ZP-5qH" secondAttribute="centerY" id="huz-ZQ-EaP"/>
<constraint firstItem="c7W-51-aUa" firstAttribute="leading" secondItem="UlW-Bz-gwY" secondAttribute="trailing" constant="15" id="kuh-JR-UW9"/>
</constraints>
......@@ -90,44 +130,36 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4nl-4O-dnY">
<rect key="frame" x="10" y="0.0" width="2" height="65"/>
<color key="backgroundColor" red="0.56470588235294117" green="0.30588235294117649" blue="0.10196078431372549" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="2" id="zUX-94-CSM"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OSe-nu-1eM">
<rect key="frame" x="363" y="0.0" width="2" height="65"/>
<color key="backgroundColor" red="0.56470588239999997" green="0.30588235289999999" blue="0.1019607843" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="2" id="9ry-jU-ATn"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="OSe-nu-1eM" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="1qa-mw-ip9"/>
<constraint firstAttribute="bottom" secondItem="NAf-ZP-5qH" secondAttribute="bottom" id="2OQ-m7-wze"/>
<constraint firstItem="ryi-Rd-WwP" firstAttribute="top" secondItem="NAf-ZP-5qH" secondAttribute="bottom" constant="-15" id="4Sj-Vx-bza"/>
<constraint firstItem="2nb-Xi-mik" firstAttribute="leading" secondItem="ryi-Rd-WwP" secondAttribute="leading" id="AFa-uT-miz"/>
<constraint firstAttribute="trailing" secondItem="NAf-ZP-5qH" secondAttribute="trailing" constant="20" id="AsL-ig-LY1"/>
<constraint firstItem="2nb-Xi-mik" firstAttribute="trailing" secondItem="ryi-Rd-WwP" secondAttribute="trailing" id="BWx-MC-Lf4"/>
<constraint firstAttribute="trailing" secondItem="ryi-Rd-WwP" secondAttribute="trailing" constant="10" id="C92-Cc-VPa"/>
<constraint firstItem="NAf-ZP-5qH" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="20" id="Flt-q1-OnY"/>
<constraint firstItem="4nl-4O-dnY" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="JHa-0x-gzN"/>
<constraint firstItem="ryi-Rd-WwP" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="Xcz-ff-dLU"/>
<constraint firstItem="NAf-ZP-5qH" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="8" id="mod-G4-yJB"/>
<constraint firstAttribute="bottom" secondItem="4nl-4O-dnY" secondAttribute="bottom" id="uCT-hJ-X3i"/>
<constraint firstItem="4nl-4O-dnY" firstAttribute="bottom" secondItem="NAf-ZP-5qH" secondAttribute="bottom" constant="5" id="oOs-9i-KOg"/>
<constraint firstItem="OSe-nu-1eM" firstAttribute="bottom" secondItem="NAf-ZP-5qH" secondAttribute="bottom" constant="5" id="rOP-h5-w2a"/>
<constraint firstItem="2nb-Xi-mik" firstAttribute="top" secondItem="ryi-Rd-WwP" secondAttribute="top" id="tII-KF-j3f"/>
<constraint firstAttribute="trailing" secondItem="OSe-nu-1eM" secondAttribute="trailing" constant="10" id="wJ9-Xl-Aip"/>
<constraint firstItem="4nl-4O-dnY" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="xDC-gZ-MVG"/>
<constraint firstAttribute="bottom" secondItem="OSe-nu-1eM" secondAttribute="bottom" id="zPM-fV-qEo"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
<color key="backgroundColor" red="0.96862745098039216" green="0.91764705882352937" blue="0.77254901960784317" alpha="1" colorSpace="calibratedRGB"/>
<connections>
<outlet property="bottomView" destination="ryi-Rd-WwP" id="Mlg-S5-MLk"/>
<outlet property="coinNumberLabel" destination="ydH-3c-rQt" id="jgb-Ux-lQQ"/>
<outlet property="diamondLabel" destination="qJG-2r-WkK" id="Tz0-Nj-Yxi"/>
<outlet property="nicknameLabel" destination="c7W-51-aUa" id="3g7-1E-OhN"/>
<outlet property="rankingNumberBtn" destination="tCF-Qa-Nqx" id="5Qp-JV-UvE"/>
<outlet property="userProfileView" destination="UlW-Bz-gwY" id="8yi-4A-Ygh"/>
</connections>
<point key="canvasLocation" x="180.43478260869566" y="114.84375"/>
<point key="canvasLocation" x="180.43478260869566" y="139.95535714285714"/>
</tableViewCell>
</objects>
<resources>
......
//
// ESViewController.h
// easysleep
//
// Created by Mazy on 2020/9/8.
// Copyright © 2020 easy sleep. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface BaseViewController : UIViewController
@property (nonatomic,retain)UIImage * backImage;
@property (nonatomic ,assign)BOOL isMember;
//隐藏线
- (void)navbarClearShadow;
- (void)navbarHiddenAanimated:(BOOL)isAnimated;
- (void)navbarShowAanimated:(BOOL)isAnimated;
//添加左侧按钮
- (void)addLeftItme:(UIImage * __nullable)image selecedImage:(UIImage * __nullable)sImage orText:(NSString * __nullable)text selectedText:(NSString * __nullable)sText;
- (void)leftBarButtonItemAction:(UIButton *)btn;
//添加右侧按钮
- (void)addRightItme:(UIImage * __nullable)image selecedImage:(UIImage * __nullable)sImage orText:(NSString * __nullable)text selectedText:(NSString * __nullable)sText;
- (void)rightBarButtonItemAction:(UIButton *)btn;
@end
NS_ASSUME_NONNULL_END
//
// BaseViewController.m
// easysleep
//
// Created by Mazy on 2020/9/8.
// Copyright © 2020 easy sleep. All rights reserved.
//
#import "BaseViewController.h"
@interface BaseViewController ()
@property (nonatomic ,retain)UIButton * rightButton;
@property (nonatomic ,retain)UIButton * leftButton;
@end
@implementation BaseViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.navigationController.navigationBar.translucent=NO;
self.navigationController.navigationBar.barTintColor=[UIColor colorWithHexString:@"#F7BD7C"];
[self navbarSetWhiteTitle];
[self setStatusBarWhite];
[self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:20],NSForegroundColorAttributeName:[UIColor colorWithHexString:@"#333333"]}];
UIImageView * imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, KScreenHeight)];
imageView.layer.masksToBounds = YES;
imageView.image = [UIImage imageNamed:@"homebackImage"];
imageView.contentMode = UIViewContentModeScaleAspectFill;
[self.view addSubview:imageView];
[self.view sendSubviewToBack:imageView];
// self.view.backgroundColor = [UIColor colorWithPatternImage:imageView.image];
// 老版本scrollview自动下移(消除警告)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
self.automaticallyAdjustsScrollViewInsets = NO;
#pragma clang diagnostic pop
// 设置CGRectZero从导航栏下开始计算
if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)])
{
self.edgesForExtendedLayout = UIRectEdgeNone;
}
}
- (void)dealloc{
NSLog(@"%@ ----dealloc",self);
}
-(BOOL)isMember{
#ifdef DEBUG
return true;
#else
return true;
// return [[HKAccountManager shared] isMember];
#endif
}
- (void)setStatusBarWhite{
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
}
- (void)navbarSetWhiteTitle{
[self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
self.navigationController.navigationBar.tintColor=[UIColor whiteColor];
}
- (void)navbarClearShadow{
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:[UIImage new]];
}
- (void)navbarHiddenAanimated:(BOOL)isAnimated{
[self.navigationController setNavigationBarHidden:YES animated:isAnimated];
}
- (void)navbarShowAanimated:(BOOL)isAnimated{
[self.navigationController setNavigationBarHidden:NO animated:isAnimated];
}
//添加左侧按钮
- (void)addLeftItme:(UIImage * __nullable)image selecedImage:(UIImage * __nullable)sImage orText:(NSString * __nullable)text selectedText:(NSString * __nullable)sText{
self.leftButton = [[UIButton alloc] init];
if (image == nil) {
if (text == nil) {
text = @"传入文本";
}
if (sText == nil) {
sText = text;
}
[self.leftButton setTitle: text forState:UIControlStateNormal];
[self.leftButton setTitle: sText forState:UIControlStateSelected];
[self.leftButton setTitleColor:[UIColor whiteColor] forState: UIControlStateNormal];
self.leftButton.titleLabel.font = [UIFont systemFontOfSize:17];
}else{
if (sImage == nil) {
sImage = image;
}
[self.leftButton setImage:image forState:UIControlStateNormal];
[self.leftButton setImage: sImage forState:UIControlStateSelected];
if (text != nil) {
[self.leftButton setTitle: text forState:UIControlStateNormal];
}
}
[self.leftButton addTarget:self action: @selector(leftBarButtonItemAction:) forControlEvents:UIControlEventTouchUpInside];
[self.leftButton sizeToFit];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView: self.leftButton];
}
- (void)leftBarButtonItemAction:(UIButton *)btn{
btn.selected = !btn.isSelected;
NSLog(@"leftButton click");
}
//添加右侧按钮
- (void)addRightItme:(UIImage * __nullable)image selecedImage:(UIImage * __nullable)sImage orText:(NSString * __nullable)text selectedText:(NSString * __nullable)sText{
self.rightButton = [[UIButton alloc] init];
if (image == nil) {
if (text == nil) {
text = @"传入文本";
}
if (sText == nil) {
sText = text;
}
[self.rightButton setTitle: text forState:UIControlStateNormal];
[self.rightButton setTitle: sText forState:UIControlStateSelected];
[self.rightButton setTitleColor:[UIColor whiteColor] forState: UIControlStateNormal];
self.rightButton.titleLabel.font = [UIFont systemFontOfSize:17];
}else{
if (sImage == nil) {
sImage = image;
}
[self.rightButton setImage:image forState:UIControlStateNormal];
[self.rightButton setImage: sImage forState:UIControlStateSelected];
}
[self.rightButton addTarget:self action: @selector(rightBarButtonItemAction:) forControlEvents:UIControlEventTouchUpInside];
[self.rightButton sizeToFit];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView: self.rightButton];
}
- (void)rightBarButtonItemAction:(UIButton *)btn{
btn.selected = !btn.isSelected;
NSLog(@"rightButton click");
}
@end
//
// ClockInVC.h
// GYDemo
// 打卡页
// Created by zhangshuai on 2020/11/19.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface ClockInVC : BaseViewController
@end
NS_ASSUME_NONNULL_END
//
// ClockInVC.m
// GYDemo
//
// Created by zhangshuai on 2020/11/19.
//
#import "ClockInVC.h"
@interface ClockInVC ()
@end
@implementation ClockInVC
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ClockInVC">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
</view>
</objects>
</document>
......@@ -52,7 +52,7 @@
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.rowHeight = 70;
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 100, 0);
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, SafeAreaBottomHeight + 30.0, 0);
self.tableView.showsVerticalScrollIndicator = false;
self.tableView.backgroundColor = [UIColor colorWithHex:0xF7EAC5];
self.tableView.separatorStyle = UITableViewCellSelectionStyleNone;
......@@ -102,6 +102,10 @@
return self.rankList.count;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
return indexPath.row == (self.rankList.count - 1) ? 120 : 70;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
return 50;
}
......@@ -113,7 +117,7 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
GYRankingViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"GYRankingViewCell"];
[cell configWithRankingListModel:self.rankList[indexPath.row]];
[cell configWithRankingListModel: self.rankList[indexPath.row]];
return cell;
}
......
//
// WelfareCenterCell.h
// GYDemo
//
// Created by zhangshuai on 2020/11/17.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface WelfareCenterCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *title;
@property (weak, nonatomic) IBOutlet UILabel *subTitle;
@property (weak, nonatomic) IBOutlet UIButton *awardNum;
@property (weak, nonatomic) IBOutlet UIButton *buttonState;
- (IBAction)stateButtonClick:(UIButton *)sender;
@property (nonatomic ,copy) void (^buttonBlock)(WelfareCenterCell * thisCell);
@property (nonatomic ,assign)NSInteger status; // 按钮状态
@end
NS_ASSUME_NONNULL_END
//
// WelfareCenterCell.m
// GYDemo
//
// Created by zhangshuai on 2020/11/17.
//
#import "WelfareCenterCell.h"
@implementation WelfareCenterCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
- (void)setStatus:(NSInteger)status{
//0 : 去完成 1: 明日再来 2: 立即领取
_status = status;
if (status == 0) {
[self.buttonState setTitle:@"去完成" forState:UIControlStateNormal];
[self.buttonState setBackgroundImage:[UIImage imageNamed:@"ToFinishRed"] forState:UIControlStateNormal];
}else if(status == 1){
[self.buttonState setTitle:@"明日再来" forState:UIControlStateNormal];
[self.buttonState setBackgroundImage:[UIImage imageNamed:@"CollectedGrey"] forState:UIControlStateNormal];
}else if (status == 2){
[self.buttonState setTitle:@"立即领取" forState:UIControlStateNormal];
[self.buttonState setBackgroundImage:[UIImage imageNamed:@"GetItNow"] forState:UIControlStateNormal];
}else{
[self.buttonState setTitle:@"明日再来" forState:UIControlStateNormal];
[self.buttonState setBackgroundImage:[UIImage imageNamed:@"CollectedGrey"] forState:UIControlStateNormal];
}
}
- (IBAction)stateButtonClick:(UIButton *)sender {
if (self.buttonBlock) {
self.buttonBlock(self);
}
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17125"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="126" id="KGk-i7-Jjw" customClass="WelfareCenterCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="126"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="320" height="126"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pr8-hQ-LpE">
<rect key="frame" x="0.0" y="0.0" width="320" height="126"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nDA-SS-B2Z">
<rect key="frame" x="10" y="0.0" width="300" height="114"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="红包赢不停" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Hi-6u-Z8f">
<rect key="frame" x="14" y="14" width="91" height="26"/>
<fontDescription key="fontDescription" name="PingFangSC-Semibold" family="PingFang SC" pointSize="18"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="浏览60秒领取奖励" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Go5-7x-zg8">
<rect key="frame" x="14" y="46" width="118" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" red="0.59215686274509804" green="0.32941176470588235" blue="0.13725490196078433" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dyx-aR-S4p">
<rect key="frame" x="200" y="73" width="86" height="34"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="16"/>
<state key="normal" title="立即领取" backgroundImage="GetItNow">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="stateButtonClick:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="aP1-iP-3jo"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hkj-qT-nh4">
<rect key="frame" x="223.5" y="53" width="39" height="20"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<state key="normal" title=" +1" image="MissionDiamond">
<color key="titleColor" red="1" green="0.3529411764705882" blue="0.26666666666666666" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
</subviews>
<color key="backgroundColor" red="0.99607843137254903" green="0.9882352941176471" blue="0.88627450980392153" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="hkj-qT-nh4" firstAttribute="centerX" secondItem="dyx-aR-S4p" secondAttribute="centerX" id="8HW-1s-Wwg"/>
<constraint firstAttribute="bottom" relation="greaterThanOrEqual" secondItem="Go5-7x-zg8" secondAttribute="bottom" constant="14" id="9Yq-a9-JYg"/>
<constraint firstItem="Go5-7x-zg8" firstAttribute="leading" secondItem="1Hi-6u-Z8f" secondAttribute="leading" id="BQB-Lx-flj"/>
<constraint firstAttribute="bottom" secondItem="dyx-aR-S4p" secondAttribute="bottom" constant="7" id="Ghm-cq-BfQ"/>
<constraint firstItem="Go5-7x-zg8" firstAttribute="top" secondItem="1Hi-6u-Z8f" secondAttribute="bottom" constant="6" id="Nph-zt-FH0"/>
<constraint firstAttribute="trailing" secondItem="dyx-aR-S4p" secondAttribute="trailing" constant="14" id="RAT-h5-XPA"/>
<constraint firstItem="1Hi-6u-Z8f" firstAttribute="top" secondItem="nDA-SS-B2Z" secondAttribute="top" constant="14" id="ffd-c9-ZHj"/>
<constraint firstItem="dyx-aR-S4p" firstAttribute="top" secondItem="hkj-qT-nh4" secondAttribute="bottom" id="mf8-KH-zK4"/>
<constraint firstItem="1Hi-6u-Z8f" firstAttribute="leading" secondItem="nDA-SS-B2Z" secondAttribute="leading" constant="14" id="qLo-LC-ZZ0"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="masksToBounds" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<integer key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="nDA-SS-B2Z" firstAttribute="top" secondItem="pr8-hQ-LpE" secondAttribute="top" id="8fC-07-6l8"/>
<constraint firstAttribute="trailing" secondItem="nDA-SS-B2Z" secondAttribute="trailing" constant="10" id="HBU-ub-jyU"/>
<constraint firstItem="nDA-SS-B2Z" firstAttribute="leading" secondItem="pr8-hQ-LpE" secondAttribute="leading" constant="10" id="bZF-4f-w2W"/>
<constraint firstAttribute="bottom" secondItem="nDA-SS-B2Z" secondAttribute="bottom" constant="12" id="zmj-Lz-4EQ"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="pr8-hQ-LpE" secondAttribute="trailing" id="IfP-kb-S0R"/>
<constraint firstItem="pr8-hQ-LpE" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="Ih7-S3-ByO"/>
<constraint firstAttribute="bottom" secondItem="pr8-hQ-LpE" secondAttribute="bottom" id="T5W-Hc-m07"/>
<constraint firstItem="pr8-hQ-LpE" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="tc0-qz-yHg"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="awardNum" destination="hkj-qT-nh4" id="xia-dl-dpr"/>
<outlet property="buttonState" destination="dyx-aR-S4p" id="CpN-7w-eAq"/>
<outlet property="subTitle" destination="Go5-7x-zg8" id="UZH-Pl-fPU"/>
<outlet property="title" destination="1Hi-6u-Z8f" id="LHG-Gl-5H3"/>
</connections>
<point key="canvasLocation" x="-343" y="69"/>
</tableViewCell>
</objects>
<resources>
<image name="GetItNow" width="86" height="34"/>
<image name="MissionDiamond" width="17" height="15"/>
</resources>
</document>
//
// WelfareCenterVC.h
// GYDemo
//
// Created by zhangshuai on 2020/11/17.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface WelfareCenterVC : BaseViewController
@end
NS_ASSUME_NONNULL_END
//
// WelfareCenterVC.m
// GYDemo
//
// Created by zhangshuai on 2020/11/17.
//
#import "WelfareCenterVC.h"
#import "WelfareCenterData.h"
#import "WelfareCenterCell.h"
#define Identifier @"WelfareCenterCell"
#define MAXProcess (6)
@interface WelfareCenterVC ()
@property (nonatomic, strong) NSMutableArray * dataArray;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (strong, nonatomic) IBOutletCollection(UIImageView) NSArray *diamondimages;
@property (weak, nonatomic) IBOutlet UIStackView *stackProcess;
@property (weak, nonatomic) IBOutlet UIImageView *imageLine;
@property (weak, nonatomic) IBOutlet UIButton *treasureBox;
@property (weak, nonatomic) IBOutlet UILabel *currentText;
@property (nonatomic ,assign)NSInteger maxProcess;
@property (nonatomic ,assign)NSInteger coinsProcess;
@property (nonatomic ,assign)NSInteger showA;
@property (nonatomic ,retain)WelfareCenterData *currentData;
- (IBAction)treasureBoxClick:(UIButton *)sender;
@end
@implementation WelfareCenterVC
- (void)dealloc{
[[NSNotificationCenter defaultCenter]removeObserver:self.tableView];
}
- (NSMutableArray * )dataArray{
if (_dataArray == nil) {
_dataArray = [[NSMutableArray alloc]init];
}
return _dataArray;
}
- (void)viewDidLoad {
[super viewDidLoad];
[self addLeftItme:[UIImage imageNamed:@"arrow_left"] selecedImage:nil orText:@" " selectedText:nil];
self.title = @"福利中心";
[self loadData];
[self initTableView];
[self navbarClearShadow];
self.view.backgroundColor = [UIColor colorWithHexString:@"#F7BD7C"];
UIImage *image = [UIImage imageNamed:@"DottedLine"];
UIImage *newImage = [UIImage imageWithCGImage:[image CGImage] scale:image.scale orientation:image.imageOrientation];
[self.imageLine setBackgroundColor:[UIColor colorWithPatternImage:newImage]];
// Do any additional setup after loading the view from its nib.
}
- (void)initTableView{
self.tableView.rowHeight = UITableViewAutomaticDimension;
self.tableView.estimatedRowHeight = UITableViewAutomaticDimension;
self.tableView.backgroundColor = UIColor.clearColor;//kColorFromHex(0xFAFAFA);
UINib * nib = [UINib nibWithNibName:Identifier bundle:nil];
[self.tableView registerNib:nib forCellReuseIdentifier:Identifier];
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
}
#pragma - mark 返回
- (void)leftBarButtonItemAction:(UIButton *)btn{
[self dismissViewControllerAnimated:YES completion:^{
}];
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 1;
}
- (NSInteger)tableView:(nonnull UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (nonnull UITableViewCell *)tableView:(nonnull UITableView *)tableView cellForRowAtIndexPath:(nonnull NSIndexPath *)indexPath {
WelfareCenterData * data = [self.dataArray objectAtIndex:indexPath.row];
WelfareCenterCell * cell = [tableView dequeueReusableCellWithIdentifier:Identifier forIndexPath:indexPath];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.title.text = data.title;
cell.subTitle.text = data.description_Content;
cell.status = data.status;
[cell.awardNum setTitle:[NSString stringWithFormat:@"+%@",data.awardCoins] forState:UIControlStateNormal];
WEAKSELF;
cell.buttonBlock = ^(WelfareCenterCell * _Nonnull thisCell) {
NSInteger status = thisCell.status;
NSIndexPath * indexP = [weakSelf.tableView indexPathForCell:thisCell];
WelfareCenterData * data = [weakSelf.dataArray objectAtIndex:indexP.row];
if (status == 0) {
[weakSelf showAD:data];
}else if(status == 1){
[MBProgressHUD showMessage:@"明日再来"];
}else if (status == 2){ //立即领取
[weakSelf receiveThePrize:data];
}else{
[MBProgressHUD showMessage:@"明日再来"];
}
};
return cell;
}
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableView *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 0;
}
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
UIView*header = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth, 40)];
UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(20, 12, KScreenWidth, 20)];
label.text = @"Explore Meditation";
label.textColor = UIColor.whiteColor;
label.font = [UIFont fontWithName:PF_SC_M size:20];
[header addSubview:label];
return header;
}
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
UIView * sectionView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenWidth,4 )];
return sectionView;
}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 0;
}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:NO];
[tableView reloadData];
}
- (void)loadData{
WEAKSELF;
// [MBProgressHUD showLoading:@"loading"];
NSMutableDictionary * dic = [[NSMutableDictionary alloc]init];
[dic setObject:@"1" forKey:@"type"];
//请求进度
[[CGNetworkTools shared] getWithAction:task_process parameters:dic success:^(id _Nonnull response) {
// [MBProgressHUD hideHUD];
NSDictionary * dic = response[@"result"][@"data"];
if (dic.count) {
weakSelf.maxProcess = [[dic valueForKey:@"max"] integerValue];
weakSelf.coinsProcess = [[dic valueForKey:@"coins"] integerValue];
weakSelf.showA = [[dic valueForKey:@"show"] integerValue];
[weakSelf updateUI];
}
} failure:^(NSError * _Nonnull error) {
// [MBProgressHUD hideHUD];
}];
NSMutableDictionary * dicStat = [[NSMutableDictionary alloc]init];
[dicStat setObject:@"welfare_center_task_list" forKey:@"slotName"];
// 请求列表
[[CGNetworkTools shared] getWithAction:taskListWithStat parameters:dicStat success:^(id _Nonnull response) {
// [MBProgressHUD hideHUD];
if (response) {
NSArray * array = response[@"result"][@"data"][@"userTask"];
if (array) {
weakSelf.dataArray = [WelfareCenterData mj_objectArrayWithKeyValuesArray:array];
[weakSelf.tableView reloadData];
}
}
} failure:^(NSError * _Nonnull error) {
// [MBProgressHUD hideHUD];
}];
}
//MARK: 更新UI
- (void)updateUI{
for (UIImageView *imageView in self.diamondimages) {
if (imageView.tag <= 1000 + self.coinsProcess) {
[imageView setImage:[UIImage imageNamed:@"FinishedDiamonds"]];
} else {
[imageView setImage:[UIImage imageNamed:@"UnfinishedDiamond"]];
}
if (imageView.tag <= 1000 + MAXProcess) { //[1,10]
imageView.hidden = NO;
}else{
imageView.hidden = YES;
}
}
if (self.coinsProcess >= 6) {
[self.treasureBox setBackgroundImage:[UIImage imageNamed:@"OpenTreasureChest"] forState:UIControlStateNormal];
}else{
[self.treasureBox setBackgroundImage:[UIImage imageNamed:@"TreasureChestClose"] forState:UIControlStateNormal];
}
self.currentText.text = [NSString stringWithFormat:@"%ld",self.coinsProcess];
}
//MARK: 看广告
- (void)showAD:( WelfareCenterData * ) data{
self.currentData = data;
WEAKSELF;
[IOSADManager shareADManager].advertisingSpace = @"play_adVideo_end_welfareTask";
[[IOSADManager shareADManager] showADType:ADType_Video resultBlock:^(BOOL success) {
if (success) {
//2462
[[CGUserManager shared] addLocCollection:@"play_adVideo_end_welfareTask" value:@""];
if (weakSelf.currentData.sid.length > 0) {
[MBProgressHUD showLoading:@"loading"];
[[CGNetworkTools shared] postWithAction:welfareVideoReport parameters:@{@"sid": weakSelf.currentData.sid} success:^(id _Nonnull response) {
[MBProgressHUD hideHUD];
if ([[response objectForKey:@"status"] integerValue] == 200) {
//
NSLog(@"welfare_video_report success");
weakSelf.currentData.status = 2;
[weakSelf.tableView reloadData];
}
} failure:^(NSError * _Nonnull error) {
[MBProgressHUD hideHUD];
}];
}
} else {
// [MBProgressHUD showError:@"抱歉, 请重试"];
}
}];
}
//MARK: 获取奖励
- (void)receiveThePrize:(WelfareCenterData *) data{
self.currentData = data;
WEAKSELF;
[MBProgressHUD showLoading:@"loading"];
[[CGNetworkTools shared] postWithAction:complete_task parameters:@{@"id": weakSelf.currentData.sid} success:^(id _Nonnull response) {
[MBProgressHUD hideHUD];
if ([[response objectForKey:@"status"] integerValue] == 200) {
NSLog(@"welfare_video_report success");
weakSelf.currentData.status = 1;
[weakSelf.tableView reloadData];
}
} failure:^(NSError * _Nonnull error) {
[MBProgressHUD hideHUD];
}];
}
//MARK: 打开宝箱
- (IBAction)treasureBoxClick:(UIButton *)sender {
[[CGNetworkTools shared] postWithAction:welfare_task_box parameters:@{} success:^(id _Nonnull response) {
if (response) {
}
} failure:^(NSError * _Nonnull error) {
}];
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17125"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="WelfareCenterVC">
<connections>
<outlet property="currentText" destination="3ar-1p-GGl" id="FTa-d6-TLA"/>
<outlet property="imageLine" destination="eOX-rq-v0m" id="nQi-CD-Le5"/>
<outlet property="stackProcess" destination="S8p-gf-4z7" id="cFK-Aa-zoG"/>
<outlet property="tableView" destination="cLQ-3z-U9W" id="lrz-YI-VgV"/>
<outlet property="treasureBox" destination="PvX-s8-Pxm" id="CFC-be-Iwr"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outletCollection property="diamondimages" destination="kBi-Eb-3V8" id="275-Zc-bCZ"/>
<outletCollection property="diamondimages" destination="1z4-3O-sod" id="QnW-xd-fu7"/>
<outletCollection property="diamondimages" destination="bNv-QM-tgZ" id="79A-7j-6mc"/>
<outletCollection property="diamondimages" destination="Rvp-NU-SUN" id="ewG-56-kBw"/>
<outletCollection property="diamondimages" destination="hBp-he-bnq" id="kcd-7r-v3k"/>
<outletCollection property="diamondimages" destination="Jj2-BA-D4N" id="vgd-VO-AIQ"/>
<outletCollection property="diamondimages" destination="bwc-i7-rSf" id="Dyt-A2-bGp"/>
<outletCollection property="diamondimages" destination="H5W-Ga-MKH" id="Wtz-4Z-QhQ"/>
<outletCollection property="diamondimages" destination="Kx6-a8-hM2" id="7fD-hw-ReK"/>
<outletCollection property="diamondimages" destination="IZK-xN-ed9" id="GvK-gQ-bhe"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="BottomOfTheBackground" translatesAutoresizingMaskIntoConstraints="NO" id="Hz0-KR-A7M">
<rect key="frame" x="0.0" y="539" width="375" height="128"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="D2D-AV-eup">
<rect key="frame" x="0.0" y="0.0" width="375" height="85"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="集齐6颗钻石可获得宝箱奖励" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CdA-K9-h8P">
<rect key="frame" x="11" y="10" width="214.5" height="24"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="eOX-rq-v0m">
<rect key="frame" x="15" y="54.5" width="300" height="1"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="0Br-kg-Mkw"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="PvX-s8-Pxm">
<rect key="frame" x="315" y="35" width="50" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="AqL-sD-MtI"/>
</constraints>
<state key="normal" image="TreasureChestClose"/>
<connections>
<action selector="treasureBoxClick:" destination="-1" eventType="touchUpInside" id="g16-Zg-dOx"/>
</connections>
</button>
<stackView opaque="NO" contentMode="scaleToFill" distribution="equalSpacing" alignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="S8p-gf-4z7">
<rect key="frame" x="15" y="35" width="280" height="40"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1001" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="1z4-3O-sod">
<rect key="frame" x="0.0" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1002" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="bNv-QM-tgZ">
<rect key="frame" x="28" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1003" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="Rvp-NU-SUN">
<rect key="frame" x="56" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1004" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="kBi-Eb-3V8">
<rect key="frame" x="84.5" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1005" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="hBp-he-bnq">
<rect key="frame" x="112.5" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1006" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="Jj2-BA-D4N">
<rect key="frame" x="140.5" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1007" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="bwc-i7-rSf">
<rect key="frame" x="168.5" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1008" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="H5W-Ga-MKH">
<rect key="frame" x="197" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1009" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="Kx6-a8-hM2">
<rect key="frame" x="225" y="6.5" width="27" height="27"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" tag="1010" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="UnfinishedDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="IZK-xN-ed9">
<rect key="frame" x="253" y="6.5" width="27" height="27"/>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="FH1-a1-QJK"/>
</constraints>
</stackView>
<stackView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RPC-kr-Miv">
<rect key="frame" x="316" y="6.5" width="48" height="20.5"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="MissionDiamond" translatesAutoresizingMaskIntoConstraints="NO" id="siR-JQ-5Ee">
<rect key="frame" x="0.0" y="0.0" width="17" height="20.5"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=":" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sAl-Iv-fIQ">
<rect key="frame" x="17" y="0.0" width="5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="3" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3ar-1p-GGl">
<rect key="frame" x="22" y="0.0" width="10.5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="1" green="0.35294117650000001" blue="0.2666666667" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="/6" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="8j4-7J-gwL">
<rect key="frame" x="32.5" y="0.0" width="15.5" height="20.5"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</stackView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="PvX-s8-Pxm" firstAttribute="leading" secondItem="S8p-gf-4z7" secondAttribute="trailing" constant="20" id="89X-7k-ijZ"/>
<constraint firstItem="eOX-rq-v0m" firstAttribute="centerY" secondItem="S8p-gf-4z7" secondAttribute="centerY" id="FCp-gm-wYP"/>
<constraint firstItem="S8p-gf-4z7" firstAttribute="leading" secondItem="D2D-AV-eup" secondAttribute="leading" constant="15" id="Hob-ud-Gi2"/>
<constraint firstItem="S8p-gf-4z7" firstAttribute="centerY" secondItem="PvX-s8-Pxm" secondAttribute="centerY" id="J7o-Gj-r1w"/>
<constraint firstItem="PvX-s8-Pxm" firstAttribute="leading" secondItem="eOX-rq-v0m" secondAttribute="trailing" id="L1t-z1-uiU"/>
<constraint firstItem="PvX-s8-Pxm" firstAttribute="top" secondItem="RPC-kr-Miv" secondAttribute="bottom" constant="8" id="Q76-5G-gA0"/>
<constraint firstItem="RPC-kr-Miv" firstAttribute="centerX" secondItem="PvX-s8-Pxm" secondAttribute="centerX" id="ZnZ-nM-S50"/>
<constraint firstItem="CdA-K9-h8P" firstAttribute="top" secondItem="D2D-AV-eup" secondAttribute="top" constant="10" id="i4a-bl-9sN"/>
<constraint firstAttribute="bottom" secondItem="PvX-s8-Pxm" secondAttribute="bottom" constant="10" id="qm8-6b-fpD"/>
<constraint firstAttribute="height" constant="85" id="s0L-kX-UPf"/>
<constraint firstItem="eOX-rq-v0m" firstAttribute="leading" secondItem="S8p-gf-4z7" secondAttribute="leading" id="skH-3l-nIp"/>
<constraint firstItem="CdA-K9-h8P" firstAttribute="leading" secondItem="D2D-AV-eup" secondAttribute="leading" constant="11" id="w1v-b0-Oo6"/>
<constraint firstAttribute="trailing" secondItem="PvX-s8-Pxm" secondAttribute="trailing" constant="10" id="wDk-D9-G2s"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="cLQ-3z-U9W">
<rect key="frame" x="0.0" y="85" width="375" height="582"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="dataSource" destination="-1" id="YN3-rf-K4G"/>
<outlet property="delegate" destination="-1" id="ifg-sF-Ftu"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="cLQ-3z-U9W" secondAttribute="trailing" id="028-KM-XZz"/>
<constraint firstItem="cLQ-3z-U9W" firstAttribute="top" secondItem="D2D-AV-eup" secondAttribute="bottom" id="5wn-Zp-bTJ"/>
<constraint firstItem="cLQ-3z-U9W" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="7pf-5Q-Gok"/>
<constraint firstAttribute="bottom" secondItem="cLQ-3z-U9W" secondAttribute="bottom" id="8VV-5W-bB8"/>
<constraint firstItem="Hz0-KR-A7M" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="RcL-5a-amf"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="Hz0-KR-A7M" secondAttribute="trailing" id="VHd-ye-32S"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="bottom" secondItem="Hz0-KR-A7M" secondAttribute="bottom" id="dhz-m5-vd3"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="D2D-AV-eup" secondAttribute="trailing" id="dvA-wT-3C2"/>
<constraint firstItem="D2D-AV-eup" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="jnl-OE-fh8"/>
<constraint firstItem="D2D-AV-eup" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" id="xa4-d3-lOH"/>
</constraints>
<point key="canvasLocation" x="-143.19999999999999" y="62.518740629685162"/>
</view>
</objects>
<resources>
<image name="BottomOfTheBackground" width="375" height="128"/>
<image name="MissionDiamond" width="17" height="15"/>
<image name="TreasureChestClose" width="48" height="40"/>
<image name="UnfinishedDiamond" width="27" height="27"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// WelfareCenterData.h
// GYDemo
// 福利中心任务列表
// Created by zhangshuai on 2020/11/19.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface WelfareCenterData : NSObject
@property (nonatomic, copy) NSString * adType; // adType = 1;
@property (nonatomic, copy) NSString * alertRenderType;
@property (nonatomic, copy) NSString * awardCoins;
@property (nonatomic, copy) NSString * awardDesc;
@property (nonatomic, copy) NSString * awardLimit;
@property (nonatomic, copy) NSString * awardParticle;
@property (nonatomic, copy) NSString * awardRenderType;
@property (nonatomic, copy) NSString * awardType;
@property (nonatomic, retain) NSArray * big_images;
@property (nonatomic, copy) NSString * browserCore;
@property (nonatomic, copy) NSString * buttonText; // buttonText = "去观看";
@property (nonatomic, copy) NSString * coins;
@property (nonatomic, copy) NSString * cornerText;
@property (nonatomic, copy) NSString * cpmPrice;
@property (nonatomic, copy) NSString * current_nums;
@property (nonatomic, copy) NSString * desc; // desc = "总可得1金币";
@property (nonatomic, copy) NSString * description_Content; // description = "看完视频即可得金币";
@property (nonatomic, copy) NSString * explorerType;
@property (nonatomic, copy) NSString * ext;
@property (nonatomic, copy) NSString * ifTop;
@property (nonatomic, copy) NSString * image_render_type;
@property (nonatomic, copy) NSString * images;
@property (nonatomic, retain) NSArray * imp_tracking;
@property (nonatomic, retain) NSArray * clk_tracking;
@property (nonatomic, copy) NSString * incentive_level;
@property (nonatomic, copy) NSString * label; // label = "广告";
@property (nonatomic, copy) NSString * opentype;
@property (nonatomic, copy) NSString * pk;
@property (nonatomic, copy) NSString * redPacketFlag;
@property (nonatomic, copy) NSString * reqId;
@property (nonatomic, copy) NSString * sdkShowTimes;
@property (nonatomic, copy) NSString * shareType;
@property (nonatomic, copy) NSString * sid; // 应该是任务ID
@property (nonatomic, copy) NSString * slotName;
@property (nonatomic, copy) NSString * slot_ad_type;
@property (nonatomic, copy) NSString * slot_id;
@property (nonatomic, assign) NSInteger status; //0 : 去完成 1: 明日再来 2: 立即领取
@property (nonatomic, copy) NSString * timeTrigger;
@property (nonatomic, copy) NSString * title; // title = "领今日视频金币";
@property (nonatomic, copy) NSString * type;
@end
NS_ASSUME_NONNULL_END
//
// WelfareCenterData.m
// GYDemo
// 福利中心任务列表
// Created by zhangshuai on 2020/11/19.
//
#import "WelfareCenterData.h"
@implementation WelfareCenterData
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
return @{
@"description_Content" : @"description"//前边的是你想用的key,后边的是返回的key
};
}
@end
......@@ -41,7 +41,7 @@ target 'GYDemo' do
# 3. 腾讯广告|优量汇(广点通) #"guangdiantong" //广点通 --
pod 'GDTMobSDK'
# 4.AD SDK - chuanshanjia" //穿山甲 --
# 4.AD SDK - chuanshanjia" //穿山甲 --头条
pod 'Bytedance-UnionAD'
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment