重庆迈尖科技有限公司
2018-08-16 b9e019ba39b6b519aa820382ca854a82834f486f
Merge branch 'master' of ssh://193.112.35.168:29418/fanliquan

# Conflicts:
# MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
# MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
31个文件已添加
13个文件已修改
3640 ■■■■ 已修改文件
MIduo.xcodeproj/project.pbxproj 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/Contents.json 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/bg.imageset/Contents.json 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/bg.imageset/bg.png 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/button.imageset/Contents.json 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/button.imageset/button@2x.png 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/button.imageset/button@3x.png 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/邀请有奖_备选_02.imageset/Contents.json 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/邀请有奖_备选_02.imageset/邀请有奖_备选_02.png 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/邀请有奖_备选_03.imageset/Contents.json 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/邀请有奖_备选_03.imageset/邀请有奖_备选_03.png 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/邀请有奖_备选_04.imageset/Contents.json 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/Assets.xcassets/新邀请有奖/邀请有奖_备选_04.imageset/邀请有奖_备选_04.png 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/Common.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/DataNet/ALNetWorking.h 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/DataNet/ALNetWorking.m 72 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/DataNet/JYNetWorking.h 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/EasyJSWebView-master/MyJSInterface.m 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/SGEasyButton.h 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/UIButton+SGCountdown.h 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/UIButton+SGCountdown.m 116 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/UIButton+SGEvent.h 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/UIButton+SGEvent.m 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/UIButton+SGImagePosition.h 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/数据/lib/SGEasyButton/UIButton+SGImagePosition.m 121 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/动态/DynamicViewController.m 255 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/我的/balance/BalanceViewController.m 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/网页视图/OrderViewController.m 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/网页视图/商品详情/ButtomCarView.m 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteHederFourView.h 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteHederFourView.m 79 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteOneCell.h 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteOneCell.m 461 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteThreeCell.h 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteThreeCell.m 187 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteTwoCell.h 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InviteTwoCell.m 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InvitewFourCell.h 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/InviteViewCell/InvitewFourCell.m 67 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/邀请/MainInviteViewController.m 1583 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/首页/NEWHomeViewController.m 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/首页/recommendViewController.m 62 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcodeproj/project.pbxproj
@@ -596,6 +596,15 @@
        2D73332320C90D6800336CC8 /* WebP.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D73332220C90D6700336CC8 /* WebP.framework */; };
        2D8F4C5A2100672500198E06 /* SettingViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D8F4C592100672500198E06 /* SettingViewModel.m */; };
        2D8F4C5D2100891C00198E06 /* SJTipView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2D8F4C5C2100891C00198E06 /* SJTipView.m */; };
        2DB8DAA121241CAE0034CD7C /* InviteOneCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DB8DAA021241CAE0034CD7C /* InviteOneCell.m */; };
        2DF1FA4121250D81007043AF /* UIButton+SGCountdown.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA3C21250D81007043AF /* UIButton+SGCountdown.m */; };
        2DF1FA4221250D81007043AF /* UIButton+SGEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA3E21250D81007043AF /* UIButton+SGEvent.m */; };
        2DF1FA4321250D81007043AF /* UIButton+SGImagePosition.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA4021250D81007043AF /* UIButton+SGImagePosition.m */; };
        2DF1FA4621252318007043AF /* InviteTwoCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA4521252318007043AF /* InviteTwoCell.m */; };
        2DF1FA4921252614007043AF /* InviteThreeCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA4821252614007043AF /* InviteThreeCell.m */; };
        2DF1FA4C21255043007043AF /* InviteHederFourView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA4B21255043007043AF /* InviteHederFourView.m */; };
        2DF1FA4F212553E7007043AF /* InvitewFourCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF1FA4E212553E7007043AF /* InvitewFourCell.m */; };
        2DF9C28F2123E40200BA5882 /* ALNetWorking.m in Sources */ = {isa = PBXBuildFile; fileRef = 2DF9C28E2123E40200BA5882 /* ALNetWorking.m */; };
        AD52310E1F1B6A24007FCFA1 /* OrderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AD52310D1F1B6A24007FCFA1 /* OrderViewController.m */; };
/* End PBXBuildFile section */
@@ -1696,6 +1705,25 @@
        2D8F4C5B2100891B00198E06 /* SJTipView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SJTipView.h; sourceTree = "<group>"; };
        2D8F4C5C2100891C00198E06 /* SJTipView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SJTipView.m; sourceTree = "<group>"; };
        2D9767D720C7D7FE006EE24F /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
        2DB8DA9F21241CAE0034CD7C /* InviteOneCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InviteOneCell.h; sourceTree = "<group>"; };
        2DB8DAA021241CAE0034CD7C /* InviteOneCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InviteOneCell.m; sourceTree = "<group>"; };
        2DF1FA3A21250D81007043AF /* SGEasyButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SGEasyButton.h; sourceTree = "<group>"; };
        2DF1FA3B21250D81007043AF /* UIButton+SGCountdown.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIButton+SGCountdown.h"; sourceTree = "<group>"; };
        2DF1FA3C21250D81007043AF /* UIButton+SGCountdown.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIButton+SGCountdown.m"; sourceTree = "<group>"; };
        2DF1FA3D21250D81007043AF /* UIButton+SGEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIButton+SGEvent.h"; sourceTree = "<group>"; };
        2DF1FA3E21250D81007043AF /* UIButton+SGEvent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIButton+SGEvent.m"; sourceTree = "<group>"; };
        2DF1FA3F21250D81007043AF /* UIButton+SGImagePosition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIButton+SGImagePosition.h"; sourceTree = "<group>"; };
        2DF1FA4021250D81007043AF /* UIButton+SGImagePosition.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIButton+SGImagePosition.m"; sourceTree = "<group>"; };
        2DF1FA4421252318007043AF /* InviteTwoCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InviteTwoCell.h; sourceTree = "<group>"; };
        2DF1FA4521252318007043AF /* InviteTwoCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InviteTwoCell.m; sourceTree = "<group>"; };
        2DF1FA4721252614007043AF /* InviteThreeCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InviteThreeCell.h; sourceTree = "<group>"; };
        2DF1FA4821252614007043AF /* InviteThreeCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InviteThreeCell.m; sourceTree = "<group>"; };
        2DF1FA4A21255043007043AF /* InviteHederFourView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InviteHederFourView.h; sourceTree = "<group>"; };
        2DF1FA4B21255043007043AF /* InviteHederFourView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InviteHederFourView.m; sourceTree = "<group>"; };
        2DF1FA4D212553E7007043AF /* InvitewFourCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = InvitewFourCell.h; sourceTree = "<group>"; };
        2DF1FA4E212553E7007043AF /* InvitewFourCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InvitewFourCell.m; sourceTree = "<group>"; };
        2DF9C28D2123E40200BA5882 /* ALNetWorking.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ALNetWorking.h; sourceTree = "<group>"; };
        2DF9C28E2123E40200BA5882 /* ALNetWorking.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ALNetWorking.m; sourceTree = "<group>"; };
        A10E40577F379E83D85926C6 /* Pods_MIduo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MIduo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
        AB238CE26A4E87752975FA82 /* Pods-MIduo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MIduo.release.xcconfig"; path = "Pods/Target Support Files/Pods-MIduo/Pods-MIduo.release.xcconfig"; sourceTree = "<group>"; };
        AD52310C1F1B6A24007FCFA1 /* OrderViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderViewController.h; sourceTree = "<group>"; };
@@ -2918,6 +2946,7 @@
        1845E052207A019C00EB1571 /* é‚€è¯· */ = {
            isa = PBXGroup;
            children = (
                2DB8DA9E21241C660034CD7C /* InviteViewCell */,
                1845E053207A01D100EB1571 /* MainInviteViewController.h */,
                1845E054207A01D100EB1571 /* MainInviteViewController.m */,
                1845E055207A01D100EB1571 /* MainInviteViewController.xib */,
@@ -3495,6 +3524,8 @@
                18AC53821E5A9840006D1FDF /* YTHNetInterface.m */,
                18603038206A1F4E0016DA6F /* JYNetWorking.h */,
                18603037206A1F4E0016DA6F /* JYNetWorking.m */,
                2DF9C28D2123E40200BA5882 /* ALNetWorking.h */,
                2DF9C28E2123E40200BA5882 /* ALNetWorking.m */,
            );
            path = DataNet;
            sourceTree = "<group>";
@@ -3502,6 +3533,7 @@
        18AC538B1E5A9876006D1FDF /* lib */ = {
            isa = PBXGroup;
            children = (
                2DF1FA3921250D81007043AF /* SGEasyButton */,
                1845C239209C562C009C639B /* LBXScan */,
                2D47AAEE20E21186008BB5C9 /* SDK */,
                18332E3F207E0815002C6626 /* EasyJSWebView-master */,
@@ -3950,6 +3982,37 @@
            path = Cell;
            sourceTree = "<group>";
        };
        2DB8DA9E21241C660034CD7C /* InviteViewCell */ = {
            isa = PBXGroup;
            children = (
                2DB8DA9F21241CAE0034CD7C /* InviteOneCell.h */,
                2DB8DAA021241CAE0034CD7C /* InviteOneCell.m */,
                2DF1FA4421252318007043AF /* InviteTwoCell.h */,
                2DF1FA4521252318007043AF /* InviteTwoCell.m */,
                2DF1FA4721252614007043AF /* InviteThreeCell.h */,
                2DF1FA4821252614007043AF /* InviteThreeCell.m */,
                2DF1FA4A21255043007043AF /* InviteHederFourView.h */,
                2DF1FA4B21255043007043AF /* InviteHederFourView.m */,
                2DF1FA4D212553E7007043AF /* InvitewFourCell.h */,
                2DF1FA4E212553E7007043AF /* InvitewFourCell.m */,
            );
            path = InviteViewCell;
            sourceTree = "<group>";
        };
        2DF1FA3921250D81007043AF /* SGEasyButton */ = {
            isa = PBXGroup;
            children = (
                2DF1FA3A21250D81007043AF /* SGEasyButton.h */,
                2DF1FA3B21250D81007043AF /* UIButton+SGCountdown.h */,
                2DF1FA3C21250D81007043AF /* UIButton+SGCountdown.m */,
                2DF1FA3D21250D81007043AF /* UIButton+SGEvent.h */,
                2DF1FA3E21250D81007043AF /* UIButton+SGEvent.m */,
                2DF1FA3F21250D81007043AF /* UIButton+SGImagePosition.h */,
                2DF1FA4021250D81007043AF /* UIButton+SGImagePosition.m */,
            );
            path = SGEasyButton;
            sourceTree = "<group>";
        };
        3EB2FCBC06FCFF59022C5ECD /* Frameworks */ = {
            isa = PBXGroup;
            children = (
@@ -4309,6 +4372,7 @@
                180B16DE1F009F320043B74D /* FSActionSheetCell.m in Sources */,
                18360AF2206C915800F9EAB1 /* BalaDetailTableViewCell.m in Sources */,
                1897D9B81E5FDB70003DF6FE /* SearchCollectionViewCell.m in Sources */,
                2DF1FA4921252614007043AF /* InviteThreeCell.m in Sources */,
                1845C4C6209C562E009C639B /* ZXRSSExpandedPair.m in Sources */,
                1894E7F320B6C73F00C28F33 /* UITableView+XHWebImageAutoSize.m in Sources */,
                1845C474209C562D009C639B /* ZXImage.m in Sources */,
@@ -4342,6 +4406,7 @@
                1845C489209C562D009C639B /* ZXPerspectiveTransform.m in Sources */,
                1892034220BE51C6008C1045 /* LBXScanVideoZoomView.m in Sources */,
                1845C4D8209C562E009C639B /* ZXEAN8Reader.m in Sources */,
                2DF1FA4321250D81007043AF /* UIButton+SGImagePosition.m in Sources */,
                1845C503209C562E009C639B /* ZXQRCodeDataBlock.m in Sources */,
                1845C463209C562D009C639B /* ZXSMSParsedResult.m in Sources */,
                180B16E41F009F320043B74D /* TAAnimatedDotView.m in Sources */,
@@ -4421,6 +4486,7 @@
                1845C4ED209C562E009C639B /* ZXPDF417BarcodeValue.m in Sources */,
                1845C48D209C562D009C639B /* ZXByteMatrix.m in Sources */,
                18826A921F3C4C9C00A8E7B5 /* XWCoolAnimator.m in Sources */,
                2DF1FA4C21255043007043AF /* InviteHederFourView.m in Sources */,
                181ECE211EF369BF00472224 /* UIView+ZJFrame.m in Sources */,
                1845C51D209C562E009C639B /* ZXMultiFormatWriter.m in Sources */,
                1845C4CA209C562E009C639B /* ZXRSS14Reader.m in Sources */,
@@ -4489,10 +4555,12 @@
                1845C497209C562D009C639B /* ZXRGBLuminanceSource.m in Sources */,
                18D430631E7A3AD90007CCB5 /* SideSlipPriceTableViewCell.m in Sources */,
                1845C486209C562D009C639B /* ZXGridSampler.m in Sources */,
                2DF1FA4F212553E7007043AF /* InvitewFourCell.m in Sources */,
                1845C515209C562E009C639B /* ZXQRCodeMaskUtil.m in Sources */,
                1845C4EB209C562E009C639B /* ZXPDF417ECErrorCorrection.m in Sources */,
                1845C46F209C562D009C639B /* ZXVINResultParser.m in Sources */,
                18E5ADFA1E5EC8B3009F85E0 /* SettingViewController.m in Sources */,
                2DF1FA4221250D81007043AF /* UIButton+SGEvent.m in Sources */,
                AD52310E1F1B6A24007FCFA1 /* OrderViewController.m in Sources */,
                2D37FC6820C14C2300E11051 /* SJLoginTaoBao.m in Sources */,
                1845C477209C562D009C639B /* ZXWhiteRectangleDetector.m in Sources */,
@@ -4525,6 +4593,7 @@
                1845C4A8209C562E009C639B /* ZXDataMatrixTextEncoder.m in Sources */,
                181C0F02207B6802000F5E94 /* YLImageView.m in Sources */,
                1896F26D1FD0ED96009D6EEF /* RecommendCouponViewController.m in Sources */,
                2DB8DAA121241CAE0034CD7C /* InviteOneCell.m in Sources */,
                18D9541A20AE705C005D5D02 /* FeignGoodsDetaiViewController.m in Sources */,
                1845C4A1209C562E009C639B /* ZXDataMatrixDefaultPlacement.m in Sources */,
                1845C4B2209C562E009C639B /* ZXAbstractExpandedDecoder.m in Sources */,
@@ -4572,6 +4641,7 @@
                1845C4E6209C562E009C639B /* ZXUPCEANReader.m in Sources */,
                1845C487209C562D009C639B /* ZXHybridBinarizer.m in Sources */,
                1845C494209C562D009C639B /* ZXPlanarYUVLuminanceSource.m in Sources */,
                2DF1FA4621252318007043AF /* InviteTwoCell.m in Sources */,
                1845C4FD209C562E009C639B /* ZXPDF417HighLevelEncoder.m in Sources */,
                1845C4BC209C562E009C639B /* ZXAnyAIDecoder.m in Sources */,
                1845C4A4209C562E009C639B /* ZXDataMatrixErrorCorrection.m in Sources */,
@@ -4606,6 +4676,7 @@
                18283DC91FD7C34400532966 /* NSObject+SXRuntime.m in Sources */,
                1845C506209C562E009C639B /* ZXQRCodeDecoder.m in Sources */,
                18841EB620B544AF0070E182 /* NoShopTableViewCell.m in Sources */,
                2DF9C28F2123E40200BA5882 /* ALNetWorking.m in Sources */,
                2D37FC4920C0F75000E11051 /* ModifyAccountViewController.m in Sources */,
                181ECE241EF369BF00472224 /* ZJContentView.m in Sources */,
                18AC53AB1E5ACE45006D1FDF /* HeaderCollectionReusableView.m in Sources */,
@@ -4617,6 +4688,7 @@
                18DF4E381FE90E2B00144A5F /* SectionTopicCollectionViewCell2.m in Sources */,
                1892034120BE51C6008C1045 /* LBXScanResult.m in Sources */,
                1845C468209C562D009C639B /* ZXTextParsedResult.m in Sources */,
                2DF1FA4121250D81007043AF /* UIButton+SGCountdown.m in Sources */,
                1845C4A5209C562E009C639B /* ZXDataMatrixHighLevelEncoder.m in Sources */,
                18D430431E7A2D1F0007CCB5 /* SideSlipCommonTableViewCell.m in Sources */,
                18FB09AA206B904300006656 /* BalanceViewController.m in Sources */,
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
@@ -6,7 +6,7 @@
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "No"
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            scope = "0"
@@ -19,13 +19,13 @@
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x4f18;&#x60e0;&#x5238;/classificationViewController.m"
            timestampString = "555908948.249001"
            filePath = "MIduo/&#x754c;&#x9762;/&#x9080;&#x8bf7;/&#x5546;&#x54c1;&#x5206;&#x4eab;/ShonpingShareViewController.m"
            timestampString = "555988233.959499"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "275"
            endingLineNumber = "275"
            landmarkName = "-childViewController:forIndex:"
            startingLineNumber = "51"
            endingLineNumber = "51"
            landmarkName = "-back:"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
@@ -35,13 +35,29 @@
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x52a8;&#x6001;/DynamicViewController.m"
            timestampString = "555993729.580026"
            filePath = "MIduo/&#x754c;&#x9762;/&#x7f51;&#x9875;&#x89c6;&#x56fe;/&#x5546;&#x54c1;&#x8be6;&#x60c5;/ButtomCarView.m"
            timestampString = "556013765.121924"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "229"
            endingLineNumber = "229"
            landmarkName = "-shareGoods:"
            startingLineNumber = "41"
            endingLineNumber = "41"
            landmarkName = "-initWithFrame:"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
      <BreakpointProxy
         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
         <BreakpointContent
            shouldBeEnabled = "Yes"
            ignoreCount = "0"
            continueAfterRunningActions = "No"
            filePath = "MIduo/&#x754c;&#x9762;/&#x7f51;&#x9875;&#x89c6;&#x56fe;/&#x5546;&#x54c1;&#x8be6;&#x60c5;/ButtomCarView.m"
            timestampString = "556013765.121978"
            startingColumnNumber = "9223372036854775807"
            endingColumnNumber = "9223372036854775807"
            startingLineNumber = "38"
            endingLineNumber = "38"
            landmarkName = "-initWithFrame:"
            landmarkType = "7">
         </BreakpointContent>
      </BreakpointProxy>
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/Contents.json
New file
@@ -0,0 +1,6 @@
{
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/bg.imageset/Contents.json
New file
@@ -0,0 +1,21 @@
{
  "images" : [
    {
      "idiom" : "universal",
      "filename" : "bg.png",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/bg.imageset/bg.png
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/button.imageset/Contents.json
New file
@@ -0,0 +1,22 @@
{
  "images" : [
    {
      "idiom" : "universal",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "filename" : "button@2x.png",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "filename" : "button@3x.png",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/button.imageset/button@2x.png
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/button.imageset/button@3x.png
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/ÑûÇëÓн±_±¸Ñ¡_02.imageset/Contents.json
New file
@@ -0,0 +1,21 @@
{
  "images" : [
    {
      "idiom" : "universal",
      "filename" : "邀请有奖_备选_02.png",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/ÑûÇëÓн±_±¸Ñ¡_02.imageset/ÑûÇëÓн±_±¸Ñ¡_02.png
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/ÑûÇëÓн±_±¸Ñ¡_03.imageset/Contents.json
New file
@@ -0,0 +1,21 @@
{
  "images" : [
    {
      "idiom" : "universal",
      "filename" : "邀请有奖_备选_03.png",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/ÑûÇëÓн±_±¸Ñ¡_03.imageset/ÑûÇëÓн±_±¸Ñ¡_03.png
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/ÑûÇëÓн±_±¸Ñ¡_04.imageset/Contents.json
New file
@@ -0,0 +1,21 @@
{
  "images" : [
    {
      "idiom" : "universal",
      "filename" : "邀请有奖_备选_04.png",
      "scale" : "1x"
    },
    {
      "idiom" : "universal",
      "scale" : "2x"
    },
    {
      "idiom" : "universal",
      "scale" : "3x"
    }
  ],
  "info" : {
    "version" : 1,
    "author" : "xcode"
  }
}
MIduo/Assets.xcassets/ÐÂÑûÇëÓн±/ÑûÇëÓн±_±¸Ñ¡_04.imageset/ÑûÇëÓн±_±¸Ñ¡_04.png
MIduo/Êý¾Ý/Common.h
@@ -68,6 +68,7 @@
#import "CustomProgressHUD.h"
#import "ZYSideSlipFilterManger.h"
#import "Toast.h"
#import "SGEasyButton.h"
//设置里面的web网页链接
#define changjianwenti [NSString stringWithFormat:@"http://video.yeshitv.com:8089/BuWan/api_question_ios.jsp?package=%@",[[NSBundle mainBundle] bundleIdentifier]]//常见问题
MIduo/Êý¾Ý/DataNet/ALNetWorking.h
New file
@@ -0,0 +1,22 @@
//
//  ALNetWorking.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/15.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ALNetWorking : NSObject
+ (ALNetWorking *)startInterface;
- (void)cancelAll;
- (void)Post:(NSString *)url
       param:(NSDictionary *)param
     success:(NetBlock)successBlock
        fail:(ErrorBlock)errorBlock;
@end
MIduo/Êý¾Ý/DataNet/ALNetWorking.m
New file
@@ -0,0 +1,72 @@
//
//  ALNetWorking.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/15.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "ALNetWorking.h"
static ALNetWorking * aLNetWorking = nil;
static AFHTTPSessionManager *managers;
@implementation ALNetWorking
//YTHNetInterface的单例方法
+ (ALNetWorking *)startInterface{
    static dispatch_once_t token;
    dispatch_once(&token, ^{
        aLNetWorking = [[ALNetWorking alloc] init];
        managers = [AFHTTPSessionManager manager];
    });
    return  aLNetWorking ;
}
#pragma mark ä¸­æ–­æ‰€æœ‰è¯·æ±‚
- (void)cancelAll{
    if ([managers.tasks count] > 0) {
        // å–消网络请求
        [managers.tasks makeObjectsPerformSelector:@selector(cancel)];
    }
    [managers.operationQueue cancelAllOperations];
}
- (void)Post:(NSString *)url param:(NSDictionary *)param success:(NetBlock)successBlock fail:(ErrorBlock)errorBlock
{
    url= [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
    // AFSecurityPolicy *securityPolicy = [[AFSecurityPolicy alloc] init];
    // [securityPolicy setAllowInvalidCertificates:YES];
    // [manager setSecurityPolicy:securityPolicy];
    // è®¾ç½®è¶…æ—¶æ—¶é—´
    managers.requestSerializer.timeoutInterval = 15;
    managers.responseSerializer = [AFHTTPResponseSerializer serializer];
    managers.responseSerializer = [AFJSONResponseSerializer serializer];
    managers.responseSerializer.acceptableContentTypes = [NSSet setWithObject:@"text/plain"];
    NSMutableDictionary *dic = [FileSignature CommonDictionary:param];
    [managers POST:url parameters:dic progress:^(NSProgress * _Nonnull uploadProgress) {
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        if (successBlock) {
            successBlock(responseObject);
        }
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        if (errorBlock) {
            errorBlock(error);
        }
    }];
}
@end
MIduo/Êý¾Ý/DataNet/JYNetWorking.h
@@ -104,4 +104,6 @@
//解析json字符串
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+ (void)cancelAll;
@end
MIduo/Êý¾Ý/lib/EasyJSWebView-master/MyJSInterface.m
@@ -29,6 +29,6 @@
- (void)toast:(NSString *)string{
   
    ALToastBottom(string);
    ALToastCenter(string);
}
@end
MIduo/Êý¾Ý/lib/SGEasyButton/SGEasyButton.h
New file
@@ -0,0 +1,16 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic
//
//  SGEasyButton.h
//  Version 0.0.6
//
//  Created by kingsic on 2017/9/18.
//  Copyright Â© 2017å¹´ kingsic. All rights reserved.
//
#import "UIButton+SGEvent.h"
#import "UIButton+SGCountdown.h"
#import "UIButton+SGImagePosition.h"
MIduo/Êý¾Ý/lib/SGEasyButton/UIButton+SGCountdown.h
New file
@@ -0,0 +1,28 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic/SGEasyButton
//
//  UIButton+SGCountdown.h
//  SGEasyButtonExample
//
//  Created by kingsic on 2017/9/25.
//  Copyright Â© 2017å¹´ kingsic. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^SGCountdownCompletionBlock)(void);
@interface UIButton (SGCountdown)
/** å€’计时,s倒计 */
- (void)SG_countdownWithSec:(NSInteger)time;
/** å€’计时,秒字倒计 */
- (void)SG_countdownWithSecond:(NSInteger)second;
/** å€’计时,s倒计,带有回调 */
- (void)SG_countdownWithSec:(NSInteger)sec completion:(SGCountdownCompletionBlock)block;
/** å€’计时,秒字倒计,带有回调 */
- (void)SG_countdownWithSecond:(NSInteger)second completion:(SGCountdownCompletionBlock)block;
@end
MIduo/Êý¾Ý/lib/SGEasyButton/UIButton+SGCountdown.m
New file
@@ -0,0 +1,116 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic/SGEasyButton
//
//  UIButton+SGCountdown.m
//  SGEasyButtonExample
//
//  Created by kingsic on 2017/9/25.
//  Copyright Â© 2017å¹´ kingsic. All rights reserved.
//
#import "UIButton+SGCountdown.h"
@implementation UIButton (SGCountdown)
/** å€’计时,s倒计 */
- (void)SG_countdownWithSec:(NSInteger)sec {
    __block NSInteger tempSecond = sec;
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue);
    dispatch_source_set_timer(timer, dispatch_walltime(NULL, 0), 1.0 * NSEC_PER_SEC, 0);
    dispatch_source_set_event_handler(timer, ^{
        if (tempSecond <= 1) {
            dispatch_source_cancel(timer);
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = YES;
                [self setTitle:@"获取验证码" forState:UIControlStateNormal];
            });
        } else {
            tempSecond--;
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = NO;
                [self setTitle:[NSString stringWithFormat:@"%lds", (long)tempSecond] forState:UIControlStateNormal];
            });
        }
    });
    dispatch_resume(timer);
}
/** å€’计时,秒字倒计 */
- (void)SG_countdownWithSecond:(NSInteger)second {
    __block NSInteger tempSecond = second;
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue);
    dispatch_source_set_timer(timer, dispatch_walltime(NULL, 0), 1.0 * NSEC_PER_SEC, 0);
    dispatch_source_set_event_handler(timer, ^{
        if (tempSecond <= 1) {
            dispatch_source_cancel(timer);
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = YES;
                [self setTitle:@"获取验证码" forState:UIControlStateNormal];
            });
        } else {
            tempSecond--;
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = NO;
                [self setTitle:[NSString stringWithFormat:@"%ld秒", (long)tempSecond] forState:UIControlStateNormal];
            });
        }
    });
    dispatch_resume(timer);
}
/** å€’计时,s倒计,带有回调 */
- (void)SG_countdownWithSec:(NSInteger)sec completion:(SGCountdownCompletionBlock)block {
    __block NSInteger tempSecond = sec;
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue);
    dispatch_source_set_timer(timer, dispatch_walltime(NULL, 0), 1.0 * NSEC_PER_SEC, 0);
    dispatch_source_set_event_handler(timer, ^{
        if (tempSecond <= 1) {
            dispatch_source_cancel(timer);
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = YES;
                block();
            });
        } else {
            tempSecond--;
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = NO;
                [self setTitle:[NSString stringWithFormat:@"%lds", (long)tempSecond] forState:UIControlStateNormal];
            });
        }
    });
    dispatch_resume(timer);
}
/** å€’计时,秒字倒计,带有回调 */
- (void)SG_countdownWithSecond:(NSInteger)second completion:(SGCountdownCompletionBlock)block {
    __block NSInteger tempSecond = second;
    dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
    dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, queue);
    dispatch_source_set_timer(timer, dispatch_walltime(NULL, 0), 1.0 * NSEC_PER_SEC, 0);
    dispatch_source_set_event_handler(timer, ^{
        if (tempSecond <= 1) {
            dispatch_source_cancel(timer);
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = YES;
                block();
            });
        } else {
            tempSecond--;
            dispatch_async(dispatch_get_main_queue(), ^{
                self.enabled = NO;
                [self setTitle:[NSString stringWithFormat:@"%ld秒", (long)tempSecond] forState:UIControlStateNormal];
            });
        }
    });
    dispatch_resume(timer);
}
@end
MIduo/Êý¾Ý/lib/SGEasyButton/UIButton+SGEvent.h
New file
@@ -0,0 +1,20 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic/SGEasyButton
//
//  UIButton+SGEvent.h
//  UIButton+SGEvent
//
//  Created by kingsic on 16/10/9.
//  Copyright Â© 2016å¹´ kingsic. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIButton (SGEvent)
/** æŒ‰é’®äº‹ä»¶å“åº”é—´éš” */
@property (nonatomic, assign) NSTimeInterval SG_eventTimeInterval;
@end
MIduo/Êý¾Ý/lib/SGEasyButton/UIButton+SGEvent.m
New file
@@ -0,0 +1,76 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic/SGEasyButton
//
//  UIButton+SGEvent.m
//  UIButton+SGEvent
//
//  Created by kingsic on 16/10/9.
//  Copyright Â© 2016å¹´ kingsic. All rights reserved.
//
#import "UIButton+SGEvent.h"
#import <objc/runtime.h>
@interface UIButton ()
/// æ˜¯å¦å¿½ç•¥ç‚¹å‡»äº‹ä»¶ï¼›YES,忽略点击事件,NO,允许点击事件
@property (nonatomic, assign) BOOL isIgnoreEvent;
@end
@implementation UIButton (SGEvent)
static const CGFloat SGEventDefaultTimeInterval = 0;
- (BOOL)isIgnoreEvent {
    return [objc_getAssociatedObject(self, @"isIgnoreEvent") boolValue];
}
- (void)setIsIgnoreEvent:(BOOL)isIgnoreEvent {
    objc_setAssociatedObject(self, @"isIgnoreEvent", @(isIgnoreEvent), OBJC_ASSOCIATION_ASSIGN);
}
- (NSTimeInterval)SG_eventTimeInterval {
    return [objc_getAssociatedObject(self, @"SG_eventTimeInterval") doubleValue];
}
- (void)setSG_eventTimeInterval:(NSTimeInterval)SG_eventTimeInterval {
    objc_setAssociatedObject(self, @"SG_eventTimeInterval", @(SG_eventTimeInterval), OBJC_ASSOCIATION_ASSIGN);
}
+ (void)load {
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        SEL systemSEL = @selector(sendAction:to:forEvent:);
        SEL replaceSEL = @selector(SG_sendAction:to:forEvent:);
        Method systemMethod = class_getInstanceMethod(self, systemSEL);
        Method replaceMethod = class_getInstanceMethod(self, replaceSEL);
        BOOL isAdd = class_addMethod(self, systemSEL, method_getImplementation(replaceMethod), method_getTypeEncoding(replaceMethod));
        if (isAdd) {
            class_replaceMethod(self, replaceSEL, method_getImplementation(systemMethod), method_getTypeEncoding(systemMethod));
        } else {
            // æ·»åŠ å¤±è´¥ï¼Œè¯´æ˜Žæœ¬ç±»ä¸­æœ‰ replaceMethod çš„实现,此时只需要将 systemMethod å’Œ replaceMethod çš„IMP互换一下即可
            method_exchangeImplementations(systemMethod, replaceMethod);
        }
    });
}
- (void)SG_sendAction:(SEL)action to:(id)target forEvent:(UIEvent *)event {
    self.SG_eventTimeInterval = self.SG_eventTimeInterval == 0 ? SGEventDefaultTimeInterval : self.SG_eventTimeInterval;
    if (self.isIgnoreEvent){
        return;
    } else if (self.SG_eventTimeInterval >= 0) {
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(self.SG_eventTimeInterval * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            [self setIsIgnoreEvent:NO];
        });
    }
    self.isIgnoreEvent = YES;
    [self SG_sendAction:action to:target forEvent:event];
}
@end
MIduo/Êý¾Ý/lib/SGEasyButton/UIButton+SGImagePosition.h
New file
@@ -0,0 +1,45 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic/SGEasyButton
//
//  UIButton+SGImagePosition.h
//  UIButton+SGImagePosition
//
//  Created by kingsic on 2017/8/7.
//  Copyright Â© 2017å¹´ kingsic. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef enum : NSUInteger {
    /// å›¾ç‰‡åœ¨å·¦ï¼Œæ–‡å­—在右
    SGImagePositionStyleDefault,
    /// å›¾ç‰‡åœ¨å³ï¼Œæ–‡å­—在左
    SGImagePositionStyleRight,
    /// å›¾ç‰‡åœ¨ä¸Šï¼Œæ–‡å­—在下
    SGImagePositionStyleTop,
    /// å›¾ç‰‡åœ¨ä¸‹ï¼Œæ–‡å­—在上
    SGImagePositionStyleBottom,
} SGImagePositionStyle;
@interface UIButton (SGImagePosition)
/**
 *  è®¾ç½®å›¾ç‰‡ä¸Žæ–‡å­—样式
 *
 *  @param imagePositionStyle     å›¾ç‰‡ä½ç½®æ ·å¼
 *  @param spacing                å›¾ç‰‡ä¸Žæ–‡å­—之间的间距
 */
- (void)SG_imagePositionStyle:(SGImagePositionStyle)imagePositionStyle spacing:(CGFloat)spacing;
/**
 *  è®¾ç½®å›¾ç‰‡ä¸Žæ–‡å­—样式(推荐使用)
 *
 *  @param imagePositionStyle     å›¾ç‰‡ä½ç½®æ ·å¼
 *  @param spacing                å›¾ç‰‡ä¸Žæ–‡å­—之间的间距
 *  @param imagePositionBlock     åœ¨æ­¤ Block ä¸­è®¾ç½®æŒ‰é’®çš„图片、文字以及 contentHorizontalAlignment å±žæ€§
 */
- (void)SG_imagePositionStyle:(SGImagePositionStyle)imagePositionStyle spacing:(CGFloat)spacing imagePositionBlock:(void (^)(UIButton *button))imagePositionBlock;
@end
MIduo/Êý¾Ý/lib/SGEasyButton/UIButton+SGImagePosition.m
New file
@@ -0,0 +1,121 @@
//
//  å¦‚遇到问题或有更好方案,请通过以下方式进行联系
//      QQ:1357127436
//      Email:kingsic@126.com
//      GitHub:https://github.com/kingsic/SGEasyButton
//
//  UIButton+SGImagePosition.m
//  UIButton+SGImagePosition
//
//  Created by kingsic on 2017/8/7.
//  Copyright Â© 2017å¹´ kingsic. All rights reserved.
//
#import "UIButton+SGImagePosition.h"
@implementation UIButton (SGImagePosition)
/**
 *  è®¾ç½®å›¾ç‰‡ä¸Žæ–‡å­—样式
 *
 *  @param imagePositionStyle     å›¾ç‰‡çš„æ–‡å­—
 *  @param spacing           å›¾ç‰‡ä¸Žæ–‡å­—之间的间距
 */
- (void)SG_imagePositionStyle:(SGImagePositionStyle)imagePositionStyle spacing:(CGFloat)spacing {
    if (imagePositionStyle == SGImagePositionStyleDefault) {
        if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentLeft) {
            self.titleEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, 0);
        } else if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentRight) {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, spacing);
        } else {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, - 0.5 * spacing, 0, 0.5 * spacing);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, 0.5 * spacing, 0, - 0.5 * spacing);
        }
    } else if (imagePositionStyle == SGImagePositionStyleRight) {
        CGFloat imageW = self.imageView.image.size.width;
        CGFloat titleW = self.titleLabel.frame.size.width;
        if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentLeft) {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, titleW + spacing, 0, 0);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, - imageW, 0, 0);
        } else if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentRight) {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, - titleW);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0, imageW + spacing);
        } else {
            CGFloat imageOffset = titleW + 0.5 * spacing;
            CGFloat titleOffset = imageW + 0.5 * spacing;
            self.imageEdgeInsets = UIEdgeInsetsMake(0, imageOffset, 0, - imageOffset);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, - titleOffset, 0, titleOffset);
        }
    } else if (imagePositionStyle == SGImagePositionStyleTop) {
        CGFloat imageW = self.imageView.frame.size.width;
        CGFloat imageH = self.imageView.frame.size.height;
        CGFloat titleIntrinsicContentSizeW = self.titleLabel.intrinsicContentSize.width;
        CGFloat titleIntrinsicContentSizeH = self.titleLabel.intrinsicContentSize.height;
        self.imageEdgeInsets = UIEdgeInsetsMake(- titleIntrinsicContentSizeH - spacing, 0, 0, - titleIntrinsicContentSizeW);
        self.titleEdgeInsets = UIEdgeInsetsMake(0, - imageW, - imageH - spacing, 0);
    } else if (imagePositionStyle == SGImagePositionStyleBottom) {
        CGFloat imageW = self.imageView.frame.size.width;
        CGFloat imageH = self.imageView.frame.size.height;
        CGFloat titleIntrinsicContentSizeW = self.titleLabel.intrinsicContentSize.width;
        CGFloat titleIntrinsicContentSizeH = self.titleLabel.intrinsicContentSize.height;
        self.imageEdgeInsets = UIEdgeInsetsMake(titleIntrinsicContentSizeH + spacing, 0, 0, - titleIntrinsicContentSizeW);
        self.titleEdgeInsets = UIEdgeInsetsMake(0, - imageW, imageH + spacing, 0);
    }
}
/**
 *  è®¾ç½®å›¾ç‰‡ä¸Žæ–‡å­—样式(推荐使用)
 *
 *  @param imagePositionStyle     å›¾ç‰‡ä½ç½®æ ·å¼
 *  @param spacing                å›¾ç‰‡ä¸Žæ–‡å­—之间的间距
 *  @param imagePositionBlock     åœ¨æ­¤ Block ä¸­è®¾ç½®æŒ‰é’®çš„图片、文字以及 contentHorizontalAlignment å±žæ€§
 */
- (void)SG_imagePositionStyle:(SGImagePositionStyle)imagePositionStyle spacing:(CGFloat)spacing imagePositionBlock:(void (^)(UIButton *button))imagePositionBlock {
    imagePositionBlock(self);
    if (imagePositionStyle == SGImagePositionStyleDefault) {
        if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentLeft) {
            self.titleEdgeInsets = UIEdgeInsetsMake(0, spacing, 0, 0);
        } else if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentRight) {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, spacing);
        } else {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, - 0.5 * spacing, 0, 0.5 * spacing);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, 0.5 * spacing, 0, - 0.5 * spacing);
        }
    } else if (imagePositionStyle == SGImagePositionStyleRight) {
        CGFloat imageW = self.imageView.image.size.width;
        CGFloat titleW = self.titleLabel.frame.size.width;
        if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentLeft) {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, titleW + spacing, 0, 0);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, - imageW, 0, 0);
        } else if (self.contentHorizontalAlignment == UIControlContentHorizontalAlignmentRight) {
            self.imageEdgeInsets = UIEdgeInsetsMake(0, 0, 0, - titleW);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, 0, 0, imageW + spacing);
        } else {
            CGFloat imageOffset = titleW + 0.5 * spacing;
            CGFloat titleOffset = imageW + 0.5 * spacing;
            self.imageEdgeInsets = UIEdgeInsetsMake(0, imageOffset, 0, - imageOffset);
            self.titleEdgeInsets = UIEdgeInsetsMake(0, - titleOffset, 0, titleOffset);
        }
    } else if (imagePositionStyle == SGImagePositionStyleTop) {
        CGFloat imageW = self.imageView.frame.size.width;
        CGFloat imageH = self.imageView.frame.size.height;
        CGFloat titleIntrinsicContentSizeW = self.titleLabel.intrinsicContentSize.width;
        CGFloat titleIntrinsicContentSizeH = self.titleLabel.intrinsicContentSize.height;
        self.imageEdgeInsets = UIEdgeInsetsMake(- titleIntrinsicContentSizeH - spacing, 0, 0, - titleIntrinsicContentSizeW);
        self.titleEdgeInsets = UIEdgeInsetsMake(0, - imageW, - imageH - spacing, 0);
    } else if (imagePositionStyle == SGImagePositionStyleBottom) {
        CGFloat imageW = self.imageView.frame.size.width;
        CGFloat imageH = self.imageView.frame.size.height;
        CGFloat titleIntrinsicContentSizeW = self.titleLabel.intrinsicContentSize.width;
        CGFloat titleIntrinsicContentSizeH = self.titleLabel.intrinsicContentSize.height;
        self.imageEdgeInsets = UIEdgeInsetsMake(titleIntrinsicContentSizeH + spacing, 0, 0, - titleIntrinsicContentSizeW);
        self.titleEdgeInsets = UIEdgeInsetsMake(0, - imageW, imageH + spacing, 0);
    }
}
@end
MIduo/½çÃæ/¶¯Ì¬/DynamicViewController.m
@@ -13,12 +13,12 @@
#import "HXEasyCustomShareView.h"
#import "XHWebImageAutoSize.h"
#import "UIImageView+WebCache.h"
#import "ALNetWorking.h"
@interface DynamicViewController()
<UITableViewDelegate, UITableViewDataSource, DynamicTableViewCellDelegate,
HXEasyCustomShareViewDelegate, WINCopyLabelDelegate> {
    
    NSInteger _page;
    NSInteger _Flag;
}
@@ -27,6 +27,8 @@
@property (nonatomic, strong) NSMutableArray *dataSource;
/// ç«ç®­æŒ‰é’®
@property (nonatomic, strong) UIButton *buttonrRockets;
/// é¡µæ•°
@property (nonatomic, assign) NSInteger page;
@end
@@ -44,18 +46,8 @@
    [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];
    
    self.navigationController.navigationBar.titleTextAttributes=@{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont boldSystemFontOfSize:17]};
    if (!self.dataSource) {
        self.dataSource = @[].mutableCopy;
        _page = 1;
        [self.dataSource removeAllObjects];
        [self getRecommendActivity];
    }
}
- (void)viewDidLoad {
    [super viewDidLoad];
    
@@ -64,67 +56,106 @@
   
    [self.view addSubview:self.tableview];
    [self.view addSubview:self.buttonrRockets];
    self.page = 1;
    //请求数据
    [self LoadCacheData];
}
- (void)LoadCacheData {
//    self.plist.dataName = @"dynamicData";
//    if ([self.plist readFile][0]) {
//
//        self.tableview.hidden = NO;
//
//        self.dataSource = [self.plist readFile][0];
//        [self.tableview reloadData];
//
//    } else {
        [self getRecommendActivity];
 //   }
}
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    [SVProgressHUD dismiss];
    [[ALNetWorking startInterface] cancelAll];
}
- (void)getRecommendActivity {
    
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
    
    [dic setValue:[NSString stringWithFormat:@"%ld",(long)_page] forKey:@"page"];
    [dic setValue:[NSString stringWithFormat:@"%ld",(long)self.page] forKey:@"page"];
    
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/getRecommendActivity"]
                 param:dic
               success:^(NSDictionary *object) {
                   
                   ALLog(@"%@",object);
                   [self.tableview.mj_header endRefreshing];
                   [self.tableview.mj_footer endRefreshing];
                   
                   if ([object[@"code"] integerValue] == 0) {
                       
                       NSArray *arr = object[@"data"][@"data"];
                       
                       if (arr.count == 0) {
                       if (self.page == 1) {
                           
                           [self.tableview.mj_footer endRefreshingWithNoMoreData];
                           [self.dataSource removeAllObjects];
                           [self.dataSource addObjectsFromArray:object[@"data"][@"data"]];
//                           if (arr.count != 0) {
//
//                               self.plist.dataName = @"dynamicData";
//                               [self.plist writeFileWithData:object[@"data"][@"data"]];
//                           }
                           
                       } else {
                           
                           [self.dataSource addObjectsFromArray:object[@"data"][@"data"]];
                           [UIView animateWithDuration:0 animations:^{
                               [self.tableview reloadData];
                           }];
                           [self.tableview.mj_footer endRefreshing];
                       }
                       
                   } else {
                       if (arr.count == 0) {
                           [self.tableview.mj_footer endRefreshingWithNoMoreData];
                       }
                       
                        [self performSelector:@selector(delayMethod) withObject:nil/*可传任意类型参数*/ afterDelay:0.1];
                       self.page++;
                   } else {
                       [self.tableview.mj_header endRefreshing];
                       [self.tableview.mj_footer endRefreshing];
                       ALToastBottom(object[@"msg"]);
                   }
                   
               } fail:^(id object) {
                   
                   [self.tableview.mj_header endRefreshing];
                   [self.tableview.mj_footer endRefreshing];
                   if (((NSError *)object).code == -1009) {
                       ALToastBottom(@"网络未连接,请检测网络设置");
                   } else {
                       ALToastBottom(@"网络连接异常,请检测网络设置");
                   }
               }];
}
- (void)activityAddShareCountWithID:(NSString *)ID {
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
    [dic setValue:ID forKey:@"id"];
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/addShareCount"]
                 param:dic success:^(NSDictionary *object) {
                     ALLog(@"%@",object);
                 } fail:^(id object) {
                     ALLog(@"%@",object);
                 }];
}
- (void)delayMethod {
@@ -139,10 +170,9 @@
    
    if ([dic[@"type"]integerValue] == 1 || [dic[@"type"]integerValue] == 2) {
        
        if ([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] == nil) {
        if (![[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]) {
            
            [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
            [SVProgressHUD showInfoWithStatus:@"登录后才能分享"];
            ALToastCenter(@"登录后才能分享");
            // ç™»å½•界面
            LoginViewController *loginVc = [[LoginViewController alloc] init];
            loginVc.hidesBottomBarWhenPushed = YES;
@@ -203,11 +233,21 @@
    activityVC.excludedActivityTypes = @[UIActivityTypePostToFacebook,UIActivityTypePostToTwitter,UIActivityTypeMessage,UIActivityTypeMail,UIActivityTypePrint,UIActivityTypeCopyToPasteboard,UIActivityTypeAssignToContact,UIActivityTypeSaveToCameraRoll,UIActivityTypeAddToReadingList,UIActivityTypePostToFlickr,UIActivityTypePostToVimeo,UIActivityTypePostToTencentWeibo,UIActivityTypeAirDrop,UIActivityTypeOpenInIBooks];
    
    [self presentViewController:activityVC animated:YES completion:^{
        [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
        [SVProgressHUD showSuccessWithStatus:@"文本内容复制成功"];
        [SVProgressHUD dismiss];
         ALToastCenter(@"文本内容复制成功");
    }];
}
- (void)activityAddShareCountWithID:(NSString *)ID {
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
    [dic setValue:ID forKey:@"id"];
    [[ALNetWorking startInterface] Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/addShareCount"] param:dic success:^(NSDictionary *object) {
                 } fail:^(id object) {
                 }];
}
- (void)shareGoods:(NSString *)activityId {
@@ -217,59 +257,60 @@
    [dic setValue:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
    [dic setValue:activityId forKey:@"activityId"];
    
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/shareGoods"]
                 param:dic
               success:^(NSDictionary *object) {
                   if ([object[@"code"] integerValue] == 0) {
                       [SVProgressHUD show];
                       NSDictionary *dic = object[@"data"];
                       NSString *shareString = [NSString stringWithFormat:@"%@",dic[@"shareTitle"]];
                       UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
                       pasteboard.string = shareString;
                       NSMutableArray *array = @[].mutableCopy;
                       NSArray *arr = dic[@"shareImgs"];
                      __block NSInteger recordIndex = 0;
                       for (NSInteger index = 0; index < arr.count; index++) {
                           [self getImageFromURL:arr[index] resultImage:^(UIImage * _Nonnull image) {
                               recordIndex++;
                               [array addObject:image];
                               if (recordIndex == arr.count) {
                                   [self wxShareWithArray:array];
                               }
                           }];
                       }
                   } else {
                       [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
                       [SVProgressHUD showErrorWithStatus:object[@"msg"]];
                   }
               } fail:^(id object) {
                   [SVProgressHUD dismiss];
               }];
    [[ALNetWorking startInterface] Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/shareGoods"]
                                  param:dic
                                success:^(NSDictionary *object) {
        if ([object[@"code"] integerValue] == 0) {
            NSDictionary *dics = object[@"data"];
            NSString *shareString = [NSString stringWithFormat:@"%@",dics[@"shareTitle"]];
            UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
            pasteboard.string = shareString;
            NSMutableArray *array = @[].mutableCopy;
            NSArray *arr = dics[@"shareImgs"];
            __block NSInteger recordIndex = 0;
            for (NSInteger index = 0; index < arr.count; index++) {
                [self getImageFromURL:arr[index] resultImage:^(UIImage * _Nonnull image) {
                    recordIndex++;
                    [array addObject:image];
                    if (recordIndex == arr.count) {
                        [self wxShareWithArray:array];
                    }
                }];
            }
        } else {
            ALToastBottom(object[@"msg"]);
        }
    } fail:^(id object) {
        [SVProgressHUD dismiss];
    }];
}
- (void)activityinviteImgWirh:(NSString *)activityId {
    
    if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
        
        [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
        [SVProgressHUD showErrorWithStatus:@"请登录之后再试"];
        [SVProgressHUD dismiss];
        ALToastBottom(@"登录后才能分享");
        return;
    }
    
@@ -278,9 +319,10 @@
    [dic setValue:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
    [dic setValue:activityId forKey:@"activityId"];
    
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/inviteImg"]
                 param:dic
               success:^(NSDictionary *object) {
    [[ALNetWorking startInterface] Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"activity/inviteImg"]
                                  param:dic
                                success:^(NSDictionary *object) {
                   
                   if ([object[@"code"]integerValue] == 0) {
                       
@@ -317,8 +359,7 @@
                
                   } else {
                       
                       [SVProgressHUD setContainerView:[UIApplication sharedApplication].delegate.window];
                       [SVProgressHUD showErrorWithStatus:object[@"msg"]];
                       ALToastBottom(object[@"msg"]);
                   }
                   
               } fail:^(id object) {
@@ -742,13 +783,16 @@
    _tableview.backgroundColor = XYRBackgroundColor;
    _tableview.estimatedRowHeight = 0;
    _tableview .mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
        [self .dataSource removeAllObjects];
        self->_page = 1;
        self.page = 1;
        [self getRecommendActivity];
    }];
    
    _tableview .mj_footer = [MJRefreshAutoNormalFooter footerWithRefreshingBlock:^{
        self->_page ++;
        if (self.page == 1) {
            self.page = 2;
        }
        [self getRecommendActivity];
    }];
    return _tableview;
@@ -777,4 +821,13 @@
    return _buttonrRockets;
}
- (NSMutableArray *)dataSource {
    if (!_dataSource) {
        _dataSource = [[NSMutableArray alloc] init];
    }
    return _dataSource;
}
@end
MIduo/½çÃæ/ÎÒµÄ/balance/BalanceViewController.m
@@ -257,7 +257,7 @@
    UILabel *leijiLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(_royaltiesedLabel.frame) + 5, KScreenW / 2, 20)];
    leijiLabel.textColor = SJColor(164, 164, 164, 1);
    leijiLabel.font = [UIFont systemFontOfSize:15];
    leijiLabel.text = @"累计提成(元)";
    leijiLabel.text = @"累计奖金(元)";
    leijiLabel.textAlignment = NSTextAlignmentCenter;
    [_royaltiesView addSubview:leijiLabel];
    
@@ -271,7 +271,7 @@
    UILabel *laijiedLabel = [[UILabel alloc]initWithFrame:CGRectMake(KScreenW / 2 + 1, CGRectGetMaxY(_royaltiesLabel.frame) + 5, KScreenW / 2, 20)];
    laijiedLabel.textColor = SJColor(164, 164, 164, 1);
    laijiedLabel.font = [UIFont systemFontOfSize:14];
    laijiedLabel.text = @"未到账提成(元)";
    laijiedLabel.text = @"未到账奖金(元)";
    laijiedLabel.textAlignment = NSTextAlignmentCenter;
    [_royaltiesView addSubview:laijiedLabel];
    UIView *leijibuttomLineview = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(_royaltiesView.frame) + 10, _fanliView.frame.size.width, 1)];
MIduo/½çÃæ/ÍøÒ³ÊÓͼ/OrderViewController.m
@@ -201,7 +201,7 @@
        NSLog(@"%@",object);
    }];
}
#pragma mark --- å¥–金订单数据 ---
- (void)getTiChengOrderList {
    
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
@@ -547,13 +547,21 @@
        if (state == 4) {
            [cell.statusLabel setTitle:@"已售后" forState:UIControlStateNormal];
        }
    }else{
    } else {
        [cell.statusLabel setTitle:dic[@"stateDesc"] forState:UIControlStateNormal];
    }
    
    if (state == -1 || state == 4) {
        //        cell.fanliLabel.text = [NSString stringWithFormat:@"返利¥%.2f",[dic[@"fanMoney"]doubleValue]];
        cell.fanliLabel.text = [NSString stringWithFormat:@"返利¥%@",dic[@"fanMoney"]];
        if ([_tichengTableview isHidden]) {
            cell.fanliLabel.text = [NSString stringWithFormat:@"返利¥%@",dic[@"fanMoney"]];
        } else {
            cell.fanliLabel.text = [NSString stringWithFormat:@"奖金¥%@",dic[@"fanMoney"]];
        }
        
        NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:cell.fanliLabel.text];
        [str setAttributes:@{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleNone]} range:NSMakeRange(0,3)];//**iOS 8需要加上这句**
@@ -564,12 +572,25 @@
        
        
        cell.fanliLabel.attributedText = str;
    }else{
        cell.fanliLabel.text = [NSString stringWithFormat:@"返利¥%@",dic[@"fanMoney"]];
        //        cell.fanliLabel.text = [NSString stringWithFormat:@"返利¥%@",dic[@"fanMoney"]];
    } else {
        if ([_tichengTableview isHidden]) {
             cell.fanliLabel.text = [NSString stringWithFormat:@"返利¥%@",dic[@"fanMoney"]];
        } else {
             cell.fanliLabel.text = [NSString stringWithFormat:@"奖金¥%@",dic[@"fanMoney"]];
        }
        NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:cell.fanliLabel.text];
        [str addAttribute:NSForegroundColorAttributeName value:XYRMainColor range:NSMakeRange(3,cell.fanliLabel.text.length - 3)];
        [str addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"HelveticaNeue-Bold" size:24] range:NSMakeRange(3,cell.fanliLabel.text.length - 3)];
        cell.fanliLabel.attributedText = str;
    }
    
@@ -663,7 +684,7 @@
    }
    _unitButton = [UIButton buttonWithType:UIButtonTypeCustom];
    _unitButton.frame = CGRectMake(CGRectGetMaxX(_fanliButton.frame), 10, KScreenW / 3, 30);
    [_unitButton setTitle:@"提成订单" forState:UIControlStateNormal];
    [_unitButton setTitle:@"奖金订单" forState:UIControlStateNormal];
    [_unitButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [_unitButton setTitleColor:YTHColor(253, 228, 53) forState:UIControlStateSelected];
    [_unitButton addTarget:self action:@selector(tichengTaped:) forControlEvents:UIControlEventTouchUpInside];
MIduo/½çÃæ/ÍøÒ³ÊÓͼ/ÉÌÆ·ÏêÇé/ButtomCarView.m
@@ -32,22 +32,22 @@
        }
        shareImage.image = [UIImage imageNamed:@"detailShare"];
        [self addSubview:shareImage];
        UILabel *sharelabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(shareImage.frame) + 8  , 7, 50, 18)];
        UILabel *sharelabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(shareImage.frame) + 8  , 6, 65, 18)];
        if (KScreenW < 375) {
            sharelabel.frame = CGRectMake(CGRectGetMaxX(shareImage.frame) + 5  , 3, 50, 22);
            sharelabel.frame = CGRectMake(CGRectGetMaxX(shareImage.frame) + 5  , 2, 65, 22);
            shareImage.bounds = CGRectMake(0, 0, 15, 14);
        }else if(KScreenW > 375){
            shareImage.frame = CGRectMake(CGRectGetMinX(self.shareButton.frame) + (KScreenW - KScreenW / 5) / 4 - 30   , 8, 19, 17);
            sharelabel.frame = CGRectMake(CGRectGetMaxX(shareImage.frame) + 10  , 8, 50, 22);
            sharelabel.frame = CGRectMake(CGRectGetMaxX(shareImage.frame) + 10  , 7, 65, 22);
        }
        
//        sharelabel.textAlignment = NSTextAlignmentCenter;
        sharelabel.text = @"分享赚";
        sharelabel.font = [UIFont boldSystemFontOfSize:16];
        sharelabel.text = @"分享奖金";
        sharelabel.font = [UIFont boldSystemFontOfSize:15];
        sharelabel.textColor = SJColor(253, 215, 3, 1);
        [self addSubview:sharelabel];
        _moneyLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(self.shareButton.frame), CGRectGetMaxY(sharelabel.frame) , self.shareButton.frame.size.width, 18)];
        _moneyLabel.font = [UIFont systemFontOfSize:16];
        _moneyLabel.font = [UIFont systemFontOfSize:15];
        _moneyLabel.textAlignment = NSTextAlignmentCenter;
        _moneyLabel.text = @"";
        _moneyLabel.textColor = SJColor(253, 215, 3, 1);
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteHederFourView.h
New file
@@ -0,0 +1,13 @@
//
//  InviteHederFourView.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InviteHederFourView : UIView
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteHederFourView.m
New file
@@ -0,0 +1,79 @@
//
//  InviteHederFourView.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "InviteHederFourView.h"
@interface InviteHederFourView ()
@property (nonatomic, strong, nullable) UIView *lineView;
@property (nonatomic, strong, nullable) UILabel *rulesLabel;
@end
@implementation InviteHederFourView
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        [self viewConfig];
    }
    return self;
}
- (void)viewConfig {
    [self addSubview:self.lineView];
    self.lineView.sd_layout
    .leftSpaceToView(self, 25)
    .topSpaceToView(self, 5)
    .bottomSpaceToView(self, 5)
    .widthIs(5);
    [self addSubview:self.rulesLabel];
    self.rulesLabel.sd_layout
    .leftSpaceToView(self.lineView, 10)
    .topSpaceToView(self, 0)
    .bottomSpaceToView(self, 0)
    .rightSpaceToView(self, 25);
}
- (UIView *)lineView {
    if (!_lineView) {
        _lineView = [[UIView alloc] init];
        _lineView.backgroundColor = XYRMainColor;
    }
    return _lineView;
}
- (UILabel *)rulesLabel {
    if (!_rulesLabel) {
        _rulesLabel = [[UILabel alloc] init];
        _rulesLabel.text = @"活动规则";
        _rulesLabel.textAlignment = NSTextAlignmentLeft;
        _rulesLabel.font = [UIFont boldSystemFontOfSize:20];
        _rulesLabel.textColor = XYRMainColor;
    }
    return _rulesLabel;
}
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteOneCell.h
New file
@@ -0,0 +1,24 @@
//
//  InviteOneCell.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/15.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InviteOneCell : UITableViewCell
/// ç«‹å³é‚€è¯·æŒ‰é’®
@property (nonatomic, strong, nullable) UIButton *inviteButton;
/// æˆ‘的队员按钮
@property (nonatomic, strong, nullable) UIButton *teamButton;
/// ä»Šæ—¥é¢„估按钮
@property (nonatomic, strong, nullable) UIButton *estimateButton;
/// æœ¬æœˆé¢„估按钮
@property (nonatomic, strong, nullable) UIButton *mothButton;
/// æœ¬æœˆé¢„估按钮
@property (nonatomic, strong, nullable) UIButton *lastMothButton;
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteOneCell.m
New file
@@ -0,0 +1,461 @@
//
//  InviteOneCell.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/15.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "InviteOneCell.h"
static CGFloat buttonHeight = 35;
static CGFloat teamViewLRMargain = 10;
@interface InviteOneCell ()
@property (nonatomic, strong, nullable) UIImageView *bgImgView;
@property (nonatomic, strong, nullable) UIView *teamView;
/// é˜Ÿå‘˜
@property (nonatomic, strong, nullable) UILabel *teamNumberLabel;
/// é˜Ÿå‘˜æè¿°
@property (nonatomic, strong, nullable) UILabel *teamNumberDescLabel;
/// ç«–线1
@property (nonatomic, strong, nullable) UIView *garyLineOne;
/// ä»Šæ—¥é¢„ä¼°
@property (nonatomic, strong, nullable) UILabel *estimateLabel;
/// ä»Šæ—¥é¢„估描述
@property (nonatomic, strong, nullable) UILabel *estimateDescLabel;
/// ä»Šæ—¥é¢„估问号
@property (nonatomic, strong ,nullable) UIImageView *estimateImageView;
/// ç«–线2
@property (nonatomic, strong, nullable) UIView *garyLineTwo;
/// æœ¬æœˆé¢„ä¼°
@property (nonatomic, strong, nullable) UILabel *mothLabel;
/// æœ¬æœˆé¢„估描述
@property (nonatomic, strong, nullable) UILabel *mothDescLabel;
/// æœ¬æœˆé¢„估问号
@property (nonatomic, strong ,nullable) UIImageView *mothImageView;
/// ç«–线2
@property (nonatomic, strong, nullable) UIView *garyLineThree;
/// ä¸Šæœˆé¢„ä¼°
@property (nonatomic, strong, nullable) UILabel *lastMothLabel;
/// ä¸Šæœˆé¢„估描述
@property (nonatomic, strong, nullable) UILabel *lastMothDescLabel;
/// ä¸Šæœˆé¢„估问号
@property (nonatomic, strong ,nullable) UIImageView *lastMothImageView;
@end
@implementation InviteOneCell
- (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
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style
              reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if ( self ) {
        self.backgroundColor = XYRBackgroundColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self cellConfig];
    }
    return self;
}
- (void)cellConfig {
    [self.contentView addSubview:self.bgImgView];
    self.bgImgView.sd_layout
    .rightSpaceToView(self.contentView, 0)
    .topSpaceToView(self.contentView, 0)
    .leftSpaceToView(self.contentView, 0)
    .heightIs(322);
    // å›¢é˜Ÿæ”¶ç›Š
    [self.contentView addSubview:self.teamView];
    self.teamView.sd_layout
    .leftSpaceToView(self.contentView, teamViewLRMargain)
    .rightSpaceToView(self.contentView, teamViewLRMargain)
    .heightIs(80)
    .bottomSpaceToView(self.contentView, 5);
    // æˆ‘的队员
    [self.teamView addSubview:self.teamButton];
    self.teamButton.sd_layout
    .leftSpaceToView(self.teamView, 0)
    .topSpaceToView(self.teamView, 0)
    .bottomSpaceToView(self.teamView, 0)
    .widthIs((SCREEN_WIDTH - teamViewLRMargain * 2) / 4);
    [self.teamButton addSubview:self.teamNumberLabel];
    self.teamNumberLabel.sd_layout
    .leftSpaceToView(self.teamButton, 0)
    .topSpaceToView(self.teamButton, 10)
    .rightSpaceToView(self.teamButton, 0)
    .heightIs(30);
    [self.teamButton addSubview:self.teamNumberDescLabel];
    self.teamNumberDescLabel.sd_layout
    .leftSpaceToView(self.teamButton, 0)
    .topSpaceToView(self.teamNumberLabel, 5)
    .rightSpaceToView(self.teamButton, 0)
    .heightIs(20);
    [self.teamView addSubview:self.garyLineOne];
    self.garyLineOne.sd_layout
    .leftSpaceToView(self.teamButton, 0)
    .topSpaceToView(self.teamView,20)
    .bottomSpaceToView(self.teamView, 20)
    .widthIs(1);
    // ä»Šæ—¥é¢„ä¼°
    [self.teamView addSubview:self.estimateButton];
    self.estimateButton.sd_layout
    .leftSpaceToView(self.teamButton, 0)
    .topSpaceToView(self.teamView, 0)
    .bottomSpaceToView(self.teamView, 0)
    .widthIs((SCREEN_WIDTH - teamViewLRMargain * 2) / 4);
    [self.estimateButton addSubview:self.estimateLabel];
    self.estimateLabel.sd_layout
    .leftSpaceToView(self.estimateButton, 0)
    .topSpaceToView(self.estimateButton, 10)
    .rightSpaceToView(self.estimateButton, 0)
    .heightIs(30);
    [self.estimateButton addSubview:self.estimateDescLabel];
    self.estimateDescLabel.sd_layout
    .leftSpaceToView(self.estimateButton, 0)
    .topSpaceToView(self.estimateLabel, 5)
    .widthIs(self.estimateButton.bounds.size.width - 29)
    .heightIs(20);
    [self.estimateButton addSubview:self.estimateImageView];
    self.estimateImageView.sd_layout
    .leftSpaceToView(self.estimateDescLabel, -4)
    .topSpaceToView(self.estimateLabel, 3.5)
    .widthIs(30)
    .heightIs(22);
    [self.teamView addSubview:self.garyLineTwo];
    self.garyLineTwo.sd_layout
    .leftSpaceToView(self.estimateButton, 0)
    .topSpaceToView(self.teamView,20)
    .bottomSpaceToView(self.teamView, 20)
    .widthIs(1);
    // æœ¬æœˆé¢„ä¼°
    [self.teamView addSubview:self.mothButton];
    self.mothButton.sd_layout
    .leftSpaceToView(self.estimateButton, 0)
    .topSpaceToView(self.teamView, 0)
    .bottomSpaceToView(self.teamView, 0)
    .widthIs((SCREEN_WIDTH - teamViewLRMargain * 2) / 4);
    [self.mothButton addSubview:self.mothLabel];
    self.mothLabel.sd_layout
    .leftSpaceToView(self.mothButton, 0)
    .topSpaceToView(self.mothButton, 10)
    .rightSpaceToView(self.mothButton, 0)
    .heightIs(30);
    [self.mothButton addSubview:self.mothDescLabel];
    self.mothDescLabel.sd_layout
    .leftSpaceToView(self.mothButton, 0)
    .topSpaceToView(self.mothLabel, 5)
    .widthIs(self.mothButton.bounds.size.width - 29)
    .heightIs(20);
    [self.mothButton addSubview:self.mothImageView];
    self.mothImageView.sd_layout
    .leftSpaceToView(self.mothDescLabel, -4)
    .topSpaceToView(self.mothLabel, 3.5)
    .widthIs(30)
    .heightIs(22);
    [self.teamView addSubview:self.garyLineThree];
    self.garyLineThree.sd_layout
    .leftSpaceToView(self.mothButton, 0)
    .topSpaceToView(self.teamView,20)
    .bottomSpaceToView(self.teamView, 20)
    .widthIs(1);
    // ä¸Šæœˆé¢„ä¼°
    [self.teamView addSubview:self.lastMothButton];
    self.lastMothButton.sd_layout
    .leftSpaceToView(self.mothButton, 0)
    .topSpaceToView(self.teamView, 0)
    .bottomSpaceToView(self.teamView, 0)
    .widthIs((SCREEN_WIDTH - teamViewLRMargain * 2) / 4);
    [self.lastMothButton addSubview:self.lastMothLabel];
    self.lastMothLabel.sd_layout
    .leftSpaceToView(self.lastMothButton, 0)
    .topSpaceToView(self.lastMothButton, 10)
    .rightSpaceToView(self.lastMothButton, 0)
    .heightIs(30);
    [self.lastMothButton addSubview:self.lastMothDescLabel];
    self.lastMothDescLabel.sd_layout
    .leftSpaceToView(self.lastMothButton, 0)
    .topSpaceToView(self.lastMothLabel, 5)
    .widthIs(self.lastMothButton.bounds.size.width - 29)
    .heightIs(20);
    [self.lastMothButton addSubview:self.lastMothImageView];
    self.lastMothImageView.sd_layout
    .leftSpaceToView(self.lastMothDescLabel, -4)
    .topSpaceToView(self.lastMothLabel, 3.5)
    .widthIs(30)
    .heightIs(22);
    // ç«‹å³é‚€è¯·æŒ‰é’®
    [self.contentView addSubview:self.inviteButton];
    self.inviteButton.sd_layout
    .leftSpaceToView(self.contentView, 60)
    .rightSpaceToView(self.contentView, 60)
    .bottomSpaceToView(self.teamView, 15)
    .heightIs(buttonHeight);
}
#pragma mark --- getter ---
- (UIImageView *)bgImgView {
    if (!_bgImgView) {
        _bgImgView = [[UIImageView alloc] init];
        _bgImgView.image = [UIImage imageNamed:@"邀请有奖_备选_02"];
    }
    return _bgImgView;
}
- (UIButton *)inviteButton {
    if (!_inviteButton) {
        _inviteButton = [[UIButton alloc] init];
        [_inviteButton setTitle:@"立即邀请" forState:UIControlStateNormal];
        [_inviteButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        _inviteButton.titleLabel.font = [UIFont systemFontOfSize:15];
        _inviteButton.backgroundColor = YTHColor(229, 0, 92);
        _inviteButton.layer.cornerRadius = buttonHeight / 2;
        _inviteButton.layer.masksToBounds = YES;
    }
    return _inviteButton;
}
- (UIView *)teamView {
    if (!_teamView) {
    _teamView = [[UIView alloc] init];
    _teamView.backgroundColor = [UIColor whiteColor];
    _teamView.layer.cornerRadius = 8;
    _teamView.layer.masksToBounds = YES;
    }
    return _teamView;
}
#pragma mark --- æˆ‘的队员 ---
- (UIButton *)teamButton {
    if (!_teamButton) {
        _teamButton = [UIButton buttonWithType:UIButtonTypeCustom];
    }
    return _teamButton;
}
- (UILabel *)teamNumberLabel {
    if (!_teamNumberLabel) {
        _teamNumberLabel = [[UILabel alloc] init];
        _teamNumberLabel.textColor = XYRMainColor;
        _teamNumberLabel.font = [UIFont boldSystemFontOfSize:30];
        _teamNumberLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
        _teamNumberLabel.textAlignment = NSTextAlignmentCenter;
        _teamNumberLabel.text = @"---";
    }
    return _teamNumberLabel;
}
- (UILabel *)teamNumberDescLabel {
    if (!_teamNumberDescLabel) {
        _teamNumberDescLabel = [[UILabel alloc]init];
        _teamNumberDescLabel.font = [UIFont systemFontOfSize:12];
        if (KScreenW > 375) {
            _teamNumberDescLabel.font = [UIFont systemFontOfSize:15];
        }
        _teamNumberDescLabel.textAlignment = NSTextAlignmentCenter;
        _teamNumberDescLabel.text = @"我的队员";
        _teamNumberDescLabel.textColor = SJColor(98, 98, 98,1);
    }
    return _teamNumberDescLabel;
}
- (UIView *)garyLineOne {
    if (!_garyLineOne) {
        _garyLineOne = [[UIView alloc] init];
        _garyLineOne.backgroundColor = XYRBackgroundColor;
    }
    return _garyLineOne;
}
#pragma mark --- ä»Šæ—¥é¢„ä¼° ---
- (UIButton *)estimateButton {
    if (!_estimateButton) {
        _estimateButton = [UIButton buttonWithType:UIButtonTypeCustom];
    }
    return _estimateButton;
}
- (UILabel *)estimateLabel {
    if (!_estimateLabel) {
        _estimateLabel = [[UILabel alloc] init];
        _estimateLabel.textColor = XYRMainColor;
        _estimateLabel.font = [UIFont boldSystemFontOfSize:30];
        _estimateLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
        _estimateLabel.textAlignment = NSTextAlignmentCenter;
        _estimateLabel.text = @"---";
    }
    return _estimateLabel;
}
- (UILabel *)estimateDescLabel {
    if (!_estimateDescLabel) {
        _estimateDescLabel = [[UILabel alloc] init];
        _estimateDescLabel.font = [UIFont systemFontOfSize:12];
        if (KScreenW > 375) {
            _estimateDescLabel.font = [UIFont systemFontOfSize:15];
        }
        _estimateDescLabel.textAlignment = NSTextAlignmentRight;
        _estimateDescLabel.text = @"今日预估";
        _estimateDescLabel.textColor = SJColor(98, 98, 98,1);
    }
    return _estimateDescLabel;
}
- (UIImageView *)estimateImageView {
    if (!_estimateImageView) {
        _estimateImageView = [[UIImageView alloc] init];
        _estimateImageView.image = [UIImage imageNamed:@"形状问"];
    }
    return _estimateImageView;
}
- (UIView *)garyLineTwo {
    if (!_garyLineTwo) {
        _garyLineTwo = [[UIView alloc] init];
        _garyLineTwo.backgroundColor = XYRBackgroundColor;
    }
    return _garyLineTwo;
}
#pragma mark --- æœ¬æœˆé¢„ä¼° ---
- (UIButton *)mothButton {
    if (!_mothButton) {
        _mothButton = [UIButton buttonWithType:UIButtonTypeCustom];
    }
    return _mothButton;
}
- (UILabel *)mothLabel {
    if (!_mothLabel) {
        _mothLabel = [[UILabel alloc] init];
        _mothLabel.textColor = XYRMainColor;
        _mothLabel.font = [UIFont boldSystemFontOfSize:30];
        _mothLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
        _mothLabel.textAlignment = NSTextAlignmentCenter;
        _mothLabel.text = @"---";
    }
    return _mothLabel;
}
- (UILabel *)mothDescLabel {
    if (!_mothDescLabel) {
        _mothDescLabel = [[UILabel alloc] init];
        _mothDescLabel.font = [UIFont systemFontOfSize:12];
        if (KScreenW > 375) {
            _mothDescLabel.font = [UIFont systemFontOfSize:15];
        }
        _mothDescLabel.textAlignment = NSTextAlignmentRight;
        _mothDescLabel.text = @"本月预估";
        _mothDescLabel.textColor = SJColor(98, 98, 98,1);
    }
    return _mothDescLabel;
}
- (UIImageView *)mothImageView {
    if (!_mothImageView) {
        _mothImageView = [[UIImageView alloc] init];
        _mothImageView.image = [UIImage imageNamed:@"形状问"];
    }
    return _mothImageView;
}
- (UIView *)garyLineThree {
    if (!_garyLineThree) {
        _garyLineThree = [[UIView alloc] init];
        _garyLineThree.backgroundColor = XYRBackgroundColor;
    }
    return _garyLineThree;
}
#pragma mark --- ä¸Šæœˆé¢„ä¼° ---
- (UIButton *)lastMothButton {
    if (!_lastMothButton) {
        _lastMothButton = [UIButton buttonWithType:UIButtonTypeCustom];
    }
    return _lastMothButton;
}
- (UILabel *)lastMothLabel {
    if (!_lastMothLabel) {
        _lastMothLabel = [[UILabel alloc] init];
        _lastMothLabel.textColor = XYRMainColor;
        _lastMothLabel.font = [UIFont boldSystemFontOfSize:30];
        _lastMothLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
        _lastMothLabel.textAlignment = NSTextAlignmentCenter;
        _lastMothLabel.text = @"---";
    }
    return _lastMothLabel;
}
- (UILabel *)lastMothDescLabel {
    if (!_lastMothDescLabel) {
        _lastMothDescLabel = [[UILabel alloc] init];
        _lastMothDescLabel.font = [UIFont systemFontOfSize:12];
        if (KScreenW > 375) {
            _mothDescLabel.font = [UIFont systemFontOfSize:15];
        }
        _lastMothDescLabel.textAlignment = NSTextAlignmentRight;
        _lastMothDescLabel.text = @"上月预估";
        _lastMothDescLabel.textColor = SJColor(98, 98, 98,1);
    }
    return _lastMothDescLabel;
}
- (UIImageView *)lastMothImageView {
    if (!_lastMothImageView) {
        _lastMothImageView = [[UIImageView alloc] init];
        _lastMothImageView.image = [UIImage imageNamed:@"形状问"];
    }
    return _lastMothImageView;
}
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteThreeCell.h
New file
@@ -0,0 +1,13 @@
//
//  InviteThreeCell.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InviteThreeCell : UITableViewCell
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteThreeCell.m
New file
@@ -0,0 +1,187 @@
//
//  InviteThreeCell.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "InviteThreeCell.h"
@interface InviteThreeCell ()
@property (nonatomic, strong, nullable) NSArray *gradArr;
@property (nonatomic, strong, nullable) UIImageView *bgImgView;
/// å¥–金榜
@property (nonatomic, strong, nullable) UILabel *bonusListLabel;
/// èƒŒæ™¯
@property (nonatomic, strong, nullable) UIView *bgView;
/// æ¡å½¢
@property (nonatomic, strong, nullable) UIView *articleView;
/// logo
@property (nonatomic, strong, nullable) UIImageView *logoImageView;
/// å¤´åƒ
@property (nonatomic, strong, nullable) UIImageView *headerImageView;
/// æ˜µç§°
@property (nonatomic, strong, nullable) UILabel *nickNamelabel;
/// å¥–金
@property (nonatomic, strong, nullable) UILabel *bonusPricelabel;
@end
@implementation InviteThreeCell
- (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
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style
              reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if ( self ) {
        self.backgroundColor = XYRBackgroundColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.gradArr = @[@"g1",@"g2",@"g3",@"g4",@"g5"];
        [self cellConfig];
    }
    return self;
}
- (void)cellConfig {
    [self.contentView addSubview:self.bgImgView];
    self.bgImgView.sd_layout
    .rightSpaceToView(self.contentView, 0)
    .topSpaceToView(self.contentView, 0)
    .leftSpaceToView(self.contentView, 0)
    .heightIs(320);
    [self.bgImgView addSubview:self.bonusListLabel];
    self.bonusListLabel.sd_layout
    .leftSpaceToView(self.bgImgView, 20)
    .rightSpaceToView(self.bgImgView, 20)
    .topSpaceToView(self.bgImgView, 0)
    .heightIs(30);
    [self.bgImgView addSubview:self.bgView];
    self.bgView.sd_layout
    .leftSpaceToView(self.bgImgView, 20)
    .rightSpaceToView(self.bgImgView, 20)
    .topSpaceToView(self.bonusListLabel, 20)
    .heightIs(320 - 90);
    NSLog(@"self.bgView:%f",self.bgView.bounds.size.height);
    for (int i = 0; i < 5; i++) {
        self.articleView = [[UIView alloc] init];
        self.articleView.layer.masksToBounds = YES;
        self.articleView.layer.cornerRadius = 5;
        self.articleView.backgroundColor = i % 2 ? SJColor(255, 211, 221, 1) : SJColor(255, 251, 207, 1);
        [self.bgView addSubview:self.articleView];
        self.articleView.sd_layout
        .leftSpaceToView(self.bgView, 0)
        .rightSpaceToView(self.bgView, 0)
        .topSpaceToView(self.bgView, i * ((self.bgView.size.height - 32) / 5) + i * 8)
        .heightIs((self.bgView.size.height - 32) / 5);
        self.logoImageView = [[UIImageView alloc] init];
        self.logoImageView.image = [UIImage imageNamed:self.gradArr[i]];
        [self.articleView addSubview:self.logoImageView];
        self.logoImageView.sd_layout
        .leftSpaceToView(self.articleView, 15)
        .centerYEqualToView(self.articleView)
        .widthIs(23)
        .heightIs(20);
        self.headerImageView = [[UIImageView alloc] init];
        self.headerImageView.backgroundColor = [UIColor redColor];
        self.headerImageView.layer.masksToBounds = YES;
        self.headerImageView.layer.cornerRadius = ((self.bgView.size.height - 32) / 5 - 10) / 2;
        [self.articleView addSubview:self.headerImageView];
        self.headerImageView.sd_layout
        .leftSpaceToView(self.logoImageView, 15)
        .centerYEqualToView(self.articleView)
        .widthIs((self.bgView.size.height - 32) / 5 - 10)
        .heightIs((self.bgView.size.height - 32) / 5 - 10);
        self.nickNamelabel = [[UILabel alloc] init];
        self.nickNamelabel.text = @"测试";
        self.nickNamelabel.textColor = [UIColor blackColor];
        self.nickNamelabel.font = [UIFont systemFontOfSize:15];
        self.nickNamelabel.textAlignment = NSTextAlignmentLeft;
         [self.articleView addSubview:self.nickNamelabel];
        self.nickNamelabel.sd_layout
        .leftSpaceToView(self.headerImageView, 10)
        .centerYEqualToView(self.articleView)
        .heightIs(20)
        .autoWidthRatio(0);
        [self.nickNamelabel setSingleLineAutoResizeWithMaxWidth:120];
        self.bonusPricelabel = [[UILabel alloc] init];
        self.bonusPricelabel.text = @"Â¥9993.90";
        self.bonusPricelabel.textColor = SJColor(229, 0, 92, 1.0);
        self.bonusPricelabel.font = [UIFont systemFontOfSize:16];
        self.bonusPricelabel.textAlignment = NSTextAlignmentRight;
        [self.articleView addSubview:self.bonusPricelabel];
        self.bonusPricelabel.sd_layout
        .rightSpaceToView(self.articleView, 10)
        .centerYEqualToView(self.articleView)
        .heightIs(20)
        .autoWidthRatio(0);
        [self.bonusPricelabel setSingleLineAutoResizeWithMaxWidth:120];
    }
}
#pragma mark --- getter ---
- (UIImageView *)bgImgView {
    if (!_bgImgView) {
        _bgImgView = [[UIImageView alloc] init];
        _bgImgView.image = [UIImage imageNamed:@"bg"];
    }
    return _bgImgView;
}
- (UILabel *)bonusListLabel {
    if (!_bonusListLabel) {
        _bonusListLabel = [[UILabel alloc] init];
        _bonusListLabel.text = @"邀请奖金榜";
        _bonusListLabel.textAlignment = NSTextAlignmentCenter;
        _bonusListLabel.font = [UIFont boldSystemFontOfSize:20];
        _bonusListLabel.textColor = XYRMainColor;
    }
    return _bonusListLabel;
}
- (UIView *)bgView {
    if (!_bgView) {
        _bgView = [[UIView alloc] init];
    }
    return _bgView;
}
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteTwoCell.h
New file
@@ -0,0 +1,13 @@
//
//  InviteTwoCell.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InviteTwoCell : UITableViewCell
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InviteTwoCell.m
New file
@@ -0,0 +1,65 @@
//
//  InviteTwoCell.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "InviteTwoCell.h"
@interface InviteTwoCell ()
@property (nonatomic, strong, nullable) UIImageView *bgImgView;
@end
@implementation InviteTwoCell
- (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
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style
              reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if ( self ) {
        self.backgroundColor = XYRBackgroundColor;
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self cellConfig];
    }
    return self;
}
- (void)cellConfig {
    [self.contentView addSubview:self.bgImgView];
    self.bgImgView.sd_layout
    .rightSpaceToView(self.contentView, 0)
    .topSpaceToView(self.contentView, 0)
    .leftSpaceToView(self.contentView, 0)
    .heightIs(363);
}
#pragma mark --- getter ---
- (UIImageView *)bgImgView {
    if (!_bgImgView) {
        _bgImgView = [[UIImageView alloc] init];
        _bgImgView.image = [UIImage imageNamed:@"邀请有奖_备选_03"];
    }
    return _bgImgView;
}
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InvitewFourCell.h
New file
@@ -0,0 +1,13 @@
//
//  InvitewFourCell.h
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InvitewFourCell : UITableViewCell
@end
MIduo/½çÃæ/ÑûÇë/InviteViewCell/InvitewFourCell.m
New file
@@ -0,0 +1,67 @@
//
//  InvitewFourCell.m
//  MIduo
//
//  Created by é‡åº†è¿ˆå°–科技有限公司 on 2018/8/16.
//  Copyright Â© 2018å¹´ yeshi. All rights reserved.
//
#import "InvitewFourCell.h"
@interface InvitewFourCell ()
@property (nonatomic, strong, nullable) UILabel *titlesLabel;
@end
@implementation InvitewFourCell
- (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
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style
              reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if ( self ) {
        self.backgroundColor = [UIColor redColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self cellConfig];
    }
    return self;
}
- (void)cellConfig {
    [self.contentView addSubview:self.titlesLabel];
    self.titlesLabel.sd_layout
    .leftSpaceToView(self.contentView, 30)
    .topSpaceToView(self.contentView, 10)
    .rightSpaceToView(self.contentView, 30)
    .autoHeightRatio(0);
}
- (UILabel *)titlesLabel {
    if (!_titlesLabel) {
        _titlesLabel = [[UILabel alloc] init];
        _titlesLabel.text = @"测试测试";
        _titlesLabel.textAlignment = NSTextAlignmentLeft;
        _titlesLabel.font = [UIFont boldSystemFontOfSize:13];
        _titlesLabel.textColor = SJColor(136, 136, 136, 1.0);
    }
    return _titlesLabel;
}
@end
MIduo/½çÃæ/ÑûÇë/MainInviteViewController.m
@@ -14,35 +14,43 @@
#import "XYRWebViewController.h"
#import "InvitationFriendsViewController.h"
// cell
#import "InviteOneCell.h"
#import "InviteTwoCell.h"
#import "InviteThreeCell.h"
#import "InvitewFourCell.h"
#import "InviteHederFourView.h"
#define LfteLength 10
@interface MainInviteViewController ()<UITableViewDataSource,UITableViewDelegate>
@property (nonatomic, strong) UIScrollView *scrollview;
@property (nonatomic, strong) UIImageView *headImageView;
@property (nonatomic, strong) UIView *teamView;
@property (nonatomic, strong) UILabel *teamNumber;
@property (nonatomic, strong) UILabel *estimateLabel;
@property (nonatomic, strong) UILabel *mothLabel;
@property (nonatomic, strong) UILabel *lastMonLabel;
@property (nonatomic, strong) UIView *taskView;
@property (nonatomic, strong) UITableView *taskTableview;
@property (nonatomic, strong) UIView *percentageView;
@property (nonatomic, strong) UIView *listView;
@property (nonatomic, strong) UITableView *listTableview;
@property (nonatomic, strong) UIView *ruleView;
@property (nonatomic, strong) UILabel *ruleLabel;
@property (nonatomic, strong) NSArray *inviteGetMoneyList;
@property (nonatomic, strong) NSArray *everyDayTaskList;
@property (nonatomic, strong) NSArray *gradeArr;
@property (nonatomic, strong) UIView *loginView;
@property (nonatomic, strong) UIView *primtView;
@property (nonatomic, strong) UILabel *primtTitle;
@property (nonatomic, strong) UILabel *primtContent;
@property (nonatomic, strong) UIWindow *primtWindow;
@property (nonatomic, strong) NSString *inviteListString;
@property (nonatomic, strong) NSString *number;
@property (nonatomic, strong) UITableView *tableView;
//@property (nonatomic, strong) UIScrollView *scrollview;
//@property (nonatomic, strong) UIImageView *headImageView;
//@property (nonatomic, strong) UIView *teamView;
//@property (nonatomic, strong) UILabel *teamNumber;
//@property (nonatomic, strong) UILabel *estimateLabel;
//@property (nonatomic, strong) UILabel *mothLabel;
//@property (nonatomic, strong) UILabel *lastMonLabel;
//@property (nonatomic, strong) UIView *taskView;
//@property (nonatomic, strong) UITableView *taskTableview;
//@property (nonatomic, strong) UIView *percentageView;
//@property (nonatomic, strong) UIView *listView;
//@property (nonatomic, strong) UITableView *listTableview;
//@property (nonatomic, strong) UIView *ruleView;
//@property (nonatomic, strong) UILabel *ruleLabel;
//@property (nonatomic, strong) NSArray *inviteGetMoneyList;
//@property (nonatomic, strong) NSArray *everyDayTaskList;
//@property (nonatomic, strong) NSArray *gradeArr;
//@property (nonatomic, strong) UIView *loginView;
//
//@property (nonatomic, strong) UIView *primtView;
//@property (nonatomic, strong) UILabel *primtTitle;
//@property (nonatomic, strong) UILabel *primtContent;
//@property (nonatomic, strong) UIWindow *primtWindow;
//@property (nonatomic, strong) NSString *inviteListString;
//@property (nonatomic, strong) NSString *number;
@end
@@ -51,15 +59,16 @@
- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.gradeArr = @[@"g1",@"g2",@"g3",@"g4",@"g5"];
    [self.view addSubview:self.scrollview];
    [self.view addSubview:self.loginView];
    //    self.gradeArr = @[@"g1",@"g2",@"g3",@"g4",@"g5"];
    //    [self.view addSubview:self.scrollview];
    //    [self.view addSubview:self.loginView];
    [self.view addSubview:self.tableView];
}
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [MobClick beginLogPageView:@"邀请有奖"];
    if (!self.isMine) {
        
        [self.navigationController setNavigationBarHidden:YES animated:animated];
@@ -69,737 +78,875 @@
        [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    }
    
    [self getdatasource];
    //[self getdatasource];
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"邀请有奖"];
    [self.navigationController setNavigationBarHidden:NO animated:animated];
}
// headImage点击事件
- (void)headImageTaped:(UITapGestureRecognizer *)tap {
    if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
        LoginViewController *loginVc = [[LoginViewController alloc] init];
        loginVc.hidesBottomBarWhenPushed = YES;
        loginVc.rootVc = self;
        [self.navigationController pushViewController:loginVc animated:YES];
    } else {
        InvitationFriendsViewController *invitaVC = [[InvitationFriendsViewController alloc]init];
        invitaVC.hidesBottomBarWhenPushed=YES;
        [self.navigationController pushViewController:invitaVC animated:YES];
    }
}
- (void)loginTaped:(UIButton *)sender {
    //登录界面
    LoginViewController *loginVc = [[LoginViewController alloc] init];
    loginVc.hidesBottomBarWhenPushed=YES;
    loginVc.rootVc = self;
    [self.navigationController pushViewController:loginVc animated:YES];
}
- (void)shareShopTaped:(UIButton *)sender {
    if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
        LoginViewController *loginVc=[[LoginViewController alloc] init];
        loginVc.hidesBottomBarWhenPushed = YES;
        loginVc.rootVc = self;
        [self.navigationController pushViewController:loginVc animated:YES];
    } else {
        NSInteger tag = sender.tag - 722;
        [self geturlwithID:self.everyDayTaskList[tag][@"etGoods"][@"auctionId"]];
    }
}
- (void)numTaped:(UIButton *)sender {
    ShonpingShareViewController *SureWebVC=[[ShonpingShareViewController alloc] init];
    SureWebVC.urlString=self.inviteListString;
    SureWebVC.hidesBottomBarWhenPushed=YES;
    [self.navigationController pushViewController:SureWebVC animated:YES];
}
- (void)geturlwithID:(NSString *)shopid {
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
    [dic setObject:shopid forKey:@"id"];
    NSLog(@"%@",[NSString stringWithFormat:@"%@/%@",domainHTTP,@"share/getGoodsShareUrl"]);
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"share/getGoodsShareUrl"]
                 param:dic
               success:^(NSDictionary *object) {
        ShonpingShareViewController *shopVC = [[ShonpingShareViewController alloc]init];
        shopVC.urlString = object[@"data"];
        shopVC.hidesBottomBarWhenPushed=YES;
        [self.navigationController pushViewController:shopVC animated:YES];
    } fail:^(id object) {
        NSLog(@"%@",object);
    }];
}
- (void)getdatasource {
    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
    [dic setObject:@"1" forKey:@"pageIndex"];
    if ([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] != nil) {
        [dic setObject:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
    } else {
        [dic setObject:@"" forKey:@"uid"];
    }
    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"invite/inviteGetMoney"] param:dic success:^(NSDictionary *object) {
        [self->_scrollview.mj_header endRefreshing];
        NSDictionary *dic = object[@"data"];
        self.inviteListString = dic[@"inviteList"];
        self.everyDayTaskList = dic[@"everyDayTaskList"];
        self.inviteGetMoneyList = dic[@"inviteGetMoneyList"];
        self.taskView.frame = CGRectMake(0, CGRectGetMaxY(self.percentageView.frame) + 10, KScreenW, self.everyDayTaskList.count * 120 + 60);
        self.taskTableview.frame = CGRectMake(0, 0, KScreenW,self->_taskView.frame.size.height  );
        self.listView.frame = CGRectMake(0, CGRectGetMaxY(self.taskView.frame) + 10, KScreenW, self.inviteGetMoneyList.count * 50 + 60);
        self.listTableview.frame = CGRectMake(0, 0, self->_listView.frame.size.width, self->_listView.frame.size.height );
        NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[dic[@"activityRules"] dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
        NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithAttributedString:attrStr];
        [str addAttribute:NSForegroundColorAttributeName value:SJColor(136, 136, 136, 1) range:NSMakeRange(0,str.length)];
        [str addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize :14] range:NSMakeRange(0, str.length)];
        self.ruleLabel.attributedText = str;
        if ([[NSString stringWithFormat:@"%@",dic[@"myTeam"]] isKindOfClass:[NSNull class]]) {
            self.teamNumber.text = @"0";
        }else{
            self.teamNumber.text = [NSString stringWithFormat:@"%@",dic[@"myTeam"]];
            self.number = self.teamNumber.text;
        }
        if (!dic[@"moneyToday"]) {
            self.estimateLabel.text = @"0";
        }else{
            self.estimateLabel.text = [NSString stringWithFormat:@"%@",dic[@"moneyToday"]];
        }
        if (!dic[@"moneyMonth"]) {
            self.mothLabel.text = @"0";
        }else{
            self.mothLabel.text = [NSString stringWithFormat:@"%@",dic[@"moneyMonth"]];
        }
        if (!dic[@"moneyLastMonth"]) {
            self.lastMonLabel.text = @"0";
        }else{
            self.lastMonLabel.text = [NSString stringWithFormat:@"%@",dic[@"moneyLastMonth"]];
        }
        [self.ruleLabel sizeToFit];
        CGSize size = [self sizeWithFont:[UIFont systemFontOfSize:14] maxSize:CGSizeMake(KScreenW - 40, 2000) string:self.ruleLabel.text];
        self.ruleView.frame = CGRectMake(0, CGRectGetMaxY(self.listView.frame) + 10, KScreenW, size.height + 80);
        self->_scrollview.contentSize = CGSizeMake(KScreenW, self.headImageView.frame.size.height +  self.teamView.frame.size.height + self.taskView.frame.size.height + self.percentageView.frame.size.height + self.listView.frame.size.height + self.ruleView.frame.size.height + 100);
        [self.taskTableview reloadData];
        [self.listTableview reloadData];
        if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
            self.teamNumber.text = @"---";
            self.estimateLabel.text = @"---";
            self.mothLabel.text = @"---";
            self.lastMonLabel.text = @"---";
        }
    } fail:^(id object) {
        [self->_scrollview.mj_header endRefreshing];
    }];
}
- (void)priTaped:(UIButton *)sender{
    if (![[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]) {
        return;
    }
    _primtWindow = [[UIWindow alloc]init];
    _primtWindow.backgroundColor = [UIColor colorWithWhite:0.2 alpha:0.7];
    _primtWindow.windowLevel = UIWindowLevelAlert - 1;
    _primtWindow.hidden = NO;
    [_primtWindow addSubview:self.primtView];
    if (sender.tag == 35) {
        self.primtTitle.text = @"今日预估收益";
        self.primtContent.text = @"今日新增的所有订单预估收益";
    } else if(sender.tag == 36) {
        self.primtTitle.text = @"本月预估收益";
        self.primtContent.text = @"本月内产生的所有订单预估收益,会在订单确认收货后的次月25日后转入你的余额,以实际转入余额为准";
    } else {
        self.primtTitle.text = @"上月预估收入";
        self.primtContent.text = @"上个月内确认收货的订单收入,每月25日结算后,将自动转入你的余额";
    }
}
- (void)primtTaped:(UIButton *)sender {
    _primtWindow.hidden = YES;
    _primtWindow = nil;
}
//计算文字高度
- (CGFloat)getHeightLineWithString:(NSString *)string withWidth:(CGFloat)width withFont:(UIFont *)font {
    //1.1最大允许绘制的文本范围
    CGSize size = CGSizeMake(width, 2000);
    //1.2配置计算时的行截取方法,和contentLabel对应
    NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
    [style setLineSpacing:10];
    //1.3配置计算时的字体的大小
    //1.4配置属性字典
    NSDictionary *dic = @{NSFontAttributeName:font, NSParagraphStyleAttributeName:style};
    //2.计算
    //如果想保留多个枚举值,则枚举值中间加按位或|即可,并不是所有的枚举类型都可以按位或,只有枚举值的赋值中有左移运算符时才可以
    CGFloat height = [string boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:dic context:nil].size.height;
    return height;
}
-(CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize string:(NSString *)string {
    NSDictionary *attrs = @{NSFontAttributeName:font};
    return [string boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:attrs context:nil].size;
}
//设置view某一遍的边框
- (void)setBorderWithView:(UIView *)view top:(BOOL)top left:(BOOL)left bottom:(BOOL)bottom right:(BOOL)right borderColor:(UIColor *)color borderWidth:(CGFloat)width {
    if (top) {
        CALayer *layer = [CALayer layer];
        layer.frame = CGRectMake(0, 0, view.frame.size.width, width);
        layer.backgroundColor = color.CGColor;
        [view.layer addSublayer:layer];
    }
    if (left) {
        CALayer *layer = [CALayer layer];
        layer.frame = CGRectMake(0, 0, width, view.frame.size.height);
        layer.backgroundColor = color.CGColor;
        [view.layer addSublayer:layer];
    }
    if (bottom) {
        CALayer *layer = [CALayer layer];
        layer.frame = CGRectMake(0, view.frame.size.height - width, view.frame.size.width, width);
        layer.backgroundColor = color.CGColor;
        [view.layer addSublayer:layer];
    }
    if (right) {
        CALayer *layer = [CALayer layer];
        layer.frame = CGRectMake(view.frame.size.width - width, 0, width, view.frame.size.height);
        layer.backgroundColor = color.CGColor;
        [view.layer addSublayer:layer];
    }
}
//// headImage点击事件
//- (void)headImageTaped:(UITapGestureRecognizer *)tap {
//
//    if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
//
//        LoginViewController *loginVc = [[LoginViewController alloc] init];
//
//        loginVc.hidesBottomBarWhenPushed = YES;
//        loginVc.rootVc = self;
//
//        [self.navigationController pushViewController:loginVc animated:YES];
//
//    } else {
//
//        InvitationFriendsViewController *invitaVC = [[InvitationFriendsViewController alloc]init];
//        invitaVC.hidesBottomBarWhenPushed=YES;
//        [self.navigationController pushViewController:invitaVC animated:YES];
//    }
//}
//
//- (void)loginTaped:(UIButton *)sender {
//    //登录界面
//    LoginViewController *loginVc = [[LoginViewController alloc] init];
//
//    loginVc.hidesBottomBarWhenPushed=YES;
//    loginVc.rootVc = self;
//
//    [self.navigationController pushViewController:loginVc animated:YES];
//}
//
//- (void)shareShopTaped:(UIButton *)sender {
//
//    if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
//
//        LoginViewController *loginVc=[[LoginViewController alloc] init];
//
//        loginVc.hidesBottomBarWhenPushed = YES;
//        loginVc.rootVc = self;
//
//        [self.navigationController pushViewController:loginVc animated:YES];
//
//    } else {
//
//        NSInteger tag = sender.tag - 722;
//        [self geturlwithID:self.everyDayTaskList[tag][@"etGoods"][@"auctionId"]];
//    }
//}
//
//- (void)numTaped:(UIButton *)sender {
//
//    ShonpingShareViewController *SureWebVC=[[ShonpingShareViewController alloc] init];
//    SureWebVC.urlString=self.inviteListString;
//
//    SureWebVC.hidesBottomBarWhenPushed=YES;
//    [self.navigationController pushViewController:SureWebVC animated:YES];
//}
//
//- (void)geturlwithID:(NSString *)shopid {
//
//    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
//
//    [dic setObject:shopid forKey:@"id"];
//
//    NSLog(@"%@",[NSString stringWithFormat:@"%@/%@",domainHTTP,@"share/getGoodsShareUrl"]);
//
//    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"share/getGoodsShareUrl"]
//                 param:dic
//               success:^(NSDictionary *object) {
//
//        ShonpingShareViewController *shopVC = [[ShonpingShareViewController alloc]init];
//        shopVC.urlString = object[@"data"];
//        shopVC.hidesBottomBarWhenPushed=YES;
//        [self.navigationController pushViewController:shopVC animated:YES];
//
//    } fail:^(id object) {
//        NSLog(@"%@",object);
//    }];
//}
//- (void)getdatasource {
//
//    NSMutableDictionary *dic = [[NSMutableDictionary alloc] init];
//
//    [dic setObject:@"1" forKey:@"pageIndex"];
//
//    if ([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] != nil) {
//        [dic setObject:[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] forKey:@"uid"];
//
//    } else {
//
//        [dic setObject:@"" forKey:@"uid"];
//    }
//
//    [JYNetWorking Post:[NSString stringWithFormat:@"%@/%@",domainHTTP,@"invite/inviteGetMoney"] param:dic success:^(NSDictionary *object) {
//
//        [self->_scrollview.mj_header endRefreshing];
//
//        NSDictionary *dic = object[@"data"];
//
//        self.inviteListString = dic[@"inviteList"];
//        self.everyDayTaskList = dic[@"everyDayTaskList"];
//        self.inviteGetMoneyList = dic[@"inviteGetMoneyList"];
//
//        self.taskView.frame = CGRectMake(0, CGRectGetMaxY(self.percentageView.frame) + 10, KScreenW, self.everyDayTaskList.count * 120 + 60);
//        self.taskTableview.frame = CGRectMake(0, 0, KScreenW,self->_taskView.frame.size.height  );
//        self.listView.frame = CGRectMake(0, CGRectGetMaxY(self.taskView.frame) + 10, KScreenW, self.inviteGetMoneyList.count * 50 + 60);
//        self.listTableview.frame = CGRectMake(0, 0, self->_listView.frame.size.width, self->_listView.frame.size.height );
//
//        NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[dic[@"activityRules"] dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
//
//        NSMutableAttributedString *str = [[NSMutableAttributedString alloc]initWithAttributedString:attrStr];
//
//        [str addAttribute:NSForegroundColorAttributeName value:SJColor(136, 136, 136, 1) range:NSMakeRange(0,str.length)];
//        [str addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize :14] range:NSMakeRange(0, str.length)];
//
//        self.ruleLabel.attributedText = str;
//
//        if ([[NSString stringWithFormat:@"%@",dic[@"myTeam"]] isKindOfClass:[NSNull class]]) {
//            self.teamNumber.text = @"0";
//        }else{
//            self.teamNumber.text = [NSString stringWithFormat:@"%@",dic[@"myTeam"]];
//            self.number = self.teamNumber.text;
//        }
//
//        if (!dic[@"moneyToday"]) {
//            self.estimateLabel.text = @"0";
//        }else{
//            self.estimateLabel.text = [NSString stringWithFormat:@"%@",dic[@"moneyToday"]];
//        }
//
//        if (!dic[@"moneyMonth"]) {
//            self.mothLabel.text = @"0";
//        }else{
//            self.mothLabel.text = [NSString stringWithFormat:@"%@",dic[@"moneyMonth"]];
//        }
//        if (!dic[@"moneyLastMonth"]) {
//            self.lastMonLabel.text = @"0";
//        }else{
//            self.lastMonLabel.text = [NSString stringWithFormat:@"%@",dic[@"moneyLastMonth"]];
//        }
//        [self.ruleLabel sizeToFit];
//
//        CGSize size = [self sizeWithFont:[UIFont systemFontOfSize:14] maxSize:CGSizeMake(KScreenW - 40, 2000) string:self.ruleLabel.text];
//
//        self.ruleView.frame = CGRectMake(0, CGRectGetMaxY(self.listView.frame) + 10, KScreenW, size.height + 80);
//
//        self->_scrollview.contentSize = CGSizeMake(KScreenW, self.headImageView.frame.size.height +  self.teamView.frame.size.height + self.taskView.frame.size.height + self.percentageView.frame.size.height + self.listView.frame.size.height + self.ruleView.frame.size.height + 100);
//
//        [self.taskTableview reloadData];
//        [self.listTableview reloadData];
//
//        if (!([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"])) {
//            self.teamNumber.text = @"---";
//            self.estimateLabel.text = @"---";
//            self.mothLabel.text = @"---";
//            self.lastMonLabel.text = @"---";
//        }
//
//    } fail:^(id object) {
//
//        [self->_scrollview.mj_header endRefreshing];
//    }];
//}
//- (void)priTaped:(UIButton *)sender{
//
//    if (![[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]) {
//
//        return;
//    }
//
//    _primtWindow = [[UIWindow alloc]init];
//
//    _primtWindow.backgroundColor = [UIColor colorWithWhite:0.2 alpha:0.7];
//    _primtWindow.windowLevel = UIWindowLevelAlert - 1;
//    _primtWindow.hidden = NO;
//
//    [_primtWindow addSubview:self.primtView];
//
//    if (sender.tag == 35) {
//
//        self.primtTitle.text = @"今日预估收益";
//        self.primtContent.text = @"今日新增的所有订单预估收益";
//
//    } else if(sender.tag == 36) {
//
//        self.primtTitle.text = @"本月预估收益";
//        self.primtContent.text = @"本月内产生的所有订单预估收益,会在订单确认收货后的次月25日后转入你的余额,以实际转入余额为准";
//
//    } else {
//
//        self.primtTitle.text = @"上月预估收入";
//        self.primtContent.text = @"上个月内确认收货的订单收入,每月25日结算后,将自动转入你的余额";
//    }
//}
//
//- (void)primtTaped:(UIButton *)sender {
//
//    _primtWindow.hidden = YES;
//    _primtWindow = nil;
//}
////计算文字高度
//- (CGFloat)getHeightLineWithString:(NSString *)string withWidth:(CGFloat)width withFont:(UIFont *)font {
//
//    //1.1最大允许绘制的文本范围
//    CGSize size = CGSizeMake(width, 2000);
//    //1.2配置计算时的行截取方法,和contentLabel对应
//    NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
//    [style setLineSpacing:10];
//    //1.3配置计算时的字体的大小
//    //1.4配置属性字典
//    NSDictionary *dic = @{NSFontAttributeName:font, NSParagraphStyleAttributeName:style};
//    //2.计算
//    //如果想保留多个枚举值,则枚举值中间加按位或|即可,并不是所有的枚举类型都可以按位或,只有枚举值的赋值中有左移运算符时才可以
//    CGFloat height = [string boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:dic context:nil].size.height;
//
//    return height;
//}
//
//-(CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize string:(NSString *)string {
//
//    NSDictionary *attrs = @{NSFontAttributeName:font};
//
//    return [string boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:attrs context:nil].size;
//}
//
////设置view某一遍的边框
//- (void)setBorderWithView:(UIView *)view top:(BOOL)top left:(BOOL)left bottom:(BOOL)bottom right:(BOOL)right borderColor:(UIColor *)color borderWidth:(CGFloat)width {
//
//    if (top) {
//        CALayer *layer = [CALayer layer];
//        layer.frame = CGRectMake(0, 0, view.frame.size.width, width);
//        layer.backgroundColor = color.CGColor;
//        [view.layer addSublayer:layer];
//    }
//    if (left) {
//        CALayer *layer = [CALayer layer];
//        layer.frame = CGRectMake(0, 0, width, view.frame.size.height);
//        layer.backgroundColor = color.CGColor;
//        [view.layer addSublayer:layer];
//    }
//    if (bottom) {
//        CALayer *layer = [CALayer layer];
//        layer.frame = CGRectMake(0, view.frame.size.height - width, view.frame.size.width, width);
//        layer.backgroundColor = color.CGColor;
//        [view.layer addSublayer:layer];
//    }
//    if (right) {
//        CALayer *layer = [CALayer layer];
//        layer.frame = CGRectMake(view.frame.size.width - width, 0, width, view.frame.size.height);
//        layer.backgroundColor = color.CGColor;
//        [view.layer addSublayer:layer];
//    }
//}
//
#pragma mark - UITableViewDataSource,UITableViewDelegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 4;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    if (tableView == self.listTableview) {
        return self.inviteGetMoneyList.count;
    }
    return self.everyDayTaskList.count;
    return 1;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    if (tableView == self.taskTableview) {
    if (indexPath.section == 0) {
        
        NSString *identifier = @"MainInviteTableViewCell";
        MainInviteTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
        NSString *cellIden = @"inviteOneCell";
        InviteOneCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIden];
        
        if (!cell) {
            cell = [[MainInviteTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
            cell = [[InviteOneCell alloc] initWithStyle:UITableViewCellStyleDefault
                                        reuseIdentifier:cellIden];
        }
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.buttonView.layer.cornerRadius = cell.buttonView.frame.size.height / 2;
        cell.buttonView.layer.masksToBounds = YES;
        NSDictionary *dic = self.everyDayTaskList[indexPath.row];
        [cell.imageview setYthImageWithURL:dic[@"etGoods"][@"pictUrl"] placeholderImage:[UIImage imageNamed:@"商品默认图片"]];
        cell.nameLabel.text = [NSString stringWithFormat:@"%@",dic[@"etGoods"][@"title"]];
        cell.saleNumberLabel.text = [NSString stringWithFormat:@"月销量:%@",dic[@"etGoods"][@"salesCount"]];
        cell.makeMoneyLabel.text = [NSString stringWithFormat:@"%@",dic[@"getMoney"]];
        cell.shareButton.tag = 722 + indexPath.row;
        [cell.shareButton addTarget:self action:@selector(shareShopTaped:) forControlEvents:UIControlEventTouchUpInside];
        cell.priceLabel.text = [NSString stringWithFormat:@"券后价:%@",dic[@"quanhoujia"]];
        NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:cell.priceLabel.text];
        [str addAttribute:NSForegroundColorAttributeName value:[UIColor blackColor] range:NSMakeRange(4,cell.priceLabel.text.length - 4)];
        
        if (KScreenW <375) {
            cell.makeMoneyLabel.font = [UIFont systemFontOfSize:12];
            cell.saleNumberLabel.font = [UIFont systemFontOfSize:12];
            [str addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:12] range:NSMakeRange(0,cell.priceLabel.text.length )];
        return cell;
    } else if (indexPath.section == 1) {
        NSString *cellIden = @"inviteTwoCell";
        InviteTwoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIden];
        if (!cell) {
            cell = [[InviteTwoCell alloc] initWithStyle:UITableViewCellStyleDefault
                                        reuseIdentifier:cellIden];
        }
        cell.priceLabel.attributedText = str;
        return cell;
    } else if (indexPath.section == 2) {
        NSString *cellIden = @"inviteThreeCell";
        InviteThreeCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIden];
        if (!cell) {
            cell = [[InviteThreeCell alloc] initWithStyle:UITableViewCellStyleDefault
                                          reuseIdentifier:cellIden];
        }
        return cell;
        
    } else {
        
        NSString *identifier = @"InvateListTableViewCell";
        InvateListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
        NSString *cellIden = @"iuITableViewCell";
        InvitewFourCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIden];
        
        if (!cell) {
            cell = [[InvateListTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
            cell = [[InvitewFourCell alloc] initWithStyle:UITableViewCellStyleDefault
                                          reuseIdentifier:cellIden];
        }
        
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.backView.layer.cornerRadius = 5;
        cell.backView.layer.masksToBounds = YES;
        cell.backView.backgroundColor = indexPath.row % 2 ? SJColor(255, 225, 238, 1) : SJColor(255, 254, 227, 1);
        cell.headImage.layer.cornerRadius = cell.headImage.frame.size.height / 2;
        cell.headImage.layer.masksToBounds = YES;
        NSDictionary *dic = self.inviteGetMoneyList[indexPath.row];
        cell.nameLabel.text = dic[@"name"];
        cell.gradeImage.image = [UIImage imageNamed:@"g1"];
        [cell.gradeImage setYthImageWithURL:dic[@"icon"] placeholderImage:[UIImage imageNamed:self.gradeArr[indexPath.row % 5]]];
        [cell.headImage setYthImageWithURL:dic[@"portrait"] placeholderImage:[UIImage imageNamed:@"默认头像"]];
        cell.moneyLabel.text = [NSString stringWithFormat:@"Â¥%.2f",[dic[@"money"]doubleValue]];
        cell.userInteractionEnabled = NO;
        return cell;
    }
}
// è¡¨æ ¼é«˜åº¦
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
    //    return [self.tableView cellHeightForIndexPath:indexPath
    //                                            model:self.listArrs[indexPath.section]
    //                                          keyPath:@"model"
    //                                        cellClass:[AddrssMangeCell class]
    //                                 contentViewWidth:SCREEN_WIDTH];
    if (indexPath.section == 0) {
        return 322;
    } else if (indexPath.section == 1) {
        return 363;
    } else if (indexPath.section == 2) {
        return 320;
    } else {
        return 50;
    }
}
// è¡¨æ ¼å¤´éƒ¨é«˜åº¦
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
    return 0.001;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
    
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, KScreenW, 40)];
    label.text = @"每日任务";
    if (tableView == self.listTableview) {
        label.text = @"邀请提成榜";
    }
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont boldSystemFontOfSize:20];
    label.textColor = XYRMainColor;
    [self setBorderWithView:label top:NO left:NO bottom:YES right:NO borderColor:XYRBackgroundColor borderWidth:1];
    return label;
    UIView *bgView = [[UIView alloc] init];
    bgView.backgroundColor = XYRBackgroundColor;
    return bgView;
}
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    return 40;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    NSDictionary *tempItem = [self.everyDayTaskList[indexPath.row] objectForKey:@"etGoods"];
    if ([YTHsharedManger startManger].isDetailWebValue) {
        SureWebViewController *webView=[[SureWebViewController alloc] init];
        [webView backClicked:^(NSString *string) {
        }];
        webView.goodsId=[tempItem objectForKey:@"auctionId"];
        webView.canDownRefresh=YES;
        webView.isGoodsDetail = YES;
        webView.hidesBottomBarWhenPushed = YES;
        [self.navigationController pushViewController:webView animated:YES];
        return;
    }
// è¡¨æ ¼å°¾éƒ¨é«˜åº¦
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
    
    GoodDeTrViewController *goodsDetailVC = [[GoodDeTrViewController alloc]init];
    goodsDetailVC.hidesBottomBarWhenPushed = YES;
    goodsDetailVC.goodsID = [tempItem objectForKey:@"auctionId"];
    [self .navigationController pushViewController:goodsDetailVC animated:YES];
}
#pragma mark - getter
- (UIScrollView *)scrollview{
    if (_scrollview) {
    if (section == 2) {
        
        return _scrollview ;
    }
    NSInteger height = -20;
    if (IsiPhoneX) {
        return 30 ;
        
        height = -44;
    } else {
        return 0.001;
    }
    _scrollview = [[UIScrollView alloc]initWithFrame:CGRectMake(0, height, KScreenW, KScreenH)];
    _scrollview.pagingEnabled = NO;
    _scrollview.showsHorizontalScrollIndicator = NO;
    _scrollview.backgroundColor = XYRBackgroundColor;
    [_scrollview addSubview:self.headImageView];
    [_scrollview addSubview:self.teamView];
    [_scrollview addSubview:self.percentageView];
    [_scrollview addSubview:self.taskView];
    [_scrollview addSubview:self.listView];
    [_scrollview addSubview:self.ruleView];
    _scrollview.contentSize = CGSizeMake(KScreenW, self.headImageView.frame.size.height +  self.teamView.frame.size.height + self.taskView.frame.size.height + self.percentageView.frame.size.height + self.listView.frame.size.height + self.ruleView.frame.size.height + 120);
    _scrollview.mj_header =[MJRefreshNormalHeader headerWithRefreshingBlock:^{
        [self getdatasource];
    }];
    return _scrollview;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
    if (section == 2) {
        InviteHederFourView *bgView = [[InviteHederFourView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 30)];
        return bgView;
    } else {
        UIView *bgView = [[UIView alloc] init];
        bgView.backgroundColor = XYRBackgroundColor;
        return bgView;
    }
}
- (UIImageView *)headImageView {
    if (_headImageView) {
        return _headImageView;
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//
//    if (tableView == self.taskTableview) {
//
//        NSString *identifier = @"MainInviteTableViewCell";
//        MainInviteTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
//
//        if (!cell) {
//            cell = [[MainInviteTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
//        }
//        cell.selectionStyle = UITableViewCellSelectionStyleNone;
//        cell.buttonView.layer.cornerRadius = cell.buttonView.frame.size.height / 2;
//        cell.buttonView.layer.masksToBounds = YES;
//        NSDictionary *dic = self.everyDayTaskList[indexPath.row];
//        [cell.imageview setYthImageWithURL:dic[@"etGoods"][@"pictUrl"] placeholderImage:[UIImage imageNamed:@"商品默认图片"]];
//
//        cell.nameLabel.text = [NSString stringWithFormat:@"%@",dic[@"etGoods"][@"title"]];
//        cell.saleNumberLabel.text = [NSString stringWithFormat:@"月销量:%@",dic[@"etGoods"][@"salesCount"]];
//        cell.makeMoneyLabel.text = [NSString stringWithFormat:@"%@",dic[@"getMoney"]];
//        cell.shareButton.tag = 722 + indexPath.row;
//        [cell.shareButton addTarget:self action:@selector(shareShopTaped:) forControlEvents:UIControlEventTouchUpInside];
//        cell.priceLabel.text = [NSString stringWithFormat:@"券后价:%@",dic[@"quanhoujia"]];
//        NSMutableAttributedString *str = [[NSMutableAttributedString alloc] initWithString:cell.priceLabel.text];
//        [str addAttribute:NSForegroundColorAttributeName value:[UIColor blackColor] range:NSMakeRange(4,cell.priceLabel.text.length - 4)];
//
//        if (KScreenW <375) {
//            cell.makeMoneyLabel.font = [UIFont systemFontOfSize:12];
//            cell.saleNumberLabel.font = [UIFont systemFontOfSize:12];
//            [str addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:12] range:NSMakeRange(0,cell.priceLabel.text.length )];
//        }
//        cell.priceLabel.attributedText = str;
//
//        return cell;
//
//    } else {
//
//        NSString *identifier = @"InvateListTableViewCell";
//
//        InvateListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
//
//        if (!cell) {
//            cell = [[InvateListTableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
//        }
//
//        cell.selectionStyle = UITableViewCellSelectionStyleNone;
//        cell.backView.layer.cornerRadius = 5;
//        cell.backView.layer.masksToBounds = YES;
//        cell.backView.backgroundColor = indexPath.row % 2 ? SJColor(255, 225, 238, 1) : SJColor(255, 254, 227, 1);
//        cell.headImage.layer.cornerRadius = cell.headImage.frame.size.height / 2;
//        cell.headImage.layer.masksToBounds = YES;
//
//        NSDictionary *dic = self.inviteGetMoneyList[indexPath.row];
//        cell.nameLabel.text = dic[@"name"];
//        cell.gradeImage.image = [UIImage imageNamed:@"g1"];
//        [cell.gradeImage setYthImageWithURL:dic[@"icon"] placeholderImage:[UIImage imageNamed:self.gradeArr[indexPath.row % 5]]];
//        [cell.headImage setYthImageWithURL:dic[@"portrait"] placeholderImage:[UIImage imageNamed:@"默认头像"]];
//        cell.moneyLabel.text = [NSString stringWithFormat:@"Â¥%.2f",[dic[@"money"]doubleValue]];
//        cell.userInteractionEnabled = NO;
//        return cell;
//    }
//}
//
//- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
//
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, KScreenW, 40)];
//    label.text = @"每日任务";
//    if (tableView == self.listTableview) {
//        label.text = @"邀请奖金榜";
//    }
//    label.textAlignment = NSTextAlignmentCenter;
//    label.font = [UIFont boldSystemFontOfSize:20];
//    label.textColor = XYRMainColor;
//    [self setBorderWithView:label top:NO left:NO bottom:YES right:NO borderColor:XYRBackgroundColor borderWidth:1];
//
//    return label;
//}
//
//- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
//    return 40;
//}
//
//- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//
//    NSDictionary *tempItem = [self.everyDayTaskList[indexPath.row] objectForKey:@"etGoods"];
//
//    if ([YTHsharedManger startManger].isDetailWebValue) {
//        SureWebViewController *webView=[[SureWebViewController alloc] init];
//        [webView backClicked:^(NSString *string) {
//
//        }];
//        webView.goodsId=[tempItem objectForKey:@"auctionId"];
//        webView.canDownRefresh=YES;
//        webView.isGoodsDetail = YES;
//        webView.hidesBottomBarWhenPushed = YES;
//        [self.navigationController pushViewController:webView animated:YES];
//        return;
//    }
//
//    GoodDeTrViewController *goodsDetailVC = [[GoodDeTrViewController alloc]init];
//    goodsDetailVC.hidesBottomBarWhenPushed = YES;
//    goodsDetailVC.goodsID = [tempItem objectForKey:@"auctionId"];
//    [self .navigationController pushViewController:goodsDetailVC animated:YES];
//}
//
//
//#pragma mark - getter
//- (UIScrollView *)scrollview{
//
//    if (_scrollview) {
//
//        return _scrollview ;
//    }
//    NSInteger height = -20;
//
//    if (IsiPhoneX) {
//
//        height = -44;
//    }
//    _scrollview = [[UIScrollView alloc]initWithFrame:CGRectMake(0, height, KScreenW, KScreenH)];
//    _scrollview.pagingEnabled = NO;
//    _scrollview.showsHorizontalScrollIndicator = NO;
//    _scrollview.backgroundColor = XYRBackgroundColor;
//    [_scrollview addSubview:self.headImageView];
//    [_scrollview addSubview:self.teamView];
//    [_scrollview addSubview:self.percentageView];
//    [_scrollview addSubview:self.taskView];
//    [_scrollview addSubview:self.listView];
//    [_scrollview addSubview:self.ruleView];
//    _scrollview.contentSize = CGSizeMake(KScreenW, self.headImageView.frame.size.height +  self.teamView.frame.size.height + self.taskView.frame.size.height + self.percentageView.frame.size.height + self.listView.frame.size.height + self.ruleView.frame.size.height + 120);
//    _scrollview.mj_header =[MJRefreshNormalHeader headerWithRefreshingBlock:^{
//        [self getdatasource];
//    }];
//    return _scrollview;
//}
//
//- (UIImageView *)headImageView {
//
//    if (_headImageView) {
//        return _headImageView;
//    }
//    _headImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, 220)];
//
//    _headImageView.image = [UIImage imageNamed: @"banner"];
//    _headImageView.userInteractionEnabled = YES;
//    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(headImageTaped:)];
//    [_headImageView addGestureRecognizer:tap];
//
//    return _headImageView;
//}
//- (UIView *)teamView {
//
//    if (_teamView) {
//        return _teamView;
//    }
//
//    UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(_headImageView.frame), KScreenW , 90)];
//    backView.backgroundColor = SJColor(250, 222, 50, 1);
//    [_scrollview addSubview:backView];
//
//    _teamView = [[UIView alloc]initWithFrame:CGRectMake(LfteLength, CGRectGetMaxY(_headImageView.frame) + 10, KScreenW - LfteLength * 2, 80)];
//    _teamView.backgroundColor = [UIColor whiteColor];
//    _teamView.layer.cornerRadius = 8;
//    _teamView.layer.masksToBounds = YES;
//    [_teamView addSubview:self.teamNumber];
//    [_teamView addSubview:self.estimateLabel];
//    [_teamView addSubview:self.mothLabel];
//    [_teamView addSubview:self.lastMonLabel];
//    return _teamView;
//}
//- (UILabel *)teamNumber {
//    if (_teamNumber) {
//        return _teamNumber;
//    }
//    _teamNumber = [[UILabel alloc]initWithFrame:CGRectMake(0, 10,( KScreenW - LfteLength) / 4 - 1, 30)];
//    _teamNumber.textColor = XYRMainColor;
//    _teamNumber.font = [UIFont boldSystemFontOfSize:30];
//    _teamNumber .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
//
//    _teamNumber.textAlignment = NSTextAlignmentCenter;
//    _teamNumber.text = @"---";
//
//    NSInteger height = 15;
//    if (KScreenW > 375) {
//        height = 15;
//    }
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_teamNumber.frame), CGRectGetMaxY(_teamNumber.frame) + 10, _teamNumber.frame.size.width, height)];
//    label.font = [UIFont systemFontOfSize:12];
//    if (KScreenW > 375) {
//        label.font = [UIFont systemFontOfSize:15];
//    }
//    label.textAlignment = NSTextAlignmentCenter;
//    label.text = @"我的队员";
//    label.textColor = SJColor(98, 98, 98,1);
//
//    [_teamView addSubview:label];
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(CGRectGetMinX(_teamNumber.frame), CGRectGetMinY(_teamNumber.frame), _teamNumber.frame.size.width, _teamNumber.frame.size.height + label.frame.size.height + 10);
//    [button addTarget:self action:@selector(numTaped:) forControlEvents:UIControlEventTouchUpInside];
//    button.tag = 35;
//    [_teamView addSubview:button];
//    return _teamNumber;
//}
//
//-(UILabel *)estimateLabel{
//    if (_estimateLabel) {
//        return _estimateLabel;
//    }
//    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.teamNumber.frame), 15, 1, _teamView.frame.size.height - 30)];
//    lineview.backgroundColor = XYRBackgroundColor;
//    [_teamView addSubview:lineview];
//
//    _estimateLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.teamNumber.frame) + 1, 10, self.teamNumber.frame.size.width, 30)];
//    _estimateLabel.textColor = XYRMainColor;
//    _estimateLabel.font = [UIFont boldSystemFontOfSize:30];
//    _estimateLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
//
//    _estimateLabel.textAlignment = NSTextAlignmentCenter;
//    _estimateLabel.text = @"---";
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_estimateLabel.frame), CGRectGetMaxY(_estimateLabel.frame) + 10, _estimateLabel.frame.size.width-20, 25)];
//    label.font = [UIFont systemFontOfSize:12];
//    if (KScreenW > 375) {
//        label.font = [UIFont systemFontOfSize:15];
//    }
//    label.text = @" ä»Šæ—¥é¢„ä¼°";
//    label.textAlignment = NSTextAlignmentRight;
//    [label sizeToFit];
//
//    label.textColor = SJColor(98, 98, 98,1);
//    [_teamView addSubview:label];
//    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(label.frame)-5, CGRectGetMinY(label.frame) - 4 , 30, 22)];
//    image.image = [UIImage imageNamed:@"形状问"];
//    [_teamView addSubview:image];
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(CGRectGetMinX(_estimateLabel.frame), CGRectGetMinY(_estimateLabel.frame), _estimateLabel.frame.size.width, _estimateLabel.frame.size.height + label.frame.size.height + 10);
//    [button addTarget:self action:@selector(priTaped:) forControlEvents:UIControlEventTouchUpInside];
//    button.tag = 35;
//    [_teamView addSubview:button];
//    return _estimateLabel;
//}
//- (UILabel *)mothLabel {
//    if (_mothLabel) {
//        return _mothLabel;
//    }
//    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.estimateLabel.frame), 15, 1, _teamView.frame.size.height - 30)];
//    lineview.backgroundColor = XYRBackgroundColor;
//    [_teamView addSubview:lineview];
//
//    _mothLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.estimateLabel.frame) + 1, 10, _estimateLabel.frame.size.width, 30)];
//    _mothLabel.textColor = XYRMainColor;
//    _mothLabel.font = [UIFont boldSystemFontOfSize:30];
//    _mothLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
//
//    _mothLabel.textAlignment = NSTextAlignmentCenter;
//    _mothLabel.text = @"---";
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_mothLabel.frame), CGRectGetMaxY(_mothLabel.frame) + 10, _mothLabel.frame.size.width-20, 25)];
//    label.font = [UIFont systemFontOfSize:12];
//    if (KScreenW > 375) {
//        label.font = [UIFont systemFontOfSize:15];
//    }
//    label.textAlignment = NSTextAlignmentRight;
//    label.text = @" æœ¬æœˆé¢„ä¼°";
//    label.textColor = SJColor(98, 98, 98,1);
//    [label sizeToFit];
//    [_teamView addSubview:label];
//
//    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(label.frame)- 4, CGRectGetMinY(label.frame) - 5, 30, 22)];
//    image.image = [UIImage imageNamed:@"形状问"];
//    [_teamView addSubview:image];
//
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(CGRectGetMinX(_mothLabel.frame), CGRectGetMinY(_mothLabel.frame), _mothLabel.frame.size.width, _mothLabel.frame.size.height + label.frame.size.height + 10);
//    [button addTarget:self action:@selector(priTaped:) forControlEvents:UIControlEventTouchUpInside];
//    button.tag = 36;
//    [_teamView addSubview:button];
//    return _mothLabel;
//}
//- (UIView *)taskView{
//    if (_taskView) {
//        return _taskView;
//    }
//    _taskView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.percentageView.frame) + 10, KScreenW, 400)];
//    _taskView.backgroundColor = [UIColor whiteColor];
//    [_taskView addSubview:self.taskTableview];
//    return _taskView;
//}
//- (UITableView *)taskTableview{
//    if (_taskTableview) {
//        return _taskTableview;
//    }
//    _taskTableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, _taskView.frame.size.width, _taskView.frame.size.height) style:UITableViewStylePlain];
//    _taskTableview.delegate = self;
//    _taskTableview.dataSource = self;
//    _taskTableview.rowHeight = 120;
//    _taskTableview.scrollEnabled = NO;
//    [_taskTableview registerNib:[UINib nibWithNibName:@"MainInviteTableViewCell" bundle:nil] forCellReuseIdentifier:@"MainInviteTableViewCell"];
//    return _taskTableview;
//}
//- (UIView *)percentageView{
//    if (_percentageView) {
//        return _percentageView;
//    }
//    UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.teamView.frame) , KScreenW , KScreenW / 0.89)];
//    backView.backgroundColor = SJColor(250, 222, 50, 1);
//    [_scrollview addSubview:backView];
//    _percentageView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.teamView.frame) + 10, KScreenW , backView .frame.size.height - 20)];
//    _teamView.layer.cornerRadius = 8;
//    _teamView.layer.masksToBounds = YES;
//    _percentageView.backgroundColor = [UIColor whiteColor];
//    UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, _percentageView.frame.size.width, _percentageView.frame.size.height)];
//    imageview.image = [UIImage imageNamed:@"会员提成"];
//    [_percentageView addSubview:imageview];
//
//    return _percentageView;
//}
//
//- (UIView *)listView {
//
//    if (_listView) {
//        return _listView;
//    }
//    _listView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.percentageView.frame) + 10, KScreenW, 400)];
//    _listView.backgroundColor = [UIColor whiteColor];
//    [_listView addSubview:self.listTableview];
//    return _listView;
//}
//
- (UITableView *)tableView {
    if (!_tableView) {
        NSInteger height = -20;
        if (IsiPhoneX) {
            height = -44;
        }
        CGRect rect;
        rect.origin.x = 0;
        rect.origin.y = height;
        rect.size.width = SCREEN_WIDTH;
        rect.size.height = SCREEN_HEIGHT - kToolBarH - height;
        _tableView = [[UITableView alloc] initWithFrame:rect
                                                  style:UITableViewStyleGrouped];
        _tableView.delegate = self;
        _tableView.dataSource = self;
        _tableView.estimatedRowHeight = 0;
        _tableView.estimatedSectionFooterHeight = 0;
        _tableView.estimatedSectionHeaderHeight = 0;
        _tableView.backgroundColor = XYRBackgroundColor;
        _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    }
    _headImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, 220)];
    
    _headImageView.image = [UIImage imageNamed: @"banner"];
    _headImageView.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(headImageTaped:)];
    [_headImageView addGestureRecognizer:tap];
    return _headImageView;
    return _tableView;
}
- (UIView *)teamView {
    if (_teamView) {
        return _teamView;
    }
    UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(_headImageView.frame), KScreenW , 90)];
    backView.backgroundColor = SJColor(250, 222, 50, 1);
    [_scrollview addSubview:backView];
    _teamView = [[UIView alloc]initWithFrame:CGRectMake(LfteLength, CGRectGetMaxY(_headImageView.frame) + 10, KScreenW - LfteLength * 2, 80)];
    _teamView.backgroundColor = [UIColor whiteColor];
    _teamView.layer.cornerRadius = 8;
    _teamView.layer.masksToBounds = YES;
    [_teamView addSubview:self.teamNumber];
    [_teamView addSubview:self.estimateLabel];
    [_teamView addSubview:self.mothLabel];
    [_teamView addSubview:self.lastMonLabel];
    return _teamView;
}
- (UILabel *)teamNumber {
    if (_teamNumber) {
        return _teamNumber;
    }
    _teamNumber = [[UILabel alloc]initWithFrame:CGRectMake(0, 10,( KScreenW - LfteLength) / 4 - 1, 30)];
    _teamNumber.textColor = XYRMainColor;
    _teamNumber.font = [UIFont boldSystemFontOfSize:30];
    _teamNumber .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
    _teamNumber.textAlignment = NSTextAlignmentCenter;
    _teamNumber.text = @"---";
    NSInteger height = 15;
    if (KScreenW > 375) {
        height = 15;
    }
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_teamNumber.frame), CGRectGetMaxY(_teamNumber.frame) + 10, _teamNumber.frame.size.width, height)];
    label.font = [UIFont systemFontOfSize:12];
    if (KScreenW > 375) {
        label.font = [UIFont systemFontOfSize:15];
    }
    label.textAlignment = NSTextAlignmentCenter;
    label.text = @"我的队员";
    label.textColor = SJColor(98, 98, 98,1);
    [_teamView addSubview:label];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(CGRectGetMinX(_teamNumber.frame), CGRectGetMinY(_teamNumber.frame), _teamNumber.frame.size.width, _teamNumber.frame.size.height + label.frame.size.height + 10);
    [button addTarget:self action:@selector(numTaped:) forControlEvents:UIControlEventTouchUpInside];
    button.tag = 35;
    [_teamView addSubview:button];
    return _teamNumber;
}
-(UILabel *)estimateLabel{
    if (_estimateLabel) {
        return _estimateLabel;
    }
    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.teamNumber.frame), 15, 1, _teamView.frame.size.height - 30)];
    lineview.backgroundColor = XYRBackgroundColor;
    [_teamView addSubview:lineview];
    _estimateLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.teamNumber.frame) + 1, 10, self.teamNumber.frame.size.width, 30)];
    _estimateLabel.textColor = XYRMainColor;
    _estimateLabel.font = [UIFont boldSystemFontOfSize:30];
    _estimateLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
    _estimateLabel.textAlignment = NSTextAlignmentCenter;
    _estimateLabel.text = @"---";
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_estimateLabel.frame), CGRectGetMaxY(_estimateLabel.frame) + 10, _estimateLabel.frame.size.width-20, 25)];
    label.font = [UIFont systemFontOfSize:12];
    if (KScreenW > 375) {
        label.font = [UIFont systemFontOfSize:15];
    }
    label.text = @" ä»Šæ—¥é¢„ä¼°";
    label.textAlignment = NSTextAlignmentRight;
    [label sizeToFit];
    label.textColor = SJColor(98, 98, 98,1);
    [_teamView addSubview:label];
    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(label.frame)-5, CGRectGetMinY(label.frame) - 4 , 30, 22)];
    image.image = [UIImage imageNamed:@"形状问"];
    [_teamView addSubview:image];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(CGRectGetMinX(_estimateLabel.frame), CGRectGetMinY(_estimateLabel.frame), _estimateLabel.frame.size.width, _estimateLabel.frame.size.height + label.frame.size.height + 10);
    [button addTarget:self action:@selector(priTaped:) forControlEvents:UIControlEventTouchUpInside];
    button.tag = 35;
    [_teamView addSubview:button];
    return _estimateLabel;
}
- (UILabel *)mothLabel {
    if (_mothLabel) {
        return _mothLabel;
    }
    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.estimateLabel.frame), 15, 1, _teamView.frame.size.height - 30)];
    lineview.backgroundColor = XYRBackgroundColor;
    [_teamView addSubview:lineview];
    _mothLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.estimateLabel.frame) + 1, 10, _estimateLabel.frame.size.width, 30)];
    _mothLabel.textColor = XYRMainColor;
    _mothLabel.font = [UIFont boldSystemFontOfSize:30];
    _mothLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
    _mothLabel.textAlignment = NSTextAlignmentCenter;
    _mothLabel.text = @"---";
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_mothLabel.frame), CGRectGetMaxY(_mothLabel.frame) + 10, _mothLabel.frame.size.width-20, 25)];
    label.font = [UIFont systemFontOfSize:12];
    if (KScreenW > 375) {
        label.font = [UIFont systemFontOfSize:15];
    }
    label.textAlignment = NSTextAlignmentRight;
    label.text = @" æœ¬æœˆé¢„ä¼°";
    label.textColor = SJColor(98, 98, 98,1);
    [label sizeToFit];
    [_teamView addSubview:label];
    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(label.frame)- 4, CGRectGetMinY(label.frame) - 5, 30, 22)];
    image.image = [UIImage imageNamed:@"形状问"];
    [_teamView addSubview:image];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(CGRectGetMinX(_mothLabel.frame), CGRectGetMinY(_mothLabel.frame), _mothLabel.frame.size.width, _mothLabel.frame.size.height + label.frame.size.height + 10);
    [button addTarget:self action:@selector(priTaped:) forControlEvents:UIControlEventTouchUpInside];
    button.tag = 36;
    [_teamView addSubview:button];
    return _mothLabel;
}
- (UIView *)taskView{
    if (_taskView) {
        return _taskView;
    }
    _taskView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.percentageView.frame) + 10, KScreenW, 400)];
    _taskView.backgroundColor = [UIColor whiteColor];
    [_taskView addSubview:self.taskTableview];
    return _taskView;
}
- (UITableView *)taskTableview{
    if (_taskTableview) {
        return _taskTableview;
    }
    _taskTableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, _taskView.frame.size.width, _taskView.frame.size.height) style:UITableViewStylePlain];
    _taskTableview.delegate = self;
    _taskTableview.dataSource = self;
    _taskTableview.rowHeight = 120;
    _taskTableview.scrollEnabled = NO;
    [_taskTableview registerNib:[UINib nibWithNibName:@"MainInviteTableViewCell" bundle:nil] forCellReuseIdentifier:@"MainInviteTableViewCell"];
    return _taskTableview;
}
- (UIView *)percentageView{
    if (_percentageView) {
        return _percentageView;
    }
    UIView *backView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.teamView.frame) , KScreenW , KScreenW / 0.89)];
    backView.backgroundColor = SJColor(250, 222, 50, 1);
    [_scrollview addSubview:backView];
    _percentageView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.teamView.frame) + 10, KScreenW , backView .frame.size.height - 20)];
    _teamView.layer.cornerRadius = 8;
    _teamView.layer.masksToBounds = YES;
    _percentageView.backgroundColor = [UIColor whiteColor];
    UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, _percentageView.frame.size.width, _percentageView.frame.size.height)];
    imageview.image = [UIImage imageNamed:@"会员提成"];
    [_percentageView addSubview:imageview];
    return _percentageView;
}
- (UIView *)listView {
    if (_listView) {
        return _listView;
    }
    _listView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.percentageView.frame) + 10, KScreenW, 400)];
    _listView.backgroundColor = [UIColor whiteColor];
    [_listView addSubview:self.listTableview];
    return _listView;
}
- (UITableView *)listTableview {
    if (_listTableview) {
        return _listTableview;
    }
    _listTableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, _listView.frame.size.width, _listView.frame.size.height) style:UITableViewStylePlain];
    _listTableview.delegate = self;
    _listTableview.dataSource = self;
    _listTableview.rowHeight = 45;
    _listTableview.scrollEnabled = NO;
    _listTableview.separatorStyle = UITableViewCellSeparatorStyleNone;
    [_listTableview registerNib:[UINib nibWithNibName:@"InvateListTableViewCell" bundle:nil] forCellReuseIdentifier:@"InvateListTableViewCell"];
    return _listTableview;
}
- (UIView *)ruleView {
    if (_ruleView) {
        return _ruleView;
    }
    _ruleView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.listView.frame) + 10, KScreenW, 400)];
    _ruleView.backgroundColor = [UIColor whiteColor];
    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(10, 10, 5, 35)];
    lineView.backgroundColor = SJColor(220, 0, 90, 1);
    [_ruleView addSubview:lineView];
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(lineView.frame) + 10, CGRectGetMinY(lineView.frame), KScreenW / 2, 35)];
    label.font = [UIFont boldSystemFontOfSize:20];
    label.textColor = SJColor(53, 53, 53, 1);
    label.text = @"活动规则";
    [_ruleView addSubview:label];
    _ruleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(lineView.frame) + 20, KScreenW - 40, 330)];
    _ruleLabel.font = [UIFont systemFontOfSize:14];
    _ruleLabel.textColor = SJColor(136, 136, 136, 1);
    _ruleLabel.numberOfLines = 0;
    [_ruleView addSubview:_ruleLabel];
    return _ruleView;
}
- (UIView *)loginView {
    if (_loginView) {
        return _loginView;
    }
    _loginView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, KScreenH)];
    _loginView.backgroundColor = [UIColor whiteColor];
    _loginView.hidden = YES;
    UIButton *loginButton = [UIButton buttonWithType:UIButtonTypeCustom];
    loginButton.frame = CGRectMake(KScreenW / 2 - 40, KScreenH / 2 - 20, 80, 40);
    [loginButton setTitle:@"登录" forState:UIControlStateNormal];
    loginButton.layer.cornerRadius = loginButton.frame.size.height / 2;
    loginButton.layer.masksToBounds = YES;
    loginButton.backgroundColor = XYRMainColor;
    [loginButton addTarget:self action:@selector(loginTaped:) forControlEvents:UIControlEventTouchUpInside];
    [_loginView addSubview:loginButton];
    return _loginView;
}
- (UIView *)primtView {
    if (_primtView) {
        return _primtView;
    }
    _primtView = [[UIView alloc]initWithFrame:CGRectMake(30, KScreenH / 2 - 80, KScreenW - 60, 180)];
    _primtView.backgroundColor = [UIColor whiteColor];
    _primtView.layer.cornerRadius = 6;
    _primtView.layer.masksToBounds = YES;
    _primtTitle = [[UILabel alloc]initWithFrame:CGRectMake(0, 25, _primtView.frame.size.width, 20)];
    _primtTitle.text = @"今日预估收益";
    _primtTitle.textAlignment = NSTextAlignmentCenter;
    _primtTitle.font = [UIFont systemFontOfSize:18];
    _primtContent = [[UILabel alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(self.primtTitle.frame) + 10, _primtView.frame.size.width - 30, 80)];
    _primtContent.text = @"";
    _primtContent.numberOfLines = 0;
    _primtContent.textAlignment = NSTextAlignmentCenter;
    _primtContent.font = [UIFont systemFontOfSize:16];
    _primtContent.textColor = SJColor(98, 98, 98, 1);
    [_primtView addSubview:self.primtTitle];
    [_primtView addSubview:self.primtContent];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(15, CGRectGetMaxY(_primtContent.frame), _primtView.frame.size.width - 30, 40);
    [button setTitle:@"知道啦" forState:UIControlStateNormal];
    [button setTitleColor:XYRMainColor forState:UIControlStateNormal];
    [self setBorderWithView:button top:YES left:NO bottom:NO right:NO borderColor:XYRBackgroundColor borderWidth:1];
    [button addTarget:self action:@selector(primtTaped:) forControlEvents:UIControlEventTouchUpInside];
    [_primtView addSubview:button];
    return _primtView;
}
- (UILabel *)lastMonLabel {
    if (_lastMonLabel) {
        return _lastMonLabel;
    }
    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.mothLabel.frame), 15, 1, _teamView.frame.size.height - 30)];
    lineview.backgroundColor = XYRBackgroundColor;
    [_teamView addSubview:lineview];
    _lastMonLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.mothLabel.frame) + 1, 10, self.mothLabel.frame.size.width, 30)];
    _lastMonLabel.textColor = XYRMainColor;
    _lastMonLabel.font = [UIFont boldSystemFontOfSize:30];
    _lastMonLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
    _lastMonLabel.textAlignment = NSTextAlignmentCenter;
    _lastMonLabel.text = @"---";
    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_lastMonLabel.frame), CGRectGetMaxY(_lastMonLabel.frame) + 10, _lastMonLabel.frame.size.width-20, 25)];
    label.font = [UIFont systemFontOfSize:12];
    if (KScreenW > 375) {
        label.font = [UIFont systemFontOfSize:15];
    }
    label.textAlignment = NSTextAlignmentRight;
    label.text = @" ä¸Šæœˆæ”¶å…¥";
    label.textColor = SJColor(98, 98, 98,1);
    [label sizeToFit];
    [_teamView addSubview:label];
    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(label.frame)- 4, CGRectGetMinY(label.frame) - 5, 30, 22)];
    if (KScreenW < 375) {
        image.frame = CGRectMake(CGRectGetMaxX(label.frame) - 8, CGRectGetMinY(label.frame) - 5, 30, 22);
    }
    image.image = [UIImage imageNamed:@"形状问"];
    [_teamView addSubview:image];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(CGRectGetMinX(_lastMonLabel.frame), CGRectGetMinY(_lastMonLabel.frame), _lastMonLabel.frame.size.width, _lastMonLabel.frame.size.height + label.frame.size.height + 10);
    [button addTarget:self action:@selector(priTaped:) forControlEvents:UIControlEventTouchUpInside];
    button.tag = 37;
    [_teamView addSubview:button];
    return _lastMonLabel;
}
//
//- (UIView *)ruleView {
//
//    if (_ruleView) {
//        return _ruleView;
//    }
//
//    _ruleView = [[UIView alloc]initWithFrame:CGRectMake(0, CGRectGetMaxY(self.listView.frame) + 10, KScreenW, 400)];
//    _ruleView.backgroundColor = [UIColor whiteColor];
//    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(10, 10, 5, 35)];
//    lineView.backgroundColor = SJColor(220, 0, 90, 1);
//    [_ruleView addSubview:lineView];
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(lineView.frame) + 10, CGRectGetMinY(lineView.frame), KScreenW / 2, 35)];
//    label.font = [UIFont boldSystemFontOfSize:20];
//    label.textColor = SJColor(53, 53, 53, 1);
//    label.text = @"活动规则";
//    [_ruleView addSubview:label];
//
//    _ruleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(lineView.frame) + 20, KScreenW - 40, 330)];
//
//    _ruleLabel.font = [UIFont systemFontOfSize:14];
//    _ruleLabel.textColor = SJColor(136, 136, 136, 1);
//    _ruleLabel.numberOfLines = 0;
//    [_ruleView addSubview:_ruleLabel];
//
//    return _ruleView;
//}
//- (UIView *)loginView {
//
//    if (_loginView) {
//        return _loginView;
//    }
//    _loginView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, KScreenW, KScreenH)];
//    _loginView.backgroundColor = [UIColor whiteColor];
//    _loginView.hidden = YES;
//    UIButton *loginButton = [UIButton buttonWithType:UIButtonTypeCustom];
//    loginButton.frame = CGRectMake(KScreenW / 2 - 40, KScreenH / 2 - 20, 80, 40);
//    [loginButton setTitle:@"登录" forState:UIControlStateNormal];
//    loginButton.layer.cornerRadius = loginButton.frame.size.height / 2;
//    loginButton.layer.masksToBounds = YES;
//    loginButton.backgroundColor = XYRMainColor;
//    [loginButton addTarget:self action:@selector(loginTaped:) forControlEvents:UIControlEventTouchUpInside];
//    [_loginView addSubview:loginButton];
//    return _loginView;
//}
//
//- (UIView *)primtView {
//
//    if (_primtView) {
//        return _primtView;
//    }
//    _primtView = [[UIView alloc]initWithFrame:CGRectMake(30, KScreenH / 2 - 80, KScreenW - 60, 180)];
//    _primtView.backgroundColor = [UIColor whiteColor];
//    _primtView.layer.cornerRadius = 6;
//    _primtView.layer.masksToBounds = YES;
//
//    _primtTitle = [[UILabel alloc]initWithFrame:CGRectMake(0, 25, _primtView.frame.size.width, 20)];
//    _primtTitle.text = @"今日预估收益";
//    _primtTitle.textAlignment = NSTextAlignmentCenter;
//    _primtTitle.font = [UIFont systemFontOfSize:18];
//
//    _primtContent = [[UILabel alloc]initWithFrame:CGRectMake(15, CGRectGetMaxY(self.primtTitle.frame) + 10, _primtView.frame.size.width - 30, 80)];
//    _primtContent.text = @"";
//    _primtContent.numberOfLines = 0;
//    _primtContent.textAlignment = NSTextAlignmentCenter;
//    _primtContent.font = [UIFont systemFontOfSize:16];
//    _primtContent.textColor = SJColor(98, 98, 98, 1);
//
//    [_primtView addSubview:self.primtTitle];
//    [_primtView addSubview:self.primtContent];
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(15, CGRectGetMaxY(_primtContent.frame), _primtView.frame.size.width - 30, 40);
//    [button setTitle:@"知道啦" forState:UIControlStateNormal];
//    [button setTitleColor:XYRMainColor forState:UIControlStateNormal];
//    [self setBorderWithView:button top:YES left:NO bottom:NO right:NO borderColor:XYRBackgroundColor borderWidth:1];
//    [button addTarget:self action:@selector(primtTaped:) forControlEvents:UIControlEventTouchUpInside];
//    [_primtView addSubview:button];
//    return _primtView;
//}
//- (UILabel *)lastMonLabel {
//
//    if (_lastMonLabel) {
//        return _lastMonLabel;
//    }
//    UIView *lineview = [[UIView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.mothLabel.frame), 15, 1, _teamView.frame.size.height - 30)];
//    lineview.backgroundColor = XYRBackgroundColor;
//    [_teamView addSubview:lineview];
//
//    _lastMonLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(self.mothLabel.frame) + 1, 10, self.mothLabel.frame.size.width, 30)];
//    _lastMonLabel.textColor = XYRMainColor;
//    _lastMonLabel.font = [UIFont boldSystemFontOfSize:30];
//    _lastMonLabel .font = [UIFont fontWithName:@"Arial-BoldMT" size:30];
//    _lastMonLabel.textAlignment = NSTextAlignmentCenter;
//    _lastMonLabel.text = @"---";
//    UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMinX(_lastMonLabel.frame), CGRectGetMaxY(_lastMonLabel.frame) + 10, _lastMonLabel.frame.size.width-20, 25)];
//    label.font = [UIFont systemFontOfSize:12];
//    if (KScreenW > 375) {
//        label.font = [UIFont systemFontOfSize:15];
//    }
//    label.textAlignment = NSTextAlignmentRight;
//    label.text = @" ä¸Šæœˆæ”¶å…¥";
//    label.textColor = SJColor(98, 98, 98,1);
//    [label sizeToFit];
//    [_teamView addSubview:label];
//
//    UIImageView *image = [[UIImageView alloc]initWithFrame:CGRectMake(CGRectGetMaxX(label.frame)- 4, CGRectGetMinY(label.frame) - 5, 30, 22)];
//    if (KScreenW < 375) {
//        image.frame = CGRectMake(CGRectGetMaxX(label.frame) - 8, CGRectGetMinY(label.frame) - 5, 30, 22);
//    }
//    image.image = [UIImage imageNamed:@"形状问"];
//    [_teamView addSubview:image];
//
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    button.frame = CGRectMake(CGRectGetMinX(_lastMonLabel.frame), CGRectGetMinY(_lastMonLabel.frame), _lastMonLabel.frame.size.width, _lastMonLabel.frame.size.height + label.frame.size.height + 10);
//    [button addTarget:self action:@selector(priTaped:) forControlEvents:UIControlEventTouchUpInside];
//    button.tag = 37;
//    [_teamView addSubview:button];
//    return _lastMonLabel;
//}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
MIduo/½çÃæ/Ê×Ò³/NEWHomeViewController.m
@@ -329,7 +329,8 @@
    BOOL isExpand = [[NSUserDefaults standardUserDefaults] boolForKey:@"isExpand"];
    
    [UIView animateWithDuration:0.25 delay:0.0 usingSpringWithDamping:0.8 initialSpringVelocity:10.0 options:UIViewAnimationOptionTransitionCurlUp animations:^{
        [self.navigationController setNavigationBarHidden:!isExpand animated:NO];
        [self.navigationController setNavigationBarHidden:!isExpand animated:YES];
        
        if (isExpand) {
            
@@ -389,11 +390,13 @@
    [SearchImage setImage:[UIImage imageNamed:@"搜索粉色"]];
    [titleView addSubview:SearchImage];
    
    UILabel *tipLabel=[[UILabel alloc] initWithFrame:CGRectMake(45, 0, KScreenW-105, 40)];
    UILabel *tipLabel=[[UILabel alloc] initWithFrame:CGRectMake(40, 0, KScreenW-105, 40)];
    tipLabel.backgroundColor=[UIColor clearColor];
    tipLabel.text=@"粘贴宝贝标题,先领券还返利";
    tipLabel.text=@"粘贴宝贝标题,搜索商品优惠券";
    tipLabel.textColor=YTHColor(169, 169, 169);
    tipLabel.font=[UIFont systemFontOfSize:16.0f];
    if (KScreenW < 375) {
        tipLabel.font=[UIFont systemFontOfSize:14.0f];
    }
MIduo/½çÃæ/Ê×Ò³/recommendViewController.m
@@ -85,10 +85,11 @@
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"精选";
    self.view.backgroundColor=XYRBackgroundColor;
    self.automaticallyAdjustsScrollViewInsets=NO;
    _huojianW.constant=33*KScreenW/320;
    self.automaticallyAdjustsScrollViewInsets = NO;
    _huojianW.constant = 33*KScreenW / 320;
    
    if (!_dataBanner) {
        
@@ -116,7 +117,7 @@
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tabBarSeleted) name:@"HomeViewController" object:nil];
    
    //是否显示新人红包的弹窗
    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"newuser"] intValue]==0) {
    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"newuser"] intValue] == 0) {
        
        [self ShowNewUser];
        
@@ -125,6 +126,7 @@
        [self getPasteboard];
    }
}
- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
@@ -132,7 +134,7 @@
}
#pragma mark --- æŸ¥çœ‹ç²˜è´´æ¿ ---
-(void)getPasteboard {
- (void)getPasteboard {
    
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    _pasteboardStr=[pasteboard string];
@@ -149,12 +151,12 @@
}
#pragma mark --- æ˜¾ç¤ºæ–°äººçº¢åŒ… ---
-(void)ShowNewUser {
- (void)ShowNewUser {
    
    //判断当前用户是否登录
    BOOL bor = [[NSUserDefaults standardUserDefaults] objectForKey:@"islogined"];
    
    if(([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]==nil)&&(self.navigationController.viewControllers.count==1 && !bor )){
    if (([[NSUserDefaults standardUserDefaults] objectForKey:@"userId"] == nil) && (self.navigationController.viewControllers.count==1 && !bor )){
        if (_Gifts) {
            
        }
@@ -475,16 +477,6 @@
        NSString *Type = [tempDic objectForKey:@"type"];
        
        if ([Type intValue] == 4) {
            // è°ƒç½‘页视图
            // XYRWebViewController *webView=[[XYRWebViewController alloc] init];
            // webView.url = [NSString stringWithFormat:@"%@?id=%@",[[NSUserDefaults standardUserDefaults] objectForKey:@"haoli"],[[NSUserDefaults standardUserDefaults] objectForKey:@"userId"]];
            // webView.canDownRefresh=YES;
            // webView.canshare=YES;
            // webView.backToRedBag = ^{
            //
            // };
            // webView.hidesBottomBarWhenPushed=YES;
            // [self.navigationController pushViewController:webView animated:YES];
            
            MainInviteViewController *mianVC = [[MainInviteViewController alloc]init];
            mianVC.isMine = YES;
@@ -492,18 +484,12 @@
            [self.navigationController pushViewController:mianVC animated:YES];
            
        } else {
            // NSInteger typeFlag = [tempDic[@"type"]integerValue];
            
            NSString *controller = tempDic[@"jumpDetail"][@"controller"];
            
            if ([controller compare:@"GoodsDetailController"] == 0) {
                NSDictionary * dic = [self dictionaryWithJsonString:tempDic[@"params"]];
                // SureWebViewController *webView=[[SureWebViewController alloc] init];
                // webView.goodsId=dic[@"id"];
                // webView.canDownRefresh=YES;
                // webView.hidesBottomBarWhenPushed=YES;
                //
                // [self.navigationController pushViewController:webView animated:YES];
                
                if ([YTHsharedManger startManger].isDetailWebValue) {
                    
@@ -511,7 +497,7 @@
                    
                    [webView backClicked:^(NSString *string) {
                        
                        // [self.navigationController popViewControllerAnimated:YES];
                    }];
                    
                    webView.goodsId=dic[@"id"];
@@ -542,12 +528,6 @@
                
                [self OpenWebViewWithURL:tempDic[@"jumpDetail"][@"url"]];
            }
            // speciallyViewController *speciallyVC = [[speciallyViewController alloc] init];
            // speciallyVC.ViewName = [tempDic objectForKey:@"name"];
            // speciallyVC.bigImage = [tempDic objectForKey:@"bigImg"];
            // speciallyVC.hid = [tempDic objectForKey:@"id"];
            // speciallyVC.hidesBottomBarWhenPushed = YES;
            // [self.navigationController pushViewController:speciallyVC animated:YES];
        }
        
    } else if (indexPath.section == 1) {
@@ -586,16 +566,9 @@
            }
            
        } else {
            // SureWebViewController *webView=[[SureWebViewController alloc] init];
            NSArray *SectionItem=[_datasection[indexPath.section-2] objectForKey:@"recommendSectionGoodsList"];
            NSDictionary *tempItem=[SectionItem[indexPath.row-1] objectForKey:@"taoBaoGoodsBrief"];
            // webView.url=[tempItem objectForKey:@"auctionUrl"];
            // webView.goodsId=[tempItem objectForKey:@"auctionId"];
            // webView.goodsId = @"540029021663";
            // webView.canDownRefresh=YES;
            // webView.hidesBottomBarWhenPushed=YES;
            // [self.navigationController pushViewController:webView animated:YES];
            // [YTHsharedManger startManger].isDetailWebValue = 1;
            
            if ([YTHsharedManger startManger].isDetailWebValue) {
                
@@ -716,11 +689,8 @@
                    cell.cellStyle=RecommendStyleThree;
                    cell.YuanJia=[cellMessage objectForKey:@"reservePrice"];
                    cell.ZKprice=[cellMessage objectForKey:@"quanPrice"];
                    // cell.priceLabel.text = [NSString stringWithFormat:@"%@",cellMessage[@"quanPrice"]];
                    cell.BuXinHongbao=[[cellMessage objectForKey:@"taoBaoHongBaoInfo"] objectForKey:@"rate"];
                    // priceMessage.yy_font=[UIFont boldSystemFontOfSize:10];
                    // priceMessage.yy_color=YTHColor(255, 48, 68)
                    // cell.PromotionLabel.backgroundColor = [UIColor orangeColor];
                    cell.PromotionLabel.text =[NSString stringWithFormat:@"返利:%@", [[cellMessage objectForKey:@"taoBaoHongBaoInfo"] objectForKey:@"rate"]];
                    cell.PromotionLabel.textColor = YTHColor(255, 48, 68);
                    cell.PromotionLabel.font = [UIFont systemFontOfSize:12];
@@ -943,7 +913,7 @@
    //点击进入返利网页
    NSString *controller = _dataBanner [index][@"jumpDetail"][@"controller"];
    NSDictionary *tempItem=_dataBanner[index];
    //    NSString *vvss =@"ViewController";
    if ([controller compare:@"GoodsDetailController"] == 0) {
        
        if ([YTHsharedManger startManger].isDetailWebValue) {
@@ -959,6 +929,7 @@
            [self.navigationController pushViewController:webView animated:YES];
            return;
        }
        GoodDeTrViewController *goodsDetailVC = [[GoodDeTrViewController alloc]init];
        goodsDetailVC.hidesBottomBarWhenPushed = YES;
        goodsDetailVC.goodsID = [tempItem objectForKey:@"params"][@"id"];
@@ -968,11 +939,6 @@
        
        [self OpenWebViewWithURL:tempItem[@"params"][@"url"]];
    }
    // Class vvcc = NSClassFromString(controller);
    // UIViewController *vv = [[vvcc alloc]init];
    // vv.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    // vv.hidesBottomBarWhenPushed=YES;
    // [self.navigationController pushViewController:vv animated:YES];
}
#pragma mark --- å…³é”®ä»£ç ï¼šæ»šåŠ¨æ–¹å‘åˆ¤æ–­ ---