diff --git a/ProductApp/ProductApp.xcodeproj/project.pbxproj b/ProductApp/ProductApp.xcodeproj/project.pbxproj index ce4d635..2980d3e 100644 --- a/ProductApp/ProductApp.xcodeproj/project.pbxproj +++ b/ProductApp/ProductApp.xcodeproj/project.pbxproj @@ -8,6 +8,16 @@ /* Begin PBXBuildFile section */ 664551746CA42328436EB43A /* Pods_ProductApp.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7E9D1598912BF8D031CA536 /* Pods_ProductApp.framework */; }; + CA0C3A832CB4C27E00E01A72 /* HuanGeSiLuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A822CB4C27E00E01A72 /* HuanGeSiLuViewController.m */; }; + CA0C3A872CB4C34800E01A72 /* HuanGeSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A862CB4C34800E01A72 /* HuanGeSiLuView.m */; }; + CA0C3A8B2CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A8A2CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.m */; }; + CA0C3A8E2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A8D2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.m */; }; + CA0C3A922CB4D03B00E01A72 /* ChongXieYiPianViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A912CB4D03B00E01A72 /* ChongXieYiPianViewController.m */; }; + CA0C3A962CB4D06600E01A72 /* ChongXieYiPianView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A952CB4D06600E01A72 /* ChongXieYiPianView.m */; }; + CA0C3A992CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A982CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.m */; }; + CA0C3A9E2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3A9D2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.m */; }; + CA0C3AA22CB4DBB900E01A72 /* DuanLuoXieZuoView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3AA12CB4DBB900E01A72 /* DuanLuoXieZuoView.m */; }; + CA0C3AA52CB4DED200E01A72 /* DuanLuoXieZuoCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0C3AA42CB4DED200E01A72 /* DuanLuoXieZuoCellView.m */; }; CA0D082D2CA4F8930086855E /* ShouYeZNXZTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0D082C2CA4F8930086855E /* ShouYeZNXZTableViewCell.m */; }; CA0D08302CA4FBDB0086855E /* ShouYeXieZuoTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0D082F2CA4FBDB0086855E /* ShouYeXieZuoTableViewCell.m */; }; CA0D08332CA4FFB90086855E /* ShouYeBannerTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CA0D08322CA4FFB90086855E /* ShouYeBannerTableViewCell.m */; }; @@ -330,6 +340,26 @@ /* Begin PBXFileReference section */ 87167CC240BDAA55C86F80DE /* Pods-ProductApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ProductApp.debug.xcconfig"; path = "Target Support Files/Pods-ProductApp/Pods-ProductApp.debug.xcconfig"; sourceTree = ""; }; B3DBEC0C6ED0E182F65EDBEA /* Pods-ProductApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ProductApp.release.xcconfig"; path = "Target Support Files/Pods-ProductApp/Pods-ProductApp.release.xcconfig"; sourceTree = ""; }; + CA0C3A812CB4C27E00E01A72 /* HuanGeSiLuViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HuanGeSiLuViewController.h; sourceTree = ""; }; + CA0C3A822CB4C27E00E01A72 /* HuanGeSiLuViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HuanGeSiLuViewController.m; sourceTree = ""; }; + CA0C3A852CB4C34800E01A72 /* HuanGeSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HuanGeSiLuView.h; sourceTree = ""; }; + CA0C3A862CB4C34800E01A72 /* HuanGeSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HuanGeSiLuView.m; sourceTree = ""; }; + CA0C3A892CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HuanGeSiLuCollectionViewCell.h; sourceTree = ""; }; + CA0C3A8A2CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HuanGeSiLuCollectionViewCell.m; sourceTree = ""; }; + CA0C3A8C2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HuanGeSiLuHDCollectionReusableView.h; sourceTree = ""; }; + CA0C3A8D2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = HuanGeSiLuHDCollectionReusableView.m; sourceTree = ""; }; + CA0C3A902CB4D03B00E01A72 /* ChongXieYiPianViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ChongXieYiPianViewController.h; sourceTree = ""; }; + CA0C3A912CB4D03B00E01A72 /* ChongXieYiPianViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChongXieYiPianViewController.m; sourceTree = ""; }; + CA0C3A942CB4D06600E01A72 /* ChongXieYiPianView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ChongXieYiPianView.h; sourceTree = ""; }; + CA0C3A952CB4D06600E01A72 /* ChongXieYiPianView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ChongXieYiPianView.m; sourceTree = ""; }; + CA0C3A972CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ZhiNengXieZuoDuanLuoView.h; sourceTree = ""; }; + CA0C3A982CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ZhiNengXieZuoDuanLuoView.m; sourceTree = ""; }; + CA0C3A9C2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DuanLuoXieZuoViewController.h; sourceTree = ""; }; + CA0C3A9D2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DuanLuoXieZuoViewController.m; sourceTree = ""; }; + CA0C3AA02CB4DBB900E01A72 /* DuanLuoXieZuoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DuanLuoXieZuoView.h; sourceTree = ""; }; + CA0C3AA12CB4DBB900E01A72 /* DuanLuoXieZuoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DuanLuoXieZuoView.m; sourceTree = ""; }; + CA0C3AA32CB4DED200E01A72 /* DuanLuoXieZuoCellView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DuanLuoXieZuoCellView.h; sourceTree = ""; }; + CA0C3AA42CB4DED200E01A72 /* DuanLuoXieZuoCellView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DuanLuoXieZuoCellView.m; sourceTree = ""; }; CA0D082B2CA4F8930086855E /* ShouYeZNXZTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShouYeZNXZTableViewCell.h; sourceTree = ""; }; CA0D082C2CA4F8930086855E /* ShouYeZNXZTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShouYeZNXZTableViewCell.m; sourceTree = ""; }; CA0D082E2CA4FBDB0086855E /* ShouYeXieZuoTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShouYeXieZuoTableViewCell.h; sourceTree = ""; }; @@ -1010,6 +1040,88 @@ path = Pods; sourceTree = ""; }; + CA0C3A802CB4C25B00E01A72 /* 换个思路 */ = { + isa = PBXGroup; + children = ( + CA0C3A882CB4C7F500E01A72 /* cell */, + CA0C3A842CB4C33900E01A72 /* view */, + CA0C3A812CB4C27E00E01A72 /* HuanGeSiLuViewController.h */, + CA0C3A822CB4C27E00E01A72 /* HuanGeSiLuViewController.m */, + ); + path = "换个思路"; + sourceTree = ""; + }; + CA0C3A842CB4C33900E01A72 /* view */ = { + isa = PBXGroup; + children = ( + CA0C3A852CB4C34800E01A72 /* HuanGeSiLuView.h */, + CA0C3A862CB4C34800E01A72 /* HuanGeSiLuView.m */, + ); + path = view; + sourceTree = ""; + }; + CA0C3A882CB4C7F500E01A72 /* cell */ = { + isa = PBXGroup; + children = ( + CA0C3A892CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.h */, + CA0C3A8A2CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.m */, + CA0C3A8C2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.h */, + CA0C3A8D2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.m */, + ); + path = cell; + sourceTree = ""; + }; + CA0C3A8F2CB4CD9B00E01A72 /* 重写一篇 */ = { + isa = PBXGroup; + children = ( + CA0C3A932CB4D05800E01A72 /* view */, + CA0C3A902CB4D03B00E01A72 /* ChongXieYiPianViewController.h */, + CA0C3A912CB4D03B00E01A72 /* ChongXieYiPianViewController.m */, + ); + path = "重写一篇"; + sourceTree = ""; + }; + CA0C3A932CB4D05800E01A72 /* view */ = { + isa = PBXGroup; + children = ( + CA0C3A942CB4D06600E01A72 /* ChongXieYiPianView.h */, + CA0C3A952CB4D06600E01A72 /* ChongXieYiPianView.m */, + ); + path = view; + sourceTree = ""; + }; + CA0C3A9A2CB4DA8800E01A72 /* 全文写作 */ = { + isa = PBXGroup; + children = ( + CA0C3A8F2CB4CD9B00E01A72 /* 重写一篇 */, + CA0C3A802CB4C25B00E01A72 /* 换个思路 */, + CAB0F35D2CAA849E003B0C39 /* 写作详情 */, + CAB0F3552CAA7626003B0C39 /* 创作思路 */, + ); + path = "全文写作"; + sourceTree = ""; + }; + CA0C3A9B2CB4DA9A00E01A72 /* 段落 */ = { + isa = PBXGroup; + children = ( + CA0C3A9F2CB4DBAC00E01A72 /* view */, + CA0C3A9C2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.h */, + CA0C3A9D2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.m */, + ); + path = "段落"; + sourceTree = ""; + }; + CA0C3A9F2CB4DBAC00E01A72 /* view */ = { + isa = PBXGroup; + children = ( + CA0C3AA02CB4DBB900E01A72 /* DuanLuoXieZuoView.h */, + CA0C3AA12CB4DBB900E01A72 /* DuanLuoXieZuoView.m */, + CA0C3AA32CB4DED200E01A72 /* DuanLuoXieZuoCellView.h */, + CA0C3AA42CB4DED200E01A72 /* DuanLuoXieZuoCellView.m */, + ); + path = view; + sourceTree = ""; + }; CA0D082A2CA4F8720086855E /* cell */ = { isa = PBXGroup; children = ( @@ -1594,8 +1706,8 @@ CAB0D3722CAA47CF009BF67D /* 智能写作 */ = { isa = PBXGroup; children = ( - CAB0F35D2CAA849E003B0C39 /* 写作详情 */, - CAB0F3552CAA7626003B0C39 /* 创作思路 */, + CA0C3A9B2CB4DA9A00E01A72 /* 段落 */, + CA0C3A9A2CB4DA8800E01A72 /* 全文写作 */, CAB0D3802CAA54E1009BF67D /* alter */, CAB0D3762CAA487E009BF67D /* view */, CAB0D3732CAA47F3009BF67D /* ZhiNengXieZuoViewController.h */, @@ -1613,6 +1725,8 @@ CAB0D37B2CAA4A2F009BF67D /* ZhiNengXieZuoTopView.m */, CAB0D37D2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.h */, CAB0D37E2CAA533D009BF67D /* ZhiNengXieZuoQuanWenView.m */, + CA0C3A972CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.h */, + CA0C3A982CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.m */, ); path = view; sourceTree = ""; @@ -3002,6 +3116,7 @@ CB489F8F2744A0BD00DA044A /* UITextField+SY.m in Sources */, CBD422BA28DAF2E800C32440 /* JhtBannerCardView.m in Sources */, CB489FCB2744A0BD00DA044A /* HXHud.m in Sources */, + CA0C3A9E2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.m in Sources */, CAC806562CA1382500C21AA7 /* StartZNXZView.m in Sources */, CA4257BD2CA2C65600A36A10 /* StartPayTQViewCell.m in Sources */, CB489DD027449D5C00DA044A /* ViewController.m in Sources */, @@ -3032,10 +3147,14 @@ CA11ED742CA69AC600209DFC /* GaiXieRunSeViewController.m in Sources */, CAB0F3602CAA84B3003B0C39 /* XieZuoXiangQingViewController.m in Sources */, CA4257A02CA299F900A36A10 /* StartZNPPTDaGangView.m in Sources */, + CA0C3A8B2CB4C80300E01A72 /* HuanGeSiLuCollectionViewCell.m in Sources */, CA81818B2C9E598300EE7E6E /* StartKTXZWenZhangView.m in Sources */, CB489FA72744A0BD00DA044A /* ZJScrollPageView.m in Sources */, CA4257A62CA29FE700A36A10 /* StartZNPPTDaGangAlterLoadView.m in Sources */, + CA0C3A992CB4D4F500E01A72 /* ZhiNengXieZuoDuanLuoView.m in Sources */, CB489F942744A0BD00DA044A /* AreaprovinceListModel.m in Sources */, + CA0C3A832CB4C27E00E01A72 /* HuanGeSiLuViewController.m in Sources */, + CA0C3A962CB4D06600E01A72 /* ChongXieYiPianView.m in Sources */, CABA14B02C9D4318002CB3B1 /* UserAccountModel.m in Sources */, CA4257982CA2914100A36A10 /* StartZNPPTHUDAlter.m in Sources */, CB489F7C2744A0BD00DA044A /* RSAEncrypt.m in Sources */, @@ -3056,6 +3175,7 @@ CAC806732CA171ED00C21AA7 /* StartPZXZPageView.m in Sources */, CABA14B72C9D4318002CB3B1 /* UserUploadModel.m in Sources */, CB489FB22744A0BD00DA044A /* FSActionSheetItem.m in Sources */, + CA0C3AA52CB4DED200E01A72 /* DuanLuoXieZuoCellView.m in Sources */, CA4257AE2CA2AF3600A36A10 /* StartZNPPTYuLanTableViewCell.m in Sources */, CA0D08362CA501710086855E /* ShouYeToolsTableViewCell.m in Sources */, CB489F4B2744A0BD00DA044A /* PGGDatePickView.m in Sources */, @@ -3067,6 +3187,7 @@ CB489FCC2744A0BD00DA044A /* ConfigireSetting.m in Sources */, CA4257952CA2671400A36A10 /* StartZNPPTCell.m in Sources */, CABA14CC2C9D4395002CB3B1 /* NSData+PEHIExtension.m in Sources */, + CA0C3AA22CB4DBB900E01A72 /* DuanLuoXieZuoView.m in Sources */, CA0D08542CA543370086855E /* ShouYeLSZWPGTableViewCell.m in Sources */, CABA14AC2C9D4318002CB3B1 /* OrderGoodsModel.m in Sources */, CABA14EB2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m in Sources */, @@ -3158,6 +3279,7 @@ CA0D08332CA4FFB90086855E /* ShouYeBannerTableViewCell.m in Sources */, CABA14AF2C9D4318002CB3B1 /* PayOrderModel.m in Sources */, CAA600CD2CA92FB700026CF4 /* FXErView.m in Sources */, + CA0C3A872CB4C34800E01A72 /* HuanGeSiLuView.m in Sources */, CB489F812744A0BD00DA044A /* GTMBase64.m in Sources */, CAC806642CA151ED00C21AA7 /* StartZNXZSiLuViewController.m in Sources */, CB489F962744A0BD00DA044A /* SmsloginCodeModel.m in Sources */, @@ -3199,6 +3321,7 @@ CA487D982CA40A8300AE773B /* StartPayDaoJiShiView.m in Sources */, CB489F642744A0BD00DA044A /* DAYNavigationBar.m in Sources */, CBD422B928DAF2E800C32440 /* JhtBannerScrollView.m in Sources */, + CA0C3A8E2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.m in Sources */, CA0FD6AC2CA924A1009A4417 /* FXXieZuoJianYiView.m in Sources */, CABA14B82C9D4318002CB3B1 /* WeixinServiceModel.m in Sources */, CB489FB82744A0BD00DA044A /* HXLoadingHUD.m in Sources */, @@ -3238,6 +3361,7 @@ CABA147B2C9D17C3002CB3B1 /* StartNJViewController.m in Sources */, CB489F732744A0BD00DA044A /* BaseViewController.m in Sources */, CB489FA42744A0BD00DA044A /* ZJCollectionView.m in Sources */, + CA0C3A922CB4D03B00E01A72 /* ChongXieYiPianViewController.m in Sources */, CB489F702744A0BD00DA044A /* TabBarController.m in Sources */, CA11ED702CA6946500209DFC /* KaiTongAlterTQView.m in Sources */, CAB0D3712CAA3DAE009BF67D /* KeTangXieZuoXiangQingView.m in Sources */, diff --git a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate index b472c02..68cb786 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/首页/duanluo_next.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/Contents.json new file mode 100644 index 0000000..3dbba3e --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "remix-icons/line/system/arrow-left-s-line 1@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "remix-icons/line/system/arrow-left-s-line 1@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/remix-icons/line/system/arrow-left-s-line 1@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/remix-icons/line/system/arrow-left-s-line 1@2x.png new file mode 100644 index 0000000..8fa94d4 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/remix-icons/line/system/arrow-left-s-line 1@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/remix-icons/line/system/arrow-left-s-line 1@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/remix-icons/line/system/arrow-left-s-line 1@3x.png new file mode 100644 index 0000000..74fabdb Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/duanluo_next.imageset/remix-icons/line/system/arrow-left-s-line 1@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/Contents.json new file mode 100644 index 0000000..40d96d2 --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.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_viewright.imageset/矩形 17911@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/矩形 17911@2x.png new file mode 100644 index 0000000..7efae4e Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/矩形 17911@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/矩形 17911@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/矩形 17911@3x.png new file mode 100644 index 0000000..a51b29a Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/znxz_viewright.imageset/矩形 17911@3x.png differ diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h index 5ab078b..bd841d0 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.h @@ -12,6 +12,9 @@ typedef void(^TiCaiAlterViewBack)(NSString *name); @interface TiCaiAlterView : UIView /// @property (nonatomic , strong) TiCaiAlterViewBack backValue; +/// +@property (nonatomic , strong) NSString *strtitle; + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m index 12e79ba..9c01f12 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/alter/TiCaiAlterView.m @@ -11,6 +11,8 @@ @interface TiCaiAlterView () /// +@property (nonatomic , strong) UILabel *lbname; +/// @property (nonatomic , strong) UITableView *tableView; /// @property (nonatomic , strong) NSMutableArray *arrdata; @@ -48,6 +50,7 @@ make.top.offset(20); make.centerX.equalTo(viewback); }]; + _lbname = lbname; UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped]; [tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; @@ -66,6 +69,10 @@ } return self; } +-(void)setStrtitle:(NSString *)strtitle +{ + self.lbname.text = strtitle; +} -(void)getdata { diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.h new file mode 100644 index 0000000..3039b41 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.h @@ -0,0 +1,16 @@ +// +// ZhiNengXieZuoDuanLuoView.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ZhiNengXieZuoDuanLuoView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m new file mode 100644 index 0000000..b369355 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m @@ -0,0 +1,238 @@ +// +// ZhiNengXieZuoDuanLuoView.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "ZhiNengXieZuoDuanLuoView.h" +#import "TiCaiAlterView.h" +#import "DuanLuoXieZuoViewController.h" + + +@interface ZhiNengXieZuoDuanLuoView () +/// +@property (nonatomic , strong) UIButton *btselect; + +/// +@property (nonatomic , strong) NSMutableArray *arrfield; + + +@end + +@implementation ZhiNengXieZuoDuanLuoView + +-(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; + if(i==0) + { + [self drawDLView:viewitem title:arrt[i]]; + } + else + { + UITextField *field = [self drawItemView:viewitem title:arrt[i] platch:arrplatch[i] tag:i-2]; + if (i==3) + { + field.text = @"智能推荐"; + } + [self.arrfield addObject:field]; + } + } + + float f_w = UISCREEN_WIDTH-80; + 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.offset(20); + }]; + [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; +} + +-(void)drawDLView:(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(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); + }]; + + NSArray *arrbt = @[@"开头",@"段落",@"结尾"]; + float f_with = (UISCREEN_WIDTH-104)/3.0; + for(int i = 0 ; i < arrbt.count; i++) + { + UIButton *btitem = [[UIButton alloc] init]; + [btitem setTitle:arrbt[i] forState:UIControlStateNormal]; + [btitem setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateNormal]; + [btitem setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected]; + [btitem.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [btitem.layer setMasksToBounds:YES]; + [btitem.layer setCornerRadius:12]; + [btitem setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [view addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.size.sizeOffset(CGSizeMake(f_with, 40)); + make.left.offset(20+(f_with+12)*i); + make.top.equalTo(viewline.mas_bottom).offset(12); + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(dlItemAction:) forControlEvents:UIControlEventTouchUpInside]; + if(i==0) + { + self.btselect = btitem; + [self.btselect setSelected:YES]; + [self.btselect setBackgroundColor:RGBCOLOR(108, 119, 246)]; + } + } + + +} + +-(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]; + + TiCaiAlterView *view = [[TiCaiAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + [self.viewController.view addSubview:view]; + view.strtitle = @"写作手法"; + [view setBackValue:^(NSString * _Nonnull name) { + UITextField *field = self.arrfield[2]; + field.text = name; + }]; + +} +///写作段落 +-(void)dlItemAction:(UIButton *)sender +{ + if(sender.tag==self.btselect.tag)return;; + [self.btselect setSelected:NO]; + [self.btselect setBackgroundColor:RGBCOLOR(240, 241, 254)]; + self.btselect = sender; + [self.btselect setSelected:YES]; + [self.btselect setBackgroundColor:RGBCOLOR(108, 119, 246)]; +} +///提交 +-(void)sendAction +{ + DuanLuoXieZuoViewController *vc = [DuanLuoXieZuoViewController new]; + vc.strtitle = @"开头"; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m index 1384385..0afe08e 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoView.m @@ -8,9 +8,17 @@ #import "ZhiNengXieZuoView.h" #import "ZhiNengXieZuoTopView.h" #import "ZhiNengXieZuoQuanWenView.h" +#import "ZhiNengXieZuoDuanLuoView.h" @interface ZhiNengXieZuoView () +/// +@property (nonatomic , strong) UIImageView *imgvback; +/// +@property (nonatomic , strong) ZhiNengXieZuoQuanWenView *viewqw; + +/// +@property (nonatomic , strong) ZhiNengXieZuoDuanLuoView *viewdl; @end @@ -22,7 +30,7 @@ if(self = [super initWithFrame:frame]) { UIImage *image = [UIImage imageNamed:@"znxz_viewleft"]; - + ///znxz_viewright 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]; @@ -32,7 +40,7 @@ }]; [imgvback setUserInteractionEnabled:YES]; [self drawInfoView:imgvback]; - + _imgvback = imgvback; } @@ -47,7 +55,7 @@ make.height.offset(52); }]; [viewtop setBackSelect:^(NSInteger tag) { - + [self topAction:tag]; }]; ZhiNengXieZuoQuanWenView *viewqw = [ZhiNengXieZuoQuanWenView new]; @@ -56,12 +64,37 @@ make.left.right.equalTo(view); make.top.equalTo(viewtop.mas_bottom); }]; + _viewqw = viewqw; [view mas_makeConstraints:^(MASConstraintMaker *make) { make.bottom.equalTo(viewqw); }]; - + ZhiNengXieZuoDuanLuoView *viewdl = [ZhiNengXieZuoDuanLuoView new]; + [view addSubview:viewdl]; + [viewdl mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(view); + make.top.equalTo(viewqw); + }]; + [viewdl setHidden:YES]; + _viewdl = viewdl; +} +-(void)topAction:(NSInteger)tag +{ + if(tag==1) + { + [self.viewdl setHidden:NO]; + [self.viewqw setHidden:YES]; + UIImage *image = [UIImage imageNamed:@"znxz_viewright"]; + [self.imgvback setImage:[image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height/2.0, image.size.width-20, image.size.height/2.0, 20)]]; + } + else + { + [self.viewdl setHidden:YES]; + [self.viewqw setHidden:NO]; + UIImage *image = [UIImage imageNamed:@"znxz_viewleft"]; + [self.imgvback setImage:[image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height/2.0, 20, image.size.height/2.0, image.size.width-20)]]; + } } diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/XieZuoXiangQingViewController.h similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.h rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/XieZuoXiangQingViewController.h diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/XieZuoXiangQingViewController.m similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/XieZuoXiangQingViewController.m rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/XieZuoXiangQingViewController.m diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.h similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.h rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.h diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.m similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingSiLuView.m rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.m diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.h similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.h rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.h diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m similarity index 97% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.m rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m index 820b54f..7e357c2 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/写作详情/view/XieZuoXiangQingView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m @@ -8,7 +8,7 @@ #import "XieZuoXiangQingView.h" #import "XieZuoXiangQingSiLuView.h" #import "FenXiangWenZhangAlterView.h" - +#import "ChongXieYiPianViewController.h" @interface XieZuoXiangQingView () @@ -226,7 +226,8 @@ switch (sender.tag) { case 0: { - + ChongXieYiPianViewController *vc = [ChongXieYiPianViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; } break; case 1: diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/ChuangZuoSiLuViewController.h similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.h rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/ChuangZuoSiLuViewController.h diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/ChuangZuoSiLuViewController.m similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/ChuangZuoSiLuViewController.m rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/ChuangZuoSiLuViewController.m diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.h similarity index 100% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.h rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.h diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m similarity index 97% rename from ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.m rename to ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m index 52a7a52..3464509 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/创作思路/view/ChuangZuoSiLuView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m @@ -7,6 +7,8 @@ #import "ChuangZuoSiLuView.h" #import "XieZuoXiangQingViewController.h" +#import "HuanGeSiLuViewController.h" + typedef void(^ChuangZuoSiLuViewDraw)(void); @interface ChuangZuoSiLuView () @@ -248,7 +250,8 @@ typedef void(^ChuangZuoSiLuViewDraw)(void); -(void)changeAction { - + HuanGeSiLuViewController *vc = [HuanGeSiLuViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; } -(void)sendAction diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/HuanGeSiLuViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/HuanGeSiLuViewController.h new file mode 100644 index 0000000..bb5e72e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/HuanGeSiLuViewController.h @@ -0,0 +1,16 @@ +// +// HuanGeSiLuViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface HuanGeSiLuViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/HuanGeSiLuViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/HuanGeSiLuViewController.m new file mode 100644 index 0000000..c6cf492 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/HuanGeSiLuViewController.m @@ -0,0 +1,56 @@ +// +// HuanGeSiLuViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "HuanGeSiLuViewController.h" +#import "HuanGeSiLuView.h" + + +@interface HuanGeSiLuViewController () +/// +@property (nonatomic , strong) HuanGeSiLuView *viewshow; + +@end + +@implementation HuanGeSiLuViewController + +- (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)navMuenButtonAction +{ + [self.viewshow sendAction]; +} +- (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]; + + HuanGeSiLuView *view = [HuanGeSiLuView new]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + _viewshow = view; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuCollectionViewCell.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuCollectionViewCell.h new file mode 100644 index 0000000..ff06650 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuCollectionViewCell.h @@ -0,0 +1,20 @@ +// +// HuanGeSiLuCollectionViewCell.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface HuanGeSiLuCollectionViewCell : UICollectionViewCell +/// +@property (nonatomic , strong) UIView *viewback; +/// +@property (nonatomic , strong) UILabel *lbname; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuCollectionViewCell.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuCollectionViewCell.m new file mode 100644 index 0000000..51bdc0d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuCollectionViewCell.m @@ -0,0 +1,51 @@ +// +// HuanGeSiLuCollectionViewCell.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "HuanGeSiLuCollectionViewCell.h" + +@implementation HuanGeSiLuCollectionViewCell +-(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); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:16]; + [viewback.layer setBorderWidth:1]; + [viewback.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor]; + _viewback = viewback; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"-"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [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)selectItem +{ + [self.viewback setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [self.lbname setTextColor:[UIColor whiteColor]]; + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuHDCollectionReusableView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuHDCollectionReusableView.h new file mode 100644 index 0000000..428cc4b --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuHDCollectionReusableView.h @@ -0,0 +1,18 @@ +// +// HuanGeSiLuHDCollectionReusableView.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface HuanGeSiLuHDCollectionReusableView : UICollectionReusableView +/// +@property (nonatomic , strong) UILabel *lbname; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuHDCollectionReusableView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuHDCollectionReusableView.m new file mode 100644 index 0000000..dcfed8e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/cell/HuanGeSiLuHDCollectionReusableView.m @@ -0,0 +1,29 @@ +// +// HuanGeSiLuHDCollectionReusableView.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "HuanGeSiLuHDCollectionReusableView.h" + +@implementation HuanGeSiLuHDCollectionReusableView +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"-"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:16]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.centerY.equalTo(self); + }]; + _lbname = lbname; + } + return self; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.h new file mode 100644 index 0000000..b4ddef2 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.h @@ -0,0 +1,16 @@ +// +// HuanGeSiLuView.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface HuanGeSiLuView : UIView +-(void)sendAction; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m new file mode 100644 index 0000000..6d15f9e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m @@ -0,0 +1,204 @@ +// +// HuanGeSiLuView.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "HuanGeSiLuView.h" +#import "HuanGeSiLuCollectionViewCell.h" +#import "HuanGeSiLuHDCollectionReusableView.h" +#import "FSTextView.h" + + +@interface HuanGeSiLuView () +/// +@property (nonatomic , strong) UICollectionView *collect; +/// +@property (nonatomic , strong) FSTextView *textView; + + +@end + +@implementation HuanGeSiLuView + +-(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.height.equalTo(self); + }]; + + + UIView *viewcell = [[UIView alloc] init]; + [viewcell setBackgroundColor:[UIColor whiteColor]]; + [scvback addSubview:viewcell]; + [viewcell mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(scvback).offset(-40); + }]; + [Tools normalShadow:viewcell shadowColor:RGBACOLOR(26, 71, 111, 0.08) shadowOpacity:1 cornerRadius:20 shadowRadius:12]; + [self drawInfoView:viewcell]; + + UIView *viewtext = [[UIView alloc] init]; + [viewtext setBackgroundColor:[UIColor whiteColor]]; + [scvback addSubview:viewtext]; + [viewtext mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewcell); + make.top.equalTo(viewcell.mas_bottom).offset(20); + }]; + [Tools normalShadow:viewtext shadowColor:RGBACOLOR(26, 71, 111, 0.08) shadowOpacity:1 cornerRadius:20 shadowRadius:12]; + [self drawTextView:viewtext]; + + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewtext).offset(30); + }]; + + } + return self; +} + +-(void)drawTextView:(UIView *)view +{ + UIView *viewle = [self drawItemView:view title:@"写作要求"]; + + FSTextView *textView = [[FSTextView alloc] init]; + [textView setTextColor:RGBCOLOR(51, 51, 51)]; + [textView setTextAlignment:NSTextAlignmentLeft]; + [textView setFont:[UIFont systemFontOfSize:14]]; + [textView setPlaceholder:@"请输入您的写作要求"]; + [view addSubview:textView]; + [textView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewle.mas_bottom).offset(10); + make.right.equalTo(view).offset(-20); + make.height.offset(150); + }]; + [textView.layer setMasksToBounds:YES]; + [textView.layer setCornerRadius:12]; + [textView setBackgroundColor:RGBCOLOR(250, 250, 250)]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(textView).offset(20); + }]; + +} + +-(void)drawInfoView:(UIView *)view +{ + UIView *viewle = [self drawItemView:view title:@"灵感题材"]; + + 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]]; + [view addSubview:collect]; + [collect mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(0); + make.right.equalTo(view); + make.top.equalTo(viewle.mas_bottom); + make.height.offset(47*2+42*4-10*2+4); + }]; + [collect registerClass:[HuanGeSiLuCollectionViewCell class] forCellWithReuseIdentifier:@"HuanGeSiLuCollectionViewCell"]; + [collect registerClass:[HuanGeSiLuHDCollectionReusableView class] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HuanGeSiLuHDCollectionReusableView"]; + _collect = collect; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(collect.mas_bottom).offset(20); + }]; + +} +-(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(23); + 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; +} +///提交 +-(void)sendAction +{ + +} +#pragma mark - UICollectionView +- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView +{ + return 2; +} +- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section +{ + return 5; +} +- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath +{ + HuanGeSiLuCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"HuanGeSiLuCollectionViewCell" forIndexPath:indexPath]; + + 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 12; +} +//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-104)/3.0, 32); +} +///collectionView的头高 +- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout referenceSizeForHeaderInSection:(NSInteger)section{ + + return CGSizeMake(UISCREEN_WIDTH-40, 47); +} +- (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath +{ + if([kind isEqualToString:UICollectionElementKindSectionHeader]) + { + HuanGeSiLuHDCollectionReusableView *header = [collectionView dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"HuanGeSiLuHDCollectionReusableView" forIndexPath:indexPath]; + header.lbname.text = @"亲人"; + + return header; + } + return nil; +} +-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath +{ + ///做选中操作 + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/ChongXieYiPianViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/ChongXieYiPianViewController.h new file mode 100644 index 0000000..55742b0 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/ChongXieYiPianViewController.h @@ -0,0 +1,16 @@ +// +// ChongXieYiPianViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface ChongXieYiPianViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/ChongXieYiPianViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/ChongXieYiPianViewController.m new file mode 100644 index 0000000..fe5cee1 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/ChongXieYiPianViewController.m @@ -0,0 +1,54 @@ +// +// ChongXieYiPianViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "ChongXieYiPianViewController.h" +#import "ChongXieYiPianView.h" + +@interface ChongXieYiPianViewController () +/// +@property (nonatomic , strong) ChongXieYiPianView *viewshow; +@end + +@implementation ChongXieYiPianViewController + +- (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)navMuenButtonAction +{ + [self.viewshow sendAction]; +} +- (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]; + + ChongXieYiPianView *view = [ChongXieYiPianView new]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + _viewshow = view; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/view/ChongXieYiPianView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/view/ChongXieYiPianView.h new file mode 100644 index 0000000..716eacf --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/view/ChongXieYiPianView.h @@ -0,0 +1,16 @@ +// +// ChongXieYiPianView.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface ChongXieYiPianView : UIView +-(void)sendAction; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/view/ChongXieYiPianView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/view/ChongXieYiPianView.m new file mode 100644 index 0000000..2aaf6ed --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/重写一篇/view/ChongXieYiPianView.m @@ -0,0 +1,116 @@ +// +// ChongXieYiPianView.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "ChongXieYiPianView.h" +#import "FSTextView.h" + +@interface ChongXieYiPianView () +/// +@property (nonatomic , strong) FSTextView *textView; +@end + +@implementation ChongXieYiPianView + +-(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.height.equalTo(self); + }]; + + + UIView *viewtext = [[UIView alloc] init]; + [viewtext setBackgroundColor:[UIColor whiteColor]]; + [scvback addSubview:viewtext]; + [viewtext mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(scvback).offset(-40); + }]; + [Tools normalShadow:viewtext shadowColor:RGBACOLOR(26, 71, 111, 0.08) shadowOpacity:1 cornerRadius:20 shadowRadius:12]; + [self drawTextView:viewtext]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"没有思路,AI随机写一篇吧"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:14]]; + [scvback addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewtext.mas_bottom).offset(20); + make.centerX.equalTo(viewtext); + }]; + + + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbts).offset(30); + }]; + + } + return self; +} + +-(void)drawTextView:(UIView *)view +{ + UIView *viewle = [self drawItemView:view title:@"写作要求"]; + + FSTextView *textView = [[FSTextView alloc] init]; + [textView setTextColor:RGBCOLOR(51, 51, 51)]; + [textView setTextAlignment:NSTextAlignmentLeft]; + [textView setFont:[UIFont systemFontOfSize:14]]; + [textView setPlaceholder:@"请输入您的写作要求"]; + [view addSubview:textView]; + [textView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewle.mas_bottom).offset(10); + make.right.equalTo(view).offset(-20); + make.height.offset(150); + }]; + [textView.layer setMasksToBounds:YES]; + [textView.layer setCornerRadius:12]; + [textView setBackgroundColor:RGBCOLOR(250, 250, 250)]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(textView).offset(20); + }]; + +} +-(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(23); + 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; +} +///提交 +-(void)sendAction +{ + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/DuanLuoXieZuoViewController.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/DuanLuoXieZuoViewController.h new file mode 100644 index 0000000..4b426aa --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/DuanLuoXieZuoViewController.h @@ -0,0 +1,18 @@ +// +// DuanLuoXieZuoViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface DuanLuoXieZuoViewController : BaseViewController +/// +@property (nonatomic , strong) NSString *strtitle; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/DuanLuoXieZuoViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/DuanLuoXieZuoViewController.m new file mode 100644 index 0000000..3584e21 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/DuanLuoXieZuoViewController.m @@ -0,0 +1,46 @@ +// +// DuanLuoXieZuoViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "DuanLuoXieZuoViewController.h" +#import "DuanLuoXieZuoView.h" + + +@interface DuanLuoXieZuoViewController () + +@end + +@implementation DuanLuoXieZuoViewController +-(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)]; + if(self.strtitle) + { + [self.navigationView setTitle:self.strtitle titleColor:RGBCOLOR(60, 60, 60)]; + } + [self.navigationView setBackgroundColor:RGBCOLOR(251, 251, 253)]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + + DuanLuoXieZuoView *view = [DuanLuoXieZuoView 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/DuanLuoXieZuoCellView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.h new file mode 100644 index 0000000..5bf4dcd --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.h @@ -0,0 +1,22 @@ +// +// DuanLuoXieZuoCellView.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^DuanLuoXieZuoCellViewBack)(BOOL isend); +@interface DuanLuoXieZuoCellView : UIView +/// +@property (nonatomic , strong) NSString *strname; +@property (nonatomic , strong) NSString *strvalue; + +/// +@property (nonatomic , strong) DuanLuoXieZuoCellViewBack backValue; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m new file mode 100644 index 0000000..64ed4f0 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m @@ -0,0 +1,134 @@ +// +// DuanLuoXieZuoCellView.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "DuanLuoXieZuoCellView.h" + + +@interface DuanLuoXieZuoCellView () +/// +@property (nonatomic , strong) UILabel *lbname; +/// +@property (nonatomic , strong) UILabel *lbnumber; +/// +@property (nonatomic , strong) ViewLable *lbwz; + +@end + +@implementation DuanLuoXieZuoCellView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:[UIColor whiteColor]]; + [Tools normalShadow:self shadowColor:RGBACOLOR(26, 71, 111, 0.08) shadowOpacity:1 cornerRadius:20 shadowRadius:12]; + + _lbname = [self drawItemView:self]; + _lbname.text = @"结果一"; + + UIButton *btnext = [[UIButton alloc] init]; + [btnext setTitle:@"续写全文" forState:UIControlStateNormal]; + [btnext setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btnext.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [btnext setImage:[UIImage imageNamed:@"duanluo_next"] forState:UIControlStateNormal]; + [self addSubview:btnext]; + [btnext mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(self.lbname); + make.right.equalTo(self).offset(-20); + make.height.offset(30); + make.width.offset(100); + }]; + [btnext setIconInRight]; + [btnext setContentHorizontalAlignment:UIControlContentHorizontalAlignmentRight]; + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(self.lbname.mas_bottom).offset(10); + make.right.equalTo(self).offset(-20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + + ViewLable *lbwz = [[ViewLable alloc] init]; + [viewback addSubview:lbwz]; + [lbwz mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(15); + make.top.offset(15); + make.right.equalTo(viewback).offset(-15); + }]; + lbwz.textColor = RGBCOLOR(61, 61, 61); + lbwz.textFont = [UIFont systemFontOfSize:14]; + lbwz.fspeed = 0.02; + _lbwz = lbwz; + [lbwz setBackHeight:^(float fheight, BOOL isend) { + if(isend) + { + self.backValue(YES); + } + }]; + + UILabel *lbnumber = [[UILabel alloc] init]; + [lbnumber setText:@"智能推荐 0字"]; + [lbnumber setTextColor:RGBCOLOR(109, 109, 109)]; + [lbnumber setTextAlignment:NSTextAlignmentLeft]; + [lbnumber setFont:[UIFont systemFontOfSize:12]]; + [viewback addSubview:lbnumber]; + [lbnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.right.equalTo(viewback).offset(-15); + make.top.equalTo(lbwz.mas_bottom).offset(20); + }]; + _lbnumber = lbnumber; + + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbnumber).offset(15); + }]; + + [self mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewback).offset(20); + }]; + } + return self; +} +-(UILabel *)drawItemView:(UIView *)view +{ + 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(23); + 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 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 lbname; +} + +-(void)setStrname:(NSString *)strname +{ + self.lbname.text = strname; +} +-(void)setStrvalue:(NSString *)strvalue +{ + _strvalue = strvalue; + self.lbwz.strValue = strvalue; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.h b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.h new file mode 100644 index 0000000..68a726d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.h @@ -0,0 +1,16 @@ +// +// DuanLuoXieZuoView.h +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface DuanLuoXieZuoView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m new file mode 100644 index 0000000..d0f7391 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m @@ -0,0 +1,76 @@ +// +// DuanLuoXieZuoView.m +// ProductApp +// +// Created by 工作 on 2024/10/8. +// + +#import "DuanLuoXieZuoView.h" +#import "DuanLuoXieZuoCellView.h" + + +@interface DuanLuoXieZuoView () +/// +@property (nonatomic , strong) UIScrollView *scvback; + +@end + +@implementation DuanLuoXieZuoView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(self); + make.height.equalTo(self).offset(-TabHeight-40); + }]; + _scvback = scvback; + + [self drawinfo]; + + UIButton *btcreate = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 160, 50)]; + [btcreate setTitle:@"再生成3段" forState:UIControlStateNormal]; + [btcreate setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btcreate.titleLabel setFont:[UIFont boldSystemFontOfSize:18]]; + [btcreate.layer setMasksToBounds:YES]; + [btcreate.layer setCornerRadius:16]; + [self addSubview:btcreate]; + [btcreate mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(self); + make.top.equalTo(scvback.mas_bottom).offset(20); + make.width.offset(160); + make.height.offset(50); + }]; + [btcreate addTarget:self action:@selector(createAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btcreate colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + } + return self; +} + +-(void)drawinfo +{ + DuanLuoXieZuoCellView *viewitem = [DuanLuoXieZuoCellView new]; + [self.scvback addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(20); + make.width.equalTo(self.scvback).offset(-40); + }]; + viewitem.strname = @"结果一"; + viewitem.strvalue = @"阳光透过茂密的树叶,洒在我的帐篷上。我睁开眼睛,闻到了清新的泥土味和远处溪水的声音。这是我第一次露营,心情无比激动。"; + [viewitem setBackValue:^(BOOL isend) { + + }]; +} + +-(void)createAction +{ + +} + +@end