diff --git a/ProductApp/ProductApp.xcodeproj/project.pbxproj b/ProductApp/ProductApp.xcodeproj/project.pbxproj index b0cc1c2..72fb2c6 100644 --- a/ProductApp/ProductApp.xcodeproj/project.pbxproj +++ b/ProductApp/ProductApp.xcodeproj/project.pbxproj @@ -182,6 +182,23 @@ 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 */; }; + CABD8C752CBF61BB009A5E5E /* GongJuCreateSuperView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C742CBF61BB009A5E5E /* GongJuCreateSuperView.m */; }; + CABD8C792CBF6AC4009A5E5E /* GongJuCreateResultViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C782CBF6AC4009A5E5E /* GongJuCreateResultViewController.m */; }; + CABD8C7D2CBF6B6D009A5E5E /* GongJuCreateResultView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C7C2CBF6B6D009A5E5E /* GongJuCreateResultView.m */; }; + CABD8C812CBF6FFB009A5E5E /* GongJuTextViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C802CBF6FFB009A5E5E /* GongJuTextViewController.m */; }; + CABD8C852CBF72A7009A5E5E /* GongJuTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C842CBF72A7009A5E5E /* GongJuTextView.m */; }; + CABD8C892CBF9198009A5E5E /* GongJuWenBenViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C882CBF9198009A5E5E /* GongJuWenBenViewController.m */; }; + CABD8C8D2CBF91B0009A5E5E /* GongJuWenBenView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C8C2CBF91B0009A5E5E /* GongJuWenBenView.m */; }; + CABD8C912CBF9741009A5E5E /* GongJuFanYiViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C902CBF9741009A5E5E /* GongJuFanYiViewController.m */; }; + CABD8C952CBF974E009A5E5E /* GongJuFanYiView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C942CBF974E009A5E5E /* GongJuFanYiView.m */; }; + CABD8C982CBF9D26009A5E5E /* LanguageKeyModel.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C972CBF9D26009A5E5E /* LanguageKeyModel.m */; }; + CABD8C9B2CBF9ED2009A5E5E /* LanguageSelectAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C9A2CBF9ED2009A5E5E /* LanguageSelectAlterView.m */; }; + CABD8C9F2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8C9E2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.m */; }; + CABD8CA32CBFA787009A5E5E /* GongJuImageToTextViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8CA22CBFA787009A5E5E /* GongJuImageToTextViewController.m */; }; + CABD8CA72CBFA7A3009A5E5E /* GongJuImageToTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8CA62CBFA7A3009A5E5E /* GongJuImageToTextView.m */; }; + CABD8CAB2CBFB39F009A5E5E /* GongJuMinGanCiController.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8CAA2CBFB39F009A5E5E /* GongJuMinGanCiController.m */; }; + CABD8CAF2CBFB3B3009A5E5E /* GongJuMinGanCiView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8CAE2CBFB3B3009A5E5E /* GongJuMinGanCiView.m */; }; + CABD8CB22CBFB6CC009A5E5E /* PauseAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CABD8CB12CBFB6CC009A5E5E /* PauseAlterView.m */; }; 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 */; }; @@ -716,6 +733,40 @@ 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 = ""; }; + CABD8C732CBF61BB009A5E5E /* GongJuCreateSuperView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuCreateSuperView.h; sourceTree = ""; }; + CABD8C742CBF61BB009A5E5E /* GongJuCreateSuperView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuCreateSuperView.m; sourceTree = ""; }; + CABD8C772CBF6AC4009A5E5E /* GongJuCreateResultViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuCreateResultViewController.h; sourceTree = ""; }; + CABD8C782CBF6AC4009A5E5E /* GongJuCreateResultViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuCreateResultViewController.m; sourceTree = ""; }; + CABD8C7B2CBF6B6D009A5E5E /* GongJuCreateResultView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuCreateResultView.h; sourceTree = ""; }; + CABD8C7C2CBF6B6D009A5E5E /* GongJuCreateResultView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuCreateResultView.m; sourceTree = ""; }; + CABD8C7F2CBF6FFB009A5E5E /* GongJuTextViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuTextViewController.h; sourceTree = ""; }; + CABD8C802CBF6FFB009A5E5E /* GongJuTextViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuTextViewController.m; sourceTree = ""; }; + CABD8C832CBF72A7009A5E5E /* GongJuTextView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuTextView.h; sourceTree = ""; }; + CABD8C842CBF72A7009A5E5E /* GongJuTextView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuTextView.m; sourceTree = ""; }; + CABD8C872CBF9198009A5E5E /* GongJuWenBenViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuWenBenViewController.h; sourceTree = ""; }; + CABD8C882CBF9198009A5E5E /* GongJuWenBenViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuWenBenViewController.m; sourceTree = ""; }; + CABD8C8B2CBF91B0009A5E5E /* GongJuWenBenView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuWenBenView.h; sourceTree = ""; }; + CABD8C8C2CBF91B0009A5E5E /* GongJuWenBenView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuWenBenView.m; sourceTree = ""; }; + CABD8C8F2CBF9741009A5E5E /* GongJuFanYiViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuFanYiViewController.h; sourceTree = ""; }; + CABD8C902CBF9741009A5E5E /* GongJuFanYiViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuFanYiViewController.m; sourceTree = ""; }; + CABD8C932CBF974E009A5E5E /* GongJuFanYiView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuFanYiView.h; sourceTree = ""; }; + CABD8C942CBF974E009A5E5E /* GongJuFanYiView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuFanYiView.m; sourceTree = ""; }; + CABD8C962CBF9D26009A5E5E /* LanguageKeyModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LanguageKeyModel.h; sourceTree = ""; }; + CABD8C972CBF9D26009A5E5E /* LanguageKeyModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LanguageKeyModel.m; sourceTree = ""; }; + CABD8C992CBF9ED2009A5E5E /* LanguageSelectAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LanguageSelectAlterView.h; sourceTree = ""; }; + CABD8C9A2CBF9ED2009A5E5E /* LanguageSelectAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LanguageSelectAlterView.m; sourceTree = ""; }; + CABD8C9D2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LanguageSelectAlterTableViewCell.h; sourceTree = ""; }; + CABD8C9E2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LanguageSelectAlterTableViewCell.m; sourceTree = ""; }; + CABD8CA12CBFA787009A5E5E /* GongJuImageToTextViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuImageToTextViewController.h; sourceTree = ""; }; + CABD8CA22CBFA787009A5E5E /* GongJuImageToTextViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuImageToTextViewController.m; sourceTree = ""; }; + CABD8CA52CBFA7A3009A5E5E /* GongJuImageToTextView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuImageToTextView.h; sourceTree = ""; }; + CABD8CA62CBFA7A3009A5E5E /* GongJuImageToTextView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuImageToTextView.m; sourceTree = ""; }; + CABD8CA92CBFB39F009A5E5E /* GongJuMinGanCiController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuMinGanCiController.h; sourceTree = ""; }; + CABD8CAA2CBFB39F009A5E5E /* GongJuMinGanCiController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuMinGanCiController.m; sourceTree = ""; }; + CABD8CAD2CBFB3B3009A5E5E /* GongJuMinGanCiView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GongJuMinGanCiView.h; sourceTree = ""; }; + CABD8CAE2CBFB3B3009A5E5E /* GongJuMinGanCiView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GongJuMinGanCiView.m; sourceTree = ""; }; + CABD8CB02CBFB6CC009A5E5E /* PauseAlterView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PauseAlterView.h; sourceTree = ""; }; + CABD8CB12CBFB6CC009A5E5E /* PauseAlterView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PauseAlterView.m; 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 = ""; }; @@ -1519,6 +1570,8 @@ CA11ED6D2CA6945800209DFC /* view */, CA11ED6A2CA6925D00209DFC /* KaiTongAlterView.h */, CA11ED6B2CA6925D00209DFC /* KaiTongAlterView.m */, + CABD8CB02CBFB6CC009A5E5E /* PauseAlterView.h */, + CABD8CB12CBFB6CC009A5E5E /* PauseAlterView.m */, ); path = alter; sourceTree = ""; @@ -2075,6 +2128,11 @@ CABA145D2C9D0B06002CB3B1 /* 工具 */ = { isa = PBXGroup; children = ( + CABD8CA82CBFB38E009A5E5E /* 敏感词 */, + CABD8CA02CBFA6DE009A5E5E /* 图文转换 */, + CABD8C8E2CBF9733009A5E5E /* 智能翻译 */, + CABD8C862CBF90E3009A5E5E /* 文本比较 */, + CABD8C7E2CBF6FE2009A5E5E /* 文本工具 */, CAF76E802CBE5D5200825E5E /* 通用工具 */, CAF76E742CBE512600825E5E /* 搜索 */, CAF76E702CBE37BC00825E5E /* cell */, @@ -2245,6 +2303,8 @@ CAF76E682CBE0A1C00825E5E /* ToolsTypeModel.m */, CAF76E6A2CBE0BAA00825E5E /* ToolsListModel.h */, CAF76E6B2CBE0BAA00825E5E /* ToolsListModel.m */, + CABD8C962CBF9D26009A5E5E /* LanguageKeyModel.h */, + CABD8C972CBF9D26009A5E5E /* LanguageKeyModel.m */, ); path = models; sourceTree = ""; @@ -2273,6 +2333,141 @@ path = view; sourceTree = ""; }; + CABD8C722CBF61A3009A5E5E /* superItemView */ = { + isa = PBXGroup; + children = ( + CABD8C732CBF61BB009A5E5E /* GongJuCreateSuperView.h */, + CABD8C742CBF61BB009A5E5E /* GongJuCreateSuperView.m */, + ); + path = superItemView; + sourceTree = ""; + }; + CABD8C762CBF6AA0009A5E5E /* 结果 */ = { + isa = PBXGroup; + children = ( + CABD8C7A2CBF6B61009A5E5E /* view */, + CABD8C772CBF6AC4009A5E5E /* GongJuCreateResultViewController.h */, + CABD8C782CBF6AC4009A5E5E /* GongJuCreateResultViewController.m */, + ); + path = "结果"; + sourceTree = ""; + }; + CABD8C7A2CBF6B61009A5E5E /* view */ = { + isa = PBXGroup; + children = ( + CABD8C7B2CBF6B6D009A5E5E /* GongJuCreateResultView.h */, + CABD8C7C2CBF6B6D009A5E5E /* GongJuCreateResultView.m */, + ); + path = view; + sourceTree = ""; + }; + CABD8C7E2CBF6FE2009A5E5E /* 文本工具 */ = { + isa = PBXGroup; + children = ( + CABD8C822CBF729A009A5E5E /* view */, + CABD8C7F2CBF6FFB009A5E5E /* GongJuTextViewController.h */, + CABD8C802CBF6FFB009A5E5E /* GongJuTextViewController.m */, + ); + path = "文本工具"; + sourceTree = ""; + }; + CABD8C822CBF729A009A5E5E /* view */ = { + isa = PBXGroup; + children = ( + CABD8C832CBF72A7009A5E5E /* GongJuTextView.h */, + CABD8C842CBF72A7009A5E5E /* GongJuTextView.m */, + ); + path = view; + sourceTree = ""; + }; + CABD8C862CBF90E3009A5E5E /* 文本比较 */ = { + isa = PBXGroup; + children = ( + CABD8C8A2CBF919D009A5E5E /* view */, + CABD8C872CBF9198009A5E5E /* GongJuWenBenViewController.h */, + CABD8C882CBF9198009A5E5E /* GongJuWenBenViewController.m */, + ); + path = "文本比较"; + sourceTree = ""; + }; + CABD8C8A2CBF919D009A5E5E /* view */ = { + isa = PBXGroup; + children = ( + CABD8C8B2CBF91B0009A5E5E /* GongJuWenBenView.h */, + CABD8C8C2CBF91B0009A5E5E /* GongJuWenBenView.m */, + ); + path = view; + sourceTree = ""; + }; + CABD8C8E2CBF9733009A5E5E /* 智能翻译 */ = { + isa = PBXGroup; + children = ( + CABD8C9C2CBFA118009A5E5E /* cell */, + CABD8C922CBF9744009A5E5E /* view */, + CABD8C8F2CBF9741009A5E5E /* GongJuFanYiViewController.h */, + CABD8C902CBF9741009A5E5E /* GongJuFanYiViewController.m */, + ); + path = "智能翻译"; + sourceTree = ""; + }; + CABD8C922CBF9744009A5E5E /* view */ = { + isa = PBXGroup; + children = ( + CABD8C932CBF974E009A5E5E /* GongJuFanYiView.h */, + CABD8C942CBF974E009A5E5E /* GongJuFanYiView.m */, + CABD8C992CBF9ED2009A5E5E /* LanguageSelectAlterView.h */, + CABD8C9A2CBF9ED2009A5E5E /* LanguageSelectAlterView.m */, + ); + path = view; + sourceTree = ""; + }; + CABD8C9C2CBFA118009A5E5E /* cell */ = { + isa = PBXGroup; + children = ( + CABD8C9D2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.h */, + CABD8C9E2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.m */, + ); + path = cell; + sourceTree = ""; + }; + CABD8CA02CBFA6DE009A5E5E /* 图文转换 */ = { + isa = PBXGroup; + children = ( + CABD8CA42CBFA78C009A5E5E /* view */, + CABD8CA12CBFA787009A5E5E /* GongJuImageToTextViewController.h */, + CABD8CA22CBFA787009A5E5E /* GongJuImageToTextViewController.m */, + ); + path = "图文转换"; + sourceTree = ""; + }; + CABD8CA42CBFA78C009A5E5E /* view */ = { + isa = PBXGroup; + children = ( + CABD8CA52CBFA7A3009A5E5E /* GongJuImageToTextView.h */, + CABD8CA62CBFA7A3009A5E5E /* GongJuImageToTextView.m */, + ); + path = view; + sourceTree = ""; + }; + CABD8CA82CBFB38E009A5E5E /* 敏感词 */ = { + isa = PBXGroup; + children = ( + CABD8CAC2CBFB3A2009A5E5E /* view */, + CABD8CA92CBFB39F009A5E5E /* GongJuMinGanCiController.h */, + CABD8CAA2CBFB39F009A5E5E /* GongJuMinGanCiController.m */, + ); + path = "敏感词"; + sourceTree = ""; + }; + CABD8CAC2CBFB3A2009A5E5E /* view */ = { + isa = PBXGroup; + children = ( + CABD8CAD2CBFB3B3009A5E5E /* GongJuMinGanCiView.h */, + CABD8CAE2CBFB3B3009A5E5E /* GongJuMinGanCiView.m */, + ); + path = view; + sourceTree = ""; + }; CAC8063B2CA10AEB00C21AA7 /* 作文批改 */ = { isa = PBXGroup; children = ( @@ -2444,6 +2639,7 @@ CAF76E802CBE5D5200825E5E /* 通用工具 */ = { isa = PBXGroup; children = ( + CABD8C762CBF6AA0009A5E5E /* 结果 */, CAF76E842CBE5F3A00825E5E /* view */, CAF76E812CBE5D6600825E5E /* GongJuCreateViewController.h */, CAF76E822CBE5D6600825E5E /* GongJuCreateViewController.m */, @@ -2464,6 +2660,7 @@ CAF76E882CBE641500825E5E /* son */ = { isa = PBXGroup; children = ( + CABD8C722CBF61A3009A5E5E /* superItemView */, CAF76E892CBE642C00825E5E /* GongJuCreateInputView.h */, CAF76E8A2CBE642C00825E5E /* GongJuCreateInputView.m */, CAF76E8C2CBE650600825E5E /* GongJuCreateTextInputView.h */, @@ -3444,6 +3641,7 @@ CA0C3A9E2CB4DADA00E01A72 /* DuanLuoXieZuoViewController.m in Sources */, CAC806562CA1382500C21AA7 /* StartZNXZView.m in Sources */, CA4257BD2CA2C65600A36A10 /* StartPayTQViewCell.m in Sources */, + CABD8CA72CBFA7A3009A5E5E /* GongJuImageToTextView.m in Sources */, CB489DD027449D5C00DA044A /* ViewController.m in Sources */, CA0FD6902CA8EECE009A4417 /* XieZuoFenXiangAlterTableViewCell.m in Sources */, CAC806702CA16E0700C21AA7 /* StartPZXZView.m in Sources */, @@ -3541,7 +3739,9 @@ CA42579C2CA2998200A36A10 /* StartZNPPTDaGangViewController.m in Sources */, CABA14B52C9D4318002CB3B1 /* UserModel.m in Sources */, CB489FA92744A0BD00DA044A /* UIView+XLExtension.m in Sources */, + CABD8C7D2CBF6B6D009A5E5E /* GongJuCreateResultView.m in Sources */, CB489F512744A0BD00DA044A /* PGJSearchView.m in Sources */, + CABD8C952CBF974E009A5E5E /* GongJuFanYiView.m in Sources */, CA0D084F2CA53B970086855E /* ShouYeLingYuViewController.m in Sources */, CA0D087C2CA55BB80086855E /* ShouYeLiShiJiLuPPTTableViewCell.m in Sources */, CA8181B02C9EB96000EE7E6E /* StartKTXZPGDetailFJView.m in Sources */, @@ -3576,6 +3776,7 @@ CA487D932CA4055B00AE773B /* StartPayGoodsCollectionViewCell.m in Sources */, CA4257B62CA2BBB000A36A10 /* StartPayView.m in Sources */, CB489DDB27449D5D00DA044A /* main.m in Sources */, + CABD8C892CBF9198009A5E5E /* GongJuWenBenViewController.m in Sources */, CB489FB02744A0BD00DA044A /* FSActionSheet.m in Sources */, CB489F652744A0BD00DA044A /* DAYComponentView.m in Sources */, CB489FAC2744A0BD00DA044A /* XLPhotoBrowser.m in Sources */, @@ -3592,6 +3793,7 @@ CA8181A72C9EAB8700EE7E6E /* PGJUILabel.m in Sources */, CA81818E2C9E60B100EE7E6E /* ViewLable.m in Sources */, CB489FB42744A0BD00DA044A /* CXDatePickerView.m in Sources */, + CABD8C9B2CBF9ED2009A5E5E /* LanguageSelectAlterView.m in Sources */, CB489F7B2744A0BD00DA044A /* UIImageView+VideoImageView.m in Sources */, CB489F602744A0BD00DA044A /* GETCorelLocation.m in Sources */, CB489F892744A0BD00DA044A /* TagInfoModel.m in Sources */, @@ -3663,6 +3865,7 @@ CA4257852CA24E1100A36A10 /* StartPZXZDetailViewController.m in Sources */, CB489FA52744A0BD00DA044A /* ZJSegmentStyle.m in Sources */, CA6B97122CBCAC14000213F3 /* FanWenListTableViewCell.m in Sources */, + CABD8CB22CBFB6CC009A5E5E /* PauseAlterView.m in Sources */, CA0D08672CA548E50086855E /* ShouYeLiShiJiLuXZTableViewController.m in Sources */, CABA147F2C9D19A0002CB3B1 /* TextCollectionViewCell.m in Sources */, CA487D982CA40A8300AE773B /* StartPayDaoJiShiView.m in Sources */, @@ -3670,14 +3873,17 @@ CBD422B928DAF2E800C32440 /* JhtBannerScrollView.m in Sources */, CA0C3ABC2CB536F800E01A72 /* FanWenListViewController.m in Sources */, CA0C3A8E2CB4C94000E01A72 /* HuanGeSiLuHDCollectionReusableView.m in Sources */, + CABD8C9F2CBFA126009A5E5E /* LanguageSelectAlterTableViewCell.m in Sources */, CA0FD6AC2CA924A1009A4417 /* FXXieZuoJianYiView.m in Sources */, CABA14B82C9D4318002CB3B1 /* WeixinServiceModel.m in Sources */, CB489FB82744A0BD00DA044A /* HXLoadingHUD.m in Sources */, CABA14D12C9D4961002CB3B1 /* StartGNView.m in Sources */, CB489FA82744A0BD00DA044A /* XLProgressView.m in Sources */, + CABD8CA32CBFA787009A5E5E /* GongJuImageToTextViewController.m in Sources */, CAF76E632CBDFF8500825E5E /* AIChatYuYinView.m in Sources */, CA8181AD2C9EB95700EE7E6E /* StartKTXZPGDetailZHView.m in Sources */, CA6B97162CBCBCC1000213F3 /* FanWenDetailViewController.m in Sources */, + CABD8C8D2CBF91B0009A5E5E /* GongJuWenBenView.m in Sources */, CB489F802744A0BD00DA044A /* NSString+Base64.m in Sources */, CA0D08572CA543440086855E /* ShouYeLSKTPGTableViewCell.m in Sources */, CB489FD82744A30000DA044A /* PGGMovieLineSetView.m in Sources */, @@ -3687,17 +3893,22 @@ CA487D872CA3A36300AE773B /* StartZNPPTDaGangTableViewCell.m in Sources */, CA8181882C9E58B100EE7E6E /* StartKTXZWenZhangViewController.m in Sources */, CB489F5A2744A0BD00DA044A /* YQLocationTransform.m in Sources */, + CABD8C752CBF61BB009A5E5E /* GongJuCreateSuperView.m in Sources */, CA0FD69D2CA8F907009A4417 /* FenXiangHaiBaoInfoSuperView.m in Sources */, CB489F782744A0BD00DA044A /* NSBundle+DAUtils.m in Sources */, CB489F4C2744A0BD00DA044A /* AddressListUrlAlterView.m in Sources */, CABA14DD2C9D6E40002CB3B1 /* NetWorkManager.m in Sources */, + CABD8CAF2CBFB3B3009A5E5E /* GongJuMinGanCiView.m in Sources */, CBD422BD28DAF34B00C32440 /* IndexSectionView.m in Sources */, CAA600D12CA9565500026CF4 /* KeTangXieZuoViewController.m in Sources */, CB489FA12744A0BD00DA044A /* ZJTitleView.m in Sources */, CA0D082D2CA4F8930086855E /* ShouYeZNXZTableViewCell.m in Sources */, CAF76E872CBE5F8B00825E5E /* GongJuCreateView.m in Sources */, CAB0D3792CAA488C009BF67D /* ZhiNengXieZuoView.m in Sources */, + CABD8C852CBF72A7009A5E5E /* GongJuTextView.m in Sources */, + CABD8C812CBF6FFB009A5E5E /* GongJuTextViewController.m in Sources */, CB489FAF2744A0BD00DA044A /* FSActionSheetConfig.m in Sources */, + CABD8C982CBF9D26009A5E5E /* LanguageKeyModel.m in Sources */, CA11ED612CA6556900209DFC /* CamreImagesCollectionViewCell.m in Sources */, CAF76E942CBE69F900825E5E /* GongJuCreateTimeView.m in Sources */, CA0D08452CA5316B0086855E /* ShouYeShenFenView.m in Sources */, @@ -3706,8 +3917,10 @@ CA0D08832CA5682D0086855E /* CamreViewController.m in Sources */, CA0FD6932CA8EEF3009A4417 /* XieZuoFenXiangAlterNOTableViewCell.m in Sources */, CA487D9B2CA40D3A00AE773B /* StartPayGoodsPayView.m in Sources */, + CABD8C792CBF6AC4009A5E5E /* GongJuCreateResultViewController.m in Sources */, CAC8066C2CA16DCC00C21AA7 /* StartPZXZViewController.m in Sources */, CB489F722744A0BD00DA044A /* MCTabBarController.m in Sources */, + CABD8CAB2CBFB39F009A5E5E /* GongJuMinGanCiController.m in Sources */, CB489F9F2744A0BD00DA044A /* LogView.m in Sources */, CAF76E8B2CBE642C00825E5E /* GongJuCreateInputView.m in Sources */, CABA146D2C9D0B3F002CB3B1 /* WoDeViewController.m in Sources */, @@ -3715,6 +3928,7 @@ CB489F732744A0BD00DA044A /* BaseViewController.m in Sources */, CB489FA42744A0BD00DA044A /* ZJCollectionView.m in Sources */, CA0C3A922CB4D03B00E01A72 /* ChongXieYiPianViewController.m in Sources */, + CABD8C912CBF9741009A5E5E /* GongJuFanYiViewController.m in Sources */, CB489F702744A0BD00DA044A /* TabBarController.m in Sources */, CA11ED702CA6946500209DFC /* KaiTongAlterTQView.m in Sources */, CA6B972C2CBD10FB000213F3 /* AIChatFunctionView.m in Sources */, diff --git a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate index 6146f0d..acb871d 100644 Binary files a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate and b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/Contents.json new file mode 100644 index 0000000..b94bf8d --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "容器 13@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "容器 13@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/容器 13@2x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/容器 13@2x.png new file mode 100644 index 0000000..98aaea0 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/容器 13@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/容器 13@3x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/容器 13@3x.png new file mode 100644 index 0000000..2eee33d Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_country.imageset/容器 13@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/Contents.json new file mode 100644 index 0000000..ce54822 --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.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/工具/gj_delimage.imageset/删除@2x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/删除@2x.png new file mode 100644 index 0000000..30a9397 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/删除@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/删除@3x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/删除@3x.png new file mode 100644 index 0000000..667fa9f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_delimage.imageset/删除@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/Contents.json new file mode 100644 index 0000000..7b6156b --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.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/工具/gj_upimage.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/容器@2x.png new file mode 100644 index 0000000..253e423 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/容器@3x.png new file mode 100644 index 0000000..bd59d81 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_upimage.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/Contents.json new file mode 100644 index 0000000..7b6156b --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.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/工具/gj_切换.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/容器@2x.png new file mode 100644 index 0000000..fb8445f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/容器@3x.png new file mode 100644 index 0000000..d265d1f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/gj_切换.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Contents.json index 504ad1e..7b6156b 100644 --- a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "Slice 31@2x.png", + "filename" : "容器@2x.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "Slice 31@3x.png", + "filename" : "容器@3x.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Slice 31@2x.png b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Slice 31@2x.png deleted file mode 100644 index 1c2d719..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Slice 31@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Slice 31@3x.png b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Slice 31@3x.png deleted file mode 100644 index 3d65833..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/Slice 31@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/容器@2x.png b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/容器@2x.png new file mode 100644 index 0000000..66ef05c Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/容器@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/容器@3x.png b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/容器@3x.png new file mode 100644 index 0000000..834dcb0 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/工具/search_del.imageset/容器@3x.png differ diff --git a/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.h b/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.h index 512b12a..b90efd2 100644 --- a/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.h +++ b/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.h @@ -112,6 +112,6 @@ typedef NS_ENUM(NSUInteger, XLAnimationType){ * @param lineLength 每条虚线的长度 * @param lineColor 每条虚线的颜色 */ -- (void)xl_addDottedLineBorderWithLineWidth:(CGFloat)lineWidth lineMargin:(CGFloat)lineMargin lineLength:(CGFloat)lineLength lineColor:(UIColor *)lineColor; +- (void)xl_addDottedLineBorderWithLineWidth:(CGFloat)lineWidth lineMargin:(CGFloat)lineMargin lineLength:(CGFloat)lineLength lineColor:(UIColor *)lineColor radius:(float)radius; @end diff --git a/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.m b/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.m index 53f7415..2988b12 100644 --- a/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.m +++ b/ProductApp/ProductApp/BaseControl/XLPhotoBrowser+CoderXL/UIView+XLExtension.m @@ -322,15 +322,18 @@ static char RedTipViewKey; * @param lineLength 每条虚线的长度 * @param lineColor 每条虚线的颜色 */ -- (void)xl_addDottedLineBorderWithLineWidth:(CGFloat)lineWidth lineMargin:(CGFloat)lineMargin lineLength:(CGFloat)lineLength lineColor:(UIColor *)lineColor; +- (void)xl_addDottedLineBorderWithLineWidth:(CGFloat)lineWidth lineMargin:(CGFloat)lineMargin lineLength:(CGFloat)lineLength lineColor:(UIColor *)lineColor radius:(float)radius; { CAShapeLayer *border = [CAShapeLayer layer]; + UIBezierPath *bezierPath = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:radius]; + [bezierPath setLineWidth:lineWidth]; + border.strokeColor = lineColor.CGColor; border.fillColor = nil; - border.path = [UIBezierPath bezierPathWithRect:self.bounds].CGPath; + border.path = bezierPath.CGPath; border.frame = self.bounds; @@ -340,6 +343,7 @@ static char RedTipViewKey; border.lineDashPattern = @[@(lineLength), @(lineMargin)]; + [self.layer addSublayer:border]; } diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.h b/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.h index 400f715..bd44c3d 100644 --- a/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.h +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.h @@ -11,6 +11,7 @@ #import "TextbookInfoModel.h" #import "ToolsTypeModel.h" #import "ToolsListModel.h" +#import "LanguageKeyModel.h" NS_ASSUME_NONNULL_BEGIN @@ -77,6 +78,13 @@ NS_ASSUME_NONNULL_BEGIN query:(NSString *)query Callback:(completeModeBlock)callback; +/* + 语言列表key分组 + /api/translate/language/key + */ ++ (void)requestTranslateLanguageKeyData:(UIView *)view + Callback:(completeModeBlock)callback; + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.m b/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.m index 5cd4d3c..9ad50d0 100644 --- a/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.m +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/NetWorkManager.m @@ -203,4 +203,36 @@ }]; } +/* + 语言列表key分组 + /api/translate/language/key + */ ++ (void)requestTranslateLanguageKeyData:(UIView *)view + Callback:(completeModeBlock)callback +{ + NSMutableDictionary *dicQuery = [NSMutableDictionary new]; + + NSMutableDictionary *dicHeader = [NSMutableDictionary new]; + + NSMutableDictionary *dicpush = [NSMutableDictionary new]; + + [YSAPIClient requestWithRequestBaseUrl:BaseUrl Type:1 url:@"api/translate/language/key" paraments:dicpush Headers:dicHeader Query:dicQuery completeBlock:^(id _Nullable responseObject, NSError * _Nullable error) { + BOOL state = NO; + NSString *describle = @""; + if (responseObject==nil) { + describle = @"网络错误"; + BaseModel *model = [BaseModel new]; + model.message =describle; + callback(state,model,describle); + }else{ + NSDictionary *dicAll=responseObject; + describle = dicAll[@"message"]; + if ([[NSString stringWithFormat:@"%@",dicAll[@"code"]] intValue] == 0) { + state = YES; + } + callback(state,[LanguageKeyModel yy_modelWithJSON:dicAll],describle); + } + }]; +} + @end diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/models/LanguageKeyModel.h b/ProductApp/ProductApp/ProductMain/NetWorkManager/models/LanguageKeyModel.h new file mode 100644 index 0000000..45ac337 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/models/LanguageKeyModel.h @@ -0,0 +1,30 @@ +// +// LanguageKeyModel.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseModel.h" + +NS_ASSUME_NONNULL_BEGIN +@class LanguageKeyModelData,LanguageKeyModelDataList; +@interface LanguageKeyModel : BaseModel +/// +@property (nonatomic , strong) NSArray *data; +@end +@interface LanguageKeyModelData : NSObject +/// +@property (nonatomic , strong) NSString *key; + +@property (nonatomic , strong) NSArray *list; + +@end +@interface LanguageKeyModelDataList : NSObject +/// +@property (nonatomic , strong) NSString *ID; +@property (nonatomic , strong) NSString *cn_name; +@property (nonatomic , strong) NSString *en_name; + +@end +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/models/LanguageKeyModel.m b/ProductApp/ProductApp/ProductMain/NetWorkManager/models/LanguageKeyModel.m new file mode 100644 index 0000000..22f6b9a --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/models/LanguageKeyModel.m @@ -0,0 +1,25 @@ +// +// LanguageKeyModel.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "LanguageKeyModel.h" + +@implementation LanguageKeyModel ++ (NSDictionary *)modelContainerPropertyGenericClass { + return @{@"data" : [LanguageKeyModelData class]}; +} +@end +@implementation LanguageKeyModelData ++ (NSDictionary *)modelContainerPropertyGenericClass { + return @{@"list" : [LanguageKeyModelDataList class]}; +} +@end +@implementation LanguageKeyModelDataList ++ (nullable NSDictionary *)modelCustomPropertyMapper +{ + return @{@"ID" : @"id"}; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/alter/PauseAlterView.h b/ProductApp/ProductApp/ProductMain/alter/PauseAlterView.h new file mode 100644 index 0000000..c3dc52a --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/alter/PauseAlterView.h @@ -0,0 +1,17 @@ +// +// PauseAlterView.h +// ProductApp +// +// Created by 工作 on 2024/6/20. +// + +#import + +NS_ASSUME_NONNULL_BEGIN +typedef void(^PauseAlterViewBackText)(NSString *value); +@interface PauseAlterView : UIView ++(void)showTitle:(NSString *)title info:(NSString *)info back:(PauseAlterViewBackText)backTextValue; ++(void)disMis; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/alter/PauseAlterView.m b/ProductApp/ProductApp/ProductMain/alter/PauseAlterView.m new file mode 100644 index 0000000..401f03a --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/alter/PauseAlterView.m @@ -0,0 +1,182 @@ +// +// PauseAlterView.m +// ProductApp +// +// Created by 工作 on 2024/6/20. +// + +#import "PauseAlterView.h" +#import "AppDelegate.h" + +static PauseAlterView *alterView; + +typedef void(^PauseAlterViewBack)(NSInteger selectTag); + + +@interface PauseAlterView () +@property (nonatomic , strong) UILabel *lbname; +@property (nonatomic , strong) UILabel *lbinfo; + +/// +@property (nonatomic , strong) NSString *strtitle; +@property (nonatomic , strong) NSString *strinfo; +/// +@property (nonatomic , strong) PauseAlterViewBack bakcValue; +//@property (nonatomic , strong) PauseAlterViewBackText bakcTextValue; +@end + + +@implementation PauseAlterView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)]; + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(50); + make.right.equalTo(self).offset(-50); + make.center.equalTo(self); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"您已复制文本,是否粘贴?"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont boldSystemFontOfSize:18]]; + [lbname setNumberOfLines:0]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.left.offset(20); + make.right.equalTo(viewback).offset(-20); + }]; + _lbname = lbname; + + UILabel *lbinfo = [[UILabel alloc] init]; + [lbinfo setText:@""]; + [lbinfo setTextColor:RGBCOLOR(177, 177, 177)]; + [lbinfo setTextAlignment:NSTextAlignmentLeft]; + [lbinfo setFont:[UIFont systemFontOfSize:12]]; + [lbinfo setNumberOfLines:3]; + [viewback addSubview:lbinfo]; + [lbinfo mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(40); + make.right.equalTo(viewback).offset(-40); + make.top.equalTo(lbname.mas_bottom).offset(10); + }]; + _lbinfo = lbinfo; + + UIButton *btlast = nil; + NSArray *arr = @[@"取消",@"一键粘贴"]; + float f_w = (UISCREEN_WIDTH-192)/2.0; + for(int i = 0; i< arr.count; i++) + { + UIButton *btitem = [[UIButton alloc] init]; + [btitem setTitle:arr[i] forState:UIControlStateNormal]; + [btitem setTitleColor:RGBCOLOR(51, 51, 51) forState:UIControlStateNormal]; + [btitem.titleLabel setFont:[UIFont boldSystemFontOfSize:16]]; + if(i==1) + { + [btitem setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btitem.titleLabel setFont:[UIFont boldSystemFontOfSize:16]]; + [btitem setFrame:CGRectMake(0, 0, f_w, 40)]; + [Tools changedView:btitem colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + } + else + { + [btitem.layer setBorderWidth:1]; + [btitem.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor]; + } + [btitem.layer setMasksToBounds:YES]; + [btitem.layer setCornerRadius:15]; + [viewback addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbinfo.mas_bottom).offset(20); + if(i==1) + { + make.left.equalTo(viewback.mas_centerX).offset(10); + } + else + { + make.right.equalTo(viewback.mas_centerX).offset(-10); + } + make.width.offset(f_w); + make.height.offset(40); + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(btAction:) forControlEvents:UIControlEventTouchUpInside]; + btlast = btitem; + } + + + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(btlast).offset(20); + }]; + + } + return self; +} + +-(void)setStrtitle:(NSString *)strtitle +{ + self.lbname.text = strtitle; +} +-(void)setStrinfo:(NSString *)strinfo +{ + _strinfo = strinfo; + self.lbinfo.text = strinfo; + if(strinfo.length>0) + { + [self.lbinfo mas_updateConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(self.lbname.mas_bottom).offset(20); + }]; + } +} +-(void)btAction:(UIButton *)sender +{ + if(self.bakcValue) + { + self.bakcValue(sender.tag); + } + [self removeFromSuperview]; + alterView = nil; +} ++(void)showTitle:(NSString *)title info:(NSString *)info back:(PauseAlterViewBackText)backTextValue +{ + if(alterView) + { + [alterView removeFromSuperview]; + alterView = nil; + } + + PauseAlterView *view = [[PauseAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate; + view.strtitle = title; + view.strinfo = info; + [app.window addSubview:view]; + [view setBakcValue:^(NSInteger selectTag) { + if(selectTag==1) + { + backTextValue(info); + } + }]; + alterView = view; +} ++(void)disMis +{ + if(alterView) + { + [alterView removeFromSuperview]; + alterView = nil; + } +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/GongJuListViewController.m b/ProductApp/ProductApp/ProductMain/工具/GongJuListViewController.m index 9b7ca20..3bf9f8b 100644 --- a/ProductApp/ProductApp/ProductMain/工具/GongJuListViewController.m +++ b/ProductApp/ProductApp/ProductMain/工具/GongJuListViewController.m @@ -9,7 +9,12 @@ #import "GongJuListTableViewCell.h" #import "NetWorkManager.h" #import "GongJuCreateViewController.h" - +#import "KeTangXieZuoViewController.h" +#import "GongJuTextViewController.h" +#import "GongJuWenBenViewController.h" +#import "GongJuFanYiViewController.h" +#import "GongJuImageToTextViewController.h" +#import "GongJuMinGanCiController.h" @interface GongJuListViewController () /// @@ -121,7 +126,37 @@ ToolsListModelDataItems *model = self.arrdata[indexPath.row]; if(model.ID.intValue>=1 && model.ID.intValue<=9) { - + if(model.ID.intValue==9) + { + KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new]; + [self.navigationController pushViewController:vc animated:YES]; + } + else if(model.ID.intValue==6||model.ID.intValue==7||model.ID.intValue==8||model.ID.intValue==3) + { + GongJuTextViewController *vc = [GongJuTextViewController new]; + vc.strtitle = model.tool_name; + [self.navigationController pushViewController:vc animated:YES]; + } + else if(model.ID.intValue==5) + { + GongJuMinGanCiController *vc = [GongJuMinGanCiController new]; + [self.navigationController pushViewController:vc animated:YES]; + } + else if(model.ID.intValue==4) + { + GongJuFanYiViewController *vc = [GongJuFanYiViewController new]; + [self.navigationController pushViewController:vc animated:YES]; + } + else if(model.ID.intValue==2) + { + GongJuWenBenViewController *vc = [GongJuWenBenViewController new]; + [self.navigationController pushViewController:vc animated:YES]; + } + else if(model.ID.intValue==1) + { + GongJuImageToTextViewController *vc = [GongJuImageToTextViewController new]; + [self.navigationController pushViewController:vc animated:YES]; + } } else { diff --git a/ProductApp/ProductApp/ProductMain/工具/图文转换/GongJuImageToTextViewController.h b/ProductApp/ProductApp/ProductMain/工具/图文转换/GongJuImageToTextViewController.h new file mode 100644 index 0000000..d3c363b --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/图文转换/GongJuImageToTextViewController.h @@ -0,0 +1,16 @@ +// +// GongJuImageToTextViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuImageToTextViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/图文转换/GongJuImageToTextViewController.m b/ProductApp/ProductApp/ProductMain/工具/图文转换/GongJuImageToTextViewController.m new file mode 100644 index 0000000..6c4574b --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/图文转换/GongJuImageToTextViewController.m @@ -0,0 +1,48 @@ +// +// GongJuImageToTextViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuImageToTextViewController.h" +#import "GongJuImageToTextView.h" + + +@interface GongJuImageToTextViewController () + +@end + +@implementation GongJuImageToTextViewController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + GongJuImageToTextView *view = [[GongJuImageToTextView 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/GongJuImageToTextView.h b/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.h new file mode 100644 index 0000000..3bb8499 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.h @@ -0,0 +1,16 @@ +// +// GongJuImageToTextView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuImageToTextView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m b/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m new file mode 100644 index 0000000..2eee88e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m @@ -0,0 +1,357 @@ +// +// GongJuImageToTextView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuImageToTextView.h" +#import "UIView+XLExtension.h" +#import "UIAlertController+Blocks.h" +#import "WYCamaImageTools.h" + +@interface GongJuImageToTextView () +/// +@property (nonatomic , strong) UIScrollView *scvback; + + +@property (nonatomic , strong) UIView *viewout; +@property (nonatomic , strong) UILabel *lbcontent; + +/// +@property (nonatomic , strong) UIImageView *imgvshow; + +@property (nonatomic, strong) WYCamaImageTools *tools; + +@end + +@implementation GongJuImageToTextView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(self); + make.height.equalTo(self).offset(-TabHeight-30); + }]; + _scvback = scvback; + [self drawInfoView]; + + 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+30); + }]; + [self drawBottomView:viewbottom]; + } + return self; +} + +-(void)drawInfoView +{ + UIView *viewinput = [[UIView alloc] init]; + [viewinput setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewinput]; + [viewinput mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(self.scvback).offset(-40); + make.height.offset(380); + }]; + [Tools normalShadow:viewinput shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [self drawInputView:viewinput]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"温馨提示:仅支单张图文转换。"]; + [lbts setTextColor:RGBCOLOR(157, 157, 157)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [self.scvback addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewinput.mas_bottom).offset(10); + make.left.offset(40); + }]; + + UIView *viewout = [[UIView alloc] init]; + [viewout setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewout]; + [viewout mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewinput); + make.top.equalTo(viewinput.mas_bottom).offset(37); + }]; + [self drawOutView:viewout]; + [Tools normalShadow:viewout shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [viewout setHidden:YES]; + _viewout = viewout; + + [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewout).offset(20); + }]; +} +-(void)drawOutView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"结果"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"(长按可快捷复制)"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(lbname.mas_right).offset(2); + make.top.offset(16); + }]; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:@"结果"]; + [lbcontent setTextColor:RGBCOLOR(51, 51, 51)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:14]]; + [lbcontent setNumberOfLines:0]; + [view addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(27); + make.right.equalTo(view).offset(-27); + make.top.equalTo(viewline.mas_bottom).offset(17); + }]; + _lbcontent = lbcontent; + + [lbcontent setUserInteractionEnabled:YES]; + UILongPressGestureRecognizer *pressl = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(copyTextAction:)]; + [lbcontent addGestureRecognizer:pressl]; + + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbcontent).offset(25); + }]; +} + +-(void)drawInputView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"上传图片"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UIView *viewback = [[UIView alloc] init]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewline.mas_bottom).offset(17); + make.bottom.equalTo(view).offset(-20); + make.right.equalTo(view).offset(-20); + }]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [viewback xl_addDottedLineBorderWithLineWidth:2 lineMargin:5 lineLength:5 lineColor:RGBCOLOR(238, 238, 238) radius:20]; + }); + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"gj_upimage"]]; + [viewback addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(30); + make.centerX.equalTo(viewback); + make.centerY.equalTo(viewback).offset(-30); + }]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"上传图片\n拍照/相册"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentCenter]; + [lbts setFont:[UIFont systemFontOfSize:14]]; + [lbts setNumberOfLines:2]; + [viewback addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(imgvback.mas_bottom).offset(10); + make.centerX.equalTo(viewback); + }]; + NSString *str = lbts.text; + NSMutableParagraphStyle *style = [NSMutableParagraphStyle new]; + style.lineSpacing = 5; + style.lineBreakMode = NSLineBreakByWordWrapping; + style.alignment = NSTextAlignmentCenter; + + NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:str]; + [attrString addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, str.length)]; + lbts.attributedText = attrString; + + UIButton *btaddimage = [[UIButton alloc] init]; + [viewback addSubview:btaddimage]; + [btaddimage mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewback); + }]; + [btaddimage addTarget:self action:@selector(addimageAction) forControlEvents:UIControlEventTouchUpInside]; + + UIImageView *imgvshow = [[UIImageView alloc] init]; + [imgvshow setBackgroundColor:[UIColor whiteColor]]; + [viewback addSubview:imgvshow]; + [imgvshow mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewback); + }]; + [imgvshow.layer setMasksToBounds:YES]; + [imgvshow.layer setCornerRadius:20]; + [imgvshow setUserInteractionEnabled:YES]; + [imgvshow setHidden:YES]; + _imgvshow = imgvshow; + + UIButton *btdel = [[UIButton alloc] init]; + [btdel setImage:[UIImage imageNamed:@"gj_delimage"] forState:UIControlStateNormal]; + [imgvshow addSubview:btdel]; + [btdel mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.right.equalTo(imgvshow); + make.width.height.offset(35); + }]; + [btdel addTarget:self action:@selector(delAction) forControlEvents:UIControlEventTouchUpInside]; + +} + + +-(void)drawBottomView:(UIView *)view +{ + UIButton *btsend = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [btsend setTitle:@"立即提取" forState:UIControlStateNormal]; + [btsend setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btsend.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btsend.layer setMasksToBounds:YES]; + [btsend.layer setCornerRadius:8]; + [view addSubview:btsend]; + [btsend mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.offset(10); + make.height.offset(44); + make.right.equalTo(view).offset(-16); + }]; + [btsend addTarget:self action:@selector(bottomAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btsend colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)copyTextAction:(UIGestureRecognizer *)gesture +{ + if(gesture.state==UIGestureRecognizerStateBegan) + { + UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; + pasteboard.string = self.lbcontent.text; + [HXHud showMessage:@"复制成功" afterDelayType:0]; + } + +} +-(void)addimageAction +{ + [UIAlertController showActionSheetInViewController:self.viewController withTitle:nil message:nil cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherButtonTitles: @[@"拍照",@"相册"] popoverPresentationControllerBlock:nil tapBlock:^(UIAlertController * _Nonnull controller, UIAlertAction * _Nonnull action, NSInteger buttonIndex) { + if (buttonIndex == 2){ + [self.tools choosePicWithViewController:self.viewController chooseType:ChooseTypeTakePic]; + }else if (buttonIndex == 0){ + + } + else{ + [self.tools choosePicWithViewController:self.viewController chooseType:ChooseTypeAlbum]; + } + }]; +} +-(void)delAction +{ + [self.imgvshow setHidden:YES]; +} +-(void)bottomAction +{ + [self.viewout setHidden:NO]; + + + + +} + +-(void)didEndChoosePic:(UIImage *)image +{ + UIImage *imagetemp = image; + if(image.size.width>640) + { + imagetemp = [Tools imageWithImage:image scaledToSize:CGSizeMake(640, image.size.height*640/image.size.width)]; + } + NSData *dataimage = UIImageJPEGRepresentation(imagetemp, 1.0) ; + if(dataimage==nil) + { + dataimage = UIImagePNGRepresentation(imagetemp); + } + if([dataimage length]/1000>2*1000) + { + [HXHud showMessage:@"图片大小不可超过2M,请重新上传" afterDelayType:1]; + return; + } + + [self uploadImgData:image]; + +} +- (void)uploadImgData:(UIImage *)image { + + self.imgvshow.image = image; + [self.imgvshow setHidden:NO]; +// [HXLoadingHUD showWithStatus:@"" maskType:0]; +// [PublicNetWorkManager requestUserUploadData:self scene:@"feedback" image:image Callback:^(BOOL state, UserUploadModel *responseObject, NSString * _Nullable describle) { +// [HXLoadingHUD dismiss]; +// if(state) +// { +// self.imgvpz.image = image; +// /// +// self.bank_bill_url = responseObject.data.url; +// +// [[self.imgvpz.superview viewWithTag:100] setHidden:YES]; +// [[self.imgvpz.superview viewWithTag:101] setHidden:YES]; +// +// } +// else +// { +// [HXHud showMessage:describle afterDelayType:1]; +// } +// }]; +} +- (WYCamaImageTools *)tools { + if (!_tools) { + _tools = [[WYCamaImageTools alloc] init]; + _tools.delegate = self; + }return _tools; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/敏感词/GongJuMinGanCiController.h b/ProductApp/ProductApp/ProductMain/工具/敏感词/GongJuMinGanCiController.h new file mode 100644 index 0000000..8000514 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/敏感词/GongJuMinGanCiController.h @@ -0,0 +1,16 @@ +// +// GongJuMinGanCiController.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuMinGanCiController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/敏感词/GongJuMinGanCiController.m b/ProductApp/ProductApp/ProductMain/工具/敏感词/GongJuMinGanCiController.m new file mode 100644 index 0000000..a9cd646 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/敏感词/GongJuMinGanCiController.m @@ -0,0 +1,49 @@ +// +// GongJuMinGanCiController.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuMinGanCiController.h" +#import "GongJuMinGanCiView.h" + + +@interface GongJuMinGanCiController () + +@end + +@implementation GongJuMinGanCiController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + GongJuMinGanCiView *view = [[GongJuMinGanCiView 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/GongJuMinGanCiView.h b/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.h new file mode 100644 index 0000000..6ab065d --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.h @@ -0,0 +1,16 @@ +// +// GongJuMinGanCiView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuMinGanCiView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m b/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m new file mode 100644 index 0000000..11cca90 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m @@ -0,0 +1,318 @@ +// +// GongJuMinGanCiView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuMinGanCiView.h" +#import "FSTextView.h" + +@interface GongJuMinGanCiView () +/// +@property (nonatomic , strong) UIScrollView *scvback; + +/// +@property (nonatomic , strong) FSTextView *textview; + +@property (nonatomic , strong) UIView *viewout; +@property (nonatomic , strong) UILabel *lbcontent; +@end + +@implementation GongJuMinGanCiView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(self); + make.height.equalTo(self).offset(-TabHeight-30); + }]; + _scvback = scvback; + [self drawInfoView]; + + 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+30); + }]; + [self drawBottomView:viewbottom]; + } + return self; +} + +-(void)drawInfoView +{ + UIView *viewinput = [[UIView alloc] init]; + [viewinput setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewinput]; + [viewinput mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(self.scvback).offset(-40); + make.height.offset(380); + }]; + [Tools normalShadow:viewinput shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [self drawInputView:viewinput]; + + UIView *viewout = [[UIView alloc] init]; + [viewout setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewout]; + [viewout mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewinput); + make.top.equalTo(viewinput.mas_bottom).offset(20); + }]; + [self drawOutView:viewout]; + [Tools normalShadow:viewout shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [viewout setHidden:YES]; + _viewout = viewout; + + [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewout).offset(20); + }]; +} +-(void)drawOutView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"结果"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"(长按可快捷复制)"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(lbname.mas_right).offset(2); + make.top.offset(16); + }]; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:@"结果"]; + [lbcontent setTextColor:RGBCOLOR(51, 51, 51)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:14]]; + [lbcontent setNumberOfLines:0]; + [view addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(27); + make.right.equalTo(view).offset(-27); + make.top.equalTo(viewline.mas_bottom).offset(17); + }]; + _lbcontent = lbcontent; + + [lbcontent setUserInteractionEnabled:YES]; + UILongPressGestureRecognizer *pressl = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(copyTextAction:)]; + [lbcontent addGestureRecognizer:pressl]; + + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbcontent).offset(25); + }]; +} + +-(void)drawInputView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"选择检测类型"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"(可多选)"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(lbname.mas_right).offset(2); + make.top.offset(16); + }]; + + UIView *viewcollect = [[UIView alloc] init]; + [viewcollect setBackgroundColor:[UIColor whiteColor]]; + [view addSubview:viewcollect]; + [viewcollect mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(view); + make.top.equalTo(viewline.mas_bottom).offset(17); + make.height.offset(26); + }]; + [self drawCollectView:viewcollect]; + + UIView *viewback = [[UIView alloc] init]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewcollect.mas_bottom).offset(15); + make.bottom.equalTo(view).offset(-20); + make.right.equalTo(view).offset(-20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + [viewback.layer setBorderWidth:2]; + [viewback.layer setBorderColor:RGBCOLOR(238, 238, 238).CGColor]; + + FSTextView *textview = [[FSTextView alloc] init]; + [textview setTextColor:RGBCOLOR(51, 51, 51)]; + [textview setTextAlignment:NSTextAlignmentLeft]; + [textview setFont:[UIFont systemFontOfSize:14]]; + [textview setBackgroundColor:[UIColor clearColor]]; + [textview setPlaceholder:@"请输入您需要检测的文本内容"]; + [viewback addSubview:textview]; + [textview mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(6); + make.right.equalTo(viewback).offset(-6); + make.bottom.equalTo(viewback).offset(-30); + }]; + [textview setMaxLength:2800]; + _textview = textview; + + UILabel *lbnumber = [[UILabel alloc] init]; + [lbnumber setText:@"0/2800"]; + [lbnumber setTextColor:RGBCOLOR(157, 157, 157)]; + [lbnumber setTextAlignment:NSTextAlignmentLeft]; + [lbnumber setFont:[UIFont systemFontOfSize:12]]; + [viewback addSubview:lbnumber]; + [lbnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(10); + make.bottom.equalTo(viewback).offset(-13); + }]; + [textview addTextDidChangeHandler:^(FSTextView *textView) { + [lbnumber setText:[NSString stringWithFormat:@"%ld/2800",textView.text.length]]; + }]; + + UIButton *btdel = [[UIButton alloc] init]; + [btdel setImage:[UIImage imageNamed:@"search_del"] forState:UIControlStateNormal]; + [viewback addSubview:btdel]; + [btdel mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(30); + make.right.equalTo(viewback).offset(-5); + make.centerY.equalTo(lbnumber); + }]; + [btdel addTarget:self action:@selector(clearAction) forControlEvents:UIControlEventTouchUpInside]; +} + +-(void)drawCollectView:(UIView *)view +{ + NSArray *arrtt = @[@"敏感词",@"广告词"]; + UIView *viewlast = nil; + for(int i = 0 ; i < arrtt.count;i++) + { + float f_w = [Tools getWidthWithText:arrtt[i] height:20 font:14]+41; + UIButton *btitem = [[UIButton alloc] init]; + [btitem setTitle:arrtt[i] forState:UIControlStateNormal]; + [btitem setTitleColor:[UIColor whiteColor] forState:UIControlStateSelected]; + [btitem setTitleColor:RGBCOLOR(108, 119, 246) forState:UIControlStateNormal]; + [btitem.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [btitem.layer setMasksToBounds:YES]; + [btitem.layer setCornerRadius:8]; + [btitem setBackgroundColor:RGBCOLOR(226, 228, 253)]; + [view addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.bottom.equalTo(view); + make.width.offset(f_w); + if(viewlast) + { + make.left.equalTo(viewlast.mas_right).offset(15); + } + else + { + make.left.offset(35); + } + }]; + [btitem setTag:i]; + [btitem addTarget:self action:@selector(itemAction:) forControlEvents:UIControlEventTouchUpInside]; + viewlast = btitem; + } + +} + + +-(void)drawBottomView:(UIView *)view +{ + UIButton *btsend = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [btsend setTitle:@"开始检测" forState:UIControlStateNormal]; + [btsend setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btsend.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btsend.layer setMasksToBounds:YES]; + [btsend.layer setCornerRadius:8]; + [view addSubview:btsend]; + [btsend mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.offset(10); + make.height.offset(44); + make.right.equalTo(view).offset(-16); + }]; + [btsend addTarget:self action:@selector(bottomAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btsend colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)clearAction +{ + self.textview.text = @""; +} +-(void)copyTextAction:(UIGestureRecognizer *)gesture +{ + UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; + pasteboard.string = self.lbcontent.text; + [HXHud showMessage:@"复制成功" afterDelayType:0]; +} +-(void)itemAction:(UIButton *)sender +{ + sender.selected = !sender.selected; + if(sender.selected) + { + [sender setBackgroundColor:RGBCOLOR(108, 119, 246)]; + } + else + { + [sender setBackgroundColor:RGBCOLOR(226, 228, 253)]; + } +} +-(void)bottomAction +{ + [self.viewout setHidden:NO]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/文本工具/GongJuTextViewController.h b/ProductApp/ProductApp/ProductMain/工具/文本工具/GongJuTextViewController.h new file mode 100644 index 0000000..309bb11 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本工具/GongJuTextViewController.h @@ -0,0 +1,19 @@ +// +// GongJuTextViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuTextViewController : BaseViewController +/// +@property (nonatomic , strong) NSString *strtitle; +/// +@property (nonatomic , assign) int type; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/文本工具/GongJuTextViewController.m b/ProductApp/ProductApp/ProductMain/工具/文本工具/GongJuTextViewController.m new file mode 100644 index 0000000..58dc3e9 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本工具/GongJuTextViewController.m @@ -0,0 +1,56 @@ +// +// GongJuTextViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuTextViewController.h" +#import "GongJuTextView.h" +#import "PauseAlterView.h" + + +@interface GongJuTextViewController () + +@end + +@implementation GongJuTextViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + GongJuTextView *view = [[GongJuTextView alloc] init]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; + view.strtitle = self.strtitle; + view.type = self.type; + + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [PauseAlterView showTitle:@"您已复制文本,是否粘贴?" info:@"文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容文本内容" back:^(NSString * _Nonnull value) { + + }]; + }); +} + + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.h b/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.h new file mode 100644 index 0000000..ffd0557 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.h @@ -0,0 +1,19 @@ +// +// GongJuTextView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuTextView : UIView +/// +@property (nonatomic , strong) NSString *strtitle; +/// +@property (nonatomic , assign) int type; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m b/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m new file mode 100644 index 0000000..17cb172 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m @@ -0,0 +1,286 @@ +// +// GongJuTextView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuTextView.h" +#import "FSTextView.h" + +@interface GongJuTextView () +/// +@property (nonatomic , strong) UIButton *btsend; + +/// +@property (nonatomic , strong) UIScrollView *scvback; + +@property (nonatomic , strong) UILabel *lbname; +/// +@property (nonatomic , strong) FSTextView *textview; + +@property (nonatomic , strong) UIView *viewout; +@property (nonatomic , strong) UILabel *lbcontent; + + +@end + +@implementation GongJuTextView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(self); + make.height.equalTo(self).offset(-TabHeight-30); + }]; + _scvback = scvback; + [self drawInfoView]; + + 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+30); + }]; + [self drawBottomView:viewbottom]; + } + return self; +} + +-(void)drawInfoView +{ + UIView *viewinput = [[UIView alloc] init]; + [viewinput setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewinput]; + [viewinput mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(self.scvback).offset(-40); + make.height.offset(380); + }]; + [Tools normalShadow:viewinput shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [self drawInputView:viewinput]; + + UIView *viewout = [[UIView alloc] init]; + [viewout setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewout]; + [viewout mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewinput); + make.top.equalTo(viewinput.mas_bottom).offset(20); + }]; + [self drawOutView:viewout]; + [Tools normalShadow:viewout shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [viewout setHidden:YES]; + _viewout = viewout; + + [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewout).offset(20); + }]; +} +-(void)drawOutView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"结果"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"(长按可快捷复制)"]; + [lbts setTextColor:RGBCOLOR(109, 109, 109)]; + [lbts setTextAlignment:NSTextAlignmentLeft]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(lbname.mas_right).offset(2); + make.top.offset(16); + }]; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:@"结果"]; + [lbcontent setTextColor:RGBCOLOR(51, 51, 51)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:14]]; + [lbcontent setNumberOfLines:0]; + [view addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(27); + make.right.equalTo(view).offset(-27); + make.top.equalTo(viewline.mas_bottom).offset(17); + }]; + _lbcontent = lbcontent; + + [lbcontent setUserInteractionEnabled:YES]; + UILongPressGestureRecognizer *pressl = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(copyTextAction:)]; + [lbcontent addGestureRecognizer:pressl]; + + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbcontent).offset(25); + }]; +} + +-(void)drawInputView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"提取摘要"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + _lbname = lbname; + + UIView *viewback = [[UIView alloc] init]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewline.mas_bottom).offset(17); + make.bottom.equalTo(view).offset(-20); + make.right.equalTo(view).offset(-20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + [viewback.layer setBorderWidth:2]; + [viewback.layer setBorderColor:RGBCOLOR(238, 238, 238).CGColor]; + + FSTextView *textview = [[FSTextView alloc] init]; + [textview setTextColor:RGBCOLOR(51, 51, 51)]; + [textview setTextAlignment:NSTextAlignmentLeft]; + [textview setFont:[UIFont systemFontOfSize:14]]; + [textview setBackgroundColor:[UIColor clearColor]]; + [textview setPlaceholder:@"请输入您需要提取的文本内容"]; + [viewback addSubview:textview]; + [textview mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(6); + make.right.equalTo(viewback).offset(-6); + make.bottom.equalTo(viewback).offset(-30); + }]; + [textview setMaxLength:2800]; + _textview = textview; + + UILabel *lbnumber = [[UILabel alloc] init]; + [lbnumber setText:@"0/2800"]; + [lbnumber setTextColor:RGBCOLOR(157, 157, 157)]; + [lbnumber setTextAlignment:NSTextAlignmentLeft]; + [lbnumber setFont:[UIFont systemFontOfSize:12]]; + [viewback addSubview:lbnumber]; + [lbnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(10); + make.bottom.equalTo(viewback).offset(-13); + }]; + [textview addTextDidChangeHandler:^(FSTextView *textView) { + [lbnumber setText:[NSString stringWithFormat:@"%ld/2800",textView.text.length]]; + }]; + + UIButton *btdel = [[UIButton alloc] init]; + [btdel setImage:[UIImage imageNamed:@"search_del"] forState:UIControlStateNormal]; + [viewback addSubview:btdel]; + [btdel mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(30); + make.right.equalTo(viewback).offset(-5); + make.centerY.equalTo(lbnumber); + }]; + [btdel addTarget:self action:@selector(clearAction) forControlEvents:UIControlEventTouchUpInside]; +} + + +-(void)drawBottomView:(UIView *)view +{ + UIButton *btsend = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [btsend setTitle:@"处理" forState:UIControlStateNormal]; + [btsend setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btsend.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btsend.layer setMasksToBounds:YES]; + [btsend.layer setCornerRadius:8]; + [view addSubview:btsend]; + [btsend mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.offset(10); + make.height.offset(44); + make.right.equalTo(view).offset(-16); + }]; + _btsend = btsend; + [btsend setTag:1]; + [btsend addTarget:self action:@selector(bottomAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btsend colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)setStrtitle:(NSString *)strtitle +{ + self.lbname.text = strtitle; +} +-(void)setType:(int)type +{ + _type = type; + if(type==8) + { + [self.btsend setTitle:@"开始扩写" forState:UIControlStateNormal]; + self.textview.placeholder = @"请输入您需要扩写的文本内容"; + } + else if (type==7) + { + [self.btsend setTitle:@"开始缩写" forState:UIControlStateNormal]; + self.textview.placeholder = @"请输入您需要缩写的文本内容"; + } + else if (type==6) + { + [self.btsend setTitle:@"开始提取" forState:UIControlStateNormal]; + self.textview.placeholder = @"请输入您需要提取的文本内容"; + } + else if (type==3) + { + [self.btsend setTitle:@"开始提取关键词" forState:UIControlStateNormal]; + self.textview.placeholder = @"请输入您需要提取的文本内容"; + } +} +-(void)clearAction +{ + self.textview.text = @""; +} +-(void)copyTextAction:(UIGestureRecognizer *)gesture +{ + UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; + pasteboard.string = self.lbcontent.text; + [HXHud showMessage:@"复制成功" afterDelayType:0]; +} +-(void)bottomAction +{ + [self.viewout setHidden:NO]; +} +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/文本比较/GongJuWenBenViewController.h b/ProductApp/ProductApp/ProductMain/工具/文本比较/GongJuWenBenViewController.h new file mode 100644 index 0000000..3ad531e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本比较/GongJuWenBenViewController.h @@ -0,0 +1,16 @@ +// +// GongJuWenBenViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuWenBenViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/文本比较/GongJuWenBenViewController.m b/ProductApp/ProductApp/ProductMain/工具/文本比较/GongJuWenBenViewController.m new file mode 100644 index 0000000..67123d0 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本比较/GongJuWenBenViewController.m @@ -0,0 +1,48 @@ +// +// GongJuWenBenViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuWenBenViewController.h" +#import "GongJuWenBenView.h" + +@interface GongJuWenBenViewController () + +@end + +@implementation GongJuWenBenViewController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + GongJuWenBenView *view = [[GongJuWenBenView 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/GongJuWenBenView.h b/ProductApp/ProductApp/ProductMain/工具/文本比较/view/GongJuWenBenView.h new file mode 100644 index 0000000..f86a4c5 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本比较/view/GongJuWenBenView.h @@ -0,0 +1,16 @@ +// +// GongJuWenBenView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuWenBenView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/文本比较/view/GongJuWenBenView.m b/ProductApp/ProductApp/ProductMain/工具/文本比较/view/GongJuWenBenView.m new file mode 100644 index 0000000..3b30cef --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/文本比较/view/GongJuWenBenView.m @@ -0,0 +1,198 @@ +// +// GongJuWenBenView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuWenBenView.h" +#import "FSTextView.h" + +@interface GongJuWenBenView () +/// +@property (nonatomic , strong) FSTextView *textone; + +@property (nonatomic , strong) FSTextView *texttwo; +@end + +@implementation GongJuWenBenView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.right.equalTo(self).offset(-20); + make.bottom.equalTo(self).offset(-TabHeight-67); + }]; + [Tools normalShadow:viewback shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + + UIView *viewone = [[UIView alloc] init]; + [viewone setBackgroundColor:[UIColor clearColor]]; + [viewback addSubview:viewone]; + [viewone mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(viewback); + make.height.equalTo(viewback).multipliedBy(0.5).offset(-10); + }]; + _textone = [self drawWenBenView:viewone title:@"文本一" tag:0]; + + UIView *viewtwo = [[UIView alloc] init]; + [viewtwo setBackgroundColor:[UIColor clearColor]]; + [viewback addSubview:viewtwo]; + [viewtwo mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewback); + make.top.equalTo(viewone.mas_bottom); + make.height.equalTo(viewback).multipliedBy(0.5).offset(-10); + }]; + _texttwo = [self drawWenBenView:viewtwo title:@"文本二" tag:1]; + [[viewtwo viewWithTag:1000] setHidden:YES]; + [[viewtwo viewWithTag:1] setHidden:YES]; + + UILabel *lbts = [[UILabel alloc] init]; + [lbts setText:@"温馨提示:仅支持输入汉字,数字以及标点符号。"]; + [lbts setTextColor:RGBCOLOR(157, 157, 157)]; + [lbts setTextAlignment:NSTextAlignmentCenter]; + [lbts setFont:[UIFont systemFontOfSize:12]]; + [self addSubview:lbts]; + [lbts mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(viewback.mas_bottom).offset(10); + make.centerX.equalTo(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+30); + }]; + [self drawBottomView:viewbottom]; + + } + return self; +} + +-(FSTextView *)drawWenBenView:(UIView *)view title:(NSString *)title tag:(int)tag +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:title]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UIView *viewback = [[UIView alloc] init]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewline.mas_bottom).offset(17); + make.bottom.equalTo(view).offset(-1); + make.right.equalTo(view).offset(-20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + [viewback.layer setBorderWidth:2]; + [viewback.layer setBorderColor:RGBCOLOR(238, 238, 238).CGColor]; + + FSTextView *textview = [[FSTextView alloc] init]; + [textview setTextColor:RGBCOLOR(51, 51, 51)]; + [textview setTextAlignment:NSTextAlignmentLeft]; + [textview setFont:[UIFont systemFontOfSize:14]]; + [textview setBackgroundColor:[UIColor clearColor]]; + [textview setPlaceholder:@"请输入或者粘贴文本内容"]; + [viewback addSubview:textview]; + [textview mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(6); + make.right.equalTo(viewback).offset(-6); + make.bottom.equalTo(viewback).offset(-30); + }]; + + UILabel *lbnumber = [[UILabel alloc] init]; + [lbnumber setText:@"0"]; + [lbnumber setTextColor:RGBCOLOR(157, 157, 157)]; + [lbnumber setTextAlignment:NSTextAlignmentLeft]; + [lbnumber setFont:[UIFont systemFontOfSize:12]]; + [viewback addSubview:lbnumber]; + [lbnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(10); + make.bottom.equalTo(viewback).offset(-13); + }]; + [lbnumber setTag:1000]; + [textview addTextDidChangeHandler:^(FSTextView *textView) { + [lbnumber setText:[NSString stringWithFormat:@"%ld",textView.text.length]]; + }]; + + UIButton *btdel = [[UIButton alloc] init]; + [btdel setImage:[UIImage imageNamed:@"search_del"] forState:UIControlStateNormal]; + [viewback addSubview:btdel]; + [btdel mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(30); + make.right.equalTo(viewback).offset(-5); + make.centerY.equalTo(lbnumber); + }]; + [btdel setTag:tag]; + [btdel addTarget:self action:@selector(clearAction:) forControlEvents:UIControlEventTouchUpInside]; + return textview; +} +-(void)drawBottomView:(UIView *)view +{ + UIButton *btsend = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [btsend setTitle:@"文本比较" forState:UIControlStateNormal]; + [btsend setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btsend.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btsend.layer setMasksToBounds:YES]; + [btsend.layer setCornerRadius:8]; + [view addSubview:btsend]; + [btsend mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.offset(10); + make.height.offset(44); + make.right.equalTo(view).offset(-16); + }]; + [btsend addTarget:self action:@selector(bottomAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btsend colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)clearAction:(UIButton *)sender +{ + if(sender.tag==1) + { + self.texttwo.text = @""; + + [[self.texttwo.superview viewWithTag:1000] setHidden:YES]; + [[self.texttwo.superview viewWithTag:1] setHidden:YES]; + } + else + { + self.textone.text = @""; + } +} + +-(void)bottomAction +{ + [[self.texttwo.superview viewWithTag:1000] setHidden:NO]; + [[self.texttwo.superview viewWithTag:1] setHidden:NO]; + + + +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/GongJuFanYiViewController.h b/ProductApp/ProductApp/ProductMain/工具/智能翻译/GongJuFanYiViewController.h new file mode 100644 index 0000000..9b261ed --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/GongJuFanYiViewController.h @@ -0,0 +1,16 @@ +// +// GongJuFanYiViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuFanYiViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/GongJuFanYiViewController.m b/ProductApp/ProductApp/ProductMain/工具/智能翻译/GongJuFanYiViewController.m new file mode 100644 index 0000000..90b1b25 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/GongJuFanYiViewController.m @@ -0,0 +1,49 @@ +// +// GongJuFanYiViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuFanYiViewController.h" +#import "GongJuFanYiView.h" + + +@interface GongJuFanYiViewController () + +@end + +@implementation GongJuFanYiViewController + +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + GongJuFanYiView *view = [[GongJuFanYiView 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/工具/智能翻译/cell/LanguageSelectAlterTableViewCell.h b/ProductApp/ProductApp/ProductMain/工具/智能翻译/cell/LanguageSelectAlterTableViewCell.h new file mode 100644 index 0000000..0ac47a8 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/cell/LanguageSelectAlterTableViewCell.h @@ -0,0 +1,17 @@ +// +// LanguageSelectAlterTableViewCell.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface LanguageSelectAlterTableViewCell : UITableViewCell +/// +@property (nonatomic , strong) UILabel *lbname; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/cell/LanguageSelectAlterTableViewCell.m b/ProductApp/ProductApp/ProductMain/工具/智能翻译/cell/LanguageSelectAlterTableViewCell.m new file mode 100644 index 0000000..c877865 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/cell/LanguageSelectAlterTableViewCell.m @@ -0,0 +1,53 @@ +// +// LanguageSelectAlterTableViewCell.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "LanguageSelectAlterTableViewCell.h" + +@interface LanguageSelectAlterTableViewCell () + +@end + +@implementation LanguageSelectAlterTableViewCell + +-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier +{ + if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) + { + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self.contentView addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(self); + }]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@""]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:14]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.centerY.equalTo(viewback); + }]; + _lbname = lbname; + + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(238, 238, 238)]; + [viewback addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(viewback).offset(-20); + make.bottom.equalTo(viewback); + make.height.offset(1); + }]; + + } + return self; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.h b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.h new file mode 100644 index 0000000..39a5062 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.h @@ -0,0 +1,16 @@ +// +// GongJuFanYiView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuFanYiView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m new file mode 100644 index 0000000..674ea53 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m @@ -0,0 +1,385 @@ +// +// GongJuFanYiView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuFanYiView.h" +#import "FSTextView.h" +#import "NetWorkManager.h" +#import "LanguageSelectAlterView.h" + + +@interface GongJuFanYiView () +/// +@property (nonatomic , strong) UIScrollView *scvback; +/// +@property (nonatomic , strong) FSTextView *textview; + +@property (nonatomic , strong) UIView *viewout; +@property (nonatomic , strong) UILabel *lbcontent; + +/// +@property (nonatomic , strong) UILabel *lbone; +@property (nonatomic , strong) UILabel *lbtwo; + +/// +@property (nonatomic , strong) NSMutableArray *arrdata; + +@end +@implementation GongJuFanYiView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [self addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(0); + make.width.equalTo(self); + make.height.equalTo(self).offset(-TabHeight-70); + }]; + _scvback = scvback; + [self drawInfoView]; + + 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+70); + }]; + [self drawBottomView:viewbottom]; + + [self getCountryData]; + + } + return self; +} + +-(void)drawInfoView +{ + UIView *viewinput = [[UIView alloc] init]; + [viewinput setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewinput]; + [viewinput mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(20); + make.width.equalTo(self.scvback).offset(-40); + make.height.offset(380); + }]; + [Tools normalShadow:viewinput shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [self drawInputView:viewinput]; + + UIView *viewout = [[UIView alloc] init]; + [viewout setBackgroundColor:[UIColor whiteColor]]; + [self.scvback addSubview:viewout]; + [viewout mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(viewinput); + make.top.equalTo(viewinput.mas_bottom).offset(20); + }]; + [self drawOutView:viewout]; + [Tools normalShadow:viewout shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:20 shadowRadius:10]; + [viewout setHidden:YES]; + _viewout = viewout; + + [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(viewout).offset(20); + }]; +} +-(void)drawOutView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"结果"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:@"结果"]; + [lbcontent setTextColor:RGBCOLOR(51, 51, 51)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:14]]; + [lbcontent setNumberOfLines:0]; + [view addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(27); + make.right.equalTo(view).offset(-27); + make.top.equalTo(viewline.mas_bottom).offset(17); + }]; + _lbcontent = lbcontent; + + [lbcontent setUserInteractionEnabled:YES]; + UILongPressGestureRecognizer *pressl = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(copyTextAction:)]; + [lbcontent addGestureRecognizer:pressl]; + + + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbcontent).offset(25); + }]; +} + +-(void)drawInputView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 7, 17)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(23); + make.size.sizeOffset(CGSizeMake(7, 17)); + }]; + [viewline.layer setMasksToBounds:YES]; + [viewline.layer setCornerRadius:3.5]; + [Tools changedView:viewline colors:@[(id)RGBCOLOR(42, 211, 237).CGColor,(id)RGBCOLOR(167, 247, 153).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(0, 1)]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"智能翻译"]; + [lbname setTextColor:RGBCOLOR(26, 26, 17)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewline); + make.left.equalTo(viewline.mas_right).offset(6); + }]; + + UIView *viewback = [[UIView alloc] init]; + [view addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.equalTo(viewline.mas_bottom).offset(17); + make.bottom.equalTo(view).offset(-20); + make.right.equalTo(view).offset(-20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:20]; + [viewback.layer setBorderWidth:2]; + [viewback.layer setBorderColor:RGBCOLOR(238, 238, 238).CGColor]; + + FSTextView *textview = [[FSTextView alloc] init]; + [textview setTextColor:RGBCOLOR(51, 51, 51)]; + [textview setTextAlignment:NSTextAlignmentLeft]; + [textview setFont:[UIFont systemFontOfSize:14]]; + [textview setBackgroundColor:[UIColor clearColor]]; + [textview setPlaceholder:@"请输入需要翻译的文本内容"]; + [viewback addSubview:textview]; + [textview mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(6); + make.right.equalTo(viewback).offset(-6); + make.bottom.equalTo(viewback).offset(-30); + }]; + [textview setMaxLength:2800]; + _textview = textview; + + UILabel *lbnumber = [[UILabel alloc] init]; + [lbnumber setText:@"0/2800"]; + [lbnumber setTextColor:RGBCOLOR(157, 157, 157)]; + [lbnumber setTextAlignment:NSTextAlignmentLeft]; + [lbnumber setFont:[UIFont systemFontOfSize:12]]; + [viewback addSubview:lbnumber]; + [lbnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(10); + make.bottom.equalTo(viewback).offset(-13); + }]; + [textview addTextDidChangeHandler:^(FSTextView *textView) { + [lbnumber setText:[NSString stringWithFormat:@"%ld/2800",textView.text.length]]; + }]; + + UIButton *btdel = [[UIButton alloc] init]; + [btdel setImage:[UIImage imageNamed:@"search_del"] forState:UIControlStateNormal]; + [viewback addSubview:btdel]; + [btdel mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(30); + make.right.equalTo(viewback).offset(-5); + make.centerY.equalTo(lbnumber); + }]; + [btdel addTarget:self action:@selector(clearAction) forControlEvents:UIControlEventTouchUpInside]; +} + +-(UILabel *)drawYuYanView:(UIView *)view value:(NSString *)value tag:(int)tag +{ + [view.layer setMasksToBounds:YES]; + [view.layer setCornerRadius:12]; + [view.layer setBorderWidth:1]; + [view.layer setBorderColor:RGBCOLOR(216, 216, 216).CGColor]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:value]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(5); + make.right.equalTo(view).offset(-35); + make.centerY.equalTo(view); + }]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"gj_country"]]; + [view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.width.height.offset(24); + make.centerY.equalTo(view); + make.right.equalTo(view).offset(-10); + }]; + + UIButton *btitem = [[UIButton alloc] init]; + [view addSubview:btitem]; + [btitem mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(view); + }]; + [btitem setTag:tag]; + [btitem addTarget:self action:@selector(countryAction:) forControlEvents:UIControlEventTouchUpInside]; + + return lbname; +} + +-(void)drawBottomView:(UIView *)view +{ + UIView *viewline = [[UIView alloc] init]; + [viewline setBackgroundColor:RGBCOLOR(238, 238, 238)]; + [view addSubview:viewline]; + [viewline mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(view); + make.height.offset(1); + }]; + + float f_width = (UISCREEN_WIDTH-90)/2.0; + + UIView *viewone = [[UIView alloc] init]; + [view addSubview:viewone]; + [viewone mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.top.offset(10); + make.height.offset(33); + make.width.offset(f_width); + }]; + _lbone = [self drawYuYanView:viewone value:@"自动检测" tag:0]; + + UIButton *btchange = [[UIButton alloc] init]; + [btchange setImage:[UIImage imageNamed:@"gj_切换"] forState:UIControlStateNormal]; + [view addSubview:btchange]; + [btchange mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerY.equalTo(viewone); + make.left.equalTo(viewone.mas_right); + make.width.offset(50); + make.height.offset(33); + }]; + [btchange addTarget:self action:@selector(changeAction) forControlEvents:UIControlEventTouchUpInside]; + + UIView *viewtwo = [[UIView alloc] init]; + [view addSubview:viewtwo]; + [viewtwo mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.equalTo(btchange.mas_right); + make.top.width.height.equalTo(viewone); + }]; + _lbtwo = [self drawYuYanView:viewtwo value:@"英语" tag:1]; + + + UIButton *btsend = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [btsend setTitle:@"开始翻译" forState:UIControlStateNormal]; + [btsend setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btsend.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btsend.layer setMasksToBounds:YES]; + [btsend.layer setCornerRadius:8]; + [view addSubview:btsend]; + [btsend mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.offset(53); + make.height.offset(44); + make.right.equalTo(view).offset(-16); + }]; + [btsend addTarget:self action:@selector(bottomAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btsend colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)clearAction +{ + self.textview.text = @""; +} +-(void)copyTextAction:(UIGestureRecognizer *)gesture +{ + UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; + pasteboard.string = self.lbcontent.text; + [HXHud showMessage:@"复制成功" afterDelayType:0]; +} +-(void)changeAction +{ + NSString *str = self.lbone.text; + if([str isEqualToString:@"自动检测"]) + { + return; + } + + self.lbone.text = self.lbtwo.text; + self.lbtwo.text = str; +} +-(void)countryAction:(UIButton *)sender +{ + LanguageSelectAlterView *view = [[LanguageSelectAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + [self.viewController.view addSubview:view]; + view.arrdata = self.arrdata; + [view setBackValue:^(NSString * _Nonnull value) { + if(sender.tag==1) + { + self.lbtwo.text = value; + } + else + { + self.lbone.text = value; + } + }]; +} +-(void)bottomAction +{ + [self.viewout setHidden:NO]; +} + +-(void)getCountryData +{ + [HXLoadingHUD showWithStatus:@"" maskType:0]; + [NetWorkManager requestTranslateLanguageKeyData:self Callback:^(BOOL state, LanguageKeyModel *responseObject, NSString * _Nullable describle) { + [HXLoadingHUD dismiss]; + if(state) + { + self.arrdata = [NSMutableArray new]; + LanguageKeyModelData *model = [LanguageKeyModelData new]; + model.key = @"#"; + NSArray *arrtt = @[@"自动检测",@"中文",@"英语"]; + NSMutableArray *arritems = [NSMutableArray new]; + for(NSString *str in arrtt) + { + LanguageKeyModelDataList *modelson = [LanguageKeyModelDataList new]; + modelson.cn_name = str; + [arritems addObject:modelson]; + } + model.list = arritems; + [self.arrdata addObject:model]; + [self.arrdata addObjectsFromArray:responseObject.data]; + } + else + { + [HXHud showMessage:responseObject.message afterDelayType:1]; + } + }]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/LanguageSelectAlterView.h b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/LanguageSelectAlterView.h new file mode 100644 index 0000000..4fe128e --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/LanguageSelectAlterView.h @@ -0,0 +1,19 @@ +// +// LanguageSelectAlterView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import +#import "LanguageKeyModel.h" +NS_ASSUME_NONNULL_BEGIN +typedef void(^LanguageSelectAlterViewBack)(NSString *value); +@interface LanguageSelectAlterView : UIView +/// +@property (nonatomic , strong) NSArray *arrdata; +/// +@property (nonatomic , strong) LanguageSelectAlterViewBack backValue; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/LanguageSelectAlterView.m b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/LanguageSelectAlterView.m new file mode 100644 index 0000000..c06b9f5 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/LanguageSelectAlterView.m @@ -0,0 +1,175 @@ +// +// LanguageSelectAlterView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "LanguageSelectAlterView.h" +#import "LanguageSelectAlterTableViewCell.h" + +@interface LanguageSelectAlterView () +/// +@property (nonatomic , strong) UITableView *tableView; + +@end + +@implementation LanguageSelectAlterView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + [self setBackgroundColor:RGBACOLOR(0, 0, 0, 0.4)]; + + + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.right.equalTo(self).offset(-20); + make.height.offset(UISCREEN_HEIGHT*0.7); + make.bottom.equalTo(self).offset(-TabHeight+20); + }]; + [viewback.layer setMasksToBounds:YES]; + [viewback.layer setCornerRadius:30]; + [self drawInfoView:viewback]; + } + 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 boldSystemFontOfSize:18]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.centerX.equalTo(view); + }]; + + UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain]; + [tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone]; + [tableView setBackgroundColor:[UIColor clearColor]]; + [tableView setDelegate:self]; + [tableView setDataSource:self]; + [view addSubview:tableView]; + [tableView mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(view); + make.top.offset(60); + }]; + _tableView = tableView; + +} + +-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event +{ + NSArray *arrtouch = touches.allObjects; + for(UITouch *touch in arrtouch) + { + if([touch.view isEqual:self]) + { + [self removeFromSuperview]; + return; + } + } +} +-(void)setArrdata:(NSArray *)arrdata +{ + _arrdata = arrdata; + + [self.tableView reloadData]; +} +#pragma mark - UITableView +-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView +{ + return self.arrdata.count; +} +-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section +{ + LanguageKeyModelData *model = self.arrdata[section]; + return model.list.count; +} +-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath +{ + static NSString *strcell = @"LanguageSelectAlterTableViewCell"; + LanguageSelectAlterTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell]; + if(!cell) + { + cell = [[LanguageSelectAlterTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:strcell]; + [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; + [cell setBackgroundColor:[UIColor clearColor]]; + } + LanguageKeyModelData *model = self.arrdata[indexPath.section]; + LanguageKeyModelDataList *modelson = model.list[indexPath.row]; + cell.lbname.text = modelson.cn_name; + + return cell; +} +-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section +{ + return 30; +} +-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section +{ + return 0.01; +} +-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath +{ + return 50; +} +-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section +{ + UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-40, 30)]; + [view setBackgroundColor:[UIColor whiteColor]]; + LanguageKeyModelData *model = self.arrdata[section]; + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:model.key]; + if([model.key isEqualToString:@"#"]) + { + [lbname setText:@"常用语言"]; + } + [lbname setTextColor:RGBCOLOR(109, 109, 109)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:12]]; + [view addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(20); + make.centerY.equalTo(view); + }]; + + return view; +} +-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section +{ + return [UIView new]; +} +- (nullable NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView +{ + + NSMutableArray *arrkey = [NSMutableArray new]; + for(LanguageKeyModelData *model in self.arrdata) + { + [arrkey addObject:model.key]; + } + + return arrkey; +} +-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath +{ + LanguageKeyModelData *model = self.arrdata[indexPath.section]; + + LanguageKeyModelDataList *modelson = model.list[indexPath.row]; + if(self.backValue) + { + self.backValue(modelson.cn_name); + } + [self removeFromSuperview]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/GongJuCreateView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/GongJuCreateView.m index e249ec6..eb8a632 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/GongJuCreateView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/GongJuCreateView.m @@ -11,6 +11,8 @@ #import "GongJuCreateSelectView.h" #import "GongJuCreateTimeView.h" #import "GongJuCreateTimeTwoView.h" +#import "GongJuCreateResultViewController.h" + @interface GongJuCreateView () /// @@ -218,7 +220,25 @@ -(void)bottomAction:(UIButton *)sender { - + if(sender.tag==0) + { + for(GongJuCreateSuperView *view in self.arrViews) + { + [view clearValue]; + } + } + else + { + for(GongJuCreateSuperView *view in self.arrViews) + { + NSLog(@"%@",[view getValues]); + + } + + GongJuCreateResultViewController *vc = [GongJuCreateResultViewController new]; + [self.viewController.navigationController pushViewController:vc animated:YES]; + + } } @end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.h index 87df778..8de0ea6 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.h +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.h @@ -5,13 +5,14 @@ // Created by 工作 on 2024/10/15. // -#import +#import "GongJuCreateSuperView.h" #import "ToolsListModel.h" NS_ASSUME_NONNULL_BEGIN -@interface GongJuCreateInputView : UIView +@interface GongJuCreateInputView : GongJuCreateSuperView /// @property (nonatomic , strong) ToolsListModelDataItemsConfigPrompt *model; + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.m index 94ee5d4..b9fbf7f 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateInputView.m @@ -86,6 +86,12 @@ } } - - +-(void)clearValue +{ + self.field.text = @""; +} +-(NSString *)getValues +{ + return self.field.text; +} @end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.h index 0aab8ca..2e257b0 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.h +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.h @@ -5,14 +5,15 @@ // Created by 工作 on 2024/10/15. // -#import +#import "GongJuCreateSuperView.h" #import "ToolsListModel.h" NS_ASSUME_NONNULL_BEGIN -@interface GongJuCreateSelectView : UIView +@interface GongJuCreateSelectView : GongJuCreateSuperView /// @property (nonatomic , strong) ToolsListModelDataItemsConfigPrompt *model; + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.m index 63638d4..73706c2 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateSelectView.m @@ -256,5 +256,35 @@ } return isyou; } - +-(void)clearValue +{ + [self.arrSelect removeAllObjects]; + for(UIButton *bt in self.arrBtn) + { + [bt setSelected:NO]; + [bt setBackgroundColor:RGBCOLOR(246, 246, 246)]; + } + self.fieldOther.text = @""; + [self.viewother setHidden:YES]; + [self.viewother mas_updateConstraints:^(MASConstraintMaker *make) { + make.height.offset(0); + }]; +} +-(NSString *)getValues +{ + NSMutableArray *arrt = [NSMutableArray new]; + for(UIButton *btn in self.arrSelect) + { + + if([btn.titleLabel.text isEqualToString:@"其他"]) + { + [arrt addObject:self.fieldOther.text]; + } + else + { + [arrt addObject:btn.titleLabel.text]; + } + } + return [arrt componentsJoinedByString:@","]; +} @end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.h index c38f756..5161ed1 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.h +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.h @@ -5,13 +5,15 @@ // Created by 工作 on 2024/10/15. // -#import +#import "GongJuCreateSuperView.h" #import "ToolsListModel.h" NS_ASSUME_NONNULL_BEGIN -@interface GongJuCreateTextInputView : UIView +@interface GongJuCreateTextInputView : GongJuCreateSuperView /// @property (nonatomic , strong) ToolsListModelDataItemsConfigPrompt *model; + + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.m index b9eb3af..fe933cc 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTextInputView.m @@ -111,5 +111,12 @@ } } - +-(void)clearValue +{ + self.textview.text = @""; +} +-(NSString *)getValues +{ + return self.textview.text; +} @end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.h index ad97c1e..6f45355 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.h +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.h @@ -5,13 +5,14 @@ // Created by 工作 on 2024/10/15. // -#import +#import "GongJuCreateSuperView.h" #import "ToolsListModel.h" NS_ASSUME_NONNULL_BEGIN -@interface GongJuCreateTimeTwoView : UIView +@interface GongJuCreateTimeTwoView : GongJuCreateSuperView /// @property (nonatomic , strong) ToolsListModelDataItemsConfigPrompt *model; + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.m index 9541690..61edd82 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeTwoView.m @@ -154,6 +154,15 @@ }]; [view show]; } +-(void)clearValue +{ + self.fieldStart.text = @""; + self.fieldEnd.text = @""; +} +-(NSString *)getValues +{ + return [NSString stringWithFormat:@"%@,%@",self.fieldStart.text,self.fieldEnd.text]; +} -(NSString *)getFormat { NSString *strback = @"yyyy-MM-dd"; diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.h index 63f00cb..137ddb3 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.h +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.h @@ -5,13 +5,15 @@ // Created by 工作 on 2024/10/15. // -#import +#import "GongJuCreateSuperView.h" #import "ToolsListModel.h" NS_ASSUME_NONNULL_BEGIN -@interface GongJuCreateTimeView : UIView +@interface GongJuCreateTimeView : GongJuCreateSuperView /// @property (nonatomic , strong) ToolsListModelDataItemsConfigPrompt *model; + + @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.m index 8324163..d760ab5 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/GongJuCreateTimeView.m @@ -103,6 +103,14 @@ }]; [view show]; } +-(void)clearValue +{ + self.field.text = @""; +} +-(NSString *)getValues +{ + return self.field.text; +} -(NSString *)getFormat { NSString *strback = @"yyyy-MM-dd"; diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/superItemView/GongJuCreateSuperView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/superItemView/GongJuCreateSuperView.h new file mode 100644 index 0000000..d23f124 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/superItemView/GongJuCreateSuperView.h @@ -0,0 +1,17 @@ +// +// GongJuCreateSuperView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuCreateSuperView : UIView +-(void)clearValue; +-(NSString *)getValues; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/superItemView/GongJuCreateSuperView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/superItemView/GongJuCreateSuperView.m new file mode 100644 index 0000000..0978512 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/view/son/superItemView/GongJuCreateSuperView.m @@ -0,0 +1,28 @@ +// +// GongJuCreateSuperView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuCreateSuperView.h" + +@implementation GongJuCreateSuperView + +/* +// Only override drawRect: if you perform custom drawing. +// An empty implementation adversely affects performance during animation. +- (void)drawRect:(CGRect)rect { + // Drawing code +} +*/ +-(void)clearValue +{ + +} +-(NSString *)getValues +{ + return @""; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/GongJuCreateResultViewController.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/GongJuCreateResultViewController.h new file mode 100644 index 0000000..738878c --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/GongJuCreateResultViewController.h @@ -0,0 +1,16 @@ +// +// GongJuCreateResultViewController.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "BaseViewController.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuCreateResultViewController : BaseViewController + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/GongJuCreateResultViewController.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/GongJuCreateResultViewController.m new file mode 100644 index 0000000..bbc1967 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/GongJuCreateResultViewController.m @@ -0,0 +1,47 @@ +// +// GongJuCreateResultViewController.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuCreateResultViewController.h" +#import "GongJuCreateResultView.h" + + +@interface GongJuCreateResultViewController () + +@end + +@implementation GongJuCreateResultViewController +- (UIStatusBarStyle)preferredStatusBarStyle { + return UIStatusBarStyleDefault; +} +- (void)viewWillAppear:(BOOL)animated { + [super viewWillAppear:animated]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; + [self showNaviGationView:YES]; + [self.navigationView setTitle:@"结果" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setBackgroundColor:[UIColor clearColor]]; +} +- (void)viewDidLoad { + [super viewDidLoad]; + [self.view setBackgroundColor:RGBCOLOR(251, 251, 253)]; + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[UIImage imageNamed:@"znxz_back"]]; + [self.view addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.top.equalTo(self.view); + }]; + [self.view sendSubviewToBack:imgvback]; + + GongJuCreateResultView *view = [GongJuCreateResultView new]; + [self.view addSubview:view]; + [view mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.bottom.equalTo(self.view); + make.top.offset(NavHeight); + }]; +} + + +@end diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.h b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.h new file mode 100644 index 0000000..8202676 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.h @@ -0,0 +1,16 @@ +// +// GongJuCreateResultView.h +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface GongJuCreateResultView : UIView + +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m new file mode 100644 index 0000000..0d11d56 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m @@ -0,0 +1,126 @@ +// +// GongJuCreateResultView.m +// ProductApp +// +// Created by 工作 on 2024/10/16. +// + +#import "GongJuCreateResultView.h" + + +@interface GongJuCreateResultView () +/// +@property (nonatomic , strong) UILabel *lbcontent; + +@end + +@implementation GongJuCreateResultView + +-(id)initWithFrame:(CGRect)frame +{ + if(self = [super initWithFrame:frame]) + { + + UIView *viewback = [[UIView alloc] init]; + [viewback setBackgroundColor:[UIColor whiteColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.offset(16); + make.right.equalTo(self).offset(-16); + make.bottom.equalTo(self).offset(-TabHeight-100); + }]; + [Tools normalShadow:viewback shadowColor:RGBACOLOR(211, 218, 225, 0.2) shadowOpacity:1 cornerRadius:8 shadowRadius:10]; + [self drawInfoView: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+30); + }]; + [self drawBottomView:viewbottom]; + + } + return self; +} +-(void)drawInfoView:(UIView *)viewback +{ + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"结果(长按可快捷复制)"]; + [lbname setTextColor:RGBCOLOR(153, 153, 153)]; + [lbname setTextAlignment:NSTextAlignmentLeft]; + [lbname setFont:[UIFont systemFontOfSize:14]]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(12); + make.top.offset(16); + }]; + lbname.attributedText = [Tools arrstring:lbname.text andstart:0 andend:2 andfont:[UIFont systemFontOfSize:14] andcolor:RGBCOLOR(102, 102, 102)]; + + UIScrollView *scvback = [[UIScrollView alloc] init]; + [scvback setShowsVerticalScrollIndicator:NO]; + [viewback addSubview:scvback]; + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(12); + make.width.equalTo(viewback).offset(-24); + make.top.offset(48); + make.height.equalTo(viewback).offset(-58); + }]; + + UILabel *lbcontent = [[UILabel alloc] init]; + [lbcontent setText:@"结果内容"]; + [lbcontent setNumberOfLines:0]; + [lbcontent setTextColor:RGBCOLOR(26, 26, 26)]; + [lbcontent setTextAlignment:NSTextAlignmentLeft]; + [lbcontent setFont:[UIFont systemFontOfSize:15]]; + [scvback addSubview:lbcontent]; + [lbcontent mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.top.width.equalTo(scvback); + }]; + _lbcontent = lbcontent; + + [scvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(lbcontent); + }]; + + UILongPressGestureRecognizer *longpresee = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(LongbottomAction:)]; + [lbcontent setUserInteractionEnabled:YES]; + [lbcontent addGestureRecognizer:longpresee]; + +} +-(void)drawBottomView:(UIView *)view +{ + UIButton *btsend = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-32, 44)]; + [btsend setTitle:@"复制" forState:UIControlStateNormal]; + [btsend setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btsend.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btsend.layer setMasksToBounds:YES]; + [btsend.layer setCornerRadius:8]; + [view addSubview:btsend]; + [btsend mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(16); + make.top.offset(10); + make.height.offset(44); + make.right.equalTo(view).offset(-16); + }]; + [btsend setTag:1]; + [btsend addTarget:self action:@selector(bottomAction) forControlEvents:UIControlEventTouchUpInside]; + [Tools changedView:btsend colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; +} +-(void)LongbottomAction:(UIGestureRecognizer *)gesture +{ + if(gesture.state == UIGestureRecognizerStateBegan) + { + [self bottomAction]; + } +} +-(void)bottomAction +{ + UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; + pasteboard.string = self.lbcontent.text; + [HXHud showMessage:@"复制成功" afterDelayType:0]; +} + +@end