diff --git a/ProductApp/ProductApp.xcodeproj/project.pbxproj b/ProductApp/ProductApp.xcodeproj/project.pbxproj index 69c0cf1..2178a68 100644 --- a/ProductApp/ProductApp.xcodeproj/project.pbxproj +++ b/ProductApp/ProductApp.xcodeproj/project.pbxproj @@ -67,6 +67,21 @@ CABA14E72C9D76F8002CB3B1 /* StartKeTangXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14E62C9D76F8002CB3B1 /* StartKeTangXieZuoViewController.m */; }; CABA14EB2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABA14EA2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m */; }; CABA14ED2C9D7CE2002CB3B1 /* alimamashuheiti.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CABA14EC2C9D7CE2002CB3B1 /* alimamashuheiti.ttf */; }; + CAC8063E2CA10B1600C21AA7 /* StartZWPIViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8063D2CA10B1600C21AA7 /* StartZWPIViewController.m */; }; + CAC806422CA111C300C21AA7 /* StartZWPIView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806412CA111C300C21AA7 /* StartZWPIView.m */; }; + CAC806462CA113A200C21AA7 /* StartZWPIViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806452CA113A200C21AA7 /* StartZWPIViewCell.m */; }; + CAC8064A2CA119C500C21AA7 /* StartZWPIDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806492CA119C500C21AA7 /* StartZWPIDetailViewController.m */; }; + CAC8064E2CA119F800C21AA7 /* StartZWPIDetailView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8064D2CA119F800C21AA7 /* StartZWPIDetailView.m */; }; + CAC806522CA137E600C21AA7 /* StartZNXZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806512CA137E600C21AA7 /* StartZNXZViewController.m */; }; + CAC806562CA1382500C21AA7 /* StartZNXZView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806552CA1382500C21AA7 /* StartZNXZView.m */; }; + CAC806582CA13CEC00C21AA7 /* zihunbiantaoti.TTF in Resources */ = {isa = PBXBuildFile; fileRef = CAC806572CA13CEC00C21AA7 /* zihunbiantaoti.TTF */; }; + CAC8065C2CA1449E00C21AA7 /* StartZNXZKeysViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8065B2CA1449E00C21AA7 /* StartZNXZKeysViewController.m */; }; + CAC806602CA144D000C21AA7 /* StartZNXZKeysView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8065F2CA144D000C21AA7 /* StartZNXZKeysView.m */; }; + CAC806642CA151ED00C21AA7 /* StartZNXZSiLuViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806632CA151ED00C21AA7 /* StartZNXZSiLuViewController.m */; }; + CAC806682CA1521200C21AA7 /* StartZNXZSiLuView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806672CA1521200C21AA7 /* StartZNXZSiLuView.m */; }; + CAC8066C2CA16DCC00C21AA7 /* StartPZXZViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8066B2CA16DCC00C21AA7 /* StartPZXZViewController.m */; }; + CAC806702CA16E0700C21AA7 /* StartPZXZView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC8066F2CA16E0700C21AA7 /* StartPZXZView.m */; }; + CAC806732CA171ED00C21AA7 /* StartPZXZPageView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAC806722CA171ED00C21AA7 /* StartPZXZPageView.m */; }; CB489DCA27449D5C00DA044A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CB489DC927449D5C00DA044A /* AppDelegate.m */; }; CB489DD027449D5C00DA044A /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CB489DCF27449D5C00DA044A /* ViewController.m */; }; CB489DD327449D5C00DA044A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CB489DD127449D5C00DA044A /* Main.storyboard */; }; @@ -341,6 +356,35 @@ CABA14E92C9D7AB2002CB3B1 /* StartKeTangXieZuoView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartKeTangXieZuoView.h; sourceTree = ""; }; CABA14EA2C9D7AB2002CB3B1 /* StartKeTangXieZuoView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartKeTangXieZuoView.m; sourceTree = ""; }; CABA14EC2C9D7CE2002CB3B1 /* alimamashuheiti.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = alimamashuheiti.ttf; sourceTree = ""; }; + CAC8063C2CA10B1600C21AA7 /* StartZWPIViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIViewController.h; sourceTree = ""; }; + CAC8063D2CA10B1600C21AA7 /* StartZWPIViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIViewController.m; sourceTree = ""; }; + CAC806402CA111C300C21AA7 /* StartZWPIView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIView.h; sourceTree = ""; }; + CAC806412CA111C300C21AA7 /* StartZWPIView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIView.m; sourceTree = ""; }; + CAC806442CA113A200C21AA7 /* StartZWPIViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIViewCell.h; sourceTree = ""; }; + CAC806452CA113A200C21AA7 /* StartZWPIViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIViewCell.m; sourceTree = ""; }; + CAC806482CA119C500C21AA7 /* StartZWPIDetailViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIDetailViewController.h; sourceTree = ""; }; + CAC806492CA119C500C21AA7 /* StartZWPIDetailViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIDetailViewController.m; sourceTree = ""; }; + CAC8064C2CA119F800C21AA7 /* StartZWPIDetailView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZWPIDetailView.h; sourceTree = ""; }; + CAC8064D2CA119F800C21AA7 /* StartZWPIDetailView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZWPIDetailView.m; sourceTree = ""; }; + CAC806502CA137E600C21AA7 /* StartZNXZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZViewController.h; sourceTree = ""; }; + CAC806512CA137E600C21AA7 /* StartZNXZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZViewController.m; sourceTree = ""; }; + CAC806542CA1382500C21AA7 /* StartZNXZView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZView.h; sourceTree = ""; }; + CAC806552CA1382500C21AA7 /* StartZNXZView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZView.m; sourceTree = ""; }; + CAC806572CA13CEC00C21AA7 /* zihunbiantaoti.TTF */ = {isa = PBXFileReference; lastKnownFileType = file; path = zihunbiantaoti.TTF; sourceTree = ""; }; + CAC8065A2CA1449E00C21AA7 /* StartZNXZKeysViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZKeysViewController.h; sourceTree = ""; }; + CAC8065B2CA1449E00C21AA7 /* StartZNXZKeysViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZKeysViewController.m; sourceTree = ""; }; + CAC8065E2CA144D000C21AA7 /* StartZNXZKeysView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZKeysView.h; sourceTree = ""; }; + CAC8065F2CA144D000C21AA7 /* StartZNXZKeysView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZKeysView.m; sourceTree = ""; }; + CAC806622CA151ED00C21AA7 /* StartZNXZSiLuViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZSiLuViewController.h; sourceTree = ""; }; + CAC806632CA151ED00C21AA7 /* StartZNXZSiLuViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZSiLuViewController.m; sourceTree = ""; }; + CAC806662CA1521200C21AA7 /* StartZNXZSiLuView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartZNXZSiLuView.h; sourceTree = ""; }; + CAC806672CA1521200C21AA7 /* StartZNXZSiLuView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartZNXZSiLuView.m; sourceTree = ""; }; + CAC8066A2CA16DCC00C21AA7 /* StartPZXZViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartPZXZViewController.h; sourceTree = ""; }; + CAC8066B2CA16DCC00C21AA7 /* StartPZXZViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartPZXZViewController.m; sourceTree = ""; }; + CAC8066E2CA16E0700C21AA7 /* StartPZXZView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartPZXZView.h; sourceTree = ""; }; + CAC8066F2CA16E0700C21AA7 /* StartPZXZView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartPZXZView.m; sourceTree = ""; }; + CAC806712CA171ED00C21AA7 /* StartPZXZPageView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = StartPZXZPageView.h; sourceTree = ""; }; + CAC806722CA171ED00C21AA7 /* StartPZXZPageView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StartPZXZPageView.m; sourceTree = ""; }; CB001E19298BBCFB005E0907 /* ProductApp.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ProductApp.entitlements; sourceTree = ""; }; CB489DC527449D5C00DA044A /* ProductApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ProductApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; CB489DC827449D5C00DA044A /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; @@ -825,6 +869,9 @@ CABA146E2C9D0D3C002CB3B1 /* 引导 */ = { isa = PBXGroup; children = ( + CAC806692CA16DBC00C21AA7 /* 拍照写作 */, + CAC8064F2CA137C700C21AA7 /* 智能写作 */, + CAC8063B2CA10AEB00C21AA7 /* 作文批改 */, CABA14E42C9D76B7002CB3B1 /* 课堂写作 */, CABA14862C9D277E002CB3B1 /* view */, CABA147C2C9D198A002CB3B1 /* cell */, @@ -991,6 +1038,135 @@ path = view; sourceTree = ""; }; + CAC8063B2CA10AEB00C21AA7 /* 作文批改 */ = { + isa = PBXGroup; + children = ( + CAC806472CA119AF00C21AA7 /* 批改信息 */, + CAC806432CA1138700C21AA7 /* cell */, + CAC8063F2CA111B500C21AA7 /* view */, + CAC8063C2CA10B1600C21AA7 /* StartZWPIViewController.h */, + CAC8063D2CA10B1600C21AA7 /* StartZWPIViewController.m */, + ); + path = "作文批改"; + sourceTree = ""; + }; + CAC8063F2CA111B500C21AA7 /* view */ = { + isa = PBXGroup; + children = ( + CAC806402CA111C300C21AA7 /* StartZWPIView.h */, + CAC806412CA111C300C21AA7 /* StartZWPIView.m */, + ); + path = view; + sourceTree = ""; + }; + CAC806432CA1138700C21AA7 /* cell */ = { + isa = PBXGroup; + children = ( + CAC806442CA113A200C21AA7 /* StartZWPIViewCell.h */, + CAC806452CA113A200C21AA7 /* StartZWPIViewCell.m */, + ); + path = cell; + sourceTree = ""; + }; + CAC806472CA119AF00C21AA7 /* 批改信息 */ = { + isa = PBXGroup; + children = ( + CAC8064B2CA119EF00C21AA7 /* view */, + CAC806482CA119C500C21AA7 /* StartZWPIDetailViewController.h */, + CAC806492CA119C500C21AA7 /* StartZWPIDetailViewController.m */, + ); + path = "批改信息"; + sourceTree = ""; + }; + CAC8064B2CA119EF00C21AA7 /* view */ = { + isa = PBXGroup; + children = ( + CAC8064C2CA119F800C21AA7 /* StartZWPIDetailView.h */, + CAC8064D2CA119F800C21AA7 /* StartZWPIDetailView.m */, + ); + path = view; + sourceTree = ""; + }; + CAC8064F2CA137C700C21AA7 /* 智能写作 */ = { + isa = PBXGroup; + children = ( + CAC806612CA151D900C21AA7 /* 思路 */, + CAC806592CA1448700C21AA7 /* 关键词 */, + CAC806532CA1381700C21AA7 /* view */, + CAC806502CA137E600C21AA7 /* StartZNXZViewController.h */, + CAC806512CA137E600C21AA7 /* StartZNXZViewController.m */, + ); + path = "智能写作"; + sourceTree = ""; + }; + CAC806532CA1381700C21AA7 /* view */ = { + isa = PBXGroup; + children = ( + CAC806542CA1382500C21AA7 /* StartZNXZView.h */, + CAC806552CA1382500C21AA7 /* StartZNXZView.m */, + ); + path = view; + sourceTree = ""; + }; + CAC806592CA1448700C21AA7 /* 关键词 */ = { + isa = PBXGroup; + children = ( + CAC8065D2CA144C300C21AA7 /* view */, + CAC8065A2CA1449E00C21AA7 /* StartZNXZKeysViewController.h */, + CAC8065B2CA1449E00C21AA7 /* StartZNXZKeysViewController.m */, + ); + path = "关键词"; + sourceTree = ""; + }; + CAC8065D2CA144C300C21AA7 /* view */ = { + isa = PBXGroup; + children = ( + CAC8065E2CA144D000C21AA7 /* StartZNXZKeysView.h */, + CAC8065F2CA144D000C21AA7 /* StartZNXZKeysView.m */, + ); + path = view; + sourceTree = ""; + }; + CAC806612CA151D900C21AA7 /* 思路 */ = { + isa = PBXGroup; + children = ( + CAC806652CA1520400C21AA7 /* view */, + CAC806622CA151ED00C21AA7 /* StartZNXZSiLuViewController.h */, + CAC806632CA151ED00C21AA7 /* StartZNXZSiLuViewController.m */, + ); + path = "思路"; + sourceTree = ""; + }; + CAC806652CA1520400C21AA7 /* view */ = { + isa = PBXGroup; + children = ( + CAC806662CA1521200C21AA7 /* StartZNXZSiLuView.h */, + CAC806672CA1521200C21AA7 /* StartZNXZSiLuView.m */, + ); + path = view; + sourceTree = ""; + }; + CAC806692CA16DBC00C21AA7 /* 拍照写作 */ = { + isa = PBXGroup; + children = ( + CAC8066D2CA16DF500C21AA7 /* view */, + CAC8066A2CA16DCC00C21AA7 /* StartPZXZViewController.h */, + CAC8066B2CA16DCC00C21AA7 /* StartPZXZViewController.m */, + ); + path = "拍照写作"; + sourceTree = ""; + }; + CAC8066D2CA16DF500C21AA7 /* view */ = { + isa = PBXGroup; + children = ( + CAC8066E2CA16E0700C21AA7 /* StartPZXZView.h */, + CAC8066F2CA16E0700C21AA7 /* StartPZXZView.m */, + CAC806712CA171ED00C21AA7 /* StartPZXZPageView.h */, + CAC806722CA171ED00C21AA7 /* StartPZXZPageView.m */, + ); + path = view; + sourceTree = ""; + }; CB489DBC27449D5C00DA044A = { isa = PBXGroup; children = ( @@ -1030,6 +1206,7 @@ CABA14732C9D1165002CB3B1 /* qidong@2x.png */, CABA14722C9D1165002CB3B1 /* qidong@3x.png */, CABA14EC2C9D7CE2002CB3B1 /* alimamashuheiti.ttf */, + CAC806572CA13CEC00C21AA7 /* zihunbiantaoti.TTF */, ); path = ProductApp; sourceTree = ""; @@ -1858,6 +2035,7 @@ CB489F592744A0BD00DA044A /* bigfont.txt in Resources */, CB489FC52744A0BD00DA044A /* loading4@2x.png in Resources */, CB489FC12744A0BD00DA044A /* loading5@3x.png in Resources */, + CAC806582CA13CEC00C21AA7 /* zihunbiantaoti.TTF in Resources */, CB489F8C2744A0BD00DA044A /* NaviGationView.xib in Resources */, CB489FDA2744A30000DA044A /* 全屏.png in Resources */, CB489FC22744A0BD00DA044A /* loading7@2x.png in Resources */, @@ -1944,7 +2122,9 @@ CB489F8F2744A0BD00DA044A /* UITextField+SY.m in Sources */, CBD422BA28DAF2E800C32440 /* JhtBannerCardView.m in Sources */, CB489FCB2744A0BD00DA044A /* HXHud.m in Sources */, + CAC806562CA1382500C21AA7 /* StartZNXZView.m in Sources */, CB489DD027449D5C00DA044A /* ViewController.m in Sources */, + CAC806702CA16E0700C21AA7 /* StartPZXZView.m in Sources */, CB489FAA2744A0BD00DA044A /* UIImage+XLExtension.m in Sources */, CABA14672C9D0B31002CB3B1 /* AIChatViewController.m in Sources */, CB489F582744A0BD00DA044A /* UIDevice+PGJ.m in Sources */, @@ -1968,12 +2148,15 @@ CB489F6B2744A0BD00DA044A /* LJsignView.m in Sources */, CB489F622744A0BD00DA044A /* MDBwebVIew.m in Sources */, CB489F992744A0BD00DA044A /* UserInfoModel.m in Sources */, + CAC8064A2CA119C500C21AA7 /* StartZWPIDetailViewController.m in Sources */, CB489DCA27449D5C00DA044A /* AppDelegate.m in Sources */, CB489F8B2744A0BD00DA044A /* NSString+extend.m in Sources */, CB489F8D2744A0BD00DA044A /* NaviGationView.m in Sources */, CB489F9C2744A0BD00DA044A /* LogTableViewCell.m in Sources */, CABA14B12C9D4318002CB3B1 /* UserAuthModel.m in Sources */, CB489F532744A0BD00DA044A /* RecordAudio.m in Sources */, + CAC8063E2CA10B1600C21AA7 /* StartZWPIViewController.m in Sources */, + CAC806732CA171ED00C21AA7 /* StartPZXZPageView.m in Sources */, CABA14B72C9D4318002CB3B1 /* UserUploadModel.m in Sources */, CB489FB22744A0BD00DA044A /* FSActionSheetItem.m in Sources */, CB489F4B2744A0BD00DA044A /* PGGDatePickView.m in Sources */, @@ -1996,15 +2179,19 @@ CB489F512744A0BD00DA044A /* PGJSearchView.m in Sources */, CA8181B02C9EB96000EE7E6E /* StartKTXZPGDetailFJView.m in Sources */, CB489F7A2744A0BD00DA044A /* FSTextView.m in Sources */, + CAC8065C2CA1449E00C21AA7 /* StartZNXZKeysViewController.m in Sources */, CABA14B32C9D4318002CB3B1 /* UserConfigModel.m in Sources */, CA8181992C9E77FB00EE7E6E /* DownJDLoadView.m in Sources */, CB489F6F2744A0BD00DA044A /* XLAlertView.m in Sources */, CA81819D2C9E9C6600EE7E6E /* StartKTXZPGDetailViewController.m in Sources */, CB489FA32744A0BD00DA044A /* ZJContentView.m in Sources */, CA8181922C9E748500EE7E6E /* StartKTXZPGViewController.m in Sources */, + CAC8064E2CA119F800C21AA7 /* StartZWPIDetailView.m in Sources */, CB489F6C2744A0BD00DA044A /* RadianDisView.m in Sources */, CABA14AE2C9D4318002CB3B1 /* OrderInfoModel.m in Sources */, CB489F502744A0BD00DA044A /* Tools.m in Sources */, + CAC806682CA1521200C21AA7 /* StartZNXZSiLuView.m in Sources */, + CAC806602CA144D000C21AA7 /* StartZNXZKeysView.m in Sources */, CABA14E72C9D76F8002CB3B1 /* StartKeTangXieZuoViewController.m in Sources */, CABA14782C9D13CD002CB3B1 /* StartSFViewController.m in Sources */, CB489DDB27449D5D00DA044A /* main.m in Sources */, @@ -2026,6 +2213,8 @@ CABA14892C9D2AE2002CB3B1 /* StartGNTiShiView.m in Sources */, CB489F8E2744A0BD00DA044A /* UITextFieldYS.m in Sources */, CB489F922744A0BD00DA044A /* IndexGetNewsModel.m in Sources */, + CAC806522CA137E600C21AA7 /* StartZNXZViewController.m in Sources */, + CAC806422CA111C300C21AA7 /* StartZWPIView.m in Sources */, CABA14E02C9D6F30002CB3B1 /* RoleTreeModel.m in Sources */, CB489F4F2744A0BD00DA044A /* AddressListAlterViewTableViewCell.m in Sources */, CA8181A42C9EA07300EE7E6E /* StartKTXZPGDetailTabView.m in Sources */, @@ -2038,8 +2227,10 @@ CB489FA62744A0BD00DA044A /* ZJScrollSegmentView.m in Sources */, CABA14AF2C9D4318002CB3B1 /* PayOrderModel.m in Sources */, CB489F812744A0BD00DA044A /* GTMBase64.m in Sources */, + CAC806642CA151ED00C21AA7 /* StartZNXZSiLuViewController.m in Sources */, CB489F962744A0BD00DA044A /* SmsloginCodeModel.m in Sources */, CB489F712744A0BD00DA044A /* RootTabBarController.m in Sources */, + CAC806462CA113A200C21AA7 /* StartZWPIViewCell.m in Sources */, CABA14BE2C9D4342002CB3B1 /* TimeTools.m in Sources */, CB489F762744A0BD00DA044A /* UIColor+LSFoundation.m in Sources */, CB489F952744A0BD00DA044A /* BaseRequestDataController.m in Sources */, @@ -2080,6 +2271,7 @@ CB489FA12744A0BD00DA044A /* ZJTitleView.m in Sources */, CB489FAF2744A0BD00DA044A /* FSActionSheetConfig.m in Sources */, CB489FB52744A0BD00DA044A /* HYTimePickerView.m in Sources */, + CAC8066C2CA16DCC00C21AA7 /* StartPZXZViewController.m in Sources */, CB489F722744A0BD00DA044A /* MCTabBarController.m in Sources */, CB489F9F2744A0BD00DA044A /* LogView.m in Sources */, CABA146D2C9D0B3F002CB3B1 /* WoDeViewController.m in Sources */, @@ -2283,7 +2475,7 @@ "$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib", ); MARKETING_VERSION = 2.3.0; - PRODUCT_BUNDLE_IDENTIFIER = com.bt.aiwrite; + PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; TARGETED_DEVICE_FAMILY = 1; @@ -2344,7 +2536,7 @@ "$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib", ); MARKETING_VERSION = 2.3.0; - PRODUCT_BUNDLE_IDENTIFIER = com.bt.aiwrite; + PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_EMIT_LOC_STRINGS = YES; TARGETED_DEVICE_FAMILY = 1; diff --git a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate index e6db116..2bf00e8 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/AppDelegate.m b/ProductApp/ProductApp/AppDelegate.m index fd924d4..b84bc52 100644 --- a/ProductApp/ProductApp/AppDelegate.m +++ b/ProductApp/ProductApp/AppDelegate.m @@ -10,7 +10,7 @@ #import "StartViewController.h" -#import "StartKTXZPGDetailViewController.h" +#import "StartPZXZViewController.h" @interface AppDelegate () @@ -33,7 +33,7 @@ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window.backgroundColor = [UIColor whiteColor]; - [self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[StartKTXZPGDetailViewController new]]]; + [self.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[StartPZXZViewController new]]]; [self.window makeKeyAndVisible]; diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/Contents.json new file mode 100644 index 0000000..6d1128d --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "蒙版组 13017@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "蒙版组 13017@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/蒙版组 13017@2x.png b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/蒙版组 13017@2x.png new file mode 100644 index 0000000..a4abfe6 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/蒙版组 13017@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/蒙版组 13017@3x.png b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/蒙版组 13017@3x.png new file mode 100644 index 0000000..0923191 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_nomoxiangji.imageset/蒙版组 13017@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/Contents.json new file mode 100644 index 0000000..7b6156b --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "容器@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "容器@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/容器@2x.png new file mode 100644 index 0000000..cdd0ae7 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/容器@3x.png new file mode 100644 index 0000000..7c6b88f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_ref.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/Contents.json new file mode 100644 index 0000000..7b6156b --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "容器@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "容器@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/容器@2x.png new file mode 100644 index 0000000..ef7458f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/容器@3x.png new file mode 100644 index 0000000..3d0d368 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/引导页/yd_x.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/Info.plist b/ProductApp/ProductApp/Info.plist index d688e0e..c66d97d 100644 --- a/ProductApp/ProductApp/Info.plist +++ b/ProductApp/ProductApp/Info.plist @@ -15,6 +15,7 @@ UIAppFonts alimamashuheiti.ttf + zihunbiantaoti.TTF UIBackgroundModes diff --git a/ProductApp/ProductApp/Other/TimeTools.m b/ProductApp/ProductApp/Other/TimeTools.m index e83df71..c6266ec 100644 --- a/ProductApp/ProductApp/Other/TimeTools.m +++ b/ProductApp/ProductApp/Other/TimeTools.m @@ -72,6 +72,7 @@ static time_t bootSecTime(void){ +(NSString *)getIPV6Info { NSString *strback = @""; + NSMutableArray *arrcon = [NSMutableArray new]; struct ifaddrs *interfaces = NULL; struct ifaddrs *addr = NULL; int result = getifaddrs(&interfaces); @@ -87,15 +88,44 @@ static time_t bootSecTime(void){ inet_ntop(AF_INET6, &sa->sin6_addr, str, INET6_ADDRSTRLEN); NSString *ipv6Address = [NSString stringWithUTF8String:str]; NSLog(@"Interface: %@, IPv6 Address: %@", interfaceName, ipv6Address); - if(ipv6Address.length==39&&strback.length==0) + if(![ipv6Address containsString:@"fe80::"]) { - strback = ipv6Address; - break; + if(ipv6Address.length==39) + { + if(![arrcon containsObject:ipv6Address]) + { + [arrcon addObject:ipv6Address]; + } + } + else + { + NSArray *arrtt = [ipv6Address componentsSeparatedByString:@":"]; + if(arrtt.count>4) + { + NSMutableArray *listArray = [NSMutableArray array]; + for (NSString *str in arrtt) { + if (![listArray containsObject:str]) { + [listArray addObject:str]; + } + } + if(listArray.count>4) + { + if(![arrcon containsObject:ipv6Address]) + { + [arrcon addObject:ipv6Address]; + } + } + } + } } } } freeifaddrs(interfaces); } + if(arrcon.count>0) + { + strback = [arrcon componentsJoinedByString:@","]; + } return strback; } @end diff --git a/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m b/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m index d6bd942..d925958 100644 --- a/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m +++ b/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m @@ -8,6 +8,10 @@ #import "StartGNView.h" #import "PageControlView.h" #import "StartKeTangXieZuoViewController.h" +#import "StartZWPIViewController.h" +#import "StartZNXZViewController.h" +#import "StartPZXZViewController.h" + @interface StartGNView () /// @@ -286,15 +290,18 @@ } else if([str isEqualToString:@"yd_xs_2"]) {///拍照写作 - + StartPZXZViewController *vc = [StartPZXZViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; } else if([str isEqualToString:@"yd_xs_1"]) {///作文批改 - + StartZWPIViewController *vc = [StartZWPIViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; } else {///智能写作 - + StartZNXZViewController *vc = [StartZNXZViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; } } else diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.h b/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.h new file mode 100644 index 0000000..9bcf23d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.h @@ -0,0 +1,16 @@ +// +// StartZWPIViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZWPIViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m new file mode 100644 index 0000000..89b4680 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m @@ -0,0 +1,42 @@ +// +// StartZWPIViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZWPIViewController.h" +#import "StartZWPIView.h" + + +@interface StartZWPIViewController () + +@end + +@implementation StartZWPIViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + [self.navigationController setNavigationBarHidden:YES animated:NO]; + [self showNaviGationView:YES]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + + StartZWPIView *view = [[StartZWPIView alloc] init]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + +} + + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/cell/StartZWPIViewCell.h b/ProductApp/ProductApp/ProductMain/引导/作文批改/cell/StartZWPIViewCell.h new file mode 100644 index 0000000..7a8b649 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/cell/StartZWPIViewCell.h @@ -0,0 +1,16 @@ +// +// StartZWPIViewCell.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "JhtBannerCardView.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZWPIViewCell : JhtBannerCardView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/cell/StartZWPIViewCell.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/cell/StartZWPIViewCell.m new file mode 100644 index 0000000..8e0e0af --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/cell/StartZWPIViewCell.m @@ -0,0 +1,48 @@ +// +// StartZWPIViewCell.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZWPIViewCell.h" + + +@interface StartZWPIViewCell () + +@end + +@implementation StartZWPIViewCell + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"《一路有你相伴》"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont boldSystemFontOfSize:20]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.left.right.equalTo(self); + make.height.offset(22); + }]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_xs_1"]]; + [self addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(self); + make.bottom.equalTo(self).offset(-20); + make.top.equalTo(lbname.mas_bottom).offset(15); + }]; + [imgvback.layer setMasksToBounds:YES]; + [imgvback.layer setCornerRadius:20]; + + } + return self; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.h b/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.h new file mode 100644 index 0000000..db732d4 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.h @@ -0,0 +1,16 @@ +// +// StartZWPIView.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZWPIView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m new file mode 100644 index 0000000..cd057f4 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m @@ -0,0 +1,164 @@ +// +// StartZWPIView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZWPIView.h" +#import "JhtBannerScrollView.h" +#import "StartZWPIViewCell.h" +#import "StartKTXZPGViewController.h" + + +#define StartZWPICellHeight UISCREEN_HEIGHT-KMagrinTop-TabHeight-180 +@interface StartZWPIView () +@property (nonatomic, strong) JhtBannerScrollView *bannerView; + + +@end + +@implementation StartZWPIView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + + UIImageView *imgvlog= [[UIImageView alloc] init]; + [imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]]; + [self addSubview:imgvlog]; + [imgvlog mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(50); + make.left.offset(14); + make.top.offset(KMagrinTop+22); + }]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:[NSString stringWithFormat:@"初一、作文批改"]]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(imgvlog.mas_right).offset(12); + make.centerY.equalTo(imgvlog); + }]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"需要你选择案例给我分析批改"]; + [lbts setTextColor:RGBCOLOR(51, 51, 51)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont boldSystemFontOfSize:16]]; + [self addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(imgvlog.mas_bottom).offset(30); + make.centerX.equalTo(self); + }]; + + + JhtBannerScrollView *bannerView = [[JhtBannerScrollView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, StartZWPICellHeight)]; + bannerView.delegate = self; + bannerView.dataSource = self; + bannerView.minCoverViewAlpha = 0.0; + bannerView.leftRightMargin = UISCREEN_WIDTH*0.05; + bannerView.topBottomMargin = 20; + bannerView.orientation = BV_Orientation_Horizontal; + bannerView.isOpenAutoScroll = NO; + bannerView.isCarousel = NO; + [bannerView setBackgroundColor:[UIColor clearColor]]; + [self addSubview:bannerView]; + [bannerView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(self); + make.top.equalTo(lbts.mas_bottom); + make.height.offset(StartZWPICellHeight); + }]; + [bannerView setClipsToBounds:NO]; + _bannerView = bannerView; + [self.bannerView reloadData]; + + UIButton *btnext = [[UIButton alloc] init]; + [btnext setTitle:@"下一步" forState:UIControlStateNormal]; + [btnext setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btnext.titleLabel setFont:[UIFont systemFontOfSize:18]]; + [btnext.layer setMasksToBounds:YES]; + [btnext.layer setCornerRadius:25]; + [btnext setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [self addSubview:btnext]; + [btnext mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.height.offset(50); + make.top.equalTo(bannerView.mas_bottom); + }]; + [btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btlast = [[UIButton alloc] init]; + [btlast setTitle:@"上一步" forState:UIControlStateNormal]; + [btlast setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btlast.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [self addSubview:btlast]; + [btlast mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.height.equalTo(btnext); + make.top.equalTo(btnext.mas_bottom); + }]; + [btlast addTarget:self action:@selector(lastAction) forControlEvents:UIControlEventTouchUpInside]; + + + } + return self; +} + +-(void)nextAction +{ +// self.bannerView.currentIndex; + StartKTXZPGViewController *vc = [StartKTXZPGViewController new]; + vc.type = 1; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} +-(void)lastAction +{ + [self.viewController.navigationController popViewControllerAnimated:YES]; +} + +#pragma mark - JhtBannerScrollViewDataSource +/** 显示cardView 个数 */ +- (NSInteger)numberOfCardViewInBannerView:(JhtBannerScrollView *)bannerView +{ + return 5; +} + +/** 单个cardView */ +- (UIView *)bannerView:(JhtBannerScrollView *)bannerView cardViewForBannerViewAtIndex:(NSInteger)index +{ + StartZWPIViewCell *cardView = (StartZWPIViewCell *)[bannerView dequeueReusableView]; + if (!cardView) { + cardView = [[StartZWPIViewCell alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH*0.8, StartZWPICellHeight)]; + cardView.tag = index; + } + + + return cardView; +} + +/** 当前显示cardView Size */ +- (CGSize)sizeForCurrentCardViewInBannerView:(JhtBannerScrollView *)bannerView +{ + return CGSizeMake(UISCREEN_WIDTH*0.8, StartZWPICellHeight); +} + +/** 滚动到了某一个cardView */ +- (void)bannerView:(JhtBannerScrollView *)bannerView didScrollToCardViewWithIndex:(NSInteger)index +{ + +} + +/** 点击了第几个cardView + * index: 点击bannerCardView index + */ +- (void)bannerView:(JhtBannerScrollView *)bannerView didSelectCardView:(UIView *)cardView withCardViewIndex:(NSInteger)index +{ + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.h b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.h new file mode 100644 index 0000000..10c61f5 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.h @@ -0,0 +1,16 @@ +// +// StartZWPIDetailViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZWPIDetailViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m new file mode 100644 index 0000000..bb08b2e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m @@ -0,0 +1,42 @@ +// +// StartZWPIDetailViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZWPIDetailViewController.h" +#import "StartZWPIDetailView.h" + + +@interface StartZWPIDetailViewController () + +@end + +@implementation StartZWPIDetailViewController +- (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]]; + [self.navigationView.backButton setHidden:YES]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:[UIColor whiteColor]]; + + StartZWPIDetailView *view = [[StartZWPIDetailView alloc] init]; + [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/StartZWPIDetailView.h b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.h new file mode 100644 index 0000000..41259e2 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.h @@ -0,0 +1,16 @@ +// +// StartZWPIDetailView.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZWPIDetailView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m new file mode 100644 index 0000000..0c03162 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m @@ -0,0 +1,211 @@ +// +// StartZWPIDetailView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZWPIDetailView.h" +#import "StartKTXZPGDetailTabView.h" +#import "StartKTXZPGDetailZHView.h" +#import "StartKTXZPGDetailFJView.h" + +@interface StartZWPIDetailView () +/// +@property (nonatomic , strong) UIImageView *imgvback; +/// +@property (nonatomic , strong) UIView *viewback; +/// +@property (nonatomic , strong) StartKTXZPGDetailTabView *viewtop; +/// +@property (nonatomic , strong) UIScrollView *scvbackinfo; + +/// +@property (nonatomic , strong) StartKTXZPGDetailFJView *viewfj; + +@end + +@implementation StartZWPIDetailView + +-(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(-200); + }]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_xs_1"]]; + [scvback addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.width.equalTo(scvback); + }]; + _imgvback = imgvback; + + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(imgvback).offset(20); + }]; + + UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.2, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.8-TabHeight-20-NavHeight)]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewback.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)]; + //创建 layer + CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; + maskLayer.frame = viewback.bounds; + //赋值 + maskLayer.path = maskPath.CGPath; + viewback.layer.mask = maskLayer; + [self drawInfoView:viewback]; + _viewback = viewback; + + UIView *viewbottom = [[UIView alloc] init]; + [viewbottom setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewbottom]; + [viewbottom mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self); + make.height.offset(TabHeight+20); + }]; + [self drawBottomView:viewbottom]; + + } + return self; +} +-(void)drawBottomView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(217, 217, 217)]; + [self addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(view); + make.height.offset(1); + }]; + + UIButton *btpigai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 44)]; + [btpigai setTitle:@"改写润色" forState:UIControlStateNormal]; + [btpigai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btpigai.titleLabel setFont:[UIFont boldSystemFontOfSize:16]]; + [btpigai.layer setMasksToBounds:YES]; + [btpigai.layer setCornerRadius:5]; + [view addSubview:btpigai]; + [btpigai mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(view).offset(-20); + make.top.offset(10); + make.height.offset(44); + }]; + [btpigai addTarget:self action:@selector(tiyanAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btpigai colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)drawInfoView:(UIView *)view +{ + [view setBackgroundColor:[UIColor whiteColor]]; + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(216, 216, 216)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.size.sizeOffset(CGSizeMake(41, 5)); + make.centerX.equalTo(view); + make.top.offset(10); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:2.5]; + + UIView *viewtap = [[UIView alloc] init]; + [view addSubview:viewtap]; + [viewtap mas_makeConstraints:^(MASConstraintMaker *make) { + make.center.equalTo(viewline); + make.width.offset(80); + make.height.offset(45); + }]; + UIPanGestureRecognizer *panBig = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(panGestureAction:)]; + [viewtap addGestureRecognizer:panBig]; + + + StartKTXZPGDetailTabView *viewtop = [[StartKTXZPGDetailTabView alloc] init]; + [view addSubview:viewtop]; + [viewtop mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(view); + make.top.offset(30); + make.height.offset(40); + }]; + viewtop.arrTitle = @[@"综合评价",@"分句点评"]; + [viewtop setBackSelect:^(NSInteger tag) { + [self.scvbackinfo setContentOffset:CGPointMake(UISCREEN_WIDTH*tag, 0)]; + [self showVC:tag]; + }]; + _viewtop = viewtop; + + UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, UISCREEN_WIDTH, view.height-80)]; + [scvback setPagingEnabled:YES]; + [scvback setShowsHorizontalScrollIndicator:NO]; + [view addSubview:scvback]; + [scvback setContentSize:CGSizeMake(UISCREEN_WIDTH*3, 0)]; + [scvback setDelegate:self]; + _scvbackinfo = scvback; + + /// + StartKTXZPGDetailZHView *viewzh = [StartKTXZPGDetailZHView new]; + [scvback addSubview:viewzh]; + [viewzh mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(0); + make.top.offset(0); + make.width.height.equalTo(scvback); + }]; + /// +} +- (void)panGestureAction:(UIPanGestureRecognizer *)pan +{ + if(pan.state == UIGestureRecognizerStateChanged) + { + CGPoint transP = [pan translationInView:self]; + float fmax = UISCREEN_HEIGHT-NavHeight-TabHeight-20-80; + if(self.viewback.top+transP.y>fmax) + { + self.viewback.top=fmax; + } + else if(self.viewback.top+transP.y + +NS_ASSUME_NONNULL_BEGIN + +@interface StartPZXZPageView : UIView +@property (nonatomic , assign) CGSize yidongsize; + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZPageView.m b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZPageView.m new file mode 100644 index 0000000..d40b556 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZPageView.m @@ -0,0 +1,54 @@ +// +// StartPZXZPageView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartPZXZPageView.h" + + +@interface StartPZXZPageView () +/// +@property (nonatomic , strong) UIScrollView *scvback; +/// +@property (nonatomic , strong) UIImageView *imgvback; + + +@end + +@implementation StartPZXZPageView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setUserInteractionEnabled:NO]; + UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT-TabHeight-123)]; + [self addSubview:scvback]; + [scvback setUserInteractionEnabled:NO]; + [scvback setScrollEnabled:NO]; + [scvback setContentSize:CGSizeMake(UISCREEN_WIDTH*1.3, scvback.height*1.3)]; + _scvback = scvback; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_nomoxiangji"]]; + [imgvback setContentMode:UIViewContentModeScaleAspectFit]; + [scvback addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.equalTo(scvback).multipliedBy(1.3); + make.center.equalTo(scvback); + }]; + _imgvback = imgvback; + + + } + return self; +} +///去小数点后1 x y +-(void)setYidongsize:(CGSize)yidongsize +{ + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.h b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.h new file mode 100644 index 0000000..ec139bf --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.h @@ -0,0 +1,16 @@ +// +// StartPZXZView.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StartPZXZView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m new file mode 100644 index 0000000..4c4d4d6 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m @@ -0,0 +1,156 @@ +// +// StartPZXZView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartPZXZView.h" +#import "StartPZXZPageView.h" +#import + +@interface StartPZXZView () +/// +@property (nonatomic , strong) UIScrollView *scvback; +/// +@property (nonatomic , strong) NSMutableArray *arrbtn; +@property (nonatomic , strong) NSMutableArray *arrView; +/// +@property (nonatomic , strong) UIButton *btselect; + +/// +@property (nonatomic , strong) CMMotionManager *motionManager; + +@end + +@implementation StartPZXZView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:[UIColor blackColor]]; + UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT-TabHeight-123)]; + [scvback setDelegate:self]; + [self addSubview:scvback]; + [scvback setPagingEnabled:YES]; + [scvback setShowsHorizontalScrollIndicator:NO]; + [scvback setContentSize:CGSizeMake(UISCREEN_WIDTH*3, 0)]; + _scvback = scvback; + if (@available(iOS 11.0, *)) { + scvback.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; + }else{ + self.viewController.automaticallyAdjustsScrollViewInsets =NO; + } + + self.arrView = [NSMutableArray new]; + for(int i = 0 ; i < 3; i++) + { + StartPZXZPageView *viewitem = [StartPZXZPageView new]; + [scvback addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.height.width.equalTo(scvback); + make.left.offset(UISCREEN_WIDTH*i); + }]; + [self.arrView addObject:viewitem]; + } + + + UIView *viewbottom = [[UIView alloc] init]; + [self addSubview:viewbottom]; + [viewbottom mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self); + make.top.equalTo(scvback.mas_bottom); + }]; + [self drawBottomView:viewbottom]; + [self tuoluo]; + } + return self; +} + +-(void)drawBottomView:(UIView *)view +{ + float f_width = 90; + NSArray *arrtop = @[@"改写作文",@"拍题成文",@"拍照续写"]; + UIView *viewback = [[UIView alloc] init]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(0); + make.height.offset(60); + make.centerX.equalTo(view); + make.width.offset(arrtop.count*f_width); + }]; + self.arrbtn = [NSMutableArray new]; + for(int i = 0 ; i < arrtop.count;i++) + { + UIButton *btitem = [[UIButton alloc] init]; + [btitem setTitle:arrtop[i] forState:UIControlStateNormal]; + [btitem setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btitem setTitleColor:RGBCOLOR(255, 154, 18) forState:UIControlStateSelected]; + [btitem.titleLabel setFont:[UIFont boldSystemFontOfSize:14]]; + [viewback addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(viewback); + make.left.offset(f_width*i); + make.width.offset(f_width); + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; + [self.arrbtn addObject:btitem]; + if(i==0) + { + [btitem setSelected:YES]; + self.btselect = btitem; + } + } +} +-(void)itemAction:(UIButton *)sender +{ + if(sender.tag==self.btselect.tag)return; + self.btselect.selected = NO; + sender.selected = YES; + self.btselect = sender; + /// + [self.scvback setContentOffset:CGPointMake(UISCREEN_WIDTH*sender.tag, 0) animated:YES]; +} +#pragma mark - UIScrollView +- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView +{ + NSInteger ipage = scrollView.contentOffset.x/UISCREEN_WIDTH; + if(ipage>self.arrbtn.count-1)ipage=self.arrbtn.count-1; + if(ipage<0)ipage=0; + self.btselect = self.arrbtn[ipage]; +} + +-(void)tuoluo +{ + CMMotionManager *motionManager = [[ CMMotionManager alloc ] init ]; + NSOperationQueue *queue = [[ NSOperationQueue alloc ] init ]; + if (motionManager.accelerometerAvailable) { + motionManager.accelerometerUpdateInterval = 0.5 ; + motionManager.gyroUpdateInterval = 0.5 ; + [motionManager startAccelerometerUpdatesToQueue:queue withHandler:^(CMAccelerometerData * _Nullable accelerometerData, NSError * _Nullable error) { + if (error) { + [motionManager stopAccelerometerUpdates]; + NSLog( @"error: %@" , error); + } + else { +// NSLog( @"x--> %.1f y--> %.1f" , +// accelerometerData.acceleration.x, +// accelerometerData.acceleration.y); + StartPZXZPageView *viewitem = self.arrView[self.btselect.tag]; + viewitem.yidongsize = CGSizeMake(accelerometerData.acceleration.x, accelerometerData.acceleration.y); + } + }]; + } + else { + NSLog( @"This device has no accelerometer" ); + } + _motionManager = motionManager; +} +-(void)stopMotion +{ + [self.motionManager stopAccelerometerUpdates]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/StartZNXZViewController.h b/ProductApp/ProductApp/ProductMain/引导/智能写作/StartZNXZViewController.h new file mode 100644 index 0000000..12af18c --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/StartZNXZViewController.h @@ -0,0 +1,16 @@ +// +// StartZNXZViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZNXZViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/StartZNXZViewController.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/StartZNXZViewController.m new file mode 100644 index 0000000..a615530 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/StartZNXZViewController.m @@ -0,0 +1,41 @@ +// +// StartZNXZViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZNXZViewController.h" +#import "StartZNXZView.h" + + +@interface StartZNXZViewController () + +@end + +@implementation StartZNXZViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + [self.navigationController setNavigationBarHidden:YES animated:NO]; + [self showNaviGationView:YES]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + + StartZNXZView *view = [[StartZNXZView alloc] init]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + +} + + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.h b/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.h new file mode 100644 index 0000000..97d3493 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.h @@ -0,0 +1,16 @@ +// +// StartZNXZView.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZNXZView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m new file mode 100644 index 0000000..70e62bd --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m @@ -0,0 +1,239 @@ +// +// StartZNXZView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZNXZView.h" +#import "StartZNXZKeysViewController.h" + +@interface StartZNXZView () +/// +@property (nonatomic , strong) UIButton *btselect; + +@end + +@implementation StartZNXZView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIImageView *imgvlog= [[UIImageView alloc] init]; + [imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]]; + [self addSubview:imgvlog]; + [imgvlog mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(50); + make.left.offset(14); + make.top.offset(KMagrinTop+22); + }]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:[NSString stringWithFormat:@"初一、智能写作"]]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(imgvlog.mas_right).offset(12); + make.centerY.equalTo(imgvlog); + }]; + + 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.top.equalTo(imgvlog.mas_bottom).offset(18); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + [self drawInfoView:viewback]; + + UIButton *btnext = [[UIButton alloc] init]; + [btnext setTitle:@"下一步" forState:UIControlStateNormal]; + [btnext setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btnext.titleLabel setFont:[UIFont systemFontOfSize:18]]; + [btnext.layer setMasksToBounds:YES]; + [btnext.layer setCornerRadius:25]; + [btnext setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [self addSubview:btnext]; + [btnext mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.height.offset(50); + make.bottom.equalTo(self).offset(-TabHeight-30); + }]; + [btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btlast = [[UIButton alloc] init]; + [btlast setTitle:@"上一步" forState:UIControlStateNormal]; + [btlast setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btlast.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [self addSubview:btlast]; + [btlast mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.height.equalTo(btnext); + make.top.equalTo(btnext.mas_bottom); + }]; + [btlast addTarget:self action:@selector(lastAction) forControlEvents:UIControlEventTouchUpInside]; + } + return self; +} + +-(void)drawInfoView:(UIView *)view +{ + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"作文标题"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont fontWithName:@"zihunbiantaoti" size:24]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(30); + make.top.offset(20); + }]; + + UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)]; + [imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]]; + [view addSubview:imgvico]; + [view sendSubviewToBack:imgvico]; + [imgvico mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(lbname); + make.bottom.equalTo(lbname).offset(4); + make.size.sizeOffset(CGSizeMake(84, 14)); + }]; + + UIButton *btref = [[UIButton alloc] init]; + [btref setTitle:@"换一批" forState:UIControlStateNormal]; + [btref setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btref.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [btref setImage:[UIImage imageNamed:@"yd_ref"] forState:UIControlStateNormal]; + [view addSubview:btref]; + [btref mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(lbname); + make.right.equalTo(view).offset(-10); + make.height.offset(30); + make.width.offset(80); + }]; + [btref addTarget:self action:@selector(refAction) forControlEvents:UIControlEventTouchUpInside]; + [btref setIconInLeftWithSpacing:2]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"这里有些初一学段,优秀的作文题目供你参考:"]; + [lbts setTextColor:RGBCOLOR(51, 51, 51)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:16]]; + [lbts setNumberOfLines:0]; + [view addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(view).offset(-20); + make.top.equalTo(lbname.mas_bottom).offset(15); + }]; + + UIView *viewitems= [[UIView alloc] init]; + [view addSubview:viewitems]; + [viewitems mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbts); + make.top.equalTo(lbts.mas_bottom).offset(15); + }]; + [self drawItemsVIew:viewitems]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewitems).offset(20); + }]; +} +-(void)drawItemsVIew:(UIView *)view +{ + NSArray *arrkey = @[@"我心目中的英雄",@"我的校园生活",@"我的家庭和亲人",@"我的理想和梦想",@"我经历的一件有趣的事",@"我喜欢的动物或植物"]; + float f_width = UISCREEN_WIDTH-75; + float ftop = 0; + float fleft = 0; + UIView *viewlast = nil; + for(int i = 0 ; i < arrkey.count; i++) + { + float f_w = [Tools getWidthWithText:arrkey[i] height:20 font:16]+32; + if((fleft+f_w)>f_width) + { + ftop+=46; + fleft = 0; + } + if(f_w>f_width)f_w = f_width; + UIView *viewitem = [[UIView alloc] init]; + [viewitem setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [view addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.offset(f_w); + make.height.offset(36); + make.top.offset(ftop); + make.left.offset(fleft); + }]; + [viewitem.layer setMasksToBounds:YES]; + [viewitem.layer setCornerRadius:18]; + viewlast = viewitem; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:arrkey[i]]; + [lbname setTextColor:RGBCOLOR(60, 60, 60)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont systemFontOfSize:16]]; + [viewitem addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(15); + make.right.equalTo(viewitem).offset(-15); + make.centerY.equalTo(viewitem); + }]; + [lbname setTag:1000]; + + UIButton *btitem = [[UIButton alloc] init]; + [viewitem addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewitem); + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; + if(i==0) + { + self.btselect = btitem; + [viewitem setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [lbname setTextColor:[UIColor whiteColor]]; + } + fleft+=f_w+10; + } + if(viewlast) + { + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewlast); + }]; + } +} +-(void)itemAction:(UIButton *)sender +{ + if(sender.tag == self.btselect.tag)return; + [self.btselect.superview setBackgroundColor:RGBCOLOR(240, 241, 254)]; + UILabel *lbs = [self.btselect.superview viewWithTag:1000]; + [lbs setTextColor:RGBCOLOR(60, 60, 60)]; + self.btselect = sender; + [self.btselect.superview setBackgroundColor:RGBCOLOR(108, 119, 246)]; + UILabel *lbst = [self.btselect.superview viewWithTag:1000]; + [lbst setTextColor:[UIColor whiteColor]]; + +} +-(void)refAction +{ + +} + +-(void)nextAction +{ + StartZNXZKeysViewController *vc = [StartZNXZKeysViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} +-(void)lastAction +{ + [self.viewController.navigationController popViewControllerAnimated:YES]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/StartZNXZKeysViewController.h b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/StartZNXZKeysViewController.h new file mode 100644 index 0000000..44102c7 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/StartZNXZKeysViewController.h @@ -0,0 +1,16 @@ +// +// StartZNXZKeysViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZNXZKeysViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/StartZNXZKeysViewController.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/StartZNXZKeysViewController.m new file mode 100644 index 0000000..8368f95 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/StartZNXZKeysViewController.m @@ -0,0 +1,41 @@ +// +// StartZNXZKeysViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZNXZKeysViewController.h" +#import "StartZNXZKeysView.h" + + +@interface StartZNXZKeysViewController () + +@end + +@implementation StartZNXZKeysViewController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + [self.navigationController setNavigationBarHidden:YES animated:NO]; + [self showNaviGationView:YES]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + + StartZNXZKeysView *view = [[StartZNXZKeysView alloc] init]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.h b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.h new file mode 100644 index 0000000..a932083 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.h @@ -0,0 +1,16 @@ +// +// StartZNXZKeysView.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZNXZKeysView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m new file mode 100644 index 0000000..2e7ca5f --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m @@ -0,0 +1,389 @@ +// +// StartZNXZKeysView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZNXZKeysView.h" +#import "StartZNXZSiLuViewController.h" + +@interface StartZNXZKeysView () +/// +@property (nonatomic , strong) UIView *viewselect; + +/// +@property (nonatomic , strong) NSMutableArray *arrSelect; + +@end + +@implementation StartZNXZKeysView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIImageView *imgvlog= [[UIImageView alloc] init]; + [imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]]; + [self addSubview:imgvlog]; + [imgvlog mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(50); + make.left.offset(14); + make.top.offset(KMagrinTop+22); + }]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:[NSString stringWithFormat:@"初一、智能写作、我心目中的英雄、热爱祖国"]]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setNumberOfLines:2]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(imgvlog.mas_right).offset(12); + make.right.equalTo(self).offset(-14); + make.top.equalTo(imgvlog.mas_centerY).offset(-8); + }]; + + UIView *viewback = [[UIView alloc] init]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.top.equalTo(imgvlog.mas_bottom).offset(18); + make.bottom.equalTo(self).offset(-TabHeight-90); + }]; + [self drawInfoView:viewback]; + + UIButton *btnext = [[UIButton alloc] init]; + [btnext setTitle:@"下一步" forState:UIControlStateNormal]; + [btnext setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btnext.titleLabel setFont:[UIFont systemFontOfSize:18]]; + [btnext.layer setMasksToBounds:YES]; + [btnext.layer setCornerRadius:25]; + [btnext setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [self addSubview:btnext]; + [btnext mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.height.offset(50); + make.bottom.equalTo(self).offset(-TabHeight-30); + }]; + [btnext addTarget:self action:@selector(nextAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btlast = [[UIButton alloc] init]; + [btlast setTitle:@"上一步" forState:UIControlStateNormal]; + [btlast setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btlast.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [self addSubview:btlast]; + [btlast mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.height.equalTo(btnext); + make.top.equalTo(btnext.mas_bottom); + }]; + [btlast addTarget:self action:@selector(lastAction) forControlEvents:UIControlEventTouchUpInside]; + } + return self; +} +-(void)drawInfoView:(UIView *)view +{ + UIScrollView *scvback = [[UIScrollView alloc] init]; + [view addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.width.height.equalTo(view); + }]; + UIView *viewjl = [[UIView alloc] init]; + [viewjl.layer setMasksToBounds:YES]; + [viewjl.layer setCornerRadius:20]; + [viewjl setBackgroundColor:[UIColor whiteColor]]; + [scvback addSubview:viewjl]; + [viewjl mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.width.equalTo(scvback); + }]; + + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"写作要求"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont fontWithName:@"zihunbiantaoti" size:24]]; + [viewjl addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(30); + make.top.offset(20); + }]; + + UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)]; + [imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]]; + [viewjl addSubview:imgvico]; + [viewjl sendSubviewToBack:imgvico]; + [imgvico mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(lbname); + make.bottom.equalTo(lbname).offset(4); + make.size.sizeOffset(CGSizeMake(84, 14)); + }]; + + UIButton *btref = [[UIButton alloc] init]; + [btref setTitle:@"换一批" forState:UIControlStateNormal]; + [btref setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btref.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [btref setImage:[UIImage imageNamed:@"yd_ref"] forState:UIControlStateNormal]; + [viewjl addSubview:btref]; + [btref mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(lbname); + make.right.equalTo(viewjl).offset(-10); + make.height.offset(30); + make.width.offset(80); + }]; + [btref addTarget:self action:@selector(refAction) forControlEvents:UIControlEventTouchUpInside]; + [btref setIconInLeftWithSpacing:2]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"根据你的作文题目,有以下写作要求供你参考:"]; + [lbts setTextColor:RGBCOLOR(51, 51, 51)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:16]]; + [lbts setNumberOfLines:0]; + [viewjl addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(viewjl).offset(-20); + make.top.equalTo(lbname.mas_bottom).offset(15); + }]; + + UIView *viewitems= [[UIView alloc] init]; + [viewjl addSubview:viewitems]; + [viewitems mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(lbts); + make.top.equalTo(lbts.mas_bottom).offset(15); + }]; + [self drawItemsVIew:viewitems]; + + + UIView *viewselect = [[UIView alloc] init]; + [viewjl addSubview:viewselect]; + [viewselect mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewjl); + make.top.equalTo(viewitems.mas_bottom); + make.height.offset(0); + }]; + _viewselect = viewselect; + + [viewjl mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewselect).offset(20); + }]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewjl).offset(10); + }]; +} + +-(void)drawItemsVIew:(UIView *)view +{ + NSArray *arrkey = @[@"热爱祖国",@"最求卓业",@"勇气",@"领导力",@"智慧",@"坚韧不拔"]; + float f_width = UISCREEN_WIDTH-75; + float ftop = 0; + float fleft = 0; + UIView *viewlast = nil; + for(int i = 0 ; i < arrkey.count; i++) + { + float f_w = [Tools getWidthWithText:arrkey[i] height:20 font:16]+32; + if((fleft+f_w)>f_width) + { + ftop+=46; + fleft = 0; + } + if(f_w>f_width)f_w = f_width; + UIView *viewitem = [[UIView alloc] init]; + [viewitem setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [view addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.offset(f_w); + make.height.offset(36); + make.top.offset(ftop); + make.left.offset(fleft); + }]; + [viewitem.layer setMasksToBounds:YES]; + [viewitem.layer setCornerRadius:18]; + viewlast = viewitem; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:arrkey[i]]; + [lbname setTextColor:RGBCOLOR(60, 60, 60)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont systemFontOfSize:16]]; + [viewitem addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(15); + make.right.equalTo(viewitem).offset(-15); + make.centerY.equalTo(viewitem); + }]; + [lbname setTag:1000]; + + UIButton *btitem = [[UIButton alloc] init]; + [viewitem addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewitem); + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; + fleft+=f_w+10; + } + if(viewlast) + { + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewlast); + }]; + } +} +-(void)drawSelectView +{ + for(UIView *view in self.viewselect.subviews) + { + [view removeFromSuperview]; + } + + UIImageView *imgvback = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 2)]; + [self.viewselect addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(self.viewselect); + make.top.offset(15); + make.height.offset(2); + }]; + dispatch_async(dispatch_get_global_queue(0, 0), ^{ + UIImage *image = [Tools drawLineImageSize:CGSizeMake(UISCREEN_WIDTH-40, 2) line_W:4 line_H:2 color:RGBCOLOR(238, 238, 238)]; + dispatch_async(dispatch_get_main_queue(), ^{ + imgvback.image = image; + }); + }); + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"已选要求:"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:16]]; + [self.viewselect addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(18); + make.top.equalTo(imgvback.mas_bottom).offset(15); + }]; + + + float f_width = UISCREEN_WIDTH-86; + + float ftop = 67; + float fleft = 18; + UIView *viewlast = nil; + for(int i = 0 ; i < self.arrSelect.count; i++) + { + float f_w = [Tools getWidthWithText:self.arrSelect[i] height:20 font:14]+49; + if((fleft+f_w)>f_width) + { + ftop+=40; + fleft = 18; + } + if(f_w>f_width)f_w = f_width; + UIView *viewitem = [[UIView alloc] init]; + [viewitem setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [self.viewselect addSubview:viewitem]; + [viewitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.offset(f_w); + make.height.offset(30); + make.top.offset(ftop); + make.left.offset(fleft); + }]; + [viewitem.layer setMasksToBounds:YES]; + [viewitem.layer setCornerRadius:15]; + [viewitem.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor]; + [viewitem.layer setBorderWidth:1]; + viewlast = viewitem; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:self.arrSelect[i]]; + [lbname setTextColor:RGBCOLOR(108, 119, 246)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:14]]; + [viewitem addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(15); + make.right.equalTo(viewitem).offset(-32); + make.centerY.equalTo(viewitem); + }]; + + UIButton *btdel = [[UIButton alloc] init]; + [btdel setImage:[UIImage imageNamed:@"yd_x"] forState:UIControlStateNormal]; + [viewitem addSubview:btdel]; + [btdel mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(viewitem); + make.width.offset(30); + make.right.equalTo(viewitem).offset(-2); + }]; + [btdel setTag:i]; + [btdel addTarget:self action:@selector(delAction:) forControlEvents:UIControlEventTouchUpInside]; + fleft+=f_w+10; + } + + if(viewlast) + { + [self.viewselect setHidden:NO]; + [self.viewselect mas_updateConstraints:^(MASConstraintMaker *make) { + make.height.offset(ftop+50); + }]; + } + else + { + [self.viewselect setHidden:YES]; + [self.viewselect mas_updateConstraints:^(MASConstraintMaker *make) { + make.height.offset(0); + }]; + } + +} + +-(void)itemAction:(UIButton *)sender +{ + [sender.superview setBackgroundColor:RGBCOLOR(108, 119, 246)]; + UILabel *lbst = [sender.superview viewWithTag:1000]; + [lbst setTextColor:[UIColor whiteColor]]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [sender.superview setBackgroundColor:RGBCOLOR(240, 241, 254)]; + [lbst setTextColor:RGBCOLOR(60, 60, 60)]; + }); + if(!self.arrSelect) + { + self.arrSelect = [NSMutableArray new]; + } + if(![self.arrSelect containsObject:lbst.text]) + { + if(self.arrSelect.count>=3) + { + [HXHud showMessage:@"最多添加3个关键词" afterDelayType:0]; + return; + } + [self.arrSelect addObject:lbst.text]; + [self drawSelectView]; + } + else + { + [HXHud showMessage:@"请勿添加重复数据" afterDelayType:0]; + } +} +-(void)delAction:(UIButton *)sender +{ + [self.arrSelect removeObjectAtIndex:sender.tag]; + [self drawSelectView]; +} +-(void)refAction +{ + +} + +-(void)nextAction +{ + StartZNXZSiLuViewController *vc = [StartZNXZSiLuViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; +} +-(void)lastAction +{ + [self.viewController.navigationController popViewControllerAnimated:YES]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/StartZNXZSiLuViewController.h b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/StartZNXZSiLuViewController.h new file mode 100644 index 0000000..7fbec3c --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/StartZNXZSiLuViewController.h @@ -0,0 +1,16 @@ +// +// StartZNXZSiLuViewController.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZNXZSiLuViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/StartZNXZSiLuViewController.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/StartZNXZSiLuViewController.m new file mode 100644 index 0000000..b422c72 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/StartZNXZSiLuViewController.m @@ -0,0 +1,41 @@ +// +// StartZNXZSiLuViewController.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZNXZSiLuViewController.h" +#import "StartZNXZSiLuView.h" + + +@interface StartZNXZSiLuViewController () + +@end + +@implementation StartZNXZSiLuViewController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} + +- (void)viewDidLoad { + [super viewDidLoad]; + [self.navigationController setNavigationBarHidden:YES animated:NO]; + [self showNaviGationView:YES]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"yd_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + + StartZNXZSiLuView *view = [[StartZNXZSiLuView alloc] init]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self.view); + }]; + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.h b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.h new file mode 100644 index 0000000..c0ba8cc --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.h @@ -0,0 +1,16 @@ +// +// StartZNXZSiLuView.h +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface StartZNXZSiLuView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m new file mode 100644 index 0000000..36ef498 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m @@ -0,0 +1,305 @@ +// +// StartZNXZSiLuView.m +// ProductApp +// +// Created by 工作 on 2024/9/23. +// + +#import "StartZNXZSiLuView.h" + +typedef void(^StartZNXZSiLuViewDrawEndBack)(UIView *viewlast); +@interface StartZNXZSiLuView () +/// +@property (nonatomic , strong) UIView *viewback; +/// +@property (nonatomic , strong) UIScrollView *scvback; +@property (nonatomic , assign) BOOL isDragging; + +/// +@property (nonatomic , strong) MASConstraint *scrollBottom; + +@property (nonatomic , assign) BOOL isdrawEnd; + +@end + +@implementation StartZNXZSiLuView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIImageView *imgvlog= [[UIImageView alloc] init]; + [imgvlog setImage:[UIImage imageNamed:@"yd_ailog"]]; + [self addSubview:imgvlog]; + [imgvlog mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(50); + make.left.offset(14); + make.top.offset(KMagrinTop+22); + }]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:[NSString stringWithFormat:@"初一、智能写作、我心目中的英雄、热爱祖国"]]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setNumberOfLines:2]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [self addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(imgvlog.mas_right).offset(12); + make.right.equalTo(self).offset(-14); + make.top.equalTo(imgvlog.mas_centerY).offset(-8); + }]; + + 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.top.equalTo(imgvlog.mas_bottom).offset(18); + make.height.offset(UISCREEN_HEIGHT-TabHeight-KMagrinTop-140); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + _viewback = viewback; + [self drawInfoView:viewback]; + + UIView *viewbottom = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, TabHeight+40)]; + [viewbottom setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewbottom]; + [viewbottom mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self); + make.height.offset(TabHeight+40); + }]; + [self drawBottomView:viewbottom]; + UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewbottom.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)]; + //创建 layer + CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init]; + maskLayer.frame = viewbottom.bounds; + //赋值 + maskLayer.path = maskPath.CGPath; + viewbottom.layer.mask = maskLayer; + + } + return self; +} +-(void)drawBottomView:(UIView *)view +{ + 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:20]; + [btchange.layer setBorderWidth:1]; + [btchange.layer setBorderColor:RGBCOLOR(108, 119, 246).CGColor]; + [view addSubview:btchange]; + [btchange mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(30); + make.top.offset(20); + make.height.offset(40); + make.width.offset(120); + }]; + [btchange setTag:0]; + [btchange addTarget:self action:@selector(bottomAction:) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btcreate = [[UIButton alloc] init]; + [btcreate setTitle:@"思路成文" forState:UIControlStateNormal]; + [btcreate setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btcreate.titleLabel setFont:[UIFont boldSystemFontOfSize:18]]; + [btcreate.layer setMasksToBounds:YES]; + [btcreate.layer setCornerRadius:20]; + [btcreate setBackgroundColor:RGBCOLOR(108, 119, 246)]; + [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]; +} +-(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(17); + 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:(UIView *)view +{ + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [view addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(view); + make.height.equalTo(view); + }]; + [scvback setDelegate:self]; + _scvback = scvback; + + + [self startDraw:@[@{@"title":@"题材",@"values":@[@""]}, + @{@"title":@"开头",@"values":@[@""]}, + @{@"title":@"中间",@"values":@[@"",@"",@""]}, + @{@"title":@"结尾",@"values":@[@""]}] tag:0 lastValue:nil]; +} + +-(void)startDraw:(NSArray *)arrtemp tag:(int)tag lastValue:(UIView *)lastValue +{ + NSDictionary *dic = arrtemp[tag]; + [self drawSubItemsView:self.scvback title:[dic objectForKey:@"title"] values:[dic objectForKey:@"values"] lastview:lastValue back:^(UIView *viewlast) { + if(tag0) + { + [self.scvback setContentOffset:CGPointMake(0, self.scvback.contentSize.height-self.scvback.height) animated:NO]; + } + } + }]; + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbwz).offset(10); + }]; +} + + +-(void)bottomAction:(UIButton *)sender +{ + if(self.isdrawEnd==NO) + { + [HXHud showMessage:@"请等待写作思路完成" afterDelayType:0]; + return; + } + if(sender.tag==0) + { + self.isdrawEnd = NO; + [self.scvback removeFromSuperview]; + self.scvback = nil; + self.scrollBottom = nil; + [self drawInfoView:self.viewback]; + } + else + {///(45*1.028+7)*x 53 61 69 77 86 95 104 113 123 133 143 154 165 176 + ///3 1 1 + + } + +} +#pragma mark - UIScrollView +- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView +{ + self.isDragging = YES; +} +- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate +{ + self.isDragging = NO; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m index 2de572e..41aa7a7 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m @@ -31,7 +31,7 @@ [self.view addSubview:view]; [view mas_makeConstraints:^(MASConstraintMaker *make) { make.left.right.bottom.equalTo(self.view); - make.top.offset(0); + make.top.offset(NavHeight); }]; } diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.h b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.h index 053cc17..5f1cbec 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.h +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.h @@ -10,6 +10,8 @@ NS_ASSUME_NONNULL_BEGIN typedef void(^StartKTXZPGDetailTabViewBack)(NSInteger tag); @interface StartKTXZPGDetailTabView : UIView +/// +@property (nonatomic , strong) NSArray *arrTitle; @property (nonatomic , assign) int selecttag; /// @property (nonatomic , strong) StartKTXZPGDetailTabViewBack backSelect; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m index 26e28bd..cf6bf23 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m @@ -23,45 +23,52 @@ { if(self = [super initWithFrame:frame]) { - self.arrbtn = [NSMutableArray new]; - float f_width = UISCREEN_WIDTH/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(109, 109, 109) forState:UIControlStateNormal]; - [btitem setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateSelected]; - [btitem.titleLabel setFont:[UIFont systemFontOfSize:14]]; - [self addSubview:btitem]; - [btitem mas_makeConstraints:^(MASConstraintMaker *make) { - make.top.bottom.equalTo(self); - make.left.offset(f_width*i); - make.width.offset(f_width); - }]; - [btitem setTag:i]; - [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; - [self.arrbtn addObject:btitem]; - if(i==0) - { - self.btselect = btitem; - [self.btselect setSelected:YES]; - [btitem.titleLabel setFont:[UIFont systemFontOfSize:18]]; - } - } - UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)]; - [imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]]; - [self addSubview:imgvico]; - [self sendSubviewToBack:imgvico]; - _imgvico = imgvico; - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ - [imgvico setCenterX:self.btselect.centerX]; - imgvico.centerY = self.btselect.centerY+5; - }); } return self; } +-(void)setArrTitle:(NSArray *)arrTitle +{ + if(arrTitle.count==0)return; + _arrTitle = arrTitle; + + self.arrbtn = [NSMutableArray new]; + float f_width = UISCREEN_WIDTH/arrTitle.count; + NSArray *arr = arrTitle; + for(int i = 0 ; i < arr.count; i++) + { + UIButton *btitem = [[UIButton alloc] init]; + [btitem setTitle:arr[i] forState:UIControlStateNormal]; + [btitem setTitleColor:RGBCOLOR(109, 109, 109) forState:UIControlStateNormal]; + [btitem setTitleColor:RGBCOLOR(61, 61, 61) forState:UIControlStateSelected]; + [btitem.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [self addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(self); + make.left.offset(f_width*i); + make.width.offset(f_width); + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; + [self.arrbtn addObject:btitem]; + if(i==0) + { + self.btselect = btitem; + [self.btselect setSelected:YES]; + [btitem.titleLabel setFont:[UIFont systemFontOfSize:18]]; + } + } + + UIImageView *imgvico = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 84, 14)]; + [imgvico setImage:[UIImage imageNamed:@"yd_pg_hd"]]; + [self addSubview:imgvico]; + [self sendSubviewToBack:imgvico]; + _imgvico = imgvico; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [imgvico setCenterX:self.btselect.centerX]; + imgvico.centerY = self.btselect.centerY+5; + }); +} -(void)itemAction:(UIButton *)sender { if(sender.tag==self.btselect.tag)return; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m index 1780bde..8cee7d4 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m @@ -21,6 +21,11 @@ /// @property (nonatomic , strong) UIScrollView *scvbackinfo; +/// +@property (nonatomic , strong) StartKTXZPGDetailFJView *viewfj; +/// +@property (nonatomic , strong) StartKTXZPGDetailXZView *viewxz; + @end @implementation StartKTXZPGDetailView @@ -49,7 +54,7 @@ make.bottom.equalTo(imgvback).offset(20); }]; - UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.3, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.7-TabHeight-20)]; + UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.2, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.8-TabHeight-20-NavHeight)]; [viewback setBackgroundColor:[UIColor whiteColor]]; [self addSubview:viewback]; UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: viewback.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(20,20)]; @@ -76,6 +81,14 @@ } -(void)drawBottomView:(UIView *)view { + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(217, 217, 217)]; + [self addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(view); + make.height.offset(1); + }]; + UIButton *btpigai = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 44)]; [btpigai setTitle:@"立即体验正式功能" forState:UIControlStateNormal]; [btpigai setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; @@ -124,12 +137,14 @@ make.top.offset(30); make.height.offset(40); }]; + viewtop.arrTitle = @[@"综合评价",@"分句点评",@"写作思路"]; [viewtop setBackSelect:^(NSInteger tag) { [self.scvbackinfo setContentOffset:CGPointMake(UISCREEN_WIDTH*tag, 0)]; + [self showVC:tag]; }]; _viewtop = viewtop; - UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 70, UISCREEN_WIDTH, view.height-70)]; + UIScrollView *scvback = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, UISCREEN_WIDTH, view.height-80)]; [scvback setPagingEnabled:YES]; [scvback setShowsHorizontalScrollIndicator:NO]; [view addSubview:scvback]; @@ -145,23 +160,6 @@ make.top.offset(0); make.width.height.equalTo(scvback); }]; - - StartKTXZPGDetailFJView *viewfj = [StartKTXZPGDetailFJView new]; - [scvback addSubview:viewfj]; - [viewfj mas_makeConstraints:^(MASConstraintMaker *make) { - make.left.offset(UISCREEN_WIDTH); - make.top.offset(0); - make.width.height.equalTo(scvback); - }]; - - StartKTXZPGDetailXZView *viewxz = [StartKTXZPGDetailXZView new]; - [scvback addSubview:viewxz]; - [viewxz mas_makeConstraints:^(MASConstraintMaker *make) { - make.left.offset(UISCREEN_WIDTH*2); - make.top.offset(0); - make.width.height.equalTo(scvback); - }]; - /// } - (void)panGestureAction:(UIPanGestureRecognizer *)pan @@ -174,9 +172,9 @@ { self.viewback.top=fmax; } - else if(self.viewback.top+transP.y