diff --git a/ProductApp/ProductApp.xcodeproj/project.pbxproj b/ProductApp/ProductApp.xcodeproj/project.pbxproj index b070432..13e4a80 100644 --- a/ProductApp/ProductApp.xcodeproj/project.pbxproj +++ b/ProductApp/ProductApp.xcodeproj/project.pbxproj @@ -269,6 +269,7 @@ CA9CFF712CC9E9E300C3E90E /* RoleInfoModel.m in Sources */ = {isa = PBXBuildFile; fileRef = CA9CFF702CC9E9E300C3E90E /* RoleInfoModel.m */; }; CA9CFF742CCA2FB200C3E90E /* SSEDrawListTextModel.m in Sources */ = {isa = PBXBuildFile; fileRef = CA9CFF732CCA2FB200C3E90E /* SSEDrawListTextModel.m */; }; CA9CFF772CCA457400C3E90E /* XieZuoSaveAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CA9CFF762CCA457400C3E90E /* XieZuoSaveAlterView.m */; }; + CAA144CA2CDC66A300A25AC4 /* UpdataAlterView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA144C92CDC66A300A25AC4 /* UpdataAlterView.m */; }; CAA600CD2CA92FB700026CF4 /* FXErView.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600CC2CA92FB700026CF4 /* FXErView.m */; }; CAA600D12CA9565500026CF4 /* KeTangXieZuoViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D02CA9565500026CF4 /* KeTangXieZuoViewController.m */; }; CAA600D52CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = CAA600D42CA9579800026CF4 /* KeTangXieZuoCollectionViewCell.m */; }; @@ -1030,6 +1031,8 @@ CA9CFF732CCA2FB200C3E90E /* SSEDrawListTextModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SSEDrawListTextModel.m; sourceTree = ""; }; CA9CFF752CCA457400C3E90E /* XieZuoSaveAlterView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XieZuoSaveAlterView.h; sourceTree = ""; }; CA9CFF762CCA457400C3E90E /* XieZuoSaveAlterView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XieZuoSaveAlterView.m; sourceTree = ""; }; + CAA144C82CDC66A300A25AC4 /* UpdataAlterView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = UpdataAlterView.h; sourceTree = ""; }; + CAA144C92CDC66A300A25AC4 /* UpdataAlterView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = UpdataAlterView.m; sourceTree = ""; }; CAA600CB2CA92FB700026CF4 /* FXErView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FXErView.h; sourceTree = ""; }; CAA600CC2CA92FB700026CF4 /* FXErView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = FXErView.m; sourceTree = ""; }; CAA600CF2CA9565500026CF4 /* KeTangXieZuoViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeTangXieZuoViewController.h; sourceTree = ""; }; @@ -2042,6 +2045,8 @@ CA11ED692CA6924800209DFC /* alter */ = { isa = PBXGroup; children = ( + CAA144C82CDC66A300A25AC4 /* UpdataAlterView.h */, + CAA144C92CDC66A300A25AC4 /* UpdataAlterView.m */, CA11ED6D2CA6945800209DFC /* view */, CA11ED6A2CA6925D00209DFC /* KaiTongAlterView.h */, CA11ED6B2CA6925D00209DFC /* KaiTongAlterView.m */, @@ -5008,6 +5013,7 @@ CA0688CD2CD328C500DF7025 /* ToolCheckModel.m in Sources */, CB489F762744A0BD00DA044A /* UIColor+LSFoundation.m in Sources */, CB489F952744A0BD00DA044A /* BaseRequestDataController.m in Sources */, + CAA144CA2CDC66A300A25AC4 /* UpdataAlterView.m in Sources */, CB489F8A2744A0BD00DA044A /* UIButton+HQCustomIcon.m in Sources */, CA4257912CA2652D00A36A10 /* StartZNPPTView.m in Sources */, CB489F632744A0BD00DA044A /* CountDownManager.m in Sources */, diff --git a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/UserInterfaceState.xcuserstate index 5d36b68..7e596d9 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.xcworkspace/xcuserdata/gongzuo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index 9ff0713..e698a19 100644 --- a/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/ProductApp/ProductApp.xcworkspace/xcuserdata/gongzuo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -40,7 +40,7 @@ BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint"> + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/200圆角.png b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/200圆角.png new file mode 100644 index 0000000..1e7c6c7 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/200圆角.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/300圆角.png b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/300圆角.png new file mode 100644 index 0000000..b9212ca Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/300圆角.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/Contents.json index 71810bb..f5028ed 100644 --- a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "logo@2x.png", + "filename" : "200圆角.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "logo@3x.png", + "filename" : "300圆角.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/logo@2x.png b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/logo@2x.png deleted file mode 100644 index 9ac6ca8..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/logo@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/logo@3x.png b/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/logo@3x.png deleted file mode 100644 index 90c7082..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/login/login_logo.imageset/logo@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/Contents.json new file mode 100644 index 0000000..3828d20 --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "组 42722@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "组 42722@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/组 42722@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/组 42722@2x.png new file mode 100644 index 0000000..6e7d297 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/组 42722@2x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/组 42722@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/组 42722@3x.png new file mode 100644 index 0000000..5e372f0 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/home_updata.imageset/组 42722@3x.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/ic_correct_score_red.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/ic_correct_score_red.imageset/Contents.json new file mode 100644 index 0000000..80f7a5c --- /dev/null +++ b/ProductApp/ProductApp/Assets.xcassets/首页/ic_correct_score_red.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "ic_correct_score_red.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/ic_correct_score_red.imageset/ic_correct_score_red.png b/ProductApp/ProductApp/Assets.xcassets/首页/ic_correct_score_red.imageset/ic_correct_score_red.png new file mode 100644 index 0000000..1b9fc28 Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/ic_correct_score_red.imageset/ic_correct_score_red.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@2x.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@2x.png deleted file mode 100644 index b4fa1b3..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@2x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@3x.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@3x.png deleted file mode 100644 index b9d8fdf..0000000 Binary files a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/512圆角@3x.png and /dev/null differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/96圆角 1.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/96圆角 1.png new file mode 100644 index 0000000..0d7a66f Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/96圆角 1.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/96圆角.png b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/96圆角.png new file mode 100644 index 0000000..45e79ec Binary files /dev/null and b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/96圆角.png differ diff --git a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/Contents.json b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/Contents.json index 2564506..8a8eb71 100644 --- a/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/Contents.json +++ b/ProductApp/ProductApp/Assets.xcassets/首页/分享海报/hb_log.imageset/Contents.json @@ -5,12 +5,12 @@ "scale" : "1x" }, { - "filename" : "512圆角@2x.png", + "filename" : "96圆角 1.png", "idiom" : "universal", "scale" : "2x" }, { - "filename" : "512圆角@3x.png", + "filename" : "96圆角.png", "idiom" : "universal", "scale" : "3x" } diff --git a/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.h b/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.h index f1b077f..151ec8a 100755 --- a/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.h +++ b/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.h @@ -15,6 +15,8 @@ @property (nonatomic , strong) UINavigationController *supernav; //自定义导航栏 @property (nonatomic, strong) NaviGationView *navigationView; +///进入页面的时间 +@property (nonatomic , strong) NSString *startInputTime; /** * 添加自定义导航栏 * isPush 是否为push @@ -32,4 +34,10 @@ @property (nonatomic, strong) TabBarController *tabBars; +///获取页面停留时间 +-(NSString *)getTingLiuShiJian; + +///判断是否需要跳转登录页面 +-(void)tanLoginChuan; + @end diff --git a/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.m b/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.m index 92c8b63..9e964a7 100755 --- a/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.m +++ b/ProductApp/ProductApp/BaseControl/TabBar/BaseViewController.m @@ -7,6 +7,12 @@ // //#import "LoginViewController.h" #import "BaseViewController.h" + +#import "AppDelegate.h" +#import "GuiZheAlterView.h" +#import "LoginViewController.h" +#import "NavgationController.h" + static int tabnavHeight; @interface BaseViewController () { @@ -15,7 +21,11 @@ static int tabnavHeight; @end @implementation BaseViewController - +-(void)viewDidAppear:(BOOL)animated +{ + [super viewDidAppear:animated]; + self.tabBarController.delegate = self; +} - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. @@ -23,7 +33,8 @@ static int tabnavHeight; if ([self respondsToSelector:@selector(edgesForExtendedLayout)]){ self.edgesForExtendedLayout = UIRectEdgeNone; } - self.tabBarController.delegate = self; + + self.startInputTime = [Tools getCurrentTime:@"yyyy-MM-dd HH:mm:ss"]; } - (void)viewWillAppear:(BOOL)animated { @@ -106,7 +117,13 @@ static int tabnavHeight; - (void)muensButtonClick { [self navMuensButtonAction]; } - +///获取页面停留时间 +-(NSString *)getTingLiuShiJian +{ + NSString *strendTime = [Tools getCurrentTime:@"yyyy-MM-dd HH:mm:ss"]; + NSString *strmiao = [Tools timeDifference:self.startInputTime EndTime:strendTime TimeType:5]; + return [NSString stringWithFormat:@"停留时间:%@s",strmiao]; +} #pragma mark -子类可以重写下面3个方法,实现相应的步骤 - (void)navBackButtonAction { } @@ -144,17 +161,48 @@ static int tabnavHeight; // } } -(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController{ - -// if ([tabBarController.tabBar.selectedItem.title isEqualToString:@"消息"]) { -// -// return NO;//为NO就不会切换tab -// } + NSString *strtt = @""; + NSString *strtitle = tabBarController.tabBar.selectedItem.title; +// strtt = @"home"; +// if([strtitle isEqualToString:@"搜索"]) +// { +// strtt = @"search"; +// } +// else if([strtitle isEqualToString:@"企查"]) +// { +// strtt = @"more"; +// } +// else if([strtitle isEqualToString:@"我的"]) +// { +// strtt = @"mine"; +// } +// [UserInfoModel shijianShangBao:0 key:@"client.home.bottom.tab.check" value:strtt extra:@""]; return YES; } - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item { } +-(void)tanLoginChuan +{ + if([UserInfoModel shareModel].temp.intValue == 1 && ([UserInfoModel shareModel].vip.intValue == 2||[UserInfoModel shareModel].vip.intValue == 3||[UserInfoModel shareModel].vip.intValue == 11 || [UserInfoModel shareModel].vip.intValue == 12)) + { + AppDelegate *appde = (AppDelegate *)[UIApplication sharedApplication].delegate; + + [UserInfoModel shijianShangBao:0 key:@"client.member.force.login" value:@"" extra:@""]; + + [GuiZheAlterView showInfo:@"系统检测到您目前尚未登录,\n但您已成为我们尊贵的会员。\n为了防止您的会员账号丢失,\n建议您立即前往登录。" title:@"温馨提示" bttitle:@"立即前往" superview:appde.window backAction:^{ + + dispatch_async(dispatch_get_main_queue(), ^{ + AppDelegate *appde = (AppDelegate *)[UIApplication sharedApplication].delegate; + [appde.window setRootViewController:[[NavgationController alloc] initWithRootViewController:[LoginViewController new]]]; + + [GuiZheAlterView dismisView]; + }); + }]; + } +} + #pragma mark - lary - (NaviGationView *)navigationView { if (!_navigationView) { diff --git a/ProductApp/ProductApp/BaseControl/WKWebview/WkWebviewViewController.m b/ProductApp/ProductApp/BaseControl/WKWebview/WkWebviewViewController.m index 0624560..f486f10 100644 --- a/ProductApp/ProductApp/BaseControl/WKWebview/WkWebviewViewController.m +++ b/ProductApp/ProductApp/BaseControl/WKWebview/WkWebviewViewController.m @@ -56,7 +56,9 @@ if(_strurl.length>5) { - + NSString *strlast = [self.strurl lastPathComponent]; + strlast = [strlast stringByReplacingOccurrencesOfString:@".html" withString:@"Agreement"]; + [UserInfoModel shijianShangBao:0 key:@"client.view.agreement" value:strlast extra:self.strurl]; [webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:_strurl]]]; } else diff --git a/ProductApp/ProductApp/Other/支付view/PayPublicView.m b/ProductApp/ProductApp/Other/支付view/PayPublicView.m index 19a3bcb..19961c8 100644 --- a/ProductApp/ProductApp/Other/支付view/PayPublicView.m +++ b/ProductApp/ProductApp/Other/支付view/PayPublicView.m @@ -412,6 +412,9 @@ { self.backValue(); } + + [UserInfoModel shijianShangBao:0 key:@"client.pay.select" value:sender.tag==1?@"weixin":@"alipay" extra:@""]; + } -(void)getYouHuiList diff --git a/ProductApp/ProductApp/ProductMain/AIChart/AIChatViewController.m b/ProductApp/ProductApp/ProductMain/AIChart/AIChatViewController.m index 9c21f95..a71b2c0 100644 --- a/ProductApp/ProductApp/ProductMain/AIChart/AIChatViewController.m +++ b/ProductApp/ProductApp/ProductMain/AIChart/AIChatViewController.m @@ -42,6 +42,8 @@ -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; + + [self tanLoginChuan]; } - (void)viewDidLoad { [super viewDidLoad]; diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/PublicNetWorkManager.m b/ProductApp/ProductApp/ProductMain/NetWorkManager/PublicNetWorkManager.m index 677a519..af85a55 100644 --- a/ProductApp/ProductApp/ProductMain/NetWorkManager/PublicNetWorkManager.m +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/PublicNetWorkManager.m @@ -411,10 +411,10 @@ NSMutableDictionary *dicHeader = [NSMutableDictionary new]; NSMutableDictionary *dicpush = [NSMutableDictionary new]; - [dicpush setObject:type forKey:@"type"]; - [dicpush setObject:key forKey:@"key"]; - [dicpush setObject:value forKey:@"value"]; - [dicpush setObject:extra forKey:@"extra"]; + [dicpush setObject:[Tools isStringnil:type] forKey:@"type"]; + [dicpush setObject:[Tools isStringnil:key] forKey:@"key"]; + [dicpush setObject:[Tools isStringnil:value] forKey:@"value"]; + [dicpush setObject:[Tools isStringnil:extra] forKey:@"extra"]; [YSAPIClient requestWithRequestBaseUrl:BaseUrl Type:2 url:@"api/user/event" paraments:dicpush Headers:dicHeader Query:dicQuery completeBlock:^(id _Nullable responseObject, NSError * _Nullable error) { BOOL state = NO; diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.h b/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.h index eabb201..889f082 100644 --- a/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.h +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.h @@ -20,6 +20,7 @@ typedef void(^SSENetWorkManagerBackIDValue)(NSString *value); @interface SSENetWorkManager : NSObject + (instancetype)shareManager; - (void)requestTo:(NSString*)host dicpush:(NSDictionary *)dicpush config:(SSENetWorkManagerBackConfigValue)config backValue:(SSENetWorkManagerBackStringValue)backValue error:(SSENetWorkManagerBackErrorValue)error ID:(SSENetWorkManagerBackIDValue)ID; +-(void)cancleTask; @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.m b/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.m index 906eda3..148e739 100644 --- a/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.m +++ b/ProductApp/ProductApp/ProductMain/NetWorkManager/SSENetWorkManager.m @@ -22,6 +22,8 @@ @property (nonatomic , strong) SSENetWorkManagerBackErrorValue backError; @property (nonatomic , strong) SSENetWorkManagerBackIDValue backID; +@property (nonatomic , strong) NSURLSessionDataTask *task; + @end @implementation SSENetWorkManager @@ -79,7 +81,15 @@ NSURLSessionDataTask *task = [session dataTaskWithRequest:request]; // 启动任务 [task resume]; - + self.task = task; +} +-(void)cancleTask +{ + if(self.task) + { + [self.task cancel]; + self.task = nil; + } } #pragma mark - NSURLSessionDelegate @@ -215,11 +225,15 @@ NSString *strerror = [error localizedDescription]; self.backError(strerror); + [UserInfoModel shijianShangBao:0 key:@"client.sse.connect.failure" value:@"write_text" extra:@"error"]; } else { self.backValue(@"",YES); + + [UserInfoModel shijianShangBao:0 key:@"client.sse.connect.failure" value:@"write_text" extra:@""]; } + self.task = nil; } diff --git a/ProductApp/ProductApp/ProductMain/alter/UpdataAlterView.h b/ProductApp/ProductApp/ProductMain/alter/UpdataAlterView.h new file mode 100644 index 0000000..ccc11d5 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/alter/UpdataAlterView.h @@ -0,0 +1,16 @@ +// +// UpdataAlterView.h +// ProductApp +// +// Created by 工作 on 2024/6/20. +// + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface UpdataAlterView : UIView ++(void)showName:(NSString *)name strversion:(NSString *)strversion isforce:(BOOL)isforce; +@end + +NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/alter/UpdataAlterView.m b/ProductApp/ProductApp/ProductMain/alter/UpdataAlterView.m new file mode 100644 index 0000000..9c26da0 --- /dev/null +++ b/ProductApp/ProductApp/ProductMain/alter/UpdataAlterView.m @@ -0,0 +1,185 @@ +// +// UpdataAlterView.m +// ProductApp +// +// Created by 工作 on 2024/6/20. +// + +#import "UpdataAlterView.h" +#import "AppDelegate.h" +@interface UpdataAlterView () +@property (nonatomic , strong) UILabel *lbname; +/// +@property (nonatomic , strong) UIButton *btdis; + +/// +@property (nonatomic , strong) UIView *viewV; +@property (nonatomic , strong) UILabel *lbV; + + +/// +@property (nonatomic , strong) NSString *strtitle; +@property (nonatomic , strong) NSString *strversion; +@property (nonatomic , assign) BOOL isforce; +@end + +@implementation UpdataAlterView + +-(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 clearColor]]; + [self addSubview:viewback]; + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(40); + make.right.equalTo(self).offset(-40); + make.center.equalTo(self); + }]; + [viewback.layer setMasksToBounds:NO]; + [viewback.layer setCornerRadius:40]; + + UIImage *image = [UIImage imageNamed:@"home_updata"]; + + UIImageView *imgvback = [[UIImageView alloc] init]; + [imgvback setImage:[image resizableImageWithCapInsets:UIEdgeInsetsMake(image.size.height*0.9, image.size.width*0.5, image.size.height, image.size.width*0.5)]]; + [imgvback setContentMode:UIViewContentModeScaleAspectFill]; + [viewback addSubview:imgvback]; + [imgvback mas_makeConstraints:^(MASConstraintMaker *make) { + make.edges.equalTo(viewback); + }]; + + + + UILabel *lbtitle = [[UILabel alloc] init]; + [lbtitle setText:@"发现新版本"]; + [lbtitle setTextColor:RGBCOLOR(51, 51, 51)]; + [lbtitle setTextAlignment:NSTextAlignmentLeft]; + [lbtitle setFont:[UIFont boldSystemFontOfSize:18]]; + [viewback addSubview:lbtitle]; + [lbtitle mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(viewback); + make.top.offset(130); + }]; + + UILabel *lbV = [[UILabel alloc] init]; + [lbV setText:@"V2.0.0"]; + [lbV setTextColor:RGBCOLOR(109, 109, 109)]; + [lbV setTextAlignment:NSTextAlignmentLeft]; + [lbV setFont:[UIFont systemFontOfSize:14]]; + [viewback addSubview:lbV]; + [lbV mas_makeConstraints:^(MASConstraintMaker *make) { + make.centerX.equalTo(lbtitle); + make.top.equalTo(lbtitle.mas_bottom).offset(-1); + }]; + _lbV = lbV; + + + UILabel *lbname = [[UILabel alloc] init]; + [lbname setText:@"1、新版本修复了一些BUG"]; + [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextAlignment:NSTextAlignmentCenter]; + [lbname setFont:[UIFont systemFontOfSize:14]]; + [lbname setNumberOfLines:0]; + [viewback addSubview:lbname]; + [lbname mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbV.mas_bottom).offset(25); + make.left.offset(50); + make.right.equalTo(viewback).offset(-50); + }]; + _lbname = lbname; + + + UIButton *btok = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH-210, 40)]; + [btok setTitle:@"立即更新" forState:UIControlStateNormal]; + [btok setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; + [btok.titleLabel setFont:[UIFont systemFontOfSize:16]]; + [btok.layer setMasksToBounds:YES]; + [btok.layer setCornerRadius:20]; + [btok setBackgroundColor:MainColor]; + [viewback addSubview:btok]; + [btok mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset(80); + make.right.equalTo(viewback).offset(-80); + make.top.equalTo(lbname.mas_bottom).offset(35); + make.height.offset(40); + }]; + [Tools changedView:btok colors:MainJBColors startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + [btok addTarget:self action:@selector(updataAction) forControlEvents:UIControlEventTouchUpInside]; + + UIButton *btdis = [[UIButton alloc] init]; + [btdis setTitle:@"下次再说" forState:UIControlStateNormal]; + [btdis setTitleColor:RGBCOLOR(102, 102, 102) forState:UIControlStateNormal]; + [btdis.titleLabel setFont:[UIFont systemFontOfSize:14]]; + [viewback addSubview:btdis]; + [btdis mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.right.equalTo(btok); + make.top.equalTo(btok.mas_bottom); + make.height.offset(40); + }]; + [btdis setHidden:YES]; + [btdis addTarget:self action:@selector(disAction) forControlEvents:UIControlEventTouchUpInside]; + _btdis = btdis; + + [viewback mas_makeConstraints:^(MASConstraintMaker *make) { + make.bottom.equalTo(btdis).offset(1); + }]; + + } + return self; +} +-(void)setStrtitle:(NSString *)strtitle +{ + self.lbname.text = strtitle; + ///行间距 + NSMutableParagraphStyle *style = [NSMutableParagraphStyle new]; + style.lineSpacing = 11; + style.lineBreakMode = NSLineBreakByTruncatingTail; + style.alignment = NSTextAlignmentCenter; + + NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:self.lbname.text]; + [attrString addAttribute:NSParagraphStyleAttributeName value:style range:NSMakeRange(0, self.lbname.text.length)]; + self.lbname.attributedText = attrString; + +} +-(void)setStrversion:(NSString *)strversion +{ + self.lbV.text = strversion; + [self.viewV setHidden:YES]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.05 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + [Tools changedView:self.viewV colors:@[(id)RGBCOLOR(255, 213, 108).CGColor,(id)RGBCOLOR(254, 122, 133).CGColor] startPoint:CGPointMake(0, 0) endPoint:CGPointMake(1, 0)]; + [self.viewV setHidden:NO]; + }); +} +-(void)setIsforce:(BOOL)isforce +{ + self.btdis.hidden = isforce; +} +//更新 跳转App Store +-(void)updataAction +{ + [UserInfoModel shijianShangBao:0 key:@"client.pkg.update" value:@"" extra:@""]; + + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:DownLoadUrl] options:@{} completionHandler:nil]; +} + +-(void)disAction +{ + [UserInfoModel shijianShangBao:0 key:@"client.pkg.cance" value:@"" extra:@""]; + [self removeFromSuperview]; +} ++(void)showName:(NSString *)name strversion:(NSString *)strversion isforce:(BOOL)isforce +{ + UpdataAlterView *view = [[UpdataAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; + AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate; + view.strtitle = name; + view.strversion = strversion; + view.isforce = isforce; + [app.window addSubview:view]; +} + +@end diff --git a/ProductApp/ProductApp/ProductMain/login/LoginViewController.m b/ProductApp/ProductApp/ProductMain/login/LoginViewController.m index 04a12da..0d6b233 100644 --- a/ProductApp/ProductApp/ProductMain/login/LoginViewController.m +++ b/ProductApp/ProductApp/ProductMain/login/LoginViewController.m @@ -44,6 +44,10 @@ { [self getPaizhi]; } + if(!self.isphoneView) + { + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.login" value:@"center" extra:@""]; + } } -(void)drawUI { @@ -128,7 +132,7 @@ subViewList:list loginBlock:^(NSDictionary * _Nullable dic) { - [UserInfoModel shijianShangBao:0 key:@"client.login.click" value:@"onekey" extra:@""]; + [UserInfoModel shijianShangBao:0 key:@"client.login" value:@"onekey" extra:@""]; //登录完成回调 if([[dic objectForKey:@"code"] intValue] == 30000){ NSMutableDictionary *dicpush = [NSMutableDictionary new]; @@ -157,7 +161,7 @@ contentView:self.contentView subViewList:list loginBlock:^(NSDictionary * _Nullable dic) { - [UserInfoModel shijianShangBao:0 key:@"client.login.click" value:@"onekey" extra:@""]; + [UserInfoModel shijianShangBao:0 key:@"client.login" value:@"onekey" extra:@""]; //登录完成回调 if([[dic objectForKey:@"code"] intValue] == 30000){ NSMutableDictionary *dicpush = [NSMutableDictionary new]; diff --git a/ProductApp/ProductApp/ProductMain/login/view/LoginAppleView.m b/ProductApp/ProductApp/ProductMain/login/view/LoginAppleView.m index 04d1a98..862cb1d 100644 --- a/ProductApp/ProductApp/ProductMain/login/view/LoginAppleView.m +++ b/ProductApp/ProductApp/ProductMain/login/view/LoginAppleView.m @@ -267,11 +267,12 @@ -(void)xieyiAction:(UIButton *)sender { sender.selected = !sender.selected; + [UserInfoModel shijianShangBao:0 key:@"client.check.agreement" value:@"login" extra:[[NSString alloc] initWithFormat:@"%@",[NSNumber numberWithBool:sender.selected]]]; } ///apple -(void)dengluAction { - [UserInfoModel shijianShangBao:0 key:@"client.login.click" value:@"apple" extra:@""]; + [UserInfoModel shijianShangBao:0 key:@"client.login" value:@"apple" extra:@""]; NSString *strc = [[UserInfoModel shareModel].config objectForKey:@"client.agreement.dialog"]; if((strc.intValue == 1 || [Tools isStringnil:strc].length==0) && self.btxy.selected == NO) { diff --git a/ProductApp/ProductApp/ProductMain/login/view/LoginTelView.m b/ProductApp/ProductApp/ProductMain/login/view/LoginTelView.m index b5d6e3e..184baef 100644 --- a/ProductApp/ProductApp/ProductMain/login/view/LoginTelView.m +++ b/ProductApp/ProductApp/ProductMain/login/view/LoginTelView.m @@ -238,6 +238,7 @@ typedef NS_ENUM(NSInteger, Mode) { { sender.selected=!sender.selected; self.isselect = sender.selected; + [UserInfoModel shijianShangBao:0 key:@"client.check.agreement" value:@"login" extra:[[NSString alloc] initWithFormat:@"%@",[NSNumber numberWithBool:sender.selected]]]; } /// 隐私协议点击回调 diff --git a/ProductApp/ProductApp/ProductMain/login/view/LoginView.m b/ProductApp/ProductApp/ProductMain/login/view/LoginView.m index 269955a..e8fcac6 100644 --- a/ProductApp/ProductApp/ProductMain/login/view/LoginView.m +++ b/ProductApp/ProductApp/ProductMain/login/view/LoginView.m @@ -489,6 +489,8 @@ -(void)xieyiAction:(UIButton *)sender { sender.selected = !sender.selected; + + [UserInfoModel shijianShangBao:0 key:@"client.check.agreement" value:@"login" extra:[[NSString alloc] initWithFormat:@"%@",[NSNumber numberWithBool:sender.selected]]]; } -(void)dengluAction @@ -509,7 +511,7 @@ [HXHud showMessage:@"请输入验证码" afterDelayType:0]; return; } - [UserInfoModel shijianShangBao:0 key:@"client.login.click" value:@"code" extra:self.fieldPhone.text]; + [UserInfoModel shijianShangBao:0 key:@"client.login" value:@"code" extra:self.fieldPhone.text]; NSString *strc = [[UserInfoModel shareModel].config objectForKey:@"client.agreement.dialog"]; if((strc.intValue == 1 || [Tools isStringnil:strc].length==0) && self.btxy.selected == NO) diff --git a/ProductApp/ProductApp/ProductMain/login/view/LoginWXView.m b/ProductApp/ProductApp/ProductMain/login/view/LoginWXView.m index 99b9e81..b1dfe62 100644 --- a/ProductApp/ProductApp/ProductMain/login/view/LoginWXView.m +++ b/ProductApp/ProductApp/ProductMain/login/view/LoginWXView.m @@ -269,11 +269,12 @@ -(void)xieyiAction:(UIButton *)sender { sender.selected = !sender.selected; + [UserInfoModel shijianShangBao:0 key:@"client.check.agreement" value:@"login" extra:[[NSString alloc] initWithFormat:@"%@",[NSNumber numberWithBool:sender.selected]]]; } ///wx登录 -(void)dengluAction { - [UserInfoModel shijianShangBao:0 key:@"client.login.click" value:@"weixin" extra:@""]; + [UserInfoModel shijianShangBao:0 key:@"client.login" value:@"weixin" extra:@""]; NSString *strc = [[UserInfoModel shareModel].config objectForKey:@"client.agreement.dialog"]; if((strc.intValue == 1 || [Tools isStringnil:strc].length==0) && self.btxy.selected == NO) { diff --git a/ProductApp/ProductApp/ProductMain/工具/GongJuViewController.m b/ProductApp/ProductApp/ProductMain/工具/GongJuViewController.m index fc104e5..d23da19 100644 --- a/ProductApp/ProductApp/ProductMain/工具/GongJuViewController.m +++ b/ProductApp/ProductApp/ProductMain/工具/GongJuViewController.m @@ -46,6 +46,7 @@ [self getdata]; } + [self tanLoginChuan]; } - (void)viewDidLoad { [super viewDidLoad]; diff --git a/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m b/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m index 038dbe2..bcc63e5 100644 --- a/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m +++ b/ProductApp/ProductApp/ProductMain/工具/图文转换/view/GongJuImageToTextView.m @@ -131,7 +131,7 @@ [view addSubview:lbts]; [lbts mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(lbname.mas_right).offset(2); - make.top.offset(16); + make.centerY.equalTo(lbname); }]; UILabel *lbcontent = [[UILabel alloc] init]; diff --git a/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m b/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m index 8966178..62bd2a6 100644 --- a/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m +++ b/ProductApp/ProductApp/ProductMain/工具/敏感词/view/GongJuMinGanCiView.m @@ -131,7 +131,7 @@ [view addSubview:lbts]; [lbts mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(lbname.mas_right).offset(2); - make.top.offset(16); + make.centerY.equalTo(lbname); }]; ViewLable *lbwz = [[ViewLable alloc] init]; diff --git a/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m b/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m index 36b8960..5053acc 100644 --- a/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m +++ b/ProductApp/ProductApp/ProductMain/工具/文本工具/view/GongJuTextView.m @@ -134,7 +134,7 @@ [view addSubview:lbts]; [lbts mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(lbname.mas_right).offset(2); - make.top.offset(16); + make.centerY.equalTo(lbname); }]; ViewLable *lbwz = [[ViewLable alloc] init]; diff --git a/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m index 1edb1eb..4a42c8d 100644 --- a/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m +++ b/ProductApp/ProductApp/ProductMain/工具/智能翻译/view/GongJuFanYiView.m @@ -471,7 +471,7 @@ [self.viewout setHidden:NO]; self.lbcontent.fspeed = self.modelConfig.time.intValue/1000.0; } backValue:^(NSString * _Nonnull value, BOOL isfinish) { - if(value.length>3) + if(value.length>5) { [self chuliShuJu:value isfinish:NO]; } diff --git a/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m index fb27c52..6ccc21f 100644 --- a/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m +++ b/ProductApp/ProductApp/ProductMain/工具/通用工具/结果/view/GongJuCreateResultView.m @@ -60,7 +60,6 @@ [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)]; diff --git a/ProductApp/ProductApp/ProductMain/引导/StartGNViewController.m b/ProductApp/ProductApp/ProductMain/引导/StartGNViewController.m index 9a2fdf3..1b140fe 100644 --- a/ProductApp/ProductApp/ProductMain/引导/StartGNViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/StartGNViewController.m @@ -21,10 +21,22 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; } +-(void)navBackButtonAction +{ + [self.navigationController popViewControllerAnimated:YES]; + if(self.type==3) + { + [UserInfoModel shijianShangBao:0 key:@"client.guide.last" value:@"职业选择" extra:@""]; + } + else + { + [UserInfoModel shijianShangBao:0 key:@"client.guide.last" value:@"年级选择" extra:@""]; + } +} - (void)viewDidLoad { [super viewDidLoad]; [self.navigationController setNavigationBarHidden:YES animated:NO]; - [self.navigationView setHidden:YES]; + [self.navigationView setHidden:NO]; [self.view setBackgroundColor:[UIColor whiteColor]]; diff --git a/ProductApp/ProductApp/ProductMain/引导/StartNJViewController.m b/ProductApp/ProductApp/ProductMain/引导/StartNJViewController.m index dd8032c..ef06ad6 100644 --- a/ProductApp/ProductApp/ProductMain/引导/StartNJViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/StartNJViewController.m @@ -32,10 +32,15 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self.navigationController setNavigationBarHidden:YES animated:animated]; - [self showNaviGationView:YES]; + [self showNaviGationView:NO]; [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; [self.navigationView setBackgroundColor:[UIColor clearColor]]; } +-(void)navBackButtonAction +{ + [self.navigationController popViewControllerAnimated:YES]; + [UserInfoModel shijianShangBao:0 key:@"client.guide.last" value:@"身份选择" extra:@""]; +} - (void)viewDidLoad { [super viewDidLoad]; @@ -188,6 +193,8 @@ } } + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"年级选择" extra:[NSString stringWithFormat:@"%@,%@",[self getTingLiuShiJian],strtitle]]; + StartGNViewController *vc = [StartGNViewController new]; vc.type = self.type; vc.arrNJ = arrselect; diff --git a/ProductApp/ProductApp/ProductMain/引导/StartSFViewController.m b/ProductApp/ProductApp/ProductMain/引导/StartSFViewController.m index 507d8f1..688607f 100644 --- a/ProductApp/ProductApp/ProductMain/引导/StartSFViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/StartSFViewController.m @@ -20,10 +20,15 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self.navigationController setNavigationBarHidden:YES animated:animated]; - [self showNaviGationView:YES]; + [self showNaviGationView:NO]; [self.navigationView setTitle:@"" titleColor:RGBCOLOR(60, 60, 60)]; [self.navigationView setBackgroundColor:[UIColor clearColor]]; } +-(void)navBackButtonAction +{ + [self.navigationController popViewControllerAnimated:YES]; + [UserInfoModel shijianShangBao:0 key:@"client.guide.last" value:@"职业选择" extra:@""]; +} - (void)viewDidLoad { [super viewDidLoad]; @@ -130,6 +135,8 @@ UILabel *lb = self.arrLB[sender.tag]; [lb setTextColor:MainColor]; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"身份选择" extra:[NSString stringWithFormat:@"%@,%@",[self getTingLiuShiJian],lb.text]]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self.view setUserInteractionEnabled:YES]; StartNJViewController *vc = [StartNJViewController new]; diff --git a/ProductApp/ProductApp/ProductMain/引导/StartViewController.m b/ProductApp/ProductApp/ProductMain/引导/StartViewController.m index c9a5bc0..781d108 100644 --- a/ProductApp/ProductApp/ProductMain/引导/StartViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/StartViewController.m @@ -201,6 +201,9 @@ [[NSUserDefaults standardUserDefaults] setObject:@"1" forKey:YingDaoYe]; ///初始化收藏工具 [self pushCollectInit]; + + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"职业选择" extra:[NSString stringWithFormat:@"%@,%@",[self getTingLiuShiJian],lb.text]]; + /// if(sender.tag==0) { diff --git a/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m b/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m index 5b90991..dbaeca6 100644 --- a/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m +++ b/ProductApp/ProductApp/ProductMain/引导/view/StartGNView.m @@ -14,6 +14,7 @@ #import "StartZNPPTViewController.h" #import "RoleTreeModel.h" +#import "BaseViewController.h" @interface StartGNView () /// @@ -287,11 +288,13 @@ default: break; } + BaseViewController *vcbase = (BaseViewController *)self.viewController; if(self.type<=2) { NSString *str = arr[self.pagec.selectNumber]; if([str isEqualToString:@"yd_xs_3"]) {///课堂写作 + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"课堂写作" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; StartKeTangXieZuoViewController *vc = [StartKeTangXieZuoViewController new]; vc.strtitle = self.strtitle; vc.strpid = self.strpid; @@ -300,6 +303,7 @@ } else if([str isEqualToString:@"yd_xs_2"]) {///拍照写作 + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"拍照写作" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; StartPZXZViewController *vc = [StartPZXZViewController new]; vc.strpid = self.strpid; vc.role_id = self.role_id; @@ -308,6 +312,7 @@ } else if([str isEqualToString:@"yd_xs_1"]) {///作文批改 + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"作文批改" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; StartZWPIViewController *vc = [StartZWPIViewController new]; vc.strpid = self.strpid; vc.role_id = self.role_id; @@ -316,6 +321,7 @@ } else {///智能写作 + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"写作生成" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; StartZNXZViewController *vc = [StartZNXZViewController new]; vc.strpid = self.strpid; vc.role_id = self.role_id; @@ -325,6 +331,7 @@ } else {///职员 + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:@"PPT" extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; StartZNPPTViewController *vc = [StartZNPPTViewController new]; [self.viewController.navigationController pushViewController:vc animated:YES]; } diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m index 4292fa5..b04c488 100644 --- a/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/StartZWPIViewController.m @@ -22,6 +22,7 @@ [super viewDidLoad]; [self.navigationController setNavigationBarHidden:YES animated:NO]; [self showNaviGationView:YES]; + [self.view setBackgroundColor:[UIColor whiteColor]]; UIImageView *imgvback = [[UIImageView alloc] init]; [imgvback setImage:[UIImage imageNamed:@"yd_back"]]; diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m index b13eb88..a6e38be 100644 --- a/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/view/StartZWPIView.m @@ -10,6 +10,7 @@ #import "StartZWPIViewCell.h" #import "StartKTXZPGView.h" +#import "BaseViewController.h" #define StartZWPICellHeight UISCREEN_HEIGHT-KMagrinTop-TabHeight-180 @interface StartZWPIView () @@ -122,10 +123,16 @@ -(void)nextAction { + + ExampleCorrectListDataItems *model = self.arrdata[self.bannerView.currentIndex]; + + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"作文批改-%@",model.title] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; view.type = 1; view.isshiyong = YES; - view.modelDetailZWPG = self.arrdata[self.bannerView.currentIndex]; + view.modelDetailZWPG = model; [self.viewController.view addSubview:view]; } diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m index 8416a8f..058d24c 100644 --- a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/StartZWPIDetailViewController.m @@ -82,21 +82,7 @@ [LoadAlterView dismiss]; } }]; - [NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) { - loadcount++; - if(state) - { - view.arrErrorLocation = responseObject.data; - } - else - { - [HXHud showMessage:responseObject.message afterDelayType:1]; - } - if(loadcount>=3) - { - [LoadAlterView dismiss]; - } - }]; + [NetWorkManager requestCorrectWrite_correctData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) { loadcount++; if(state) @@ -113,6 +99,22 @@ } }]; + ///可以不请求 + [NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) { + loadcount++; + if(state) + { + view.arrErrorLocation = responseObject.data; + } + else + { + [HXHud showMessage:responseObject.message afterDelayType:1]; + } + if(loadcount>=3) + { + [LoadAlterView dismiss]; + } + }]; } } diff --git a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m index 7b9b81d..787b8ae 100644 --- a/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m +++ b/ProductApp/ProductApp/ProductMain/引导/作文批改/批改信息/view/StartZWPIDetailView.m @@ -15,13 +15,15 @@ #import "XieZuoXiangQingViewController.h" #import "XieZuoFenXiangAlterView.h" - +#import "RoleTreeModel.h" @interface StartZWPIDetailView () /// @property (nonatomic , strong) UIScrollView *scvback; /// @property (nonatomic , strong) UILabel *lbfen; +@property (nonatomic , strong) UIImageView *imgvnumber; + /// @property (nonatomic , strong) UIView *viewback; @@ -41,6 +43,9 @@ /// @property (nonatomic , strong) XieZuoFenXiangAlterView *viewshare; +/// +@property (nonatomic , strong) NSMutableArray *arrBtnLocation; + @end @implementation StartZWPIDetailView @@ -65,7 +70,7 @@ [lbfen setText:@""]; [lbfen setTextColor:RGBCOLOR(231, 47, 21)]; [lbfen setTextAlignment:NSTextAlignmentCenter]; - [lbfen setFont:[UIFont fontWithName:@"D-DIN-PRO-Bold" size:20]]; + [lbfen setFont:[UIFont fontWithName:@"SmileySans-Oblique" size:35]]; [scvback addSubview:lbfen]; [lbfen mas_makeConstraints:^(MASConstraintMaker *make) { make.top.offset(20); @@ -73,6 +78,17 @@ }]; _lbfen = lbfen; + UIImageView *imgvnumber = [[UIImageView alloc] init]; + [imgvnumber setImage:[UIImage imageNamed:@"ic_correct_score_red"]]; + [scvback addSubview:imgvnumber]; + [imgvnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbfen.mas_bottom); + make.centerX.equalTo(lbfen); + make.height.offset(10); + make.width.offset(50); + }]; + _imgvnumber = imgvnumber; + UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.2, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.8-TabHeight-20-NavHeight)]; [viewback setBackgroundColor:[UIColor whiteColor]]; [self addSubview:viewback]; @@ -230,6 +246,13 @@ { [dicpush setObject:[Tools isStringnil:self.modelHestory.result.write_correct.ID] forKey:@"id"]; } + else if(self.modelDetailZWPG) + { + [dicpush setObject:[Tools isStringnil:self.modelDetailZWPG.title] forKey:@"title"]; + [dicpush setObject:[Tools isStringnil:self.modelDetailZWPG.content] forKey:@"content"]; + [dicpush setObject:@"" forKey:@"require"]; + [dicpush setObject:[Tools isStringnil:[UserInfoModel shareModel].user_stage.name] forKey:@"stage"]; + } else { [dicpush setObject:[Tools isStringnil:self.strID] forKey:@"id"]; @@ -263,6 +286,19 @@ viewfj.viewshare = self.viewshare; viewfj.modelResult = self.modelDetailZWPG.result; viewfj.modelContentItems = self.modelContentItems; + [viewfj setBackTopSelect:^(NSInteger tag) { + for(UIButton *bt in self.arrBtnLocation) + { + if(bt.tag==tag+10000) + { + [bt setBackgroundColor:RGBACOLOR(255, 255, 255, 0.4)]; + } + else + { + [bt setBackgroundColor:[UIColor clearColor]]; + } + } + }]; _viewfj = viewfj; } } @@ -335,7 +371,7 @@ make.width.offset(UISCREEN_WIDTH); if(viewlast) { - make.top.equalTo(viewlast.mas_bottom).offset(20); + make.top.equalTo(viewlast.mas_bottom); } else { @@ -353,12 +389,15 @@ } }]; viewlast = imgvback; + } [self.scvback mas_makeConstraints:^(MASConstraintMaker *make) { make.bottom.equalTo(viewlast).offset(20); }]; } + [self drawlocation:375/UISCREEN_WIDTH]; + self.viewzh.modelResult = modelDetailZWPG.result; } @@ -382,7 +421,7 @@ make.width.offset(UISCREEN_WIDTH); if(viewlast) { - make.top.equalTo(viewlast.mas_bottom).offset(20); + make.top.equalTo(viewlast.mas_bottom); } else { @@ -407,10 +446,17 @@ self.lbfen.text = [Tools isStringnilkong:modelHestory.result.write_correct_score.total_score]; [self.scvback bringSubviewToFront:self.lbfen]; - + [self.scvback bringSubviewToFront:self.imgvnumber]; + if(self.lbfen.text.intValue<1) + { + [self.imgvnumber setHidden:YES]; + } self.viewzh.modelHestoryResult = self.modelHestory.result; self.modelContentItems = self.modelHestory.result.write_correct; + + + } @@ -431,7 +477,7 @@ make.width.offset(UISCREEN_WIDTH); if(viewlast) { - make.top.equalTo(viewlast.mas_bottom).offset(20); + make.top.equalTo(viewlast.mas_bottom); } else { @@ -462,6 +508,11 @@ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ self.lbfen.text = [Tools isStringnilkong:modelPF.total_score]; [self.scvback bringSubviewToFront:self.lbfen]; + [self.scvback bringSubviewToFront:self.imgvnumber]; + if(self.lbfen.text.intValue<1) + { + [self.imgvnumber setHidden:YES]; + } }); } @@ -500,5 +551,62 @@ } return _viewshare; } + +///绘制点击位置 +-(void)drawlocation:(float)bilv +{ + self.arrBtnLocation = [NSMutableArray new]; + for(int i = 0 ; i < self.modelDetailZWPG.result.split_review.count;i++) + { + TextbookInfoModelDataResultSplit *modelsplit = self.modelDetailZWPG.result.split_review[i]; + ///57,104-353,122 + for(NSString *str in modelsplit.position) + { + NSArray *arrlocation = [str componentsSeparatedByString:@"-"]; + if(arrlocation.count==2) + { + NSArray *arrlefttop = [arrlocation[0] componentsSeparatedByString:@","]; + NSArray *arrrightbottom = [arrlocation[1] componentsSeparatedByString:@","]; + if(arrlefttop.count==2&&arrrightbottom.count==2) + { + UIButton *btlocation = [[UIButton alloc] init]; + [btlocation setBackgroundColor:[UIColor clearColor]]; + [self.scvback addSubview:btlocation]; + [btlocation mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset([arrlefttop[0] floatValue]/bilv); + make.top.offset([arrlefttop[1] floatValue]/bilv); + make.width.offset(([arrrightbottom[0] floatValue]-[arrlefttop[0] floatValue])/bilv); + make.height.offset(([arrrightbottom[1] floatValue]-[arrlefttop[1] floatValue])/bilv); + }]; + [btlocation setTag:10000+i]; + [btlocation addTarget:self action:@selector(locationAction:) forControlEvents:UIControlEventTouchUpInside]; + + [self.arrBtnLocation addObject:btlocation]; + + } + } + } + } +} +-(void)locationAction:(UIButton *)sender +{ + for(UIButton *bt in self.arrBtnLocation) + { + if(bt.tag==sender.tag) + { + [bt setBackgroundColor:RGBACOLOR(255, 255, 255, 0.4)]; + } + else + { + [bt setBackgroundColor:[UIColor clearColor]]; + } + } + + [self.viewtop setSelecttag:1]; + [self showVC:1]; + [self.scvbackinfo setContentOffset:CGPointMake(UISCREEN_WIDTH, 0)]; + [self.viewfj setShowRow:(int)sender.tag-10000]; +} + @end diff --git a/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m index e445d94..5e7f299 100644 --- a/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m +++ b/ProductApp/ProductApp/ProductMain/引导/拍照写作/view/StartPZXZView.m @@ -9,7 +9,7 @@ #import "StartPZXZPageView.h" #import #import "StartPZXZDetailViewController.h" - +#import "BaseViewController.h" @interface StartPZXZView () /// @@ -212,6 +212,11 @@ make.height.equalTo(self.scvback); }]; + ExamplePicModelDataItems *model = self.arrdataYD[self.btselect.tag]; + + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"拍照写作-%@",model.title] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + [UIView animateWithDuration:1 delay:0.0 options:UIViewAnimationOptionCurveEaseOut animations:^{ imgvback.alpha = 0.0; // 将视图的透明度逐渐调整为0.0,即透明 diff --git a/ProductApp/ProductApp/ProductMain/引导/拍照写作/文章/view/StartPZXZDetailView.m b/ProductApp/ProductApp/ProductMain/引导/拍照写作/文章/view/StartPZXZDetailView.m index a1b7184..efd3a39 100644 --- a/ProductApp/ProductApp/ProductMain/引导/拍照写作/文章/view/StartPZXZDetailView.m +++ b/ProductApp/ProductApp/ProductMain/引导/拍照写作/文章/view/StartPZXZDetailView.m @@ -448,6 +448,8 @@ model.isaddEnd = NO; self.modelSelect = model; + [UserInfoModel shijianShangBao:0 key:@"client.write.change.paragraph" value:@"重写段落" extra:model.value]; + [self getDuanLuo:model.value]; } -(void)bottomAction:(UIButton *)sender @@ -460,6 +462,21 @@ switch (sender.tag) { case 0: { + NSString *strscene = @""; + ///10改写作文 11拍题成文 12 拍照续写 + if(self.type == 10) + { + strscene = @"pic_rewrite"; + } + else if(self.type == 11) + { + strscene = @"pic_question"; + } + else if(self.type == 12) + { + strscene = @"pic_with_front"; + } + [UserInfoModel shijianShangBao:0 key:@"client.write.rewrite.text" value:strscene extra:@""]; [self getdata]; } break; @@ -501,6 +518,8 @@ UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = [arrcontent componentsJoinedByString:@"\n"]; [HXHud showMessage:@"复制成功" afterDelayType:0]; + [UserInfoModel shijianShangBao:0 key:@"client.write.copy.text" value:@"拍照写作" extra:[arrcontent componentsJoinedByString:@"\n"]]; + }]; } else @@ -526,6 +545,9 @@ UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = [Tools isStringnilkong:self.modelHestory.result.content]; [HXHud showMessage:@"复制成功" afterDelayType:0]; + + [UserInfoModel shijianShangBao:0 key:@"client.write.copy.text" value:@"拍照写作" extra:self.modelHestory.result.content]; + } //// diff --git a/ProductApp/ProductApp/ProductMain/引导/支付页/StartPayViewController.m b/ProductApp/ProductApp/ProductMain/引导/支付页/StartPayViewController.m index 39c1b5d..ab818bd 100644 --- a/ProductApp/ProductApp/ProductMain/引导/支付页/StartPayViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/支付页/StartPayViewController.m @@ -73,6 +73,9 @@ } }]; + + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.member.recharge" value:self.source extra:@""]; + } diff --git a/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.h b/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.h index 3acf0a4..ae2fa02 100644 --- a/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.h +++ b/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.h @@ -18,6 +18,8 @@ typedef void(^StartPayGoodsViewSelectGoods)(OrderGoodsModelData *model); @property (nonatomic , strong) StartPayGoodsViewSelectGoods backSelectGoods; /// @property (nonatomic , strong) PayPublicView *viewpay ; +/// +@property (nonatomic , strong) NSString *source; -(void)removeTime; @end diff --git a/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.m b/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.m index 314b317..00995d3 100644 --- a/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.m +++ b/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayGoodsView.m @@ -192,6 +192,8 @@ self.modelSelect = model; self.backSelectGoods(self.modelSelect); [self.collect reloadData]; + + [UserInfoModel shijianShangBao:0 key:@"client.goods.select" value:[NSString stringWithFormat:@"%@:%@",self.source,self.modelSelect.goods_name] extra:[self.modelSelect yy_modelToJSONString]]; } -(void)removeTime { diff --git a/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayView.m b/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayView.m index 766abd1..3d5203a 100644 --- a/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayView.m +++ b/ProductApp/ProductApp/ProductMain/引导/支付页/view/StartPayView.m @@ -16,7 +16,7 @@ #import "NomoVerbAlterView.h" #import "PayManager.h" #import "VistaInAppPurchaseManager.h" - +#import "BaseViewController.h" @interface StartPayView () @property (nonatomic , strong) UIButton *btdel; @@ -393,6 +393,11 @@ } } +-(void)setSource:(NSString *)source +{ + _source = source; + self.viewgoods.source = source; +} -(void)removeTimer { @@ -402,6 +407,9 @@ { [self.viewgoods removeTime]; + BaseViewController *basevc = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.pay.skip" value:@"back" extra:[basevc getTingLiuShiJian]]; + if(self.ptype==0) { TabBarController *vc = [TabBarController new]; @@ -417,6 +425,13 @@ -(void)payAction { + NSString *strvalue = [self getpaytype]; + NSDictionary *dic = @{@"id":[Tools isStringnil:self.modelSelect.goods_id], + @"name":[Tools isStringnil:self.modelSelect.goods_name], + @"price":[Tools isStringnil:self.modelSelect.price], + @"source":[Tools isStringnil:self.source]}; + [UserInfoModel shijianShangBao:0 key:@"client.pay.pay" value:strvalue extra:[dic yy_modelToJSONString]]; + ///需要判断是否需要登录 [UserInfoModel pushLoinVC:self.viewController ispush:YES]; @@ -491,6 +506,24 @@ return strvalue; } +-(void)getdataUserInfo +{ + [LoadAlterView show]; + [PublicNetWorkManager requestUserData:self Callback:^(BOOL state, UserModel *responseObject, NSString * _Nullable describle) { + [LoadAlterView dismiss]; + if(state) + { + [UserInfoModel setIdentityType:responseObject.data.identityType]; + [UserInfoModel shareModel].isAllLevel = responseObject.data.isAllLevel; + [UserInfoModel shareModel].user_stage = responseObject.data.user_stage; + [UserInfoModel setTemp:responseObject.data.temp]; + [UserInfoModel setUserid:responseObject.data.user_id]; + [UserInfoModel shareModel].vip = responseObject.data.vip; + } + [self.viewController.navigationController popViewControllerAnimated:YES]; + }]; +} + #pragma mark - payManager #pragma mark - Apple支付 ///所有商品价格信息 @@ -517,7 +550,7 @@ NSString *strtempcence = self.source; [UserInfoModel shijianShangBao:0 key:@"client.pay.success" value:[NSString stringWithFormat:@"%@:%@",strvalue,strtempcence] extra:self.modelSelect.goods_id]; - [self.viewController.navigationController popViewControllerAnimated:YES]; + [self getdataUserInfo]; } -(void)payCancle { diff --git a/ProductApp/ProductApp/ProductMain/引导/智能PPT/view/StartZNPPTView.m b/ProductApp/ProductApp/ProductMain/引导/智能PPT/view/StartZNPPTView.m index c74f0e2..914e5b9 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能PPT/view/StartZNPPTView.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能PPT/view/StartZNPPTView.m @@ -271,6 +271,10 @@ { [LoadAlterView show]; ExamplePptModelDataItems *model = self.arrdata[self.bannerView.currentIndex]; + + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"智能PPT-%@",model.name] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + [NetWorkManager requestExamplePptDetailData:self ID:model.ID Callback:^(BOOL state, ExamplePptDetailModel *responseObject, NSString * _Nullable describle) { [LoadAlterView dismiss]; if(state) diff --git a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.h b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.h index 9132329..f0294d5 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.h +++ b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN @interface StartZNPPTDaGangSonTableViewCell : UITableViewCell @property (nonatomic , strong) ExamplePptDetailModelDataResultOutlineChaptersItem *model; +@property (nonatomic , assign) BOOL isyindao; @end NS_ASSUME_NONNULL_END diff --git a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.m b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.m index ca68c2e..262e044 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangSonTableViewCell.m @@ -12,7 +12,10 @@ @property (nonatomic , strong) UITextField *fieldname; /// @property (nonatomic , strong) UIButton *btedit; - +/// +@property (nonatomic , strong) UIImageView *btpx; +/// +@property (nonatomic , strong) UIView *viewpx; @end @implementation StartZNPPTDaGangSonTableViewCell @@ -72,6 +75,7 @@ make.height.offset(30); make.width.offset(35); }]; + _viewpx = viewpx; UIImageView *btpx = [[UIImageView alloc] init]; btpx.image = [UIImage imageNamed:@"yd_dg_px"]; @@ -83,6 +87,7 @@ make.width.offset(20); }]; btpx.tag=-1; + _btpx = btpx; UIButton *btedit = [[UIButton alloc] init]; [btedit setImage:[UIImage imageNamed:@"yd_dg_edit"] forState:UIControlStateNormal]; @@ -103,6 +108,13 @@ _model = model; [self.fieldname setUserInteractionEnabled:NO]; self.fieldname.text = model.chapterTitle; + + if(self.isyindao) + { + [self.viewpx setHidden:YES]; + [self.btedit setHidden:YES]; + } + } -(void)editFieldAction { diff --git a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.h b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.h index 573a31a..6c5eeb1 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.h +++ b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN ///0上面 1下面 2全部 @property (nonatomic , assign) NSInteger typeline; @property (nonatomic , assign) NSInteger irow; +@property (nonatomic , assign) BOOL isyindao; /// @property (nonatomic , strong) ExamplePptDetailModelDataResultOutlineChapters *model; @end diff --git a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.m b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.m index 1bf2f53..16db07e 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/cell/StartZNPPTDaGangTableViewCell.m @@ -23,6 +23,8 @@ /// @property (nonatomic , strong) UIImageView *btpx; /// +@property (nonatomic , strong) UIView *viewpx; +/// @property (nonatomic , strong) UIButton *btedit; /// @property (nonatomic , strong) UITableView *tableView ; @@ -105,6 +107,7 @@ make.height.offset(30); make.width.offset(35); }]; + _viewpx = viewpx; UIImageView *btpx = [[UIImageView alloc] init]; btpx.image = [UIImage imageNamed:@"yd_dg_px"]; @@ -223,9 +226,21 @@ [self.arrData addObjectsFromArray:model.chapterContents]; self.tableView.dataArray = self.arrData; } - + if(self.isyindao) + { + [self.viewpx setHidden:YES]; + [self.btedit setHidden:YES]; + } [self.tableView reloadData]; } +-(void)setIsyindao:(BOOL)isyindao +{ + _isyindao = isyindao; + if(isyindao) + { + [self.tableView setUserInteractionEnabled:NO]; + } +} - (BOOL)textFieldShouldEndEditing:(UITextField *)textField { @@ -247,6 +262,7 @@ [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; [cell setBackgroundColor:[UIColor clearColor]]; } + cell.isyindao = self.isyindao; cell.model = self.arrData[indexPath.row]; return cell; diff --git a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/view/StartZNPPTDaGangView.m b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/view/StartZNPPTDaGangView.m index 8e45e1a..e662f36 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/view/StartZNPPTDaGangView.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能PPT/大纲/view/StartZNPPTDaGangView.m @@ -202,7 +202,15 @@ make.height.offset(fheight+10); }]; } - +-(void)setIsyindao:(BOOL)isyindao +{ + _isyindao = isyindao; + if(isyindao) + { + [self.tableView setUserInteractionEnabled:NO]; + [self.tableViewinfo setUserInteractionEnabled:NO]; + } +} -(void)nextAction { [StartZNPPTDaGangAlterView show]; @@ -320,7 +328,7 @@ [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; [cell setBackgroundColor:[UIColor clearColor]]; } - + cell.isyindao = self.isyindao; if(tableView.tag==1) {///内容 [self setCellType:indexPath arrvalue:self.arrContent cell:cell]; diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m index c89e2bd..1d818f4 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/view/StartZNXZView.m @@ -9,6 +9,8 @@ #import "StartZNXZKeysViewController.h" #import "ExampleWriteList.h" +#import "BaseViewController.h" + @interface StartZNXZView () /// @property (nonatomic , strong) UIButton *btselect; @@ -254,6 +256,10 @@ [HXHud showMessage:@"请选择标题" afterDelayType:0]; return; } + + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"智能写作-标题%@",self.strtitle] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + StartZNXZKeysViewController *vc = [StartZNXZKeysViewController new]; vc.strpid = self.strpid; vc.strtitle = self.strtitle; diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m index e28154d..7037f0a 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/关键词/view/StartZNXZKeysView.m @@ -374,6 +374,8 @@ } [self.arrSelect addObject:lbst.text]; [self drawSelectView]; + + [UserInfoModel shijianShangBao:0 key:@"client.guide.write.require.select" value:lbst.text extra:@""]; } else { @@ -382,6 +384,8 @@ } -(void)delAction:(UIButton *)sender { + [UserInfoModel shijianShangBao:0 key:@"client.guide.write.require.remove" value:self.arrShow[sender.tag] extra:@""]; + [self.arrSelect removeObjectAtIndex:sender.tag]; [self drawSelectView]; } @@ -401,6 +405,10 @@ [HXHud showMessage:@"请选择写作要求" afterDelayType:0]; return; } + + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"智能写作-标题%@-关键词%@",self.strtitle,[self.arrSelect componentsJoinedByString:@"、"]] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + StartZNXZSiLuViewController *vc = [StartZNXZSiLuViewController new]; vc.strtitle = self.strtitle; vc.modelTitle = self.modelTitle; diff --git a/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m index 199c7a1..ba1bc05 100644 --- a/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m +++ b/ProductApp/ProductApp/ProductMain/引导/智能写作/思路/view/StartZNXZSiLuView.m @@ -288,6 +288,10 @@ typedef void(^StartZNXZSiLuViewDrawEndBack)(UIView *viewlast); { [dicpush setObject:[Tools isStringnil:title_id] forKey:@"title_id"]; } + else + { + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.member.recharge" value:@"更换思路" extra:[dicpush yy_modelToJSONString]]; + } [[SSENetWorkManager shareManager] requestTo:[NSString stringWithFormat:@"https://aiw.batiao8.com/api/chat?scene=%@",scenct] dicpush:dicpush config:^(SSEConfigModel * _Nonnull config) { self.modelConfig = config; @@ -337,7 +341,8 @@ typedef void(^StartZNXZSiLuViewDrawEndBack)(UIView *viewlast); } else { - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# 题材" withString:@""]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# 题材" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#题材" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"# 开头" withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#开头" withString:@"|&&|"]; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKTXZWenZhangView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKTXZWenZhangView.m index 9882fb4..2adce20 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKTXZWenZhangView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKTXZWenZhangView.m @@ -7,7 +7,7 @@ #import "StartKTXZWenZhangView.h" #import "StartKTXZPGView.h" - +#import "BaseViewController.h" @interface StartKTXZWenZhangView () /// @@ -451,6 +451,9 @@ [HXHud showMessage:@"请等待文章写作完成" afterDelayType:0]; return; } + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"课堂写作-%@-按照写作标准批改作文",self.modelDetailYDY.title] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)]; view.isshiyong = YES; view.modelDetailYDY = self.modelDetailYDY; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKeTangXieZuoView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKeTangXieZuoView.m index 343ba02..ce34b56 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKeTangXieZuoView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/view/StartKeTangXieZuoView.m @@ -7,6 +7,7 @@ #import "StartKeTangXieZuoView.h" #import "StartKTXZWenZhangViewController.h" +#import "BaseViewController.h" @interface StartKeTangXieZuoView () /// @@ -286,6 +287,12 @@ -(void)createAction { + if(self.modelDetailYDY) + { + BaseViewController *vcbase = (BaseViewController *)self.viewController; + [UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"课堂写作-%@",self.modelDetailYDY.title] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]]; + } + StartKTXZWenZhangViewController *vc = [StartKTXZWenZhangViewController new]; vc.strpid = self.strpid; vc.strtitle = self.strtitle; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m index f01f47c..bde32ef 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/StartKTXZPGDetailViewController.m @@ -99,21 +99,6 @@ }]; } - [NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) { - loadcount++; - if(state) - { - view.arrErrorLocation = responseObject.data; - } - else - { - [HXHud showMessage:responseObject.message afterDelayType:1]; - } - if(loadcount>=3) - { - [LoadAlterView dismiss]; - } - }]; [NetWorkManager requestCorrectWrite_correctData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteCorrectModel *responseObject, NSString * _Nullable describle) { loadcount++; if(state) @@ -130,6 +115,22 @@ } }]; + ///可以不请求 + [NetWorkManager requestCorrectWrite_correct_errorData:self.view ID:self.strID Callback:^(BOOL state, CorrectWriteErrorModel *responseObject, NSString * _Nullable describle) { + loadcount++; + if(state) + { + view.arrErrorLocation = responseObject.data; + } + else + { + [HXHud showMessage:responseObject.message afterDelayType:1]; + } + if(loadcount>=3) + { + [LoadAlterView dismiss]; + } + }]; } } diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m index cf6bf23..bc4932a 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailTabView.m @@ -30,6 +30,11 @@ -(void)setArrTitle:(NSArray *)arrTitle { if(arrTitle.count==0)return; + + for(UIView *view in self.subviews) + { + [view removeFromSuperview]; + } _arrTitle = arrTitle; self.arrbtn = [NSMutableArray new]; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m index 1545771..069d873 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/StartKTXZPGDetailView.m @@ -15,11 +15,14 @@ #import "XieZuoFenXiangAlterView.h" #import "XieZuoXiangQingViewController.h" +#import "CorrectWriteErrorModel.h" + @interface StartKTXZPGDetailView () /// @property (nonatomic , strong) UIScrollView *scvback; /// @property (nonatomic , strong) UILabel *lbfen; +@property (nonatomic , strong) UIImageView *imgvnumber; /// @property (nonatomic , strong) UIView *viewback; /// @@ -39,6 +42,10 @@ /// @property (nonatomic , strong) XieZuoFenXiangAlterView *viewshare; + +/// +@property (nonatomic , strong) NSMutableArray *arrBtnLocation; + @end @implementation StartKTXZPGDetailView @@ -62,7 +69,7 @@ [lbfen setText:@""]; [lbfen setTextColor:RGBCOLOR(231, 47, 21)]; [lbfen setTextAlignment:NSTextAlignmentCenter]; - [lbfen setFont:[UIFont fontWithName:@"D-DIN-PRO-Bold" size:20]]; + [lbfen setFont:[UIFont fontWithName:@"SmileySans-Oblique" size:35]]; [scvback addSubview:lbfen]; [lbfen mas_makeConstraints:^(MASConstraintMaker *make) { make.top.offset(20); @@ -70,6 +77,17 @@ }]; _lbfen = lbfen; + UIImageView *imgvnumber = [[UIImageView alloc] init]; + [imgvnumber setImage:[UIImage imageNamed:@"ic_correct_score_red"]]; + [scvback addSubview:imgvnumber]; + [imgvnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbfen.mas_bottom); + make.centerX.equalTo(lbfen); + make.height.offset(10); + make.width.offset(50); + }]; + _imgvnumber = imgvnumber; + UIView *viewback = [[UIView alloc] initWithFrame:CGRectMake(0, UISCREEN_HEIGHT*0.2, UISCREEN_WIDTH, UISCREEN_HEIGHT*0.8-TabHeight-20-NavHeight)]; [viewback setBackgroundColor:[UIColor whiteColor]]; [self addSubview:viewback]; @@ -239,6 +257,9 @@ { NSMutableDictionary *dicpush = [NSMutableDictionary new]; [dicpush setObject:[Tools isStringnil:self.strID] forKey:@"id"]; + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.start.write" value:@"一键成文" extra:[dicpush yy_modelToJSONString]]; + XieZuoXiangQingViewController *vc = [XieZuoXiangQingViewController new]; vc.dicpush = dicpush; vc.scene = @"rewrite_correct"; @@ -265,6 +286,19 @@ viewfj.viewshare = self.viewshare; viewfj.modelResult = self.modelDetailYDY.result; viewfj.modelContentItems = self.modelContentItems; + [viewfj setBackTopSelect:^(NSInteger tag) { + for(UIButton *bt in self.arrBtnLocation) + { + if(bt.tag==tag+10000) + { + [bt setBackgroundColor:RGBACOLOR(255, 255, 255, 0.4)]; + } + else + { + [bt setBackgroundColor:[UIColor clearColor]]; + } + } + }]; _viewfj = viewfj; } } @@ -332,7 +366,7 @@ make.width.offset(UISCREEN_WIDTH); if(viewlast) { - make.top.equalTo(viewlast.mas_bottom).offset(20); + make.top.equalTo(viewlast.mas_bottom); } else { @@ -358,8 +392,16 @@ } self.lbfen.text = [Tools isStringnilkong:modelDetailYDY.result.total_score]; [self.scvback bringSubviewToFront:self.lbfen]; + [self.scvback bringSubviewToFront:self.imgvnumber]; + if(self.lbfen.text.intValue<1) + { + [self.imgvnumber setHidden:YES]; + } //// 综合评价 分句点评 写作思路 self.viewzh.modelResult = modelDetailYDY.result; + + [self drawlocation:375/UISCREEN_WIDTH]; + } -(void)setArrXZImages:(NSArray *)arrXZImages { @@ -379,7 +421,7 @@ make.width.offset(UISCREEN_WIDTH); if(viewlast) { - make.top.equalTo(viewlast.mas_bottom).offset(20); + make.top.equalTo(viewlast.mas_bottom); } else { @@ -410,6 +452,11 @@ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ self.lbfen.text = [Tools isStringnilkong:modelPF.total_score]; [self.scvback bringSubviewToFront:self.lbfen]; + [self.scvback bringSubviewToFront:self.imgvnumber]; + if(self.lbfen.text.intValue<1) + { + [self.imgvnumber setHidden:YES]; + } }); } -(void)haibaoAction:(NSNotification *)notifi @@ -427,7 +474,6 @@ } - -(XieZuoFenXiangAlterView *)viewshare { if(!_viewshare) @@ -438,4 +484,61 @@ return _viewshare; } +///绘制点击位置 +-(void)drawlocation:(float)bilv +{ + self.arrBtnLocation = [NSMutableArray new]; + for(int i = 0 ; i < self.modelDetailYDY.result.split_review.count;i++) + { + TextbookInfoModelDataResultSplit *modelsplit = self.modelDetailYDY.result.split_review[i]; + ///57,104-353,122 + for(NSString *str in modelsplit.position) + { + NSArray *arrlocation = [str componentsSeparatedByString:@"-"]; + if(arrlocation.count==2) + { + NSArray *arrlefttop = [arrlocation[0] componentsSeparatedByString:@","]; + NSArray *arrrightbottom = [arrlocation[1] componentsSeparatedByString:@","]; + if(arrlefttop.count==2&&arrrightbottom.count==2) + { + UIButton *btlocation = [[UIButton alloc] init]; + [btlocation setBackgroundColor:[UIColor clearColor]]; + [self.scvback addSubview:btlocation]; + [btlocation mas_makeConstraints:^(MASConstraintMaker *make) { + make.left.offset([arrlefttop[0] floatValue]/bilv); + make.top.offset([arrlefttop[1] floatValue]/bilv); + make.width.offset(([arrrightbottom[0] floatValue]-[arrlefttop[0] floatValue])/bilv); + make.height.offset(([arrrightbottom[1] floatValue]-[arrlefttop[1] floatValue])/bilv); + }]; + [btlocation setTag:10000+i]; + [btlocation addTarget:self action:@selector(locationAction:) forControlEvents:UIControlEventTouchUpInside]; + + [self.arrBtnLocation addObject:btlocation]; + + } + } + } + } +} +-(void)locationAction:(UIButton *)sender +{ + for(UIButton *bt in self.arrBtnLocation) + { + if(bt.tag==sender.tag) + { + [bt setBackgroundColor:RGBACOLOR(255, 255, 255, 0.4)]; + } + else + { + [bt setBackgroundColor:[UIColor clearColor]]; + } + } + + [self.viewtop setSelecttag:1]; + [self showVC:1]; + [self.scvbackinfo setContentOffset:CGPointMake(UISCREEN_WIDTH, 0)]; + [self.viewfj setShowRow:(int)sender.tag-10000]; +} + + @end diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/写作思路/StartKTXZPGDetailXZView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/写作思路/StartKTXZPGDetailXZView.m index 5e34c4e..c18fb45 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/写作思路/StartKTXZPGDetailXZView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/写作思路/StartKTXZPGDetailXZView.m @@ -447,7 +447,9 @@ typedef void(^backenddraw)(void); } else { - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# 开头" withString:@""]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# 开头" withString:@""]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# 开头" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#开头" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"# 中间" withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#中间" withString:@"|&&|"]; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJItemView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJItemView.m index b7763b8..f2c72c0 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJItemView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJItemView.m @@ -262,7 +262,8 @@ } else { - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# 鼓励的评价" withString:@""]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# 鼓励的评价" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#鼓励的评价" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"# 优秀的建议" withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#优秀的建议" withString:@"|&&|"]; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.h b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.h index 0006e9f..f815afb 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.h +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.h @@ -11,7 +11,7 @@ #import "CorrectWriteCorrectModel.h" NS_ASSUME_NONNULL_BEGIN - +typedef void(^StartKTXZPGDetailFJViewTopSelect)(NSInteger tag); @interface StartKTXZPGDetailFJView : UIView /// @property (nonatomic , strong) XieZuoFenXiangAlterView *viewshare; @@ -21,6 +21,9 @@ NS_ASSUME_NONNULL_BEGIN ///句子数据 @property (nonatomic , strong) CorrectWriteCorrectModelData *modelContentItems; +/// +@property (nonatomic , strong) StartKTXZPGDetailFJViewTopSelect backTopSelect; + ///显示第几句点评 -(void)setShowRow:(int)row; diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.m index a82c52f..0f452dc 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/分句点评/StartKTXZPGDetailFJView.m @@ -138,6 +138,16 @@ } self.arrViews[sender.tag] = viewone; } + if(self.modelResult) + { + [UserInfoModel shijianShangBao:0 key:@"client.guide.correct.evaluate.sentence" value:@"引导页切换分句点评" extra:[self.modelResult.split_review[sender.tag] yy_modelToJSONString]]; + } + + if(self.backTopSelect) + { + self.backTopSelect(sender.tag); + } + [self.scvback setContentOffset:CGPointMake(UISCREEN_WIDTH*sender.tag, 0)]; } -(void)setModelResult:(TextbookInfoModelDataResult *)modelResult diff --git a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/综合评价/StartKTXZPGDetailZHView.m b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/综合评价/StartKTXZPGDetailZHView.m index aebf220..66441cf 100644 --- a/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/综合评价/StartKTXZPGDetailZHView.m +++ b/ProductApp/ProductApp/ProductMain/引导/课堂写作/批改信息/view/综合评价/StartKTXZPGDetailZHView.m @@ -379,8 +379,8 @@ [self drawTopView:self.viewtop]; NSString *value = modelHestoryResult.write_correct_evaluate; - - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# 综合评价" withString:@""]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# 综合评价" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#综合评价" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"# 作文优点" withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#作文优点" withString:@"|&&|"]; diff --git a/ProductApp/ProductApp/ProductMain/我的/WoDeViewController.m b/ProductApp/ProductApp/ProductMain/我的/WoDeViewController.m index 9f3ac22..cd0b932 100644 --- a/ProductApp/ProductApp/ProductMain/我的/WoDeViewController.m +++ b/ProductApp/ProductApp/ProductMain/我的/WoDeViewController.m @@ -49,7 +49,10 @@ [UserInfoModel shareModel].user_stage = responseObject.data.user_stage; [UserInfoModel setTemp:responseObject.data.temp]; [UserInfoModel setUserid:responseObject.data.user_id]; + [UserInfoModel shareModel].vip = responseObject.data.vip; self.viewback.modelDetail = responseObject.data; + + [self tanLoginChuan]; } }]; } diff --git a/ProductApp/ProductApp/ProductMain/我的/view/WoDeView.m b/ProductApp/ProductApp/ProductMain/我的/view/WoDeView.m index a7c5bf6..452b044 100644 --- a/ProductApp/ProductApp/ProductMain/我的/view/WoDeView.m +++ b/ProductApp/ProductApp/ProductMain/我的/view/WoDeView.m @@ -180,7 +180,7 @@ { _modelDetail = modelDetail; self.viewinfo.modelDetail = modelDetail; - + [self.btHYkt setHidden:NO]; if(modelDetail.vip.intValue == 1 && [Tools isStringnil:self.modelDetail.vip_expire].length>0) { [self.lbHYname setText:@"加入会员解锁全部智能功能"]; @@ -205,7 +205,6 @@ { [self.lbHYname setText:@"加入会员解锁全部智能功能"]; self.lbHYinfo.text = @"专属八大特权"; - [self.btHYkt setHidden:NO]; [self.btHYkt setTitle:@"立即开通" forState:UIControlStateNormal]; } @@ -296,6 +295,7 @@ { ShouYeLiShiJiLuViewController *vc = [ShouYeLiShiJiLuViewController new]; [self.viewController.navigationController pushViewController:vc animated:YES]; + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.write.history" value:@"个人中心" extra:@""]; } else if([self.arrdata[indexPath.row] isEqualToString:@"在线客服"]) { @@ -322,6 +322,7 @@ -(void)getKeFuData { + [UserInfoModel shijianShangBao:0 key:@"client.contact.service" value:@"" extra:@""]; [LoadAlterView show]; [PublicNetWorkManager requestWeixinServiceData:self Callback:^(BOOL state, WeixinServiceModel *responseObject, NSString * _Nullable describle) { [LoadAlterView dismiss]; diff --git a/ProductApp/ProductApp/ProductMain/我的/系统设置/SetViewController.m b/ProductApp/ProductApp/ProductMain/我的/系统设置/SetViewController.m index 1157693..006b897 100644 --- a/ProductApp/ProductApp/ProductMain/我的/系统设置/SetViewController.m +++ b/ProductApp/ProductApp/ProductMain/我的/系统设置/SetViewController.m @@ -59,7 +59,7 @@ }]; _tableView = tableView; - self.arrdata = @[@"版本更新",@"账号绑定",@"账户管理",@"关于我们",@"注销账户"]; + self.arrdata = @[@"权限管理",@"账号绑定",@"账户管理",@"关于我们",@"注销账户"]; UIButton *btdenglu = [[UIButton alloc] init]; [btdenglu setTitle:@"退出登录" forState:UIControlStateNormal]; diff --git a/ProductApp/ProductApp/ProductMain/我的/系统设置/关于我们/GunYuController.m b/ProductApp/ProductApp/ProductMain/我的/系统设置/关于我们/GunYuController.m index 2cf52c3..0962666 100644 --- a/ProductApp/ProductApp/ProductMain/我的/系统设置/关于我们/GunYuController.m +++ b/ProductApp/ProductApp/ProductMain/我的/系统设置/关于我们/GunYuController.m @@ -76,7 +76,7 @@ }]; self.arrdata = @[@"版权公司",@"版本号",@"算法备案公示"]; - + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.about.us" value:@"" extra:@""]; } -(void)longAction diff --git a/ProductApp/ProductApp/ProductMain/我的/系统设置/意见反馈/view/YiJianFanKuiView.m b/ProductApp/ProductApp/ProductMain/我的/系统设置/意见反馈/view/YiJianFanKuiView.m index 2848b99..c7a70d1 100644 --- a/ProductApp/ProductApp/ProductMain/我的/系统设置/意见反馈/view/YiJianFanKuiView.m +++ b/ProductApp/ProductApp/ProductMain/我的/系统设置/意见反馈/view/YiJianFanKuiView.m @@ -292,6 +292,8 @@ [HXHud showMessage:@"请输入反馈意见" afterDelayType:1]; return; } + [UserInfoModel shijianShangBao:0 key:@"client.feedback" value:@"" extra:@""]; + [HXLoadingHUD showWithStatus:@"" maskType:0]; [PublicNetWorkManager requestUserFeedbackData:self type:self.btitemSelect.titleLabel.text contact:self.fieldshoujihao.text images:self.imageIDArray content:self.textview.text Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) { [HXLoadingHUD dismiss]; diff --git a/ProductApp/ProductApp/ProductMain/我的/系统设置/账号绑定/ZhangHaoBangDingViewController.m b/ProductApp/ProductApp/ProductMain/我的/系统设置/账号绑定/ZhangHaoBangDingViewController.m index 8026ca2..0c83dc9 100644 --- a/ProductApp/ProductApp/ProductMain/我的/系统设置/账号绑定/ZhangHaoBangDingViewController.m +++ b/ProductApp/ProductApp/ProductMain/我的/系统设置/账号绑定/ZhangHaoBangDingViewController.m @@ -322,7 +322,7 @@ NSDictionary *dic=@{@"code":[Tools isStringnil:resp.code], @"code_type":@""}; - + [UserInfoModel shijianShangBao:0 key:@"client.account.bind" value:@"weixin" extra:@""]; [LoadAlterView show]; [PublicNetWorkManager requestUserLoginData:self.view login_type:@"weixin" phone:@{} weixin:dic apple:@{} device:@{} onekey:@{} bind:[NSNumber numberWithBool:YES] unbind:[NSNumber numberWithBool:NO] Callback:^(BOOL state, UserLoginModel *responseObject, NSString * _Nullable describle) { if(state) @@ -384,6 +384,7 @@ -(void)pushJieBang:(NSString *)login_type { + [UserInfoModel shijianShangBao:0 key:@"client.account.unbind" value:@"login_type" extra:@""]; [LoadAlterView show]; [PublicNetWorkManager requestUserLoginData:self.view login_type:login_type phone:@{} weixin:@{} apple:@{} device:@{} onekey:@{} bind:[NSNumber numberWithBool:NO] unbind:[NSNumber numberWithBool:YES] Callback:^(BOOL state, UserLoginModel *responseObject, NSString * _Nullable describle) { if(state) @@ -405,6 +406,7 @@ #pragma mark - apple -(void)loginPushApple:(NSDictionary *)dic login_type:(NSString *)login_type { + [UserInfoModel shijianShangBao:0 key:@"client.account.bind" value:@"apple" extra:@""]; [PublicNetWorkManager requestUserLoginData:self.view login_type:login_type phone:@{} weixin:@{} apple:dic device:@{} onekey:@{} bind:[NSNumber numberWithBool:YES] unbind:[NSNumber numberWithBool:NO] Callback:^(BOOL state, UserLoginModel *responseObject, NSString * _Nullable describle) { [LoadAlterView dismiss]; if(state) diff --git a/ProductApp/ProductApp/ProductMain/范文/FanWenViewController.m b/ProductApp/ProductApp/ProductMain/范文/FanWenViewController.m index 6dca311..072c5d6 100644 --- a/ProductApp/ProductApp/ProductMain/范文/FanWenViewController.m +++ b/ProductApp/ProductApp/ProductMain/范文/FanWenViewController.m @@ -27,6 +27,9 @@ -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; + + [self tanLoginChuan]; + } - (void)viewDidLoad { [super viewDidLoad]; diff --git a/ProductApp/ProductApp/ProductMain/范文/详情/view/FanWenDetailView.m b/ProductApp/ProductApp/ProductMain/范文/详情/view/FanWenDetailView.m index a4978d2..6fa3b85 100644 --- a/ProductApp/ProductApp/ProductMain/范文/详情/view/FanWenDetailView.m +++ b/ProductApp/ProductApp/ProductMain/范文/详情/view/FanWenDetailView.m @@ -262,6 +262,10 @@ UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = [Tools isStringnil:self.modelDetail.content]; [HXHud showMessage:@"复制成功" afterDelayType:0]; + + [UserInfoModel shijianShangBao:0 key:@"client.write.copy.text" value:@"范文" extra:self.modelDetail.content]; + + } }]; } diff --git a/ProductApp/ProductApp/ProductMain/首页/ShouYeViewController.m b/ProductApp/ProductApp/ProductMain/首页/ShouYeViewController.m index 423e4a2..5b8679c 100644 --- a/ProductApp/ProductApp/ProductMain/首页/ShouYeViewController.m +++ b/ProductApp/ProductApp/ProductMain/首页/ShouYeViewController.m @@ -21,6 +21,7 @@ #import "PublicNetWorkManager.h" #import "NetWorkManager.h" #import "FanWenDetailViewController.h" +#import "UpdataAlterView.h" @interface ShouYeViewController () /// @@ -57,6 +58,7 @@ [self getFanWen]; } + [self tanLoginChuan]; } - (void)viewDidLoad { [super viewDidLoad]; @@ -87,6 +89,10 @@ [self getUserData]; + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + NSDictionary *dic = [[UserInfoModel shareModel].config objectForKey:@"client.version.upgrade"]; + [self showUpDataAltre:dic]; + }); } -(void)drawTopView @@ -134,6 +140,7 @@ {///历史记录 ShouYeLiShiJiLuViewController *vc = [ShouYeLiShiJiLuViewController new]; [self.navigationController pushViewController:vc animated:YES]; + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.write.history" value:@"首页" extra:@""]; } else {///身份选择 @@ -150,7 +157,17 @@ } } } - +///更新 +-(void)showUpDataAltre:(NSDictionary *)dic +{ + NSString *strfw = [[dic objectForKey:@"version"] stringByReplacingOccurrencesOfString:@"." withString:@""]; + NSString *strbd = [[Tools applicationVersion] stringByReplacingOccurrencesOfString:@"." withString:@""]; + if(strfw.intValue>strbd.intValue) + { + BOOL isforce = [[dic objectForKey:@"force"] boolValue]; + [UpdataAlterView showName:[Tools isStringnil:[dic objectForKey:@"description"]] strversion:[NSString stringWithFormat:@"V%@",[dic objectForKey:@"version"]] isforce:isforce]; + } +} #pragma mark - UITableView -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { @@ -187,7 +204,7 @@ else { int shenfen = [UserInfoModel shareModel].identityType.intValue; - if (shenfen==1||shenfen==2) + if (shenfen==2) { static NSString *strcell = @"ShouYeLSZWPGTableViewCell"; ShouYeLSZWPGTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell]; @@ -233,7 +250,7 @@ else { int shenfen = [UserInfoModel shareModel].identityType.intValue; - if (shenfen==1||shenfen==2) + if (shenfen==2) { static NSString *strcell = @"ShouYeLSKTPGTableViewCell"; ShouYeLSKTPGTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:strcell]; @@ -371,9 +388,9 @@ UILabel *lbname = [[UILabel alloc] init]; [lbname setText:@"高分作文"]; - [lbname setTextColor:RGBCOLOR(51, 51, 51)]; + [lbname setTextColor:RGBCOLOR(26, 26, 26)]; [lbname setTextAlignment:NSTextAlignmentLeft]; - [lbname setFont:[UIFont systemFontOfSize:14]]; + [lbname setFont:[UIFont boldSystemFontOfSize:16]]; [viewback addSubview:lbname]; [lbname mas_makeConstraints:^(MASConstraintMaker *make) { make.left.offset(14); @@ -440,7 +457,7 @@ [UserInfoModel shareModel].user_stage = responseObject.data.user_stage; [UserInfoModel setTemp:responseObject.data.temp]; [UserInfoModel setUserid:responseObject.data.user_id]; - + [UserInfoModel shareModel].vip = responseObject.data.vip; [self updateBtShow]; [self getFanWen]; } diff --git a/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSKTPGTableViewCell.m b/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSKTPGTableViewCell.m index ced0c29..4b843ce 100644 --- a/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSKTPGTableViewCell.m +++ b/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSKTPGTableViewCell.m @@ -8,6 +8,7 @@ #import "ShouYeLSKTPGTableViewCell.h" #import "ZhiNengXieZuoViewController.h" #import "CamreViewController.h" +#import "KeTangXieZuoViewController.h" @interface ShouYeLSKTPGTableViewCell () @@ -42,7 +43,7 @@ make.top.right.equalTo(viewback); make.height.offset(75); }]; - [self drawSmillView:viewkt title:@"智能写作" info:@"优秀作家" img:@"home_ls_znxz" tag:1]; + [self drawSmillView:viewkt title:@"写作生成" info:@"优秀作家" img:@"home_ls_znxz" tag:1]; UIView *viewpg = [[UIView alloc] init]; @@ -145,8 +146,10 @@ switch (sender.tag) { case 0: { - CamreViewController *vc = [CamreViewController new]; - vc.type = 3; +// CamreViewController *vc = [CamreViewController new]; +// vc.type = 3; +// [self.viewController.navigationController pushViewController:vc animated:YES]; + KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new]; [self.viewController.navigationController pushViewController:vc animated:YES]; } break; diff --git a/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSZWPGTableViewCell.m b/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSZWPGTableViewCell.m index 674a916..9e2aae3 100644 --- a/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSZWPGTableViewCell.m +++ b/ProductApp/ProductApp/ProductMain/首页/cell/老师/ShouYeLSZWPGTableViewCell.m @@ -31,6 +31,7 @@ [viewback mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.equalTo(self); }]; + [viewback setUserInteractionEnabled:YES]; [viewback.layer setMasksToBounds:YES]; [viewback.layer setCornerRadius:8]; [viewback setImage:[UIImage imageNamed:@"home_ls_zwpg"]]; diff --git a/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m b/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m index 3a4abad..459294e 100644 --- a/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m +++ b/ProductApp/ProductApp/ProductMain/首页/写作分享/分享海报views/FenXiangHaiBaoView.m @@ -113,6 +113,32 @@ } } + UILabel *lbfen = [[UILabel alloc] init]; + [lbfen setText:[Tools isStringnil:self.modelPF.total_score]]; + [lbfen setTextColor:RGBCOLOR(231, 47, 21)]; + [lbfen setTextAlignment:NSTextAlignmentCenter]; + [lbfen setFont:[UIFont fontWithName:@"SmileySans-Oblique" size:35]]; + [self.scvback addSubview:lbfen]; + [lbfen mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.offset(20); + make.left.offset(UISCREEN_WIDTH-50); + }]; + + UIImageView *imgvnumber = [[UIImageView alloc] init]; + [imgvnumber setImage:[UIImage imageNamed:@"ic_correct_score_red"]]; + [self.scvback addSubview:imgvnumber]; + [imgvnumber mas_makeConstraints:^(MASConstraintMaker *make) { + make.top.equalTo(lbfen.mas_bottom); + make.centerX.equalTo(lbfen); + make.height.offset(10); + make.width.offset(50); + }]; + if(lbfen.text.intValue<1) + { + [imgvnumber setHidden:YES]; + } + + UIView *viewline = [[UIView alloc] init]; [self.scvback addSubview:viewline]; [viewline mas_makeConstraints:^(MASConstraintMaker *make) { diff --git a/ProductApp/ProductApp/ProductMain/首页/切换身份/ShouYeLingYuViewController.m b/ProductApp/ProductApp/ProductMain/首页/切换身份/ShouYeLingYuViewController.m index d1fb6a7..c1c27dd 100644 --- a/ProductApp/ProductApp/ProductMain/首页/切换身份/ShouYeLingYuViewController.m +++ b/ProductApp/ProductApp/ProductMain/首页/切换身份/ShouYeLingYuViewController.m @@ -156,6 +156,7 @@ } else { + [UserInfoModel shijianShangBao:0 key:@"client.check.stage" value:@"切换领域" extra:@""]; [self updataUserInfo]; } }); diff --git a/ProductApp/ProductApp/ProductMain/首页/切换身份/view/ShouYeShenFenView.m b/ProductApp/ProductApp/ProductMain/首页/切换身份/view/ShouYeShenFenView.m index 991b2a3..aa743a6 100644 --- a/ProductApp/ProductApp/ProductMain/首页/切换身份/view/ShouYeShenFenView.m +++ b/ProductApp/ProductApp/ProductMain/首页/切换身份/view/ShouYeShenFenView.m @@ -142,7 +142,7 @@ -(void)setArrdata:(NSArray *)arrdata { _arrdata = arrdata; - + self.viewnj.type = [[UserInfoModel shareModel].identityType integerValue]; self.viewnj.arrdata = self.arrdata; } ///切换领域 @@ -203,6 +203,9 @@ [dicpush setObject:[NSNumber numberWithBool:isall] forKey:@"isAllLevel"]; [dicpush setObject:[NSNumber numberWithInt:type] forKey:@"identityType"]; + + [UserInfoModel shijianShangBao:0 key:@"client.check.stage" value:@"切换学段" extra:[dicpush yy_modelToJSONString]]; + [PublicNetWorkManager requestUserPutData:self body:dicpush Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) { if(state) { diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m index 75760fa..ad7e9d8 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/ZhiNengXieZuoViewController.m @@ -21,7 +21,7 @@ [super viewWillAppear:animated]; [self.navigationController setNavigationBarHidden:YES animated:animated]; [self showNaviGationView:YES]; - [self.navigationView setTitle:@"智能写作" titleColor:RGBCOLOR(60, 60, 60)]; + [self.navigationView setTitle:@"写作生成" titleColor:RGBCOLOR(60, 60, 60)]; [self.navigationView setBackgroundColor:[UIColor clearColor]]; } - (void)viewDidLoad { diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m index 5ff6576..ca4bca6 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoDuanLuoView.m @@ -227,6 +227,8 @@ [view setBackValue:^(NSString * _Nonnull name) { UITextField *field = self.arrfield[2]; field.text = name; + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.write.check.composition.technique" value:name extra:@""]; }]; } @@ -239,6 +241,8 @@ self.btselect = sender; [self.btselect setSelected:YES]; [self.btselect setBackgroundColor:RGBCOLOR(108, 119, 246)]; + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.paragraph.type.check" value:sender.titleLabel.text extra:@""]; } ///提交 -(void)sendAction diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m index 29d5c9b..f795bbd 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoQuanWenView.m @@ -181,6 +181,8 @@ [view setBackValue:^(NSString * _Nonnull name) { UITextField *field = self.arrfield[2]; field.text = name; + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.write.check.composition.type" value:name extra:@""]; }]; } else @@ -190,6 +192,9 @@ [view setBackValue:^(NSString * _Nonnull name) { UITextField *field = self.arrfield[3]; field.text = name; + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.write.check.words.num" value:name extra:@""]; + }]; } } @@ -234,6 +239,8 @@ [dicpush setObject:[self getFieldValue:3] forKey:@"require_num"]; [dicpush setObject:[Tools isStringnil:[UserInfoModel shareModel].user_stage.name] forKey:@"stage"]; + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.start.write" value:@"一键成文" extra:[dicpush yy_modelToJSONString]]; + XieZuoXiangQingViewController *vc = [XieZuoXiangQingViewController new]; vc.scene = @"write_one_key"; vc.dic_type = [self getFieldValue:2]; diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m index 3ca6689..adbbdc1 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/view/ZhiNengXieZuoTopView.m @@ -72,6 +72,9 @@ [self.btselect.titleLabel setFont:[UIFont boldSystemFontOfSize:20]]; self.imgvback.centerX = self.btselect.centerX; self.backSelect(sender.tag); + + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.write.type.check" value:sender.titleLabel.text extra:@""]; } @end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.m index 45dd30b..6b7fd46 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingSiLuView.m @@ -178,6 +178,7 @@ [self mas_makeConstraints:^(MASConstraintMaker *make) { self.selfBottom = make.bottom.equalTo(self.viewlast).offset(15); }]; + [UserInfoModel shijianShangBao:0 key:@"client.write.expand.method" value:@"展开" extra:@""]; } else { @@ -186,7 +187,9 @@ [self mas_makeConstraints:^(MASConstraintMaker *make) { self.selfBottom = make.bottom.equalTo(self.viewtop); }]; + [UserInfoModel shijianShangBao:0 key:@"client.write.expand.method" value:@"折叠" extra:@""]; } + } @end diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m index 5159881..0e32108 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/写作详情/view/XieZuoXiangQingView.m @@ -280,6 +280,8 @@ [self getDuanLuo:model.value]; + [UserInfoModel shijianShangBao:0 key:@"client.write.change.paragraph" value:@"重写段落" extra:model.value]; + } -(void)bottomAction:(UIButton *)sender { @@ -291,6 +293,7 @@ switch (sender.tag) { case 0: {///重写 + [UserInfoModel shijianShangBao:0 key:@"client.write.rewrite.text" value:self.scene extra:@""]; [UserInfoModel quanXianJiaoYan:self.viewController scence:[NSString stringWithFormat:@"write_%@",self.strqxjyly] ispush:YES back:^(BOOL value) { if(value) { diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m index 1be1fe4..2de32df 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/创作思路/view/ChuangZuoSiLuView.m @@ -234,6 +234,8 @@ typedef void(^ChuangZuoSiLuViewDraw)(void); [dicpush setObject:[Tools isStringnil:self.dic_require_num] forKey:@"require_num"]; [dicpush setObject:[Tools isStringnil:[UserInfoModel shareModel].user_stage.name] forKey:@"stage"]; + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.start.write" value:@"一键成文" extra:[dicpush yy_modelToJSONString]]; + XieZuoXiangQingViewController *vc = [XieZuoXiangQingViewController new]; vc.scene = @"write_with_outline"; vc.dicpush = dicpush; @@ -257,6 +259,15 @@ typedef void(^ChuangZuoSiLuViewDraw)(void); [dicpush setObject:[Tools isStringnil:self.dic_require_num] forKey:@"require_num"]; [dicpush setObject:[Tools isStringnil:self.dic_stage] forKey:@"stage"]; + if([scenct isEqualToString:@"write_outline"]) + { + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.member.recharge" value:@"更换思路" extra:[dicpush yy_modelToJSONString]]; + } + else + { + [UserInfoModel shijianShangBao:0 key:@"client.jump.to.member.recharge" value:@"梳理思路" extra:[dicpush yy_modelToJSONString]]; + } + [[SSENetWorkManager shareManager] requestTo:[NSString stringWithFormat:@"https://aiw.batiao8.com/api/chat?scene=%@",scenct] dicpush:dicpush config:^(SSEConfigModel * _Nonnull config) { [LoadAlterView dismiss]; self.modelConfig = config; @@ -313,7 +324,8 @@ typedef void(^ChuangZuoSiLuViewDraw)(void); } else { - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# 题材" withString:@""]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# 题材" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#题材" withString:@""]; strshow = [strshow stringByReplacingOccurrencesOfString:@"# 开头" withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#开头" withString:@"|&&|"]; diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m index bb8080c..67ffe1e 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/全文写作/换个思路/view/HuanGeSiLuView.m @@ -194,6 +194,8 @@ } NSString *strtemp = [self.arrselect componentsJoinedByString:@"、"]; + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.method.change.require" value:@"write_change_method" extra:strtemp]; + [LoadAlterView show]; [NetWorkManager requestChatCheckData:self content:strtemp Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) { [LoadAlterView dismiss]; @@ -324,7 +326,8 @@ } else { - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# " withString:@"|&&|"]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# " withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#" withString:@"|&&|"]; NSArray *arrtt = [strshow componentsSeparatedByString:@"|&&|"]; self.arrData = [NSMutableArray new]; diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m index b89aa8d..0caf6f0 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoCellView.m @@ -172,6 +172,10 @@ NSMutableDictionary *dicpush = [NSMutableDictionary new]; [dicpush setDictionary:self.dicpush]; [dicpush setObject:self.strvalue forKey:@"paragraph"]; + + + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.start.write" value:@"段落写作" extra:[dicpush yy_modelToJSONString]]; + DuanLuoXieZuoQWViewController *vc = [DuanLuoXieZuoQWViewController new]; vc.dicpush = dicpush; [self.viewController.navigationController pushViewController:vc animated:YES]; diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m index c9cd93f..5819486 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/view/DuanLuoXieZuoView.m @@ -194,7 +194,8 @@ } else { - NSString *strshow = [value stringByReplacingOccurrencesOfString:@"# " withString:@"|&&|"]; + NSString *strshow = [value stringByReplacingOccurrencesOfString:@"#" withString:@"#"]; + strshow = [strshow stringByReplacingOccurrencesOfString:@"# " withString:@"|&&|"]; strshow = [strshow stringByReplacingOccurrencesOfString:@"#" withString:@"|&&|"]; if([[strshow substringWithRange:NSMakeRange(0, 4)] isEqualToString:@"|&&|"]) { diff --git a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/续写润色/view/DuanLuoXieZuoQWView.m b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/续写润色/view/DuanLuoXieZuoQWView.m index 4371459..e91625b 100644 --- a/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/续写润色/view/DuanLuoXieZuoQWView.m +++ b/ProductApp/ProductApp/ProductMain/首页/智能写作/段落/续写润色/view/DuanLuoXieZuoQWView.m @@ -219,6 +219,7 @@ self.modelSelect = model; [self getDuanLuo:model.value]; + [UserInfoModel shijianShangBao:0 key:@"client.write.change.paragraph" value:@"重写段落" extra:model.value]; } -(void)bottomAction:(UIButton *)sender { diff --git a/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m index 716ff7f..8193541 100644 --- a/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m +++ b/ProductApp/ProductApp/ProductMain/首页/课堂写作/详情/view/KeTangXieZuoXiangQingView.m @@ -424,6 +424,8 @@ [dicpush setObject:[Tools isStringnil:self.modelDetail.word_count] forKey:@"require_num"]; [dicpush setObject:[Tools isStringnil:strtempstate] forKey:@"stage"]; + [UserInfoModel shijianShangBao:0 key:@"client.ai.write.start.write" value:@"一键成文" extra:[dicpush yy_modelToJSONString]]; + XieZuoXiangQingViewController *vc = [XieZuoXiangQingViewController new]; vc.scene = @"write_one_key"; vc.dicpush = dicpush;