diff --git a/ProductApp/ProductApp.xcodeproj/project.pbxproj b/ProductApp/ProductApp.xcodeproj/project.pbxproj index 89576a8..ce4d635 100644 --- a/ProductApp/ProductApp.xcodeproj/project.pbxproj +++ b/ProductApp/ProductApp.xcodeproj/project.pbxproj @@ -90,6 +90,26 @@ CA8181B32C9EB96F00EE7E6E /* StartKTXZPGDetailXZView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA8181B22C9EB96F00EE7E6E /* StartKTXZPGDetailXZView.m */; }; CA8181B62C9ECB5800EE7E6E /* StartKTXZPGDetailFJItemView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA8181B52C9ECB5800EE7E6E /* StartKTXZPGDetailFJItemView.m */; }; CAA600CD2CA92FB700026CF4 /* FXErView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600CC2CA92FB700026CF4 /* FXErView.m */; }; + CAA600D12CA9565500026CF4 /* KeTangXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */; }; + CAA600D52CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */; }; + CAA600D92CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D82CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m */; }; + CAA600DD2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600DC2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m */; }; + CAB0D36D2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D36C2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m */; }; + CAB0D3712CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3702CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m */; }; + CAB0D3752CAA47F3009BF67D /* ZhiNengXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3742CAA47F3009BF67D /* ZhiNengXieZuoViewController.m */; }; + CAB0D3792CAA488C009BF67D /* ZhiNengXieZuoView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3782CAA488C009BF67D /* ZhiNengXieZuoView.m */; }; + CAB0D37C2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */; }; + CAB0D37F2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */; }; + CAB0D3832CAA54F2009BF67D /* TiCaiAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3822CAA54F2009BF67D /* TiCaiAlterView.m */; }; + CAB0D3872CAA5693009BF67D /* TiCaiAlterTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0D3862CAA5693009BF67D /* TiCaiAlterTableViewCell.m */; }; + CAB0F3512CAA7321003B0C39 /* ZhiShuAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3502CAA7321003B0C39 /* ZhiShuAlterView.m */; }; + CAB0F3542CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3532CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m */; }; + CAB0F3582CAA7636003B0C39 /* ChuangZuoSiLuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3572CAA7636003B0C39 /* ChuangZuoSiLuViewController.m */; }; + CAB0F35C2CAA7664003B0C39 /* ChuangZuoSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F35B2CAA7664003B0C39 /* ChuangZuoSiLuView.m */; }; + CAB0F3602CAA84B3003B0C39 /* XieZuoXiangQingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F35F2CAA84B3003B0C39 /* XieZuoXiangQingViewController.m */; }; + CAB0F3642CAA8523003B0C39 /* XieZuoXiangQingView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3632CAA8523003B0C39 /* XieZuoXiangQingView.m */; }; + CAB0F3672CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3662CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m */; }; + CAB0F36A2CAA9255003B0C39 /* FenXiangWenZhangAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAB0F3692CAA9255003B0C39 /* FenXiangWenZhangAlterView.m */; }; CABA14612C9D0B1C002CB3B1 /* ShouYeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14602C9D0B1C002CB3B1 /* ShouYeViewController.m */; }; CABA14642C9D0B25002CB3B1 /* FanWenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14632C9D0B25002CB3B1 /* FanWenViewController.m */; }; CABA14672C9D0B31002CB3B1 /* AIChatViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14662C9D0B31002CB3B1 /* AIChatViewController.m */; }; @@ -473,6 +493,46 @@ CA8181B52C9ECB5800EE7E6E /* StartKTXZPGDetailFJItemView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartKTXZPGDetailFJItemView.m; sourceTree = ""; }; CAA600CB2CA92FB700026CF4 /* FXErView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FXErView.h; sourceTree = ""; }; CAA600CC2CA92FB700026CF4 /* FXErView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FXErView.m; sourceTree = ""; }; + CAA600CF2CA9565500026CF4 /* KeTangXieZuoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoViewController.h; sourceTree = ""; }; + CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoViewController.m; sourceTree = ""; }; + CAA600D32CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoCollectionViewCell.h; sourceTree = ""; }; + CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoCollectionViewCell.m; sourceTree = ""; }; + CAA600D72CA95AAC00026CF4 /* KeTangXieZuoNJViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoNJViewController.h; sourceTree = ""; }; + CAA600D82CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoNJViewController.m; sourceTree = ""; }; + CAA600DB2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoNJTableViewCell.h; sourceTree = ""; }; + CAA600DC2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoNJTableViewCell.m; sourceTree = ""; }; + CAB0D36B2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoXiangQingViewController.h; sourceTree = ""; }; + CAB0D36C2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoXiangQingViewController.m; sourceTree = ""; }; + CAB0D36F2CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoXiangQingView.h; sourceTree = ""; }; + CAB0D3702CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeTangXieZuoXiangQingView.m; sourceTree = ""; }; + CAB0D3732CAA47F3009BF67D /* ZhiNengXieZuoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoViewController.h; sourceTree = ""; }; + CAB0D3742CAA47F3009BF67D /* ZhiNengXieZuoViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoViewController.m; sourceTree = ""; }; + CAB0D3772CAA488C009BF67D /* ZhiNengXieZuoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoView.h; sourceTree = ""; }; + CAB0D3782CAA488C009BF67D /* ZhiNengXieZuoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoView.m; sourceTree = ""; }; + CAB0D37A2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoTopView.h; sourceTree = ""; }; + CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoTopView.m; sourceTree = ""; }; + CAB0D37D2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoQuanWenView.h; sourceTree = ""; }; + CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoQuanWenView.m; sourceTree = ""; }; + CAB0D3812CAA54F2009BF67D /* TiCaiAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TiCaiAlterView.h; sourceTree = ""; }; + CAB0D3822CAA54F2009BF67D /* TiCaiAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TiCaiAlterView.m; sourceTree = ""; }; + CAB0D3852CAA5693009BF67D /* TiCaiAlterTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TiCaiAlterTableViewCell.h; sourceTree = ""; }; + CAB0D3862CAA5693009BF67D /* TiCaiAlterTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TiCaiAlterTableViewCell.m; sourceTree = ""; }; + CAB0F34F2CAA7321003B0C39 /* ZhiShuAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiShuAlterView.h; sourceTree = ""; }; + CAB0F3502CAA7321003B0C39 /* ZhiShuAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiShuAlterView.m; sourceTree = ""; }; + CAB0F3522CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiShuAlterCollectionViewCell.h; sourceTree = ""; }; + CAB0F3532CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiShuAlterCollectionViewCell.m; sourceTree = ""; }; + CAB0F3562CAA7636003B0C39 /* ChuangZuoSiLuViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ChuangZuoSiLuViewController.h; sourceTree = ""; }; + CAB0F3572CAA7636003B0C39 /* ChuangZuoSiLuViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChuangZuoSiLuViewController.m; sourceTree = ""; }; + CAB0F35A2CAA7664003B0C39 /* ChuangZuoSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ChuangZuoSiLuView.h; sourceTree = ""; }; + CAB0F35B2CAA7664003B0C39 /* ChuangZuoSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChuangZuoSiLuView.m; sourceTree = ""; }; + CAB0F35E2CAA84B3003B0C39 /* XieZuoXiangQingViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoXiangQingViewController.h; sourceTree = ""; }; + CAB0F35F2CAA84B3003B0C39 /* XieZuoXiangQingViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoXiangQingViewController.m; sourceTree = ""; }; + CAB0F3622CAA8523003B0C39 /* XieZuoXiangQingView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoXiangQingView.h; sourceTree = ""; }; + CAB0F3632CAA8523003B0C39 /* XieZuoXiangQingView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoXiangQingView.m; sourceTree = ""; }; + CAB0F3652CAA8694003B0C39 /* XieZuoXiangQingSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoXiangQingSiLuView.h; sourceTree = ""; }; + CAB0F3662CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoXiangQingSiLuView.m; sourceTree = ""; }; + CAB0F3682CAA9255003B0C39 /* FenXiangWenZhangAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FenXiangWenZhangAlterView.h; sourceTree = ""; }; + CAB0F3692CAA9255003B0C39 /* FenXiangWenZhangAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FenXiangWenZhangAlterView.m; sourceTree = ""; }; CABA145F2C9D0B1C002CB3B1 /* ShouYeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShouYeViewController.h; sourceTree = ""; }; CABA14602C9D0B1C002CB3B1 /* ShouYeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShouYeViewController.m; sourceTree = ""; }; CABA14622C9D0B25002CB3B1 /* FanWenViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FanWenViewController.h; sourceTree = ""; }; @@ -1472,9 +1532,161 @@ path = "二维码"; sourceTree = ""; }; + CAA600CE2CA9470800026CF4 /* 课堂写作 */ = { + isa = PBXGroup; + children = ( + CAB0D36A2CAA3C51009BF67D /* 详情 */, + CAA600D62CA95A9100026CF4 /* 年级 */, + CAA600D22CA9573E00026CF4 /* cell */, + CAA600CF2CA9565500026CF4 /* KeTangXieZuoViewController.h */, + CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */, + ); + path = "课堂写作"; + sourceTree = ""; + }; + CAA600D22CA9573E00026CF4 /* cell */ = { + isa = PBXGroup; + children = ( + CAA600D32CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.h */, + CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */, + ); + path = cell; + sourceTree = ""; + }; + CAA600D62CA95A9100026CF4 /* 年级 */ = { + isa = PBXGroup; + children = ( + CAA600DA2CA95AF700026CF4 /* cell */, + CAA600D72CA95AAC00026CF4 /* KeTangXieZuoNJViewController.h */, + CAA600D82CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m */, + ); + path = "年级"; + sourceTree = ""; + }; + CAA600DA2CA95AF700026CF4 /* cell */ = { + isa = PBXGroup; + children = ( + CAA600DB2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.h */, + CAA600DC2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m */, + ); + path = cell; + sourceTree = ""; + }; + CAB0D36A2CAA3C51009BF67D /* 详情 */ = { + isa = PBXGroup; + children = ( + CAB0D36E2CAA3DA0009BF67D /* view */, + CAB0D36B2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.h */, + CAB0D36C2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m */, + ); + path = "详情"; + sourceTree = ""; + }; + CAB0D36E2CAA3DA0009BF67D /* view */ = { + isa = PBXGroup; + children = ( + CAB0D36F2CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.h */, + CAB0D3702CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m */, + ); + path = view; + sourceTree = ""; + }; + CAB0D3722CAA47CF009BF67D /* 智能写作 */ = { + isa = PBXGroup; + children = ( + CAB0F35D2CAA849E003B0C39 /* 写作详情 */, + CAB0F3552CAA7626003B0C39 /* 创作思路 */, + CAB0D3802CAA54E1009BF67D /* alter */, + CAB0D3762CAA487E009BF67D /* view */, + CAB0D3732CAA47F3009BF67D /* ZhiNengXieZuoViewController.h */, + CAB0D3742CAA47F3009BF67D /* ZhiNengXieZuoViewController.m */, + ); + path = "智能写作"; + sourceTree = ""; + }; + CAB0D3762CAA487E009BF67D /* view */ = { + isa = PBXGroup; + children = ( + CAB0D3772CAA488C009BF67D /* ZhiNengXieZuoView.h */, + CAB0D3782CAA488C009BF67D /* ZhiNengXieZuoView.m */, + CAB0D37A2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.h */, + CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */, + CAB0D37D2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.h */, + CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */, + ); + path = view; + sourceTree = ""; + }; + CAB0D3802CAA54E1009BF67D /* alter */ = { + isa = PBXGroup; + children = ( + CAB0D3842CAA5683009BF67D /* cell */, + CAB0D3812CAA54F2009BF67D /* TiCaiAlterView.h */, + CAB0D3822CAA54F2009BF67D /* TiCaiAlterView.m */, + CAB0F34F2CAA7321003B0C39 /* ZhiShuAlterView.h */, + CAB0F3502CAA7321003B0C39 /* ZhiShuAlterView.m */, + CAB0F3682CAA9255003B0C39 /* FenXiangWenZhangAlterView.h */, + CAB0F3692CAA9255003B0C39 /* FenXiangWenZhangAlterView.m */, + ); + path = alter; + sourceTree = ""; + }; + CAB0D3842CAA5683009BF67D /* cell */ = { + isa = PBXGroup; + children = ( + CAB0D3852CAA5693009BF67D /* TiCaiAlterTableViewCell.h */, + CAB0D3862CAA5693009BF67D /* TiCaiAlterTableViewCell.m */, + CAB0F3522CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.h */, + CAB0F3532CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m */, + ); + path = cell; + sourceTree = ""; + }; + CAB0F3552CAA7626003B0C39 /* 创作思路 */ = { + isa = PBXGroup; + children = ( + CAB0F3592CAA7658003B0C39 /* view */, + CAB0F3562CAA7636003B0C39 /* ChuangZuoSiLuViewController.h */, + CAB0F3572CAA7636003B0C39 /* ChuangZuoSiLuViewController.m */, + ); + path = "创作思路"; + sourceTree = ""; + }; + CAB0F3592CAA7658003B0C39 /* view */ = { + isa = PBXGroup; + children = ( + CAB0F35A2CAA7664003B0C39 /* ChuangZuoSiLuView.h */, + CAB0F35B2CAA7664003B0C39 /* ChuangZuoSiLuView.m */, + ); + path = view; + sourceTree = ""; + }; + CAB0F35D2CAA849E003B0C39 /* 写作详情 */ = { + isa = PBXGroup; + children = ( + CAB0F3612CAA8517003B0C39 /* view */, + CAB0F35E2CAA84B3003B0C39 /* XieZuoXiangQingViewController.h */, + CAB0F35F2CAA84B3003B0C39 /* XieZuoXiangQingViewController.m */, + ); + path = "写作详情"; + sourceTree = ""; + }; + CAB0F3612CAA8517003B0C39 /* view */ = { + isa = PBXGroup; + children = ( + CAB0F3622CAA8523003B0C39 /* XieZuoXiangQingView.h */, + CAB0F3632CAA8523003B0C39 /* XieZuoXiangQingView.m */, + CAB0F3652CAA8694003B0C39 /* XieZuoXiangQingSiLuView.h */, + CAB0F3662CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m */, + ); + path = view; + sourceTree = ""; + }; CABA145A2C9D0AF2002CB3B1 /* 首页 */ = { isa = PBXGroup; children = ( + CAB0D3722CAA47CF009BF67D /* 智能写作 */, + CAA600CE2CA9470800026CF4 /* 课堂写作 */, CA11ED7A2CA6B0BA00209DFC /* 写作分享 */, CA11ED712CA69AAF00209DFC /* 改写润色 */, CA0D08802CA568120086855E /* 自定义相机 */, @@ -2805,6 +3017,8 @@ CB489FB32744A0BD00DA044A /* THDatePickerView.m in Sources */, CB489FB62744A0BD00DA044A /* NSDate+CXCategory.m in Sources */, CABA146A2C9D0B38002CB3B1 /* GongJuViewController.m in Sources */, + CAB0D37F2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m in Sources */, + CAB0D37C2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m in Sources */, CB489F612744A0BD00DA044A /* ListAlterView.m in Sources */, CBD422C028DAF38900C32440 /* KAlterView.m in Sources */, CA0D08302CA4FBDB0086855E /* ShouYeXieZuoTableViewCell.m in Sources */, @@ -2816,6 +3030,7 @@ CB489FA02744A0BD00DA044A /* UIView+ZJFrame.m in Sources */, CABA148D2C9D4312002CB3B1 /* PublicNetWorkManager.m in Sources */, CA11ED742CA69AC600209DFC /* GaiXieRunSeViewController.m in Sources */, + CAB0F3602CAA84B3003B0C39 /* XieZuoXiangQingViewController.m in Sources */, CA4257A02CA299F900A36A10 /* StartZNPPTDaGangView.m in Sources */, CA81818B2C9E598300EE7E6E /* StartKTXZWenZhangView.m in Sources */, CB489FA72744A0BD00DA044A /* ZJScrollPageView.m in Sources */, @@ -2831,6 +3046,7 @@ CAC8064A2CA119C500C21AA7 /* StartZWPIDetailViewController.m in Sources */, CB489DCA27449D5C00DA044A /* AppDelegate.m in Sources */, CB489F8B2744A0BD00DA044A /* NSString+extend.m in Sources */, + CAA600D92CA95AAC00026CF4 /* KeTangXieZuoNJViewController.m in Sources */, CB489F8D2744A0BD00DA044A /* NaviGationView.m in Sources */, CB489F9C2744A0BD00DA044A /* LogTableViewCell.m in Sources */, CABA14B12C9D4318002CB3B1 /* UserAuthModel.m in Sources */, @@ -2862,6 +3078,7 @@ CB489FB12744A0BD00DA044A /* FSActionSheetCell.m in Sources */, CA11ED782CA69B5200209DFC /* GaiXieRunSeView.m in Sources */, CB489F6D2744A0BD00DA044A /* UIView+Additions.m in Sources */, + CAB0D3752CAA47F3009BF67D /* ZhiNengXieZuoViewController.m in Sources */, CABA14CD2C9D4395002CB3B1 /* NSString+AES.m in Sources */, CA42579C2CA2998200A36A10 /* StartZNPPTDaGangViewController.m in Sources */, CABA14B52C9D4318002CB3B1 /* UserModel.m in Sources */, @@ -2872,6 +3089,7 @@ CA8181B02C9EB96000EE7E6E /* StartKTXZPGDetailFJView.m in Sources */, CB489F7A2744A0BD00DA044A /* FSTextView.m in Sources */, CAC8065C2CA1449E00C21AA7 /* StartZNXZKeysViewController.m in Sources */, + CAB0D3872CAA5693009BF67D /* TiCaiAlterTableViewCell.m in Sources */, CA0FD6A42CA8FF5C009A4417 /* FXWDPFView.m in Sources */, CABA14B32C9D4318002CB3B1 /* UserConfigModel.m in Sources */, CA8181992C9E77FB00EE7E6E /* DownJDLoadView.m in Sources */, @@ -2884,6 +3102,7 @@ CB489F6C2744A0BD00DA044A /* RadianDisView.m in Sources */, CA487D8A2CA3AB6B00AE773B /* UITableView+MoveCell.m in Sources */, CA0D08782CA557700086855E /* ShouYeLiShiJiLuPGCollectionViewCell.m in Sources */, + CAB0F3512CAA7321003B0C39 /* ZhiShuAlterView.m in Sources */, CABA14AE2C9D4318002CB3B1 /* OrderInfoModel.m in Sources */, CB489F502744A0BD00DA044A /* Tools.m in Sources */, CAC806682CA1521200C21AA7 /* StartZNXZSiLuView.m in Sources */, @@ -2902,6 +3121,7 @@ CB489FAC2744A0BD00DA044A /* XLPhotoBrowser.m in Sources */, CB489F522744A0BD00DA044A /* PlayAudio.m in Sources */, CA0D08492CA534ED0086855E /* ShouYeShenFenCollectionViewCell.m in Sources */, + CAB0F3642CAA8523003B0C39 /* XieZuoXiangQingView.m in Sources */, CB489F662744A0BD00DA044A /* DAYUtils.m in Sources */, CA4257B22CA2BB8500A36A10 /* StartPayViewController.m in Sources */, CB489F6A2744A0BD00DA044A /* UILabel+PGGLabText.m in Sources */, @@ -2919,9 +3139,11 @@ CB489F8E2744A0BD00DA044A /* UITextFieldYS.m in Sources */, CB489F922744A0BD00DA044A /* IndexGetNewsModel.m in Sources */, CAC806522CA137E600C21AA7 /* StartZNXZViewController.m in Sources */, + CAA600DD2CA95B0200026CF4 /* KeTangXieZuoNJTableViewCell.m in Sources */, CAC806422CA111C300C21AA7 /* StartZWPIView.m in Sources */, CABA14E02C9D6F30002CB3B1 /* RoleTreeModel.m in Sources */, CA0FD6962CA8F68D009A4417 /* FenXiangHaiBaoViewController.m in Sources */, + CAB0D3832CAA54F2009BF67D /* TiCaiAlterView.m in Sources */, CB489F4F2744A0BD00DA044A /* AddressListAlterViewTableViewCell.m in Sources */, CA8181A42C9EA07300EE7E6E /* StartKTXZPGDetailTabView.m in Sources */, CABA14E32C9D707E002CB3B1 /* TextbookInfoModel.m in Sources */, @@ -2929,6 +3151,7 @@ CB489FD72744A30000DA044A /* PGGMoviePlayer.m in Sources */, CB489F982744A0BD00DA044A /* BaseModel.m in Sources */, CA4257B92CA2C42E00A36A10 /* StartPayTQView.m in Sources */, + CAA600D52CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m in Sources */, CB489F9B2744A0BD00DA044A /* YSAPIClient.m in Sources */, CB489F822744A0BD00DA044A /* NSData+Base64.m in Sources */, CB489FA62744A0BD00DA044A /* ZJScrollSegmentView.m in Sources */, @@ -2941,8 +3164,10 @@ CA0D08612CA547C60086855E /* ShouYeLiShiJiLuViewController.m in Sources */, CA11ED642CA6851200209DFC /* CamreTiShiAlterView.m in Sources */, CB489F712744A0BD00DA044A /* RootTabBarController.m in Sources */, + CAB0F3542CAA73A6003B0C39 /* ZhiShuAlterCollectionViewCell.m in Sources */, CAC806462CA113A200C21AA7 /* StartZWPIViewCell.m in Sources */, CABA14BE2C9D4342002CB3B1 /* TimeTools.m in Sources */, + CAB0D36D2CAA3C6F009BF67D /* KeTangXieZuoXiangQingViewController.m in Sources */, CB489F762744A0BD00DA044A /* UIColor+LSFoundation.m in Sources */, CB489F952744A0BD00DA044A /* BaseRequestDataController.m in Sources */, CB489F8A2744A0BD00DA044A /* UIButton+HQCustomIcon.m in Sources */, @@ -2955,7 +3180,9 @@ CB489F932744A0BD00DA044A /* PutImageModel.m in Sources */, CA11ED5D2CA653F600209DFC /* CamreImagesView.m in Sources */, CA0FD6A02CA8FA88009A4417 /* FenXiangHaiBaoInfoSuperItemView.m in Sources */, + CAB0F36A2CAA9255003B0C39 /* FenXiangWenZhangAlterView.m in Sources */, CB489F7D2744A0BD00DA044A /* OpenSSLWrapper.m in Sources */, + CAB0F3582CAA7636003B0C39 /* ChuangZuoSiLuViewController.m in Sources */, CA11ED6C2CA6925D00209DFC /* KaiTongAlterView.m in Sources */, CB489FAB2744A0BD00DA044A /* XLZoomingScrollView.m in Sources */, CA8181962C9E751700EE7E6E /* StartKTXZPGView.m in Sources */, @@ -2983,6 +3210,7 @@ CB489FD82744A30000DA044A /* PGGMovieLineSetView.m in Sources */, CB489F4D2744A0BD00DA044A /* AddressListAlterView.m in Sources */, CB489FA22744A0BD00DA044A /* UIViewController+ZJScrollPageController.m in Sources */, + CAB0F3672CAA8694003B0C39 /* XieZuoXiangQingSiLuView.m in Sources */, CA487D872CA3A36300AE773B /* StartZNPPTDaGangTableViewCell.m in Sources */, CA8181882C9E58B100EE7E6E /* StartKTXZWenZhangViewController.m in Sources */, CB489F5A2744A0BD00DA044A /* YQLocationTransform.m in Sources */, @@ -2991,8 +3219,10 @@ CB489F4C2744A0BD00DA044A /* AddressListUrlAlterView.m in Sources */, CABA14DD2C9D6E40002CB3B1 /* NetWorkManager.m in Sources */, CBD422BD28DAF34B00C32440 /* IndexSectionView.m in Sources */, + CAA600D12CA9565500026CF4 /* KeTangXieZuoViewController.m in Sources */, CB489FA12744A0BD00DA044A /* ZJTitleView.m in Sources */, CA0D082D2CA4F8930086855E /* ShouYeZNXZTableViewCell.m in Sources */, + CAB0D3792CAA488C009BF67D /* ZhiNengXieZuoView.m in Sources */, CB489FAF2744A0BD00DA044A /* FSActionSheetConfig.m in Sources */, CA11ED612CA6556900209DFC /* CamreImagesCollectionViewCell.m in Sources */, CA0D08452CA5316B0086855E /* ShouYeShenFenView.m in Sources */, @@ -3010,6 +3240,7 @@ CB489FA42744A0BD00DA044A /* ZJCollectionView.m in Sources */, CB489F702744A0BD00DA044A /* TabBarController.m in Sources */, CA11ED702CA6946500209DFC /* KaiTongAlterTQView.m in Sources */, + CAB0D3712CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m in Sources */, CABA14CE2C9D4395002CB3B1 /* MIUAES.m in Sources */, CA0FD69A2CA8F6DE009A4417 /* FenXiangHaiBaoView.m in Sources */, CB489F562744A0BD00DA044A /* amrFileCodec.m in Sources */, @@ -3017,6 +3248,7 @@ CB489F572744A0BD00DA044A /* AudioRecored.m in Sources */, CA0D083D2CA50F480086855E /* ShouYeZuoWenTableViewCell.m in Sources */, CA8181B32C9EB96F00EE7E6E /* StartKTXZPGDetailXZView.m in Sources */, + CAB0F35C2CAA7664003B0C39 /* ChuangZuoSiLuView.m in Sources */, CA0D084C2CA538710086855E /* ShouYeShenFenNianJiView.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate index d7b40fc..b472c02 100644 Binary files a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate and b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/Contents.json similarity index 77% rename from ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/Contents.json index 93c72f4..c47f094 100644 --- a/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "组 43133@2x.png", + "filename" : "组 42991@2x.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "组 43133@3x.png", + "filename" : "组 42991@3x.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/组 42991@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/组 42991@2x.png new file mode 100644 index 0000000..1665cd6 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/组 42991@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/组 42991@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/组 42991@3x.png new file mode 100644 index 0000000..846dba4 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/book_nomo.imageset/组 42991@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/Contents.json new file mode 100644 index 0000000..6201e03 --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "fenxiang_保存到相册@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "fenxiang_保存到相册@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@2x.png new file mode 100644 index 0000000..6b91ab8 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@3x.png new file mode 100644 index 0000000..cfc9089 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_保存到相册.imageset/fenxiang_保存到相册@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/Contents.json new file mode 100644 index 0000000..f3cca3a --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "fenxiang_复制全文@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "fenxiang_复制全文@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@2x.png new file mode 100644 index 0000000..d1c9579 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@3x.png new file mode 100644 index 0000000..3b641a6 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_复制全文.imageset/fenxiang_复制全文@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/Contents.json new file mode 100644 index 0000000..f3a72bb --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "fenxiang_微信好友@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "fenxiang_微信好友@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@2x.png new file mode 100644 index 0000000..61c2859 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@3x.png new file mode 100644 index 0000000..6aa8392 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信好友.imageset/fenxiang_微信好友@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/Contents.json new file mode 100644 index 0000000..d51d4e2 --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "fenxiang_微信朋友圈@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "fenxiang_微信朋友圈@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@2x.png new file mode 100644 index 0000000..872344f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@3x.png new file mode 100644 index 0000000..1526d7e Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/fenxiang_微信朋友圈.imageset/fenxiang_微信朋友圈@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/Contents.json similarity index 77% rename from ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/Contents.json index 1a61d93..7b6156b 100644 --- a/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "组 43314@2x.png", + "filename" : "容器@2x.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "组 43314@3x.png", + "filename" : "容器@3x.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/容器@2x.png new file mode 100644 index 0000000..c699e69 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/容器@3x.png new file mode 100644 index 0000000..260a253 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/kexz_kankan.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/Contents.json similarity index 77% rename from ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/Contents.json index 11a76a7..1057d71 100644 --- a/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "组 43318@2x.png", + "filename" : "背景@2x.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "组 43318@3x.png", + "filename" : "背景@3x.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/背景@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/背景@2x.png new file mode 100644 index 0000000..412aa80 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/背景@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/背景@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/背景@3x.png new file mode 100644 index 0000000..20a0b2c Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_back.imageset/背景@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/Contents.json similarity index 77% rename from ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/Contents.json index 13f310b..7b6156b 100644 --- a/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "组 43313@2x.png", + "filename" : "容器@2x.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "组 43313@3x.png", + "filename" : "容器@3x.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/容器@2x.png new file mode 100644 index 0000000..1743077 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/容器@3x.png new file mode 100644 index 0000000..d5f46f7 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_chongxie.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/Contents.json new file mode 100644 index 0000000..b94bf8d --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "容器 13@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "容器 13@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/容器 13@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/容器 13@2x.png new file mode 100644 index 0000000..0504afe Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/容器 13@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/容器 13@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/容器 13@3x.png new file mode 100644 index 0000000..d40a38b Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_next.imageset/容器 13@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/Contents.json new file mode 100644 index 0000000..40d96d2 --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "矩形 17911@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "矩形 17911@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@2x.png new file mode 100644 index 0000000..ffe7d16 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@3x.png new file mode 100644 index 0000000..0c8696d Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewleft.imageset/矩形 17911@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/512圆角.imageset/512圆角@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@2x.png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/512圆角.imageset/512圆角@2x.png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@2x.png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/512圆角.imageset/512圆角@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@3x.png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/512圆角.imageset/512圆角@3x.png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@3x.png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/512圆角.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/Contents.json similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/512圆角.imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/Contents.json diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(2).imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_保存图片.imageset/Contents.json similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(2).imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_保存图片.imageset/Contents.json diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(2).imageset/组 43457@2x(2).png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_保存图片.imageset/组 43457@2x(2).png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(2).imageset/组 43457@2x(2).png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_保存图片.imageset/组 43457@2x(2).png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(2).imageset/组 43457@3x(2).png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_保存图片.imageset/组 43457@3x(2).png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(2).imageset/组 43457@3x(2).png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_保存图片.imageset/组 43457@3x(2).png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_微信分享.imageset/Contents.json similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457.imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_微信分享.imageset/Contents.json diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457.imageset/组 43457@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_微信分享.imageset/组 43457@2x.png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457.imageset/组 43457@2x.png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_微信分享.imageset/组 43457@2x.png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457.imageset/组 43457@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_微信分享.imageset/组 43457@3x.png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457.imageset/组 43457@3x.png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_微信分享.imageset/组 43457@3x.png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(1).imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_朋友圈.imageset/Contents.json similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(1).imageset/Contents.json rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_朋友圈.imageset/Contents.json diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(1).imageset/组 43457@2x(1).png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_朋友圈.imageset/组 43457@2x(1).png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(1).imageset/组 43457@2x(1).png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_朋友圈.imageset/组 43457@2x(1).png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(1).imageset/组 43457@3x(1).png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_朋友圈.imageset/组 43457@3x(1).png similarity index 100% rename from ProductApp/ProductApp/Assets.xcassets/首页/分享海报/组 43457(1).imageset/组 43457@3x(1).png rename to ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_朋友圈.imageset/组 43457@3x(1).png diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/Contents.json new file mode 100644 index 0000000..b94bf8d --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "容器 13@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "容器 13@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/容器 13@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/容器 13@2x.png new file mode 100644 index 0000000..dd3b281 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/容器 13@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/容器 13@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/容器 13@3x.png new file mode 100644 index 0000000..01dd086 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/展开.imageset/容器 13@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/Contents.json new file mode 100644 index 0000000..b94bf8d --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "容器 13@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "容器 13@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/容器 13@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/容器 13@2x.png new file mode 100644 index 0000000..2c5efa1 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/容器 13@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/容器 13@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/容器 13@3x.png new file mode 100644 index 0000000..4caf63b Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/收起.imageset/容器 13@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/组 43133@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/组 43133@2x.png deleted file mode 100644 index 8678c41..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/组 43133@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/组 43133@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/组 43133@3x.png deleted file mode 100644 index 54bdb89..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43133.imageset/组 43133@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/组 43313@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/组 43313@2x.png deleted file mode 100644 index edb4d8e..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/组 43313@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/组 43313@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/组 43313@3x.png deleted file mode 100644 index ed71dba..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43313.imageset/组 43313@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/组 43314@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/组 43314@2x.png deleted file mode 100644 index 79bde70..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/组 43314@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/组 43314@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/组 43314@3x.png deleted file mode 100644 index 0a1d238..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43314.imageset/组 43314@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/组 43318@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/组 43318@2x.png deleted file mode 100644 index c3ba2c0..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/组 43318@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/组 43318@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/组 43318@3x.png deleted file mode 100644 index 220ad35..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/组 43318.imageset/组 43318@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Other/Tools.h b/ProductApp/ProductApp/Other/Tools.h index 9e16d65..b8d1692 100644 --- a/ProductApp/ProductApp/Other/Tools.h +++ b/ProductApp/ProductApp/Other/Tools.h @@ -352,6 +352,8 @@ NS_ASSUME_NONNULL_BEGIN ///处理h5字体颜色 转换成富文本 +(NSMutableAttributedString *)applyCSS:(NSString *)text; +///创建二维码 ++(UIImage *)CreateStrcode:(NSString *)strcode size:(CGFloat)f_width; @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/Other/Tools.m b/ProductApp/ProductApp/Other/Tools.m index f67f46d..9fff97b 100644 --- a/ProductApp/ProductApp/Other/Tools.m +++ b/ProductApp/ProductApp/Other/Tools.m @@ -2075,4 +2075,50 @@ static dispatch_source_t _timer; return attrString; } + +///创建二维码 ++(UIImage *)CreateStrcode:(NSString *)strcode size:(CGFloat)f_width +{ + ///生成二维码 + CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"]; + [filter setDefaults]; + NSString *info = strcode; + //把信息转化为NSData + NSData *infoData = [info dataUsingEncoding:NSUTF8StringEncoding]; + //滤镜对象kvc存值 + [filter setValue:infoData forKeyPath:@"inputMessage"]; + CIImage *outImage = [filter outputImage]; + + return [self createNonInterpolatedUIImageFormCIImage:outImage withSize:f_width]; +} +/** + * 根据CIImage生成指定大小的UIImage + * + * @param image CIImage + * @param size 图片宽度以及高度 + */ ++ (UIImage *)createNonInterpolatedUIImageFormCIImage:(CIImage *)image withSize:(CGFloat) size +{ + CGRect extent = CGRectIntegral(image.extent); + CGFloat scale = MIN(size/CGRectGetWidth(extent), size/CGRectGetHeight(extent)); + + //1.创建bitmap; + size_t width = CGRectGetWidth(extent) * scale; + size_t height = CGRectGetHeight(extent) * scale; + CGColorSpaceRef cs = CGColorSpaceCreateDeviceGray(); + CGContextRef bitmapRef = CGBitmapContextCreate(nil, width, height, 8, 0, cs, (CGBitmapInfo)kCGImageAlphaNone); + CIContext *context = [CIContext contextWithOptions:nil]; + CGImageRef bitmapImage = [context createCGImage:image fromRect:extent]; + CGContextSetInterpolationQuality(bitmapRef, kCGInterpolationNone); + CGContextScaleCTM(bitmapRef, scale, scale); + CGContextDrawImage(bitmapRef, extent, bitmapImage); + + //2.保存bitmap到图片 + CGImageRef scaledImage = CGBitmapContextCreateImage(bitmapRef); + CGContextRelease(bitmapRef); + CGImageRelease(bitmapImage); + return [UIImage imageWithCGImage:scaledImage]; +} + + @end diff --git a/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeXieZuoTableViewCell.m b/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeXieZuoTableViewCell.m index 9a244f1..130603c 100644 --- a/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeXieZuoTableViewCell.m +++ b/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeXieZuoTableViewCell.m @@ -7,6 +7,7 @@ #import "ShouYeXieZuoTableViewCell.h" #import "CamreViewController.h" +#import "KeTangXieZuoViewController.h" @interface ShouYeXieZuoTableViewCell () @@ -150,7 +151,8 @@ break; case 1: { - + KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; } break; case 2: diff --git a/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeZNXZTableViewCell.m b/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeZNXZTableViewCell.m index d99154c..b77af0d 100644 --- a/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeZNXZTableViewCell.m +++ b/ProductApp/ProductApp/ProductMain/首页/cell/ShouYeZNXZTableViewCell.m @@ -6,6 +6,7 @@ // #import "ShouYeZNXZTableViewCell.h" +#import "ZhiNengXieZuoViewController.h" @interface ShouYeZNXZTableViewCell () @@ -26,6 +27,7 @@ [viewback.layer setMasksToBounds:YES]; [viewback.layer setCornerRadius:8]; [viewback setImage:[UIImage imageNamed:@"home_znxzback"]]; + [viewback setUserInteractionEnabled:YES]; UILabel *lbname = [[UILabel alloc] init]; [lbname setText:@"智能写作"]; @@ -73,8 +75,20 @@ make.right.equalTo(viewback).offset(-18); }]; + UIButton *btnext = [[UIButton alloc] init]; + [viewback addSubview:btnext]; + [btnext mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewback); + }]; + [btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside]; } return self; } +-(void)nextAction +{ + ZhiNengXieZuoViewController *vc = [ZhiNengXieZuoViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} + @end diff --git a/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m b/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m index 4ea9d23..3002507 100644 --- a/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m +++ b/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m @@ -11,10 +11,14 @@ #import "FXWDPFView.h" #import "FXTextView.h" #import "FXXieZuoJianYiView.h" +#import "FXErView.h" + @interface FenXiangHaiBaoView () /// -@property (nonatomic , strong) UIScrollView *scvback; +@property (nonatomic , strong) UIView *scvback; +/// +@property (nonatomic , strong) UIImage *imageCreate; @end @@ -32,11 +36,22 @@ }]; _scvback = scvback; + UIView *viewback = [[UIView alloc] init]; + [scvback addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.width.equalTo(scvback); + }]; + _scvback = viewback; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewback); + }]; + + UIImageView *imgvback = [[UIImageView alloc] init]; [imgvback setImage:[UIImage imageNamed:@"hb_back"]]; - [scvback addSubview:imgvback]; + [viewback addSubview:imgvback]; [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { - make.left.top.width.equalTo(scvback); + make.left.top.width.equalTo(viewback); }]; [self drawUI]; @@ -183,9 +198,92 @@ make.bottom.equalTo(viewjianyi); }]; - [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { - make.bottom.equalTo(viewxzsl); + + ///二维码 + FXErView *viewer = [FXErView new]; + [self.scvback addSubview:viewer]; + [viewer mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewxzsl); + make.top.equalTo(viewxzsl.mas_bottom).offset(40); }]; + + UIView *viewshare = [[UIView alloc] init]; + [viewshare setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewshare]; + [viewshare mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewer); + make.top.equalTo(viewer.mas_bottom).offset(1); + make.height.offset(108); + }]; + [self drawShareView:viewshare]; + + [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewshare); + }]; +} +-(void)drawShareView:(UIView *)view +{ + float f_w = (UISCREEN_WIDTH-40)/3.0; + NSArray *arr = @[@"微信分享",@"朋友圈",@"保存图片"]; + for(int i = 0 ; i < arr.count; i++) + { + UIButton *btitem = [[UIButton alloc] init]; + [btitem setTitle:arr[i] forState:UIControlStateNormal]; + [btitem setTitleColor:RGBCOLOR(26, 26, 26) forState:UIControlStateNormal]; + [btitem.titleLabel setFont:[UIFont systemFontOfSize:15]]; + [btitem setImage:[UIImage imageNamed:[NSString stringWithFormat:@"hb_%@",arr[i]]] forState:UIControlStateNormal]; + [view addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(view); + make.left.offset(20+f_w*i); + make.width.offset(f_w); + }]; + [btitem setIconInTopWithSpacing:4]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(shareAction:) forControlEvents:UIControlEventTouchUpInside]; + } +} + +-(void)shareAction:(UIButton *)sender +{ + switch (sender.tag) { + case 0: + { + + } + break; + case 1: + { + + } + break; + case 2: + { + self.imageCreate = [self jietu]; + UIImageWriteToSavedPhotosAlbum(self.imageCreate, self, @selector(image:didFinishSavingWithError:contextInfo:), nil); + } + break; + default: + break; + } +} + +-(UIImage *)jietu +{ + float fheight = self.scvback.height-108; + UIGraphicsBeginImageContextWithOptions(CGSizeMake(UISCREEN_WIDTH, fheight), NO, 0.0); + CGContextRef context = UIGraphicsGetCurrentContext(); + [self.scvback.layer renderInContext:context]; + UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); + UIGraphicsEndImageContext(); + return image; +} +- (void)image:(UIImage *)image didFinishSavingWithError:(NSError *)error contextInfo:(void *)contextInfo +{ + if(!error) + { + [HXHud showMessage:@"保存成功" afterDelayType:0]; + } } @end diff --git a/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/二维码/FXErView.m b/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/二维码/FXErView.m index 9ffe591..cdd2810 100644 --- a/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/二维码/FXErView.m +++ b/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/二维码/FXErView.m @@ -7,6 +7,13 @@ #import "FXErView.h" + +@interface FXErView () +/// +@property (nonatomic , strong) UIImageView *imgver; + +@end + @implementation FXErView -(id)initWithFrame:(CGRect)frame @@ -29,7 +36,53 @@ make.top.offset(10); make.width.height.offset(100); }]; + [imgver.layer setMasksToBounds:YES]; + [imgver.layer setCornerRadius:8]; + [imgver.layer setBorderWidth:3]; + [imgver.layer setBorderColor:[UIColor whiteColor].CGColor]; + _imgver = imgver; + UIImageView *imgvlog = [[UIImageView alloc] init]; + [imgvlog setImage:[UIImage imageNamed:@"hb_log"]]; + [imgver addSubview:imgvlog]; + [imgvlog mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(30); + make.center.equalTo(imgver); + }]; + + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"一键拍照识别"]; + [lbname setTextColor:RGBCOLOR(26, 26, 26)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont fontWithName:@"AlimamaShuHeiTi-Bold" size:20]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(imgver.mas_right).offset(24); + make.top.offset(13); + }]; + + UILabel *lbnamets = [[UILabel alloc] init]; + [lbnamets setText:@"作文快速批改"]; + [lbnamets setTextColor:RGBCOLOR(26, 26, 26)]; + [lbnamets setTextAlignment:NSTextAlignmentLeft]; + [lbnamets setFont:[UIFont fontWithName:@"AlimamaShuHeiTi-Bold" size:20]]; + [self addSubview:lbnamets]; + [lbnamets mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(lbname).offset(43); + make.top.equalTo(lbname.mas_bottom).offset(4); + }]; + + [self mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(imgvback); + }]; + + dispatch_async(dispatch_get_global_queue(0, 0), ^{ + UIImage *imageer = [Tools CreateStrcode:@"123" size:94]; + dispatch_async(dispatch_get_main_queue(), ^{ + self.imgver.image = imageer; + }); + }); } return self; } diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.h new file mode 100644 index 0000000..eb1130d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.h @@ -0,0 +1,16 @@ +// +// ZhiNengXieZuoViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface ZhiNengXieZuoViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m new file mode 100644 index 0000000..299b9b5 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m @@ -0,0 +1,47 @@ +// +// ZhiNengXieZuoViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ZhiNengXieZuoViewController.h" +#import "ZhiNengXieZuoView.h" + +@interface ZhiNengXieZuoViewController () + +@end + +@implementation ZhiNengXieZuoViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"智能写作" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:[UIColor whiteColor]]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + ZhiNengXieZuoView *view = [ZhiNengXieZuoView new]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/FenXiangWenZhangAlterView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/FenXiangWenZhangAlterView.h new file mode 100644 index 0000000..90d2d98 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/FenXiangWenZhangAlterView.h @@ -0,0 +1,17 @@ +// +// FenXiangWenZhangAlterView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^FenXiangWenZhangAlterViewBack)(NSInteger tag); +@interface FenXiangWenZhangAlterView : UIView +/// +@property (nonatomic , strong) FenXiangWenZhangAlterViewBack backValue; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/FenXiangWenZhangAlterView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/FenXiangWenZhangAlterView.m new file mode 100644 index 0000000..e87445f --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/FenXiangWenZhangAlterView.m @@ -0,0 +1,96 @@ +// +// FenXiangWenZhangAlterView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "FenXiangWenZhangAlterView.h" + +@implementation FenXiangWenZhangAlterView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)]; + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.bottom.equalTo(self).offset(-TabHeight+30); + make.height.offset(218); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:30]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"分享到"]; + [lbname setTextColor:RGBCOLOR(61, 61, 61)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:18]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.centerX.equalTo(viewback); + }]; + + NSArray *arrtt = @[@"微信好友",@"微信朋友圈",@"保存到相册",@"复制全文"]; + float f_w = (UISCREEN_WIDTH-40)/arrtt.count; + for(int i = 0 ; i < arrtt.count; i++) + { + UIButton *btdenglu = [[UIButton alloc] init]; + [btdenglu setTitle:arrtt[i] forState:UIControlStateNormal]; + [btdenglu setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal]; + [btdenglu.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [btdenglu setImage:[UIImage imageNamed:[NSString stringWithFormat:@"fenxiang_%@",arrtt[i]]] forState:UIControlStateNormal]; + [viewback addSubview:btdenglu]; + [btdenglu mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(f_w*i); + make.top.equalTo(lbname.mas_bottom).offset(10); + make.height.offset(100); + make.width.offset(f_w); + }]; + [btdenglu setIconInTopWithSpacing:10]; + [btdenglu setTag:i]; + [btdenglu addTarget:self action:@selector(shareAction:) forControlEvents:UIControlEventTouchUpInside]; + + } + + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(248, 248, 248)]; + [viewback addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewback); + make.top.offset(155); + make.height.offset(1); + }]; + + UIButton *btcancle = [[UIButton alloc] init]; + [btcancle setTitle:@"取消" forState:UIControlStateNormal]; + [btcancle setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal]; + [btcancle.titleLabel setFont:[UIFont boldSystemFontOfSize:16]]; + [viewback addSubview:btcancle]; + [btcancle mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(viewback); + make.top.equalTo(viewline.mas_bottom); + }]; + [btcancle addTarget:self action:@selector(cancleAction) forControlEvents:UIControlEventTouchUpInside]; + + } + return self; +} + +-(void)shareAction:(UIButton *)sender +{ + self.backValue(sender.tag); + [self removeFromSuperview]; +} +-(void)cancleAction +{ + [self removeFromSuperview]; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h new file mode 100644 index 0000000..5ab078b --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h @@ -0,0 +1,17 @@ +// +// TiCaiAlterView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^TiCaiAlterViewBack)(NSString *name); +@interface TiCaiAlterView : UIView +/// +@property (nonatomic , strong) TiCaiAlterViewBack backValue; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m new file mode 100644 index 0000000..12e79ba --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m @@ -0,0 +1,144 @@ +// +// TiCaiAlterView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "TiCaiAlterView.h" +#import "TiCaiAlterTableViewCell.h" + + +@interface TiCaiAlterView () +/// +@property (nonatomic , strong) UITableView *tableView; +/// +@property (nonatomic , strong) NSMutableArray *arrdata; + + +@end + +@implementation TiCaiAlterView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)]; + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.bottom.equalTo(self).offset(-TabHeight+30); + make.height.offset(UISCREEN_HEIGHT*0.75); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:30]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"作文题材"]; + [lbname setTextColor:RGBCOLOR(61, 61, 61)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:18]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.centerX.equalTo(viewback); + }]; + + UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped]; + [tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; + [tableView setBackgroundColor:[UIColor clearColor]]; + [tableView setDelegate:self]; + [tableView setDataSource:self]; + [tableView setShowsVerticalScrollIndicator:NO]; + [viewback addSubview:tableView]; + [tableView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(viewback); + make.top.equalTo(lbname.mas_bottom).offset(20); + }]; + _tableView = tableView; + [self getdata]; + + } + return self; +} + +-(void)getdata +{ + NSArray *arrtt = @[@"记叙文",@"说明文",@"抒情文",@"议论文",@"描写型"]; + NSArray *arrinfo = @[@"对生活中的人或物,进行描述,叙述,从而表达作者的思想感情。",@"主要应用在我们的生活里,方便我们更容易了解事物。",@"利于抒发作者感情,表达作者思想。",@"表达作者的观点和看法的作文类型。",@"细致入微的描写事物。"]; + self.arrdata = [NSMutableArray new]; + for(int i = 0 ; i < arrtt.count; i++) + { + baseInfoModel *model = [baseInfoModel new]; + model.title = arrtt[i]; + model.info = arrinfo[i]; + [self.arrdata addObject:model]; + } +} + +#pragma mark - UITableView +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return self.arrdata.count; +} +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return 1; +} +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *strcell = @"TiCaiAlterTableViewCell"; + TiCaiAlterTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell]; + if(!cell) + { + cell = [[TiCaiAlterTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strcell]; + [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; + [cell setBackgroundColor:[UIColor clearColor]]; + } + cell.model = self.arrdata[indexPath.section]; + return cell; +} +-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section +{ + return 0.01; +} +-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section +{ + return 15; +} +-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath +{ + baseInfoModel *model = self.arrdata[indexPath.section]; + float fheiht = [Tools getLabelHeightWithText:model.info width:UISCREEN_WIDTH-80 font:14 linHeight:4]+57; + return fheiht; +} +-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section +{ + return [UIView new]; +} +-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section +{ + return [UIView new]; +} +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + for(baseInfoModel *model in self.arrdata) + { + model.select = NO; + } + baseInfoModel *model = self.arrdata[indexPath.section]; + model.select = YES; + [self.tableView reloadData]; + [self.tableView setUserInteractionEnabled:NO]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + self.backValue(model.title); + [self removeFromSuperview]; + }); + +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/ZhiShuAlterView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/ZhiShuAlterView.h new file mode 100644 index 0000000..3ccc418 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/ZhiShuAlterView.h @@ -0,0 +1,17 @@ +// +// ZhiShuAlterView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^ZhiShuAlterViewBack)(NSString *name); +@interface ZhiShuAlterView : UIView +/// +@property (nonatomic , strong) ZhiShuAlterViewBack backValue; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/ZhiShuAlterView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/ZhiShuAlterView.m new file mode 100644 index 0000000..c687f4b --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/ZhiShuAlterView.m @@ -0,0 +1,131 @@ +// +// ZhiShuAlterView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ZhiShuAlterView.h" +#import "ZhiShuAlterCollectionViewCell.h" + +@interface ZhiShuAlterView () +/// +@property (nonatomic , strong) UICollectionView *collect; +/// +@property (nonatomic , strong) NSMutableArray *arrdata; +@end + +@implementation ZhiShuAlterView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)]; + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.bottom.equalTo(self).offset(-TabHeight+30); + make.height.offset(223); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:30]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"字数要求"]; + [lbname setTextColor:RGBCOLOR(61, 61, 61)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:18]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.centerX.equalTo(viewback); + }]; + + UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init]; + layout.minimumLineSpacing = 0; + layout.minimumInteritemSpacing = 0; + UICollectionView *collect = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout]; + [collect setScrollEnabled:NO]; + [collect setDelegate:self]; + [collect setDataSource:self]; + [collect setBackgroundColor:[UIColor clearColor]]; + [viewback addSubview:collect]; + [collect mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(0); + make.right.equalTo(viewback); + make.top.equalTo(lbname.mas_bottom).offset(20); + make.height.offset(158); + }]; + [collect registerClass:[ZhiShuAlterCollectionViewCell class] forCellWithReuseIdentifier:@"ZhiShuAlterCollectionViewCell"]; + _collect = collect; + + [self getdata]; + } + return self; +} + + +-(void)getdata +{ + NSArray *arrtt = @[@"100以内",@"100-200",@"200-300",@"300-400",@"400-500",@"500-600",@"600-800",@"800以上"]; + self.arrdata = [NSMutableArray new]; + for(int i = 0 ; i < arrtt.count; i++) + { + baseInfoModel *model = [baseInfoModel new]; + model.title = arrtt[i]; + [self.arrdata addObject:model]; + } +} + +#pragma mark - UICollectionView +- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section +{ + return self.arrdata.count; +} +- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath +{ + ZhiShuAlterCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"ZhiShuAlterCollectionViewCell" forIndexPath:indexPath]; + cell.model = self.arrdata[indexPath.row]; + return cell; +} +//定义每个section的间距 +- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section{ + + return UIEdgeInsetsMake(0, 20, 0, 20); +} +//纵向cell间距 +- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section{ + return 15; +} +//cell 间距 +- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout ForSectionAtIndex:(NSInteger)section{ + return 20; +} +// 定义每个UICollectionViewCell 的大小 +- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath +{ + return CGSizeMake((UISCREEN_WIDTH-120)/3.0, 36); +} +-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath +{ + ///做选中操作 + for(baseInfoModel *model in self.arrdata) + { + model.select = NO; + } + baseInfoModel *model = self.arrdata[indexPath.row]; + model.select = YES; + [self.collect reloadData]; + [self.collect setUserInteractionEnabled:NO]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + self.backValue(model.title); + [self removeFromSuperview]; + }); +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/TiCaiAlterTableViewCell.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/TiCaiAlterTableViewCell.h new file mode 100644 index 0000000..1a06901 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/TiCaiAlterTableViewCell.h @@ -0,0 +1,17 @@ +// +// TiCaiAlterTableViewCell.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface TiCaiAlterTableViewCell : UITableViewCell +/// +@property (nonatomic , strong) baseInfoModel *model; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/TiCaiAlterTableViewCell.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/TiCaiAlterTableViewCell.m new file mode 100644 index 0000000..30f1b5e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/TiCaiAlterTableViewCell.m @@ -0,0 +1,94 @@ +// +// TiCaiAlterTableViewCell.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "TiCaiAlterTableViewCell.h" + + +@interface TiCaiAlterTableViewCell () +/// +@property (nonatomic , strong) UIView *viewback; +/// +@property (nonatomic , strong) UILabel *lbname; +@property (nonatomic , strong) UILabel *lbinfo; +@end + +@implementation TiCaiAlterTableViewCell + +-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier +{ + if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) + { + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [self.contentView addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(self); + make.left.offset(20); + make.right.equalTo(self).offset(-20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + _viewback = viewback; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"说明文"]; + [lbname setTextColor:RGBCOLOR(61, 61, 61)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:16]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(15); + }]; + _lbname = lbname; + + UILabel *lbinfo = [[UILabel alloc] init]; + [lbinfo setText:@"说明文"]; + [lbinfo setTextColor:RGBCOLOR(109, 109, 109)]; + [lbinfo setTextAlignment:NSTextAlignmentLeft]; + [lbinfo setFont:[UIFont systemFontOfSize:14]]; + [lbinfo setNumberOfLines:0]; + [viewback addSubview:lbinfo]; + [lbinfo mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(lbname); + make.right.equalTo(viewback).offset(-20); + make.top.equalTo(lbname.mas_bottom).offset(4); + }]; + _lbinfo = lbinfo; + } + return self; +} + +-(void)setModel:(baseInfoModel *)model +{ + _model = model; + self.lbname.text = model.title; + self.lbinfo.text = model.info; + if(model.select) + { + [self.viewback setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [self.lbname setTextColor:[UIColor whiteColor]]; + [self.lbinfo setTextColor:[UIColor whiteColor]]; + } + else + { + [self.viewback setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [self.lbname setTextColor:RGBCOLOR(61, 61, 61)]; + [self.lbinfo setTextColor:RGBCOLOR(109, 109, 109)]; + } + NSMutableParagraphStyle *style = [NSMutableParagraphStyle new]; + style.lineSpacing = 4; + style.lineBreakMode = NSLineBreakByWordWrapping; + style.alignment = NSTextAlignmentLeft; + + NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:model.info]; + [attrString addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, model.info.length)]; + self.lbinfo.attributedText = attrString; + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/ZhiShuAlterCollectionViewCell.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/ZhiShuAlterCollectionViewCell.h new file mode 100644 index 0000000..7448fad --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/ZhiShuAlterCollectionViewCell.h @@ -0,0 +1,17 @@ +// +// ZhiShuAlterCollectionViewCell.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ZhiShuAlterCollectionViewCell : UICollectionViewCell +/// +@property (nonatomic , strong) baseInfoModel *model; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/ZhiShuAlterCollectionViewCell.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/ZhiShuAlterCollectionViewCell.m new file mode 100644 index 0000000..b0627de --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/cell/ZhiShuAlterCollectionViewCell.m @@ -0,0 +1,61 @@ +// +// ZhiShuAlterCollectionViewCell.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ZhiShuAlterCollectionViewCell.h" + + +@interface ZhiShuAlterCollectionViewCell () +/// +@property (nonatomic , strong) UIView *viewback; +/// +@property (nonatomic , strong) UILabel *lbname; +@end + +@implementation ZhiShuAlterCollectionViewCell +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [self.contentView addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:18]; + _viewback = viewback; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"说明文"]; + [lbname setTextColor:RGBCOLOR(61, 61, 61)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont systemFontOfSize:14]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewback); + }]; + _lbname = lbname; + } + return self; +} +-(void)setModel:(baseInfoModel *)model +{ + _model = model; + self.lbname.text = model.title; + if(model.select) + { + [self.viewback setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [self.lbname setTextColor:[UIColor whiteColor]]; + } + else + { + [self.viewback setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [self.lbname setTextColor:RGBCOLOR(61, 61, 61)]; + } +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.h new file mode 100644 index 0000000..2ebd49e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.h @@ -0,0 +1,16 @@ +// +// ZhiNengXieZuoQuanWenView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ZhiNengXieZuoQuanWenView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m new file mode 100644 index 0000000..50a2c1d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m @@ -0,0 +1,193 @@ +// +// ZhiNengXieZuoQuanWenView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ZhiNengXieZuoQuanWenView.h" +#import "TiCaiAlterView.h" +#import "ZhiShuAlterView.h" +#import "ChuangZuoSiLuViewController.h" + +@interface ZhiNengXieZuoQuanWenView () +/// +@property (nonatomic , strong) NSMutableArray *arrfield; +@end + +@implementation ZhiNengXieZuoQuanWenView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + self.arrfield = [NSMutableArray new]; + UIView *viewlast = nil; + NSArray *arrt = @[@"作文标题",@"作文要求",@"作文题材",@"字数要求"]; + NSArray *arrplatch = @[@"请输入标题",@"请输入作文要求,如:探索梦想的翅膀",@"作文题材",@"字数要求"]; + for(int i = 0; i < arrt.count; i++) + { + UIView *viewitem = [[UIView alloc] init]; + [self addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(self); + make.top.offset(5+90*i); + make.height.offset(90); + }]; + viewlast = viewitem; + + UITextField *field = [self drawItemView:viewitem title:arrt[i] platch:arrplatch[i] tag:i-1]; + if(i==2) + { + field.text = @"记叙文"; + } + else if (i==3) + { + field.text = @"100以内"; + } + [self.arrfield addObject:field]; + } + + float f_w = (UISCREEN_WIDTH-95)/2.0; + UIButton *btcreate = [[UIButton alloc] init]; + [btcreate setTitle:@"梳理思路" forState:UIControlStateNormal]; + [btcreate setTitleColor:RGBCOLOR(108, 119, 246) forState:UIControlStateNormal]; + [btcreate.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btcreate.layer setMasksToBounds:YES]; + [btcreate.layer setCornerRadius:16]; + [btcreate.layer setBorderWidth:1]; + [btcreate.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor]; + [self addSubview:btcreate]; + [btcreate mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewlast.mas_bottom).offset(20); + make.size.sizeOffset(CGSizeMake(f_w, 50)); + make.left.offset(20); + }]; + [btcreate addTarget:self action:@selector(shuliAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, f_w, 50)]; + [btai setTitle:@"提交" forState:UIControlStateNormal]; + [btai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btai.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btai.layer setMasksToBounds:YES]; + [btai.layer setCornerRadius:16]; + [self addSubview:btai]; + [btai mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewlast.mas_bottom).offset(20); + make.size.sizeOffset(CGSizeMake(f_w, 50)); + make.left.equalTo(btcreate.mas_right).offset(15); + }]; + [Tools changedView:btai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + [btai addTarget:self action:@selector(sendAction) forControlEvents:UIControlEventTouchUpInside]; + + [self mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(btai).offset(20); + }]; + + } + return self; +} +-(UITextField *)drawItemView:(UIView *)view title:(NSString *)title platch:(NSString *)platch tag:(int)tag +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(15); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:title]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:RGBCOLOR(250, 250, 250)]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(viewline); + make.right.equalTo(view).offset(-20); + make.top.equalTo(viewline.mas_bottom).offset(12); + make.height.offset(40); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:12]; + + UITextField *field = [[UITextField alloc] init]; + [field setTextColor:RGBCOLOR(51, 51, 51)]; + [field setTextAlignment:NSTextAlignmentLeft]; + [field setFont:[UIFont systemFontOfSize:14]]; + [field setPlaceholder:platch]; + [viewback addSubview:field]; + [field mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(10); + make.top.bottom.equalTo(viewback); + make.right.equalTo(viewback).offset(-10); + }]; + + if(tag>0) + { + UIImageView *imgvnext = [[UIImageView alloc] init]; + [imgvnext setImage:[UIImage imageNamed:@"znxz_next"]]; + [viewback addSubview:imgvnext]; + [imgvnext mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(24); + make.centerY.equalTo(viewback); + make.right.equalTo(viewback).offset(-10); + }]; + + UIButton *btitem = [[UIButton alloc] init]; + [viewback addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewback); + }]; + [btitem setTag:tag]; + [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; + } + return field; +} + +-(void)itemAction:(UIButton *)sender +{ + [self endEditing:YES]; + if(sender.tag==1) + { + TiCaiAlterView *view = [[TiCaiAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + [self.viewController.view addSubview:view]; + [view setBackValue:^(NSString * _Nonnull name) { + UITextField *field = self.arrfield[2]; + field.text = name; + }]; + } + else + { + ZhiShuAlterView *view = [[ZhiShuAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + [self.viewController.view addSubview:view]; + [view setBackValue:^(NSString * _Nonnull name) { + UITextField *field = self.arrfield[3]; + field.text = name; + }]; + } +} +///梳理思路 +-(void)shuliAction +{ + ChuangZuoSiLuViewController *vc = [ChuangZuoSiLuViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} +///提交 +-(void)sendAction +{ + +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.h new file mode 100644 index 0000000..2555dc0 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.h @@ -0,0 +1,17 @@ +// +// ZhiNengXieZuoTopView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^ZhiNengXieZuoTopViewBack)(NSInteger tag); +@interface ZhiNengXieZuoTopView : UIView +/// +@property (nonatomic , strong) ZhiNengXieZuoTopViewBack backSelect; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m new file mode 100644 index 0000000..3ca6689 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m @@ -0,0 +1,77 @@ +// +// ZhiNengXieZuoTopView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ZhiNengXieZuoTopView.h" + + +@interface ZhiNengXieZuoTopView () +/// +@property (nonatomic , strong) UIButton *btselect; +/// +@property (nonatomic , strong) UIImageView *imgvback; + +@end + +@implementation ZhiNengXieZuoTopView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + NSArray *arrtt = @[@"全文写作",@"段落写作"]; + + float f_w =(UISCREEN_WIDTH-40)/2.0; + for(int i = 0 ; i < arrtt.count; i++) + { + UIButton *btdenglu = [[UIButton alloc] init]; + [btdenglu setTitle:arrtt[i] forState:UIControlStateNormal]; + [btdenglu setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btdenglu setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateSelected]; + [btdenglu.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [self addSubview:btdenglu]; + [btdenglu mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(self); + make.left.offset(f_w*i); + make.width.offset(f_w); + }]; + [btdenglu setTag:i]; + [btdenglu addTarget:self action:@selector(topAction:) forControlEvents:UIControlEventTouchUpInside]; + if(i==0) + { + [btdenglu setSelected:YES]; + [btdenglu.titleLabel setFont:[UIFont boldSystemFontOfSize:20]]; + _btselect = btdenglu; + } + } + + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + UIImageView *imgvback = [[UIImageView alloc] initWithFrame:CGRectMake(0, 33, 84, 8)]; + [imgvback setImage:[UIImage imageNamed:@"yd_pg_hd"]]; + [self addSubview:imgvback]; + imgvback.centerX = self.btselect.centerX; + [self sendSubviewToBack:imgvback]; + self.imgvback = imgvback; + }); + + } + return self; +} + +-(void)topAction:(UIButton *)sender +{ + if(sender.tag == self.btselect.tag)return; + [self.btselect setSelected:NO]; + [self.btselect.titleLabel setFont:[UIFont systemFontOfSize:16]]; + + self.btselect = sender; + [self.btselect setSelected:YES]; + [self.btselect.titleLabel setFont:[UIFont boldSystemFontOfSize:20]]; + self.imgvback.centerX = self.btselect.centerX; + self.backSelect(sender.tag); +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.h new file mode 100644 index 0000000..23bc723 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.h @@ -0,0 +1,16 @@ +// +// ZhiNengXieZuoView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ZhiNengXieZuoView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m new file mode 100644 index 0000000..1384385 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m @@ -0,0 +1,68 @@ +// +// ZhiNengXieZuoView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ZhiNengXieZuoView.h" +#import "ZhiNengXieZuoTopView.h" +#import "ZhiNengXieZuoQuanWenView.h" + +@interface ZhiNengXieZuoView () + + + +@end + +@implementation ZhiNengXieZuoView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIImage *image = [UIImage imageNamed:@"znxz_viewleft"]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height/2.0, 20, image.size.height/2.0, image.size.width-20)]]; + [self addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.right.equalTo(self).offset(-20); + }]; + [imgvback setUserInteractionEnabled:YES]; + [self drawInfoView:imgvback]; + + + + } + return self; +} +-(void)drawInfoView:(UIView *)view +{ + ZhiNengXieZuoTopView *viewtop = [ZhiNengXieZuoTopView new]; + [view addSubview:viewtop]; + [viewtop mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(view); + make.height.offset(52); + }]; + [viewtop setBackSelect:^(NSInteger tag) { + + }]; + + ZhiNengXieZuoQuanWenView *viewqw = [ZhiNengXieZuoQuanWenView new]; + [view addSubview:viewqw]; + [viewqw mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(view); + make.top.equalTo(viewtop.mas_bottom); + }]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewqw); + }]; + + +} + + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.h new file mode 100644 index 0000000..9e795a7 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.h @@ -0,0 +1,16 @@ +// +// XieZuoXiangQingViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface XieZuoXiangQingViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.m new file mode 100644 index 0000000..b8b8ff5 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.m @@ -0,0 +1,42 @@ +// +// XieZuoXiangQingViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "XieZuoXiangQingViewController.h" +#import "XieZuoXiangQingView.h" + + +@interface XieZuoXiangQingViewController () + +@end + +@implementation XieZuoXiangQingViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"智能写作" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; + [self.navigationView setMuenTitle:@"反馈" titleColor:RGBCOLOR(60, 60, 60)]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:[UIColor whiteColor]]; + + XieZuoXiangQingView *view = [XieZuoXiangQingView new]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + +} + + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.h new file mode 100644 index 0000000..206e905 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.h @@ -0,0 +1,16 @@ +// +// XieZuoXiangQingSiLuView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface XieZuoXiangQingSiLuView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.m new file mode 100644 index 0000000..7f5d3c3 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.m @@ -0,0 +1,159 @@ +// +// XieZuoXiangQingSiLuView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "XieZuoXiangQingSiLuView.h" + +@interface XieZuoXiangQingSiLuView () +/// +@property (nonatomic , strong) UIView *viewtop; +/// +@property (nonatomic , strong) UIView *viewlast; +/// +@property (nonatomic , strong) MASConstraint *selfBottom; + +@end +@implementation XieZuoXiangQingSiLuView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:RGBCOLOR(236, 237, 252)]; + [self.layer setMasksToBounds:YES]; + [self.layer setCornerRadius:12]; + + UIView *viewtop = [[UIView alloc] init]; + [viewtop setBackgroundColor:RGBCOLOR(223, 225, 251)]; + [self addSubview:viewtop]; + [viewtop mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self); + make.height.offset(40); + }]; + [viewtop.layer setMasksToBounds:YES]; + [viewtop.layer setCornerRadius:12]; + [self drawTopView:viewtop]; + _viewtop = viewtop; + + UIView *viewlast = nil; + NSArray *arrtt = @[@"作文题材",@"开头",@"中间",@"结尾"]; + for(int i = 0 ; i < arrtt.count; i++) + { + UIView *viewitem = [[UIView alloc] init]; + [self addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(15); + make.right.equalTo(self).offset(-15); + if(viewlast) + { + make.top.equalTo(viewlast.mas_bottom).offset(10); + } + else + { + make.top.equalTo(viewtop.mas_bottom).offset(15); + } + }]; + viewlast = viewitem; + [self drawItemView:viewitem title:arrtt[i] content:@"选材:第一次露营的经历"]; + } + _viewlast = viewlast; + + [self mas_makeConstraints:^(MASConstraintMaker *make) { + self.selfBottom = make.bottom.equalTo(viewtop); + }]; + } + return self; +} + +-(void)drawItemView:(UIView *)view title:(NSString *)title content:(NSString *)content +{ + [view setBackgroundColor:RGBCOLOR(223, 225, 251)]; + [view.layer setMasksToBounds:YES]; + [view.layer setCornerRadius:12]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:title]; + [lbname setTextColor:RGBCOLOR(109, 109, 109)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(13); + make.centerY.equalTo(view); + }]; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:content]; + [lbcontent setTextColor:RGBCOLOR(109, 109, 109)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:12]]; + [lbcontent setNumberOfLines:0]; + [view addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(71); + make.right.equalTo(view).offset(-13); + make.top.offset(10); + }]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbcontent).offset(10); + }]; +} + +-(void)drawTopView:(UIView *)view +{ + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"写作思路"]; + [lbname setTextColor:RGBCOLOR(109, 109, 109)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(15); + make.centerY.equalTo(view); + }]; + + UIButton *btsz = [[UIButton alloc] init]; + [btsz setTitle:@"展开" forState:UIControlStateNormal]; + [btsz setTitle:@"收起" forState:UIControlStateSelected]; + [btsz setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btsz setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateSelected]; + [btsz setImage:[UIImage imageNamed:@"展开"] forState:UIControlStateNormal]; + [btsz setImage:[UIImage imageNamed:@"收起"] forState:UIControlStateSelected]; + [btsz.titleLabel setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:btsz]; + [btsz mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(view); + make.right.equalTo(view).offset(-10); + }]; + [btsz setIconInRightWithSpacing:2]; + [btsz addTarget:self action:@selector(btzkAction:) forControlEvents:UIControlEventTouchUpInside]; + +} + +-(void)btzkAction:(UIButton *)sender +{ + sender.selected = !sender.selected; + [self.selfBottom uninstall]; + if(sender.selected) + { + [self.layer setMasksToBounds:NO]; + [self.layer setCornerRadius:20]; + [self mas_makeConstraints:^(MASConstraintMaker *make) { + self.selfBottom = make.bottom.equalTo(self.viewlast).offset(15); + }]; + } + else + { + [self.layer setMasksToBounds:YES]; + [self.layer setCornerRadius:12]; + [self mas_makeConstraints:^(MASConstraintMaker *make) { + self.selfBottom = make.bottom.equalTo(self.viewtop); + }]; + } +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.h new file mode 100644 index 0000000..e2e6b04 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.h @@ -0,0 +1,16 @@ +// +// XieZuoXiangQingView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface XieZuoXiangQingView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.m new file mode 100644 index 0000000..820b54f --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.m @@ -0,0 +1,246 @@ +// +// XieZuoXiangQingView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "XieZuoXiangQingView.h" +#import "XieZuoXiangQingSiLuView.h" +#import "FenXiangWenZhangAlterView.h" + + + +@interface XieZuoXiangQingView () +/// +@property (nonatomic , strong) UIScrollView *scvback; + +/// +@property (nonatomic , strong) NSArray *arrdata; +/// +@property (nonatomic , strong) NSMutableArray *arrItems; + +@property (nonatomic , assign) BOOL isdrawEnd; + +@end + +@implementation XieZuoXiangQingView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback = [[UIScrollView alloc] init]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(self); + make.height.equalTo(self).offset(-TabHeight-20); + }]; + _scvback = scvback; + [self drawInfoView:scvback]; + + + UIView *viewbottom = [[UIView alloc] init]; + [viewbottom setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewbottom]; + [viewbottom mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self); + make.top.equalTo(scvback.mas_bottom); + }]; + [self drawBottomView:viewbottom]; + + } + return self; +} + +-(void)drawInfoView:(UIScrollView *)view +{ + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"写人作文"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont boldSystemFontOfSize:24]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(view).offset(-40); + }]; + + UILabel *lbyaoqiu = [[UILabel alloc] init]; + [lbyaoqiu setText:@"全文要求:写给生命"]; + [lbyaoqiu setTextColor:RGBCOLOR(109, 109, 109)]; + [lbyaoqiu setTextAlignment:NSTextAlignmentCenter]; + [lbyaoqiu setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbyaoqiu]; + [lbyaoqiu mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbname); + make.top.equalTo(lbname.mas_bottom).offset(15); + }]; + + UILabel *lbzhishu = [[UILabel alloc] init]; + [lbzhishu setText:@"800字"]; + [lbzhishu setTextColor:RGBCOLOR(109, 109, 109)]; + [lbzhishu setTextAlignment:NSTextAlignmentCenter]; + [lbzhishu setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbzhishu]; + [lbzhishu mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbname); + make.top.equalTo(lbyaoqiu.mas_bottom).offset(15); + }]; + + XieZuoXiangQingSiLuView *viewsl = [XieZuoXiangQingSiLuView new]; + [view addSubview:viewsl]; + [viewsl mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbname); + make.top.equalTo(lbzhishu.mas_bottom).offset(18); + }]; + + + self.arrItems = [NSMutableArray new]; + self.arrdata = @[@"",@"",@"",@""]; + [self drawItemLastView:viewsl tag:0 bottom:nil]; +} +-(void)drawItemLastView:(UIView *)view tag:(int)tag bottom:(MASConstraint *)bottom +{ + ViewLable *lbwz = [[ViewLable alloc] init]; + [self.scvback addSubview:lbwz]; + [lbwz mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.width.equalTo(self.scvback).offset(-40); + make.top.equalTo(view.mas_bottom).offset(20); + }]; + lbwz.textColor = RGBCOLOR(61, 61, 61); + lbwz.textFont = [UIFont systemFontOfSize:16]; + lbwz.fspeed = 0.02; + lbwz.strValue = [NSString stringWithFormat:@" %@",@"你的作文非常出色,但是可以在语言表达上更加生动有趣,增加一些形象的比喻和细节描写,让读者更加深入地了解你的思考和感受。同时,可以适当增加一些个人的经历和感受,让作文更加具有个性化和独特性。"]; + __strong ViewLable *lbwzSelf = lbwz; + __block MASConstraint *bottomScroll; + [lbwz setBackHeight:^(float fheight, BOOL isend) { + if(isend) + { + if(tag0) + { + [self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height)]; + } + }]; + [self.arrItems addObject:lbwz]; + if(bottom) + { + [bottom uninstall]; + } + [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { + bottomScroll = make.bottom.equalTo(lbwz.mas_bottom).offset(20); + }]; + + UIButton *btcx = [[UIButton alloc] init]; + [btcx setImage:[UIImage imageNamed:@"znxz_chongxie"] forState:UIControlStateNormal]; + [self.scvback addSubview:btcx]; + [btcx mas_makeConstraints:^(MASConstraintMaker *make) { + make.size.sizeOffset(CGSizeMake(24, 24)); + make.left.offset(23); + make.top.equalTo(view.mas_bottom).offset(17); + }]; + [btcx addTarget:self action:@selector(cxAction:) forControlEvents:UIControlEventTouchUpInside]; + [btcx setTag:tag]; +} + + +-(void)drawBottomView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(248, 248, 248)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(view); + make.height.offset(1); + }]; + + UIButton *btchange = [[UIButton alloc] init]; + [btchange setTitle:@"重写一篇" forState:UIControlStateNormal]; + [btchange setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal]; + [btchange.titleLabel setFont:[UIFont boldSystemFontOfSize:18]]; + [btchange.layer setMasksToBounds:YES]; + [btchange.layer setCornerRadius:10]; + [btchange.layer setBorderWidth:1]; + [btchange.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor]; + [view addSubview:btchange]; + [btchange mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(10); + make.height.offset(40); + make.width.offset((UISCREEN_WIDTH-52)/2.0); + }]; + [btchange setTag:0]; + [btchange addTarget:self action:@selector(bottomAction:) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btcreate = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, (UISCREEN_WIDTH-52)/2.0, 40)]; + [btcreate setTitle:@"保存分享" forState:UIControlStateNormal]; + [btcreate setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btcreate.titleLabel setFont:[UIFont boldSystemFontOfSize:18]]; + [btcreate.layer setMasksToBounds:YES]; + [btcreate.layer setCornerRadius:10]; + [view addSubview:btcreate]; + [btcreate mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(btchange.mas_right).offset(12); + make.top.height.equalTo(btchange); + make.right.equalTo(view).offset(-30); + }]; + [btcreate setTag:1]; + [btcreate addTarget:self action:@selector(bottomAction:) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btcreate colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)cxAction:(UIButton *)sender +{ + if(self.isdrawEnd==NO) + { + [HXHud showMessage:@"请等待写作完成" afterDelayType:0]; + return; + } + self.isdrawEnd = NO; + ViewLable *lbwz = self.arrItems[sender.tag]; + lbwz.strValue = [NSString stringWithFormat:@" %@",@"2341234123你的作文非常出色,但是可以在语言表达上更加生动有趣,增加一些形象的比喻和细节描写,让读者更加深入地了解你的思考和感受。同时,可以适当增加一些个人的经历和感受,让作文更加具有个性化和独特性。"]; + [lbwz setBackHeight:^(float fheight, BOOL isend) { + if(isend) + { + self.isdrawEnd = YES; + } + }]; +} +-(void)bottomAction:(UIButton *)sender +{ + if(self.isdrawEnd==NO) + { + [HXHud showMessage:@"请等待写作完成" afterDelayType:0]; + return; + } + switch (sender.tag) { + case 0: + { + + } + break; + case 1: + { + FenXiangWenZhangAlterView *view = [[FenXiangWenZhangAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + [self.viewController.view addSubview:view]; + [view setBackValue:^(NSInteger tag) { + + }]; + } + break; + default: + break; + } +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.h new file mode 100644 index 0000000..4a3106d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.h @@ -0,0 +1,16 @@ +// +// ChuangZuoSiLuViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface ChuangZuoSiLuViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.m new file mode 100644 index 0000000..2b62a10 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.m @@ -0,0 +1,48 @@ +// +// ChuangZuoSiLuViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ChuangZuoSiLuViewController.h" +#import "ChuangZuoSiLuView.h" + +@interface ChuangZuoSiLuViewController () + +@end + +@implementation ChuangZuoSiLuViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"创作思路" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; + [self.navigationView setMuenTitle:@"反馈" titleColor:RGBCOLOR(60, 60, 60)]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:[UIColor whiteColor]]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + ChuangZuoSiLuView *view = [ChuangZuoSiLuView new]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.h new file mode 100644 index 0000000..e9dbe46 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.h @@ -0,0 +1,16 @@ +// +// ChuangZuoSiLuView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ChuangZuoSiLuView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.m new file mode 100644 index 0000000..52a7a52 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.m @@ -0,0 +1,259 @@ +// +// ChuangZuoSiLuView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "ChuangZuoSiLuView.h" +#import "XieZuoXiangQingViewController.h" + +typedef void(^ChuangZuoSiLuViewDraw)(void); +@interface ChuangZuoSiLuView () + +@end + +@implementation ChuangZuoSiLuView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.offset(UISCREEN_WIDTH-40); + make.bottom.equalTo(self).offset(-TabHeight); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [viewback addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(viewback); + make.height.equalTo(viewback).offset(-90); + }]; + [self drawInfoView:scvback]; + + float f_w = (UISCREEN_WIDTH-95)/2.0; + UIButton *btcreate = [[UIButton alloc] init]; + [btcreate setTitle:@"换个思路" forState:UIControlStateNormal]; + [btcreate setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal]; + [btcreate.titleLabel setFont:[UIFont systemFontOfSize:18]]; + [btcreate.layer setMasksToBounds:YES]; + [btcreate.layer setCornerRadius:16]; + [btcreate.layer setBorderWidth:1]; + [btcreate.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor]; + [viewback addSubview:btcreate]; + [btcreate mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(scvback.mas_bottom).offset(20); + make.size.sizeOffset(CGSizeMake(f_w, 50)); + make.left.offset(20); + }]; + [btcreate addTarget:self action:@selector(changeAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, f_w, 50)]; + [btai setTitle:@"所思成文" forState:UIControlStateNormal]; + [btai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btai.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btai.layer setMasksToBounds:YES]; + [btai.layer setCornerRadius:16]; + [viewback addSubview:btai]; + [btai mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(scvback.mas_bottom).offset(20); + make.size.sizeOffset(CGSizeMake(f_w, 50)); + make.left.equalTo(btcreate.mas_right).offset(15); + }]; + [Tools changedView:btai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + [btai addTarget:self action:@selector(sendAction) forControlEvents:UIControlEventTouchUpInside]; + + + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"该结果由AI生成,请注意甄别"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [self addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewback.mas_bottom).offset(20); + make.centerX.equalTo(viewback); + }]; + + } + return self; +} + +-(void)drawInfoView:(UIScrollView *)view +{ + ///题材 + UIView *viewticai = [[UIView alloc] init]; + [view addSubview:viewticai]; + [viewticai mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(23); + make.left.width.equalTo(view); + }]; + [self drawOneTextView:viewticai title:@"题材" back:^{ + + }]; + + ///开头 + UIView *viewkaitou = [[UIView alloc] init]; + [view addSubview:viewkaitou]; + [viewkaitou mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewticai.mas_bottom).offset(18); + make.left.width.equalTo(view); + }]; + [self drawOneTextView:viewkaitou title:@"开头" back:^{ + + }]; + + ///中间 + UIView *viewzhongjian = [[UIView alloc] init]; + [view addSubview:viewzhongjian]; + [viewzhongjian mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewkaitou.mas_bottom).offset(18); + make.left.width.equalTo(view); + }]; + [self drawCenterView:viewzhongjian back:^{ + + }]; + + + ///结尾 + UIView *viewjiewei = [[UIView alloc] init]; + [view addSubview:viewjiewei]; + [viewjiewei mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewzhongjian.mas_bottom).offset(18); + make.left.width.equalTo(view); + }]; + [self drawOneTextView:viewjiewei title:@"结尾" back:^{ + + }]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewjiewei).offset(20); + }]; +} + +-(void)drawCenterView:(UIView *)view back:(ChuangZuoSiLuViewDraw)back +{ + UIView *viewtop = [self drawItemView:view title:@"中间"]; + + /// + ViewLable *lbticai = [self drawItem:view lastview:viewtop]; + lbticai.strValue = @"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。"; + [lbticai setBackHeight:^(float fheight, BOOL isend) { + if(isend) + {///这里如果有多个需要处理 +// back(); + } + }]; + + + ViewLable *lbticai1 = [self drawItem:view lastview:lbticai.superview]; + lbticai1.strValue = @"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。"; + [lbticai1 setBackHeight:^(float fheight, BOOL isend) { + if(isend) + {///这里如果有多个需要处理 + back(); + } + }]; + + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbticai1.superview); + }]; + +} + + +-(void)drawOneTextView:(UIView *)view title:(NSString *)title back:(ChuangZuoSiLuViewDraw)back +{ + ViewLable *lbticai = [self drawItem:view lastview:[self drawItemView:view title:title]]; + lbticai.strValue = @"以我心中的英雄--杨利伟为例,讲述他的热爱祖国的事迹。"; + [lbticai setBackHeight:^(float fheight, BOOL isend) { + if(isend) + { + back(); + } + }]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbticai.superview); + }]; +} + +-(UIView *)drawItemView:(UIView *)view title:(NSString *)title +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(0); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:title]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + return viewline; +} +-(ViewLable *)drawItem:(UIView *)view lastview:(UIView *)lastview +{ + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.width.equalTo(view).offset(-40); + make.top.equalTo(lastview.mas_bottom).offset(12); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:12]; + + ViewLable *lbwz = [[ViewLable alloc] init]; + [viewback addSubview:lbwz]; + [lbwz mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(10); + make.top.offset(10); + make.right.equalTo(viewback).offset(-10); + }]; + lbwz.textColor = RGBCOLOR(61, 61, 61); + lbwz.textFont = [UIFont systemFontOfSize:14]; + lbwz.fspeed = 0.02; + + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbwz).offset(10); + }]; + + return lbwz; +} + + +-(void)changeAction +{ + +} + +-(void)sendAction +{ + XieZuoXiangQingViewController *vc = [XieZuoXiangQingViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/KeTangXieZuoViewController.h b/ProductApp/ProductApp/ProductMain/首页/课堂写作/KeTangXieZuoViewController.h new file mode 100644 index 0000000..aad1b46 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/KeTangXieZuoViewController.h @@ -0,0 +1,16 @@ +// +// KeTangXieZuoViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface KeTangXieZuoViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/KeTangXieZuoViewController.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/KeTangXieZuoViewController.m new file mode 100644 index 0000000..5c20e11 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/KeTangXieZuoViewController.m @@ -0,0 +1,85 @@ +// +// KeTangXieZuoViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import "KeTangXieZuoViewController.h" +#import "KeTangXieZuoCollectionViewCell.h" +#import "KeTangXieZuoNJViewController.h" + +@interface KeTangXieZuoViewController () +/// +@property (nonatomic , strong) UICollectionView *collect; + +@end + +@implementation KeTangXieZuoViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"课堂写作" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor whiteColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:[UIColor whiteColor]]; + + UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init]; + layout.minimumLineSpacing = 0; + layout.minimumInteritemSpacing = 0; + UICollectionView *collect = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:layout]; + [collect setDelegate:self]; + [collect setDataSource:self]; + [collect setBackgroundColor:[UIColor clearColor]]; + [self.view addSubview:collect]; + [collect mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + [collect registerClass:[KeTangXieZuoCollectionViewCell class] forCellWithReuseIdentifier:@"KeTangXieZuoCollectionViewCell"]; + _collect = collect; + +} + +#pragma mark - UICollectionView +- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section +{ + return 9; +} +- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath +{ + KeTangXieZuoCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"KeTangXieZuoCollectionViewCell" forIndexPath:indexPath]; + + return cell; +} +//定义每个section的间距 +- (UIEdgeInsets)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout insetForSectionAtIndex:(NSInteger)section{ + + return UIEdgeInsetsMake(16, 22, 0, 22); +} +//纵向cell间距 +- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section{ + return 0; +} +//cell 间距 +- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout ForSectionAtIndex:(NSInteger)section{ + return 10; +} +// 定义每个UICollectionViewCell 的大小 +- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath *)indexPath +{ + return CGSizeMake((UISCREEN_WIDTH - 54)/2.0, (UISCREEN_WIDTH - 54)/2.0*226/160+48); +} +-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath +{ + KeTangXieZuoNJViewController *vc = [KeTangXieZuoNJViewController new]; + [self.navigationController pushViewController:vc animated:YES]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/cell/KeTangXieZuoCollectionViewCell.h b/ProductApp/ProductApp/ProductMain/首页/课堂写作/cell/KeTangXieZuoCollectionViewCell.h new file mode 100644 index 0000000..6c00d73 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/cell/KeTangXieZuoCollectionViewCell.h @@ -0,0 +1,16 @@ +// +// KeTangXieZuoCollectionViewCell.h +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface KeTangXieZuoCollectionViewCell : UICollectionViewCell + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/cell/KeTangXieZuoCollectionViewCell.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/cell/KeTangXieZuoCollectionViewCell.m new file mode 100644 index 0000000..3eef335 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/cell/KeTangXieZuoCollectionViewCell.m @@ -0,0 +1,54 @@ +// +// KeTangXieZuoCollectionViewCell.m +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import "KeTangXieZuoCollectionViewCell.h" + + +@interface KeTangXieZuoCollectionViewCell () +/// +@property (nonatomic , strong) UIImageView *imgvback; +/// +@property (nonatomic , strong) UILabel *lbname; +@end + +@implementation KeTangXieZuoCollectionViewCell +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self.contentView addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self); + }]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"book_nomo"]]; + [viewback addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(viewback); + make.bottom.equalTo(viewback).offset(-48); + }]; + _imgvback = imgvback; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"三年级上"]; + [lbname setTextColor:RGBCOLOR(26, 26, 26)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont systemFontOfSize:15]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewback); + make.top.equalTo(imgvback.mas_bottom).offset(12); + }]; + _lbname = lbname; + + } + return self; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/KeTangXieZuoNJViewController.h b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/KeTangXieZuoNJViewController.h new file mode 100644 index 0000000..97a61a8 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/KeTangXieZuoNJViewController.h @@ -0,0 +1,16 @@ +// +// KeTangXieZuoNJViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface KeTangXieZuoNJViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/KeTangXieZuoNJViewController.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/KeTangXieZuoNJViewController.m new file mode 100644 index 0000000..3c80fdb --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/KeTangXieZuoNJViewController.m @@ -0,0 +1,96 @@ +// +// KeTangXieZuoNJViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import "KeTangXieZuoNJViewController.h" +#import "KeTangXieZuoNJTableViewCell.h" +#import "KeTangXieZuoXiangQingViewController.h" + +@interface KeTangXieZuoNJViewController () +/// +@property (nonatomic , strong) UITableView *tableView; + + +@end + +@implementation KeTangXieZuoNJViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"三年级上册" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor whiteColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(248, 248, 248)]; + + UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped]; + [tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; + [tableView setBackgroundColor:[UIColor clearColor]]; + [tableView setDelegate:self]; + [tableView setDataSource:self]; + [self.view addSubview:tableView]; + [tableView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + +} + +#pragma mark - UITableView +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return 10; +} +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + return 1; +} +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *strcell = @"KeTangXieZuoNJTableViewCell"; + KeTangXieZuoNJTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell]; + if(!cell) + { + cell = [[KeTangXieZuoNJTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strcell]; + [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; + [cell setBackgroundColor:[UIColor clearColor]]; + } + + return cell; +} +-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section +{ + if(section==0)return 10; + return 0.01; +} +-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section +{ + return 10; +} +-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath +{ + return 155; +} +-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section +{ + return [UIView new]; +} +-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section +{ + return [UIView new]; +} +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + KeTangXieZuoXiangQingViewController *vc = [KeTangXieZuoXiangQingViewController new]; + [self.navigationController pushViewController:vc animated:YES]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/cell/KeTangXieZuoNJTableViewCell.h b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/cell/KeTangXieZuoNJTableViewCell.h new file mode 100644 index 0000000..9da7367 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/cell/KeTangXieZuoNJTableViewCell.h @@ -0,0 +1,16 @@ +// +// KeTangXieZuoNJTableViewCell.h +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface KeTangXieZuoNJTableViewCell : UITableViewCell + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/cell/KeTangXieZuoNJTableViewCell.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/cell/KeTangXieZuoNJTableViewCell.m new file mode 100644 index 0000000..3b4b18c --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/年级/cell/KeTangXieZuoNJTableViewCell.m @@ -0,0 +1,135 @@ +// +// KeTangXieZuoNJTableViewCell.m +// ProductApp +// +// Created by 工作 on 2024/9/29. +// + +#import "KeTangXieZuoNJTableViewCell.h" + + +@interface KeTangXieZuoNJTableViewCell () +/// +@property (nonatomic , strong) UILabel *lbname; +/// +@property (nonatomic , strong) UILabel *lbcontent; +/// +@property (nonatomic , strong) UILabel *lbnumber; +/// +@property (nonatomic , strong) NSString *value; +/// +@property (nonatomic , strong) UIView *viewtype; +/// +@property (nonatomic , strong) UILabel *lbtype; + +@end + +@implementation KeTangXieZuoNJTableViewCell + +-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier +{ + if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) + { + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self.contentView addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(self); + make.left.offset(16); + make.right.equalTo(self).offset(-16); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:8]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"假如我是一颗小星星"]; + [lbname setTextColor:RGBCOLOR(26, 26, 26)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:16]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(12); + make.top.offset(14); + make.right.equalTo(viewback).offset(-12); + }]; + _lbname = lbname; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:@"假如我是一颗小星星,我愿意紧紧地围绕在月亮身边,静静地听她讲美丽动人的故事,嫦娥、玉兔,还有吴刚的桂花酒……"]; + [lbcontent setTextColor:RGBCOLOR(51, 51, 51)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:14]]; + [lbcontent setNumberOfLines:3]; + [viewback addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbname); + make.top.equalTo(lbname.mas_bottom).offset(8); + }]; + _lbcontent = lbcontent; + + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(248, 248, 248)]; + [viewback addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbcontent); + make.height.offset(1); + make.top.equalTo(lbcontent.mas_bottom).offset(12); + }]; + + UILabel *lbnumber = [[UILabel alloc] init]; + [lbnumber setText:@"一单元上 | 300字"]; + [lbnumber setTextColor:RGBCOLOR(153, 153, 153)]; + [lbnumber setTextAlignment:NSTextAlignmentLeft]; + [lbnumber setFont:[UIFont systemFontOfSize:12]]; + [viewback addSubview:lbnumber]; + [lbnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.equalTo(viewline.mas_bottom).offset(16); + }]; + _lbnumber = lbnumber; + + UIButton *btdetail = [[UIButton alloc] init]; + [btdetail setTitle:@"查看详情" forState:UIControlStateNormal]; + [btdetail setTitleColor:RGBCOLOR(26, 26, 26) forState:UIControlStateNormal]; + [btdetail.titleLabel setFont:[UIFont systemFontOfSize:12]]; + [btdetail.layer setMasksToBounds:YES]; + [btdetail.layer setCornerRadius:5]; + [btdetail.layer setBorderWidth:1]; + [btdetail.layer setBorderColor:RGBCOLOR(225, 225, 225).CGColor]; + [viewback addSubview:btdetail]; + [btdetail mas_makeConstraints:^(MASConstraintMaker *make) { + make.size.sizeOffset(CGSizeMake(60, 24)); + make.right.equalTo(viewback).offset(-12); + make.centerY.equalTo(lbnumber); + }]; + [btdetail setUserInteractionEnabled:NO]; + + UIView *viewtype = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 38, 18)]; + [viewback addSubview:viewtype]; + [viewtype mas_makeConstraints:^(MASConstraintMaker *make) { + make.right.top.equalTo(viewback); + make.width.offset(38); + make.height.offset(18); + }]; + _viewtype = viewtype; + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewtype.bounds byRoundingCorners:UIRectCornerTopRight | UIRectCornerBottomLeft cornerRadii:CGSizeMake(8,8)]; + CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; + maskLayer.frame = viewtype.bounds; + maskLayer.path = maskPath.CGPath; + viewtype.layer.mask = maskLayer; + [Tools changedView:viewtype colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + + UILabel *lbtype = [[UILabel alloc] init]; + [lbtype setText:@"记叙文"]; + [lbtype setTextColor:[UIColor whiteColor]]; + [lbtype setTextAlignment:NSTextAlignmentCenter]; + [lbtype setFont:[UIFont systemFontOfSize:10]]; + [viewtype addSubview:lbtype]; + [lbtype mas_makeConstraints:^(MASConstraintMaker *make) { + make.center.equalTo(viewtype); + }]; + _lbtype = lbtype; + } + return self; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/KeTangXieZuoXiangQingViewController.h b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/KeTangXieZuoXiangQingViewController.h new file mode 100644 index 0000000..12c1e34 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/KeTangXieZuoXiangQingViewController.h @@ -0,0 +1,18 @@ +// +// KeTangXieZuoXiangQingViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface KeTangXieZuoXiangQingViewController : BaseViewController +/// +@property (nonatomic , strong) NSString *strtitle; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/KeTangXieZuoXiangQingViewController.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/KeTangXieZuoXiangQingViewController.m new file mode 100644 index 0000000..6af5e67 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/KeTangXieZuoXiangQingViewController.m @@ -0,0 +1,57 @@ +// +// KeTangXieZuoXiangQingViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "KeTangXieZuoXiangQingViewController.h" +#import "KeTangXieZuoXiangQingView.h" + + +@interface KeTangXieZuoXiangQingViewController () + +@end + +@implementation KeTangXieZuoXiangQingViewController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleLightContent; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setBackImg:@"back_write"]; + [self.navigationView setTitle:@"" titleColor:[UIColor whiteColor]]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(253, 172, 63)]; + + KeTangXieZuoXiangQingView *view = [[KeTangXieZuoXiangQingView alloc] init]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(0); + }]; + [self.view sendSubviewToBack:view]; + [view setBackvalue:^(float maxtop, float nowscroll) { + if(nowscroll>maxtop*0.8) + { + [self.navigationView setTitle:self.strtitle titleColor:[UIColor whiteColor]]; + [self.navigationView setBackgroundColor:RGBCOLOR(253, 172, 63)]; + } + else + { + [self.navigationView setTitle:@"" titleColor:[UIColor whiteColor]]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; + } + }]; + + + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.h b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.h new file mode 100644 index 0000000..8ceb840 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.h @@ -0,0 +1,17 @@ +// +// KeTangXieZuoXiangQingView.h +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^KeTangXieZuoXiangQingViewScroll)(float maxtop,float nowscroll); +@interface KeTangXieZuoXiangQingView : UIView +/// +@property (nonatomic , strong) KeTangXieZuoXiangQingViewScroll backvalue; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m new file mode 100644 index 0000000..e89db6a --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m @@ -0,0 +1,396 @@ +// +// KeTangXieZuoXiangQingView.m +// ProductApp +// +// Created by 工作 on 2024/9/30. +// + +#import "KeTangXieZuoXiangQingView.h" + + +@interface KeTangXieZuoXiangQingView () +/// +@property (nonatomic , strong) UIScrollView *scvback0; + + +@property (nonatomic , strong) UIScrollView *scvback; +@property (nonatomic , strong) UIView *viewback; + +/// +@property (nonatomic , strong) UIView *viewbackwz; + + +@end + +@implementation KeTangXieZuoXiangQingView +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback0 = [[UIScrollView alloc] init]; + [self addSubview:scvback0]; + [scvback0 mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.height.equalTo(self); + }]; + _scvback0 = scvback0; + [self drawScrollBack]; + scvback0.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; + + UIScrollView *scvback = [[UIScrollView alloc] init]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(0); + make.top.offset(KMagrinTop); + make.width.offset(UISCREEN_WIDTH); + make.height.offset(UISCREEN_HEIGHT-KMagrinTop-TabHeight-20); + }]; + [scvback setDelegate:self]; + _scvback = scvback; + + UILabel *lbtitle = [[UILabel alloc] init]; + [lbtitle setText:@"标题"]; + [lbtitle setTextColor:[UIColor whiteColor]]; + [lbtitle setTextAlignment:NSTextAlignmentLeft]; + [lbtitle setFont:[UIFont systemFontOfSize:18]]; + [scvback addSubview:lbtitle]; + [lbtitle mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(self); + make.top.offset(0); + make.height.offset(44); + }]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setTextColor:[UIColor whiteColor]]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont fontWithName:@"AlimamaShuHeiTi-Bold" size:40]]; + [scvback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(scvback); + make.top.offset(44); + }]; + lbname.text = @"这儿真美"; + + UILabel *lbinfo = [[UILabel alloc] init]; + [lbinfo setTextColor:[UIColor whiteColor]]; + [lbinfo setTextAlignment:NSTextAlignmentCenter]; + [lbinfo setFont:[UIFont systemFontOfSize:14]]; + [scvback addSubview:lbinfo]; + [lbinfo mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(lbname); + make.top.equalTo(lbname.mas_bottom).offset(8); + make.height.offset(30); + make.width.offset(200); + }]; + [lbinfo setBackgroundColor:RGBCOLOR(253, 154, 20)]; + [lbinfo.layer setMasksToBounds:YES]; + [lbinfo.layer setCornerRadius:15]; + lbinfo.text = @"写景为主的记叙文、六单元、300字"; + + + UIImage *image = [UIImage imageNamed:@"yd_kt_bc"]; + float fheight = UISCREEN_WIDTH*image.size.height/image.size.width-40; + image = nil; + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [scvback addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.width.offset(UISCREEN_WIDTH-32); + make.top.offset(fheight); + }]; + _viewback = viewback; + + [self drawInfoView]; + + + UIView *viewbackwz = [[UIView alloc] init]; + [viewbackwz setBackgroundColor:[UIColor whiteColor]]; + [scvback addSubview:viewbackwz]; + [viewbackwz mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewback); + make.top.equalTo(viewback.mas_bottom).offset(30); + }]; + _viewbackwz = viewbackwz; + + [self drawWenZhangView]; + + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewbackwz).offset(50); + }]; + + UIButton *btpigai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [Tools changedView:btpigai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + [btpigai setTitle:@"看看我能得多少分" forState:UIControlStateNormal]; + [btpigai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btpigai.titleLabel setFont:[UIFont boldSystemFontOfSize:16]]; + [btpigai setImage:[UIImage imageNamed:@"kexz_kankan"] forState:UIControlStateNormal]; + [btpigai.layer setMasksToBounds:YES]; + [btpigai.layer setCornerRadius:5]; + [self addSubview:btpigai]; + [btpigai mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.right.equalTo(self).offset(-16); + make.bottom.equalTo(self).offset(-20); + make.height.offset(44); + }]; + [btpigai setIconInLeftWithSpacing:2]; + [btpigai addTarget:self action:@selector(pigaiAction) forControlEvents:UIControlEventTouchUpInside]; + [btpigai bringSubviewToFront:btpigai.imageView]; + } + return self; +} + +-(void)drawScrollBack +{ + UIImage *image = [UIImage imageNamed:@"yd_kt_bc"]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:image]; + [self.scvback0 addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.width.top.equalTo(self.scvback0); + make.height.offset(UISCREEN_WIDTH*image.size.height/image.size.width); + }]; +} +-(void)drawTitleView:(UIView *)view title:(NSString *)title +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(14); + make.centerY.equalTo(view); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:title]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:18]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(view); + make.left.equalTo(viewline.mas_right).offset(6); + }]; +} + +-(void)drawInfoView +{ + UIImageView *imgvtop = [[UIImageView alloc] init]; + [imgvtop setImage:[UIImage imageNamed:@"yd_kt_lineL"]]; + [self.viewback addSubview:imgvtop]; + [imgvtop mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(13); + make.top.offset(0); + make.right.equalTo(self.viewback); + make.height.offset(16); + }]; + + UIView *viewt0 = [[UIView alloc] init]; + [self.viewback addSubview:viewt0]; + [viewt0 mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(self.viewback); + make.top.equalTo(imgvtop.mas_bottom).offset(18); + make.height.offset(24); + }]; + [self drawTitleView:viewt0 title:@"课堂要求"]; + + UIButton *btmore = [[UIButton alloc] init]; + [btmore setTitle:@"更多范围" forState:UIControlStateNormal]; + [btmore setTitleColor:RGBCOLOR(153, 153, 153) forState:UIControlStateNormal]; + [btmore.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [viewt0 addSubview:btmore]; + [btmore mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(viewt0); + make.right.equalTo(viewt0).offset(-12); + make.width.offset(80); + }]; + [btmore setImage:[UIImage imageNamed:@"next"] forState:UIControlStateNormal]; + [btmore setIconInRightWithSpacing:4]; + [btmore addTarget:self action:@selector(moreAction) forControlEvents:UIControlEventTouchUpInside]; + + + PGJUILabel *lbyq = [[PGJUILabel alloc] init]; + [lbyq setTextColor:RGBCOLOR(102, 102, 102)]; + [lbyq setTextAlignment:NSTextAlignmentLeft]; + [lbyq setFont:[UIFont systemFontOfSize:15]]; + [lbyq setNumberOfLines:0]; + [self.viewback addSubview:lbyq]; + [lbyq mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(14); + make.right.equalTo(self.viewback).offset(-14); + make.top.equalTo(viewt0.mas_bottom).offset(16); + }]; + lbyq.text = @"花园、果园,田野、小河……我们周围有许多美丽的地方,你发现了吗? 让我们把身边的美景介绍给别人吧!写之前仔细观察,看看这个地方有些什么,是什么样子的写的时候,试着运用从课文中学到的方法,围绕一个意思写。如:操场后面的小花园真美……"; + + UIButton *btcreate = [[UIButton alloc] init]; + [btcreate setTitle:@"生成思路" forState:UIControlStateNormal]; + [btcreate setTitleColor:RGBCOLOR(108, 119, 246) forState:UIControlStateNormal]; + [btcreate.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btcreate.layer setMasksToBounds:YES]; + [btcreate.layer setCornerRadius:5]; + [btcreate.layer setBorderWidth:1]; + [btcreate.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor]; + [self.viewback addSubview:btcreate]; + [btcreate mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbyq.mas_bottom).offset(30); + make.size.sizeOffset(CGSizeMake(112, 46)); + make.right.equalTo(self.viewback.mas_centerX).offset(-6); + }]; + [btcreate addTarget:self action:@selector(ccreateAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 112, 46)]; + [btai setTitle:@"AI生成例文" forState:UIControlStateNormal]; + [btai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btai.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btai.layer setMasksToBounds:YES]; + [btai.layer setCornerRadius:5]; + [self.viewback addSubview:btai]; + [btai mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbyq.mas_bottom).offset(30); + make.size.sizeOffset(CGSizeMake(112, 46)); + make.left.equalTo(btcreate.mas_right).offset(12); + }]; + [Tools changedView:btai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + [btai addTarget:self action:@selector(aiAction) forControlEvents:UIControlEventTouchUpInside]; + + + UIImageView *imgvbottom = [[UIImageView alloc] init]; + [imgvbottom setImage:[UIImage imageNamed:@"yd_kt_lineR"]]; + [self.viewback addSubview:imgvbottom]; + [imgvbottom mas_makeConstraints:^(MASConstraintMaker *make) { + make.right.equalTo(self.viewback).offset(-13); + make.top.equalTo(btcreate.mas_bottom).offset(8); + make.left.offset(0); + make.height.offset(16); + }]; + [self.viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(imgvbottom); + }]; + [self refBackView]; + +} +-(void)refBackView +{ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: self.viewback.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(14,14)]; + //创建 layer + CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; + maskLayer.frame = self.viewback.bounds; + //赋值 + maskLayer.path = maskPath.CGPath; + self.viewback.layer.mask = maskLayer; + }); +} + +-(void)drawWenZhangView +{ + UIImageView *imgvtop = [[UIImageView alloc] init]; + [imgvtop setImage:[UIImage imageNamed:@"yd_kt_lineL"]]; + [self.viewbackwz addSubview:imgvtop]; + [imgvtop mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(13); + make.top.offset(0); + make.right.equalTo(self.viewbackwz); + make.height.offset(16); + }]; + + UIView *viewt0 = [[UIView alloc] init]; + [self.viewbackwz addSubview:viewt0]; + [viewt0 mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(self.viewbackwz); + make.top.equalTo(imgvtop.mas_bottom).offset(18); + make.height.offset(24); + }]; + [self drawTitleView:viewt0 title:@"写作批改"]; + + UILabel *lbfen = [[UILabel alloc] init]; + [lbfen setText:@"100满分制"]; + [lbfen setTextColor:RGBCOLOR(153, 153, 153)]; + [lbfen setTextAlignment:NSTextAlignmentLeft]; + [lbfen setFont:[UIFont systemFontOfSize:14]]; + [viewt0 addSubview:lbfen]; + [lbfen mas_makeConstraints:^(MASConstraintMaker *make) { + make.right.equalTo(viewt0).offset(-15); + make.centerY.equalTo(viewt0); + }]; + + + PGJUILabel *lbyq = [[PGJUILabel alloc] init]; + [lbyq setTextColor:RGBCOLOR(102, 102, 102)]; + [lbyq setTextAlignment:NSTextAlignmentLeft]; + [lbyq setFont:[UIFont systemFontOfSize:15]]; + [lbyq setNumberOfLines:0]; + [self.viewbackwz addSubview:lbyq]; + [lbyq mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(14); + make.right.equalTo(self.viewbackwz).offset(-14); + make.top.equalTo(viewt0.mas_bottom).offset(16); + }]; + lbyq.text = @"朝霞初照,田野宛如一幅浓墨重彩的油画,金黄的麦穗在阳光下熠熠生辉,仿佛镶嵌在大地上的颗颗明珠。微风拂过,麦浪起伏,如同大海中涌动的波涛,展现出生命的蓬勃与坚韧。勤劳的农人,手持镰刀,弯腰劳作,他们脸庞上的汗珠与麦穗上的露珠交相辉映,诠释着耕耘与收获的真谛。 蜿蜒曲折的小河,如同一首流淌的田园诗篇。河水碧波荡漾,清澈得能映射出天空的蔚蓝与云朵的洁白。河底的鹅卵石与水草交织成神秘的水下世界,小鱼儿悠然游弋,时而跃出水面,划破宁静,留下一圈圈涟漪。垂柳依依,宛如绿色的瀑布倾泻入河,与水中的倒影相互映衬,构成一幅静谧而和谐的生态画卷。 果园里,果实累累,色彩斑斓。苹果如红宝石般镶嵌在翠绿的枝叶间,梨子似金钟挂满树梢,葡萄如紫色的珍珠串串垂挂,每一颗都闪烁着诱人的光泽。阳光穿透树叶的缝隙,斑驳的光影在果实上跳跃,仿佛是大自然精心绘制的艺术佳作。空气中弥漫着浓郁的果香,那是甜蜜生活的气息,让人忍不住想要靠近,品尝这份来自大地的丰厚馈赠。 在这幅田园诗画中,我被深深打动。田野的壮美、小河的婉约、果园的丰饶,无不展现出大自然的鬼斧神工与生命的旺盛活力。我领悟到,生活之美不在远方,而在我们脚下的每一寸土地,每一滴水中,每一片叶子,每一个果实。让我们怀揣感恩之心,珍爱并呵护这份自然赐予的宝贵财富,让心灵在与大自然的亲近中得到净化与升华。"; + + /// + + UIImageView *imgvbottom = [[UIImageView alloc] init]; + [imgvbottom setImage:[UIImage imageNamed:@"yd_kt_lineR"]]; + [self.viewbackwz addSubview:imgvbottom]; + [imgvbottom mas_makeConstraints:^(MASConstraintMaker *make) { + make.right.equalTo(self.viewbackwz).offset(-13); + make.top.equalTo(lbyq.mas_bottom).offset(12); + make.left.offset(0); + make.height.offset(16); + }]; + + [self.viewbackwz mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(imgvbottom); + }]; + [self refwenzhangView]; +} +-(void)refwenzhangView +{ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: self.viewbackwz.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(14,14)]; + //创建 layer + CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; + maskLayer.frame = self.viewbackwz.bounds; + //赋值 + maskLayer.path = maskPath.CGPath; + self.viewbackwz.layer.mask = maskLayer; + }); +} + +#pragma mark - UIScrollView +- (void)scrollViewDidScroll:(UIScrollView *)scrollView +{ + float f_y = scrollView.contentOffset.y; + if(f_y>=0) + { + [self.scvback0 setContentOffset:CGPointMake(0, f_y*0.4)]; + self.backvalue(self.viewback.top, f_y); + } +} +///AI生成例文 +-(void)aiAction +{ + +} +///生成思路 +-(void)ccreateAction +{ + +} +///更多范围 +-(void)moreAction +{ + +} +///看看我能得多少分 +-(void)pigaiAction +{ + +} + +@end