This commit is contained in:
pengguangjian 2024-11-08 12:07:24 +08:00
parent 21d9893afd
commit 097fa4d9c0
35 changed files with 143 additions and 19 deletions

View File

@ -18,6 +18,12 @@
self.titleLabel.text = title;
[self.titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:18]];
self.titleLabel.textColor = color;
if([UserInfoModel shareModel].token.length>3)
{
[UserInfoModel shijianShangBao:0 key:@"client.jump.to" value:title extra:@""];
}
}
//backButton
- (void)setBackTitle:(NSString *)title titleColor:(UIColor *)color{

View File

@ -163,20 +163,25 @@ static int tabnavHeight;
-(BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController{
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:@""];
strtt = @"assistant";
if([strtitle isEqualToString:@"范文"])
{
strtt = @"composition";
}
else if([strtitle isEqualToString:@"工具"])
{
strtt = @"tools";
}
else if([strtitle isEqualToString:@"我的"])
{
strtt = @"mine";
}
else if([strtitle isEqualToString:@"首页"])
{
strtt = @"home";
}
[UserInfoModel shijianShangBao:0 key:@"client.home.bottom.tab.check" value:strtt extra:@""];
return YES;
}
- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item {

View File

@ -7,6 +7,9 @@
#import "PGJSearchView.h"
@interface PGJSearchView ()<UITextFieldDelegate>
@end
@implementation PGJSearchView
- (instancetype)initWithFrame:(CGRect)frame {
@ -57,6 +60,7 @@
make.right.equalTo(searchview).offset(-10);
}];
[search setClearButtonMode:UITextFieldViewModeWhileEditing|UITextFieldViewModeUnlessEditing];
[search setDelegate:self];
_searchField = search;
UIButton *searchbtn = [[UIButton alloc] init];
@ -82,5 +86,9 @@
self.searchBackAction(_searchField.text);
}
}
- (BOOL)textFieldShouldClear:(UITextField *)textField
{
[UserInfoModel shijianShangBao:0 key:@"client.clear.search.word.text" value:@"" extra:@""];
return YES;
}
@end

View File

@ -124,12 +124,17 @@
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
ToolsListModelDataItems *model = self.arrdata[indexPath.row];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.write_tools" value:@"home" extra:[model.config yy_modelToJSONString]];
if(model.ID.intValue>=1 && model.ID.intValue<=9)
{
if(model.ID.intValue==9)
{
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"tools" extra:@""];
}
else if(model.ID.intValue==6||model.ID.intValue==7||model.ID.intValue==8||model.ID.intValue==3)
{

View File

@ -286,6 +286,8 @@
{
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"tools" extra:@""];
}
else if([strpage isEqualToString:@"write_assistant"])
{

View File

@ -201,12 +201,17 @@
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
ToolsListModelDataItems *model = self.arrdata[indexPath.row];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.write_tools" value:@"search" extra:[model.config yy_modelToJSONString]];
if(model.ID.intValue>=1 && model.ID.intValue<=9)
{
if(model.ID.intValue==9)
{
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"tools_search" extra:@""];
}
else if(model.ID.intValue==6||model.ID.intValue==7||model.ID.intValue==8||model.ID.intValue==3)
{

View File

@ -416,6 +416,7 @@
vc.modelPF = self.modelPF;
vc.modelContentItems = self.modelContentItems;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.start.correct" value:@"开始课堂写作" extra:@""];
}
break;
case 1:
@ -429,6 +430,8 @@
vc.modelPF = self.modelPF;
vc.modelContentItems = self.modelContentItems;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.start.correct" value:@"开始作文批改" extra:@""];
}
break;
case 2:

View File

@ -215,7 +215,7 @@
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]]];
[UserInfoModel shijianShangBao:0 key:@"client.guide.photo.write.start.write" value:model.title extra:[self.arrdataYD[self.btselect.tag] yy_modelToJSONString]];
[UIView animateWithDuration:1 delay:0.0 options:UIViewAnimationOptionCurveEaseOut animations:^{

View File

@ -512,6 +512,8 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.save.history" value:strscene extra:@""];
XieZuoSaveAlterView *view = [[XieZuoSaveAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
[self.viewController.view addSubview:view];
[view setBackValue:^{

View File

@ -452,7 +452,9 @@
return;
}
BaseViewController *vcbase = (BaseViewController *)self.viewController;
[UserInfoModel shijianShangBao:0 key:@"client.guide.next" value:[NSString stringWithFormat:@"课堂写作-%@-按照写作标准批改作文",self.modelDetailYDY.title] extra:[NSString stringWithFormat:@"%@",[vcbase getTingLiuShiJian]]];
[UserInfoModel shijianShangBao:0 key:@"client.guide.classroom.write.start.correct" value:self.modelDetail.standard extra:[self.modelDetailYDY yy_modelToJSONString]];
StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
view.isshiyong = YES;

View File

@ -290,7 +290,7 @@
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]]];
[UserInfoModel shijianShangBao:0 key:@"client.guide.classroom.write.start.write" value:self.modelDetail.standard extra:[self.modelDetail yy_modelToJSONString]];
}
StartKTXZWenZhangViewController *vc = [StartKTXZWenZhangViewController new];

View File

@ -54,6 +54,9 @@
[self drawFooterView];
[self getdata];
[UserInfoModel shijianShangBao:0 key:@"client.click.account.management" value:@"" extra:@""];
}
-(void)drawFooterView
{

View File

@ -114,6 +114,7 @@
FanWenDetailViewController *vc = [FanWenDetailViewController new];
vc.modelDetail = self.arrdata[indexPath.row];
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.excellent_composition.info" value:@"范文" extra:@""];
}
#pragma mark - DZNEmptyDataSetSource
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView

View File

@ -162,10 +162,12 @@
{
ExampleTextTypeModelDataItems *model = self.arrdata[index-1];
childVC.strid = model.ID;
[UserInfoModel shijianShangBao:0 key:@"client.excellent.composition.type.check" value:@"Tab类型" extra:model.name];
}
else
{
childVC.strid = @"";
[UserInfoModel shijianShangBao:0 key:@"client.excellent.composition.type.check" value:@"Tab类型" extra:@"全部"];
}
return childVC;

View File

@ -209,7 +209,7 @@
[[NSUserDefaults standardUserDefaults] setObject:@[] forKey:FanWenSearchKeywordsHestory];
[self drawKeyWordsView];
[UserInfoModel shijianShangBao:0 key:@"client.clear.search.history" value:@"" extra:@""];
}
-(void)itemAction:(UIButton *)sender

View File

@ -83,5 +83,10 @@
FanWenSearchListViewController *vc = [FanWenSearchListViewController new];
vc.strkey = value;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.search_search_search" value:value extra:@""];
[UserInfoModel shijianShangBao:0 key:@"client.excellent.composition.search" value:value extra:@""];
}
@end

View File

@ -56,6 +56,10 @@
[Tools normalShadow:viewsearch shadowColor:RGBACOLOR(0, 0, 0, 0.1) shadowOpacity:1 cornerRadius:6 shadowRadius:10];
[viewsearch setSearchBackAction:^(NSString * _Nonnull search) {
self.strkey = search;
[UserInfoModel shijianShangBao:0 key:@"client.search_search_search" value:search extra:@""];
[UserInfoModel shijianShangBao:0 key:@"client.excellent.composition.search" value:search extra:@""];
self.ipage=1;
[self getdata];
}];
@ -152,6 +156,9 @@
FanWenDetailViewController *vc = [FanWenDetailViewController new];
vc.modelDetail = self.arrdata[indexPath.row];
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.excellent_composition.info" value:@"范文搜索" extra:@""];
}
#pragma mark - DZNEmptyDataSetSource
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView

View File

@ -439,12 +439,17 @@
FanWenDetailViewController *vc = [FanWenDetailViewController new];
vc.modelDetail = model;
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.excellent_composition.info" value:@"首页" extra:@""];
}
}
///
-(void)morezwAction
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"carnumberChangeNotifi" object:@"1"];
[UserInfoModel shijianShangBao:0 key:@"client.view.more.excellent_composition" value:@"首页" extra:@""];
}
///
-(void)getUserData

View File

@ -97,6 +97,8 @@
{
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"home" extra:@""];
}
else if([strpage isEqualToString:@"write_assistant"])
{

View File

@ -93,6 +93,9 @@
-(void)moreAction
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"carnumberChangeNotifi" object:@"3"];
[UserInfoModel shijianShangBao:0 key:@"client.view.more.write_tools" value:@"首页" extra:@""];
}
-(void)setArrdata:(NSArray *)arrdata
{
@ -151,12 +154,18 @@
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
ToolsListModelDataItems *model = self.arrdata[indexPath.row];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.write_tools" value:@"home" extra:[model.config yy_modelToJSONString]];
if(model.ID.intValue>=1 && model.ID.intValue<=9)
{
if(model.ID.intValue==9)
{
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"home_tools" extra:@""];
}
else if(model.ID.intValue==6||model.ID.intValue==7||model.ID.intValue==8||model.ID.intValue==3)
{

View File

@ -154,12 +154,16 @@
CamreViewController *vc = [CamreViewController new];
vc.type = 2;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.camera" value:@"photos_write" extra:@""];
}
break;
case 1:
{
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"home" extra:@""];
}
break;
case 2:
@ -167,6 +171,8 @@
CamreViewController *vc = [CamreViewController new];
vc.type = 1;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.camera" value:@"correct" extra:@""];
}
break;
default:

View File

@ -118,6 +118,7 @@
}
ZhiNengXieZuoViewController *vc = [ZhiNengXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.ai.write" value:@"home" extra:@""];
}
@end

View File

@ -151,12 +151,17 @@
// [self.viewController.navigationController pushViewController:vc animated:YES];
KeTangXieZuoViewController *vc = [KeTangXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.classroom.write" value:@"home" extra:@""];
}
break;
case 1:
{
ZhiNengXieZuoViewController *vc = [ZhiNengXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.ai.write" value:@"home" extra:@""];
}
break;
case 2:
@ -164,6 +169,9 @@
CamreViewController *vc = [CamreViewController new];
vc.type = 2;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.camera" value:@"photos_write" extra:@""];
}
break;
default:

View File

@ -114,6 +114,8 @@
CamreViewController *vc = [CamreViewController new];
vc.type = 1;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.camera" value:@"correct" extra:@""];
}
@end

View File

@ -97,6 +97,7 @@
{
ZhiNengXieZuoViewController *vc = [ZhiNengXieZuoViewController new];
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.ai.write" value:@"home" extra:@""];
}

View File

@ -179,6 +179,7 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.delete.history" value:@"写作记录" extra:[self.model yy_modelToJSONString]];
if(self.backValue)
{
self.backValue(self.model);

View File

@ -186,6 +186,8 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.delete.history" value:@"批改记录" extra:[self.model yy_modelToJSONString]];
if(self.backValue)
{
self.backValue(self.model);
@ -203,6 +205,7 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.delete.history" value:@"写作记录" extra:[self.model yy_modelToJSONString]];
if(self.backValue)
{
self.backValue(self.model);
@ -230,6 +233,8 @@
StartZWPIDetailViewController *vc = [StartZWPIDetailViewController new];
vc.modelHestory = responseObject.data;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.view.classroom.info" value:@"查看课堂批改详情" extra:@""];
}
else
{

View File

@ -313,6 +313,8 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.save.history" value:self.scene extra:@""];
NSMutableArray *arrcontent = [NSMutableArray new];
for(SSEDrawListTextModel *model in self.arrdata)
{
@ -375,6 +377,8 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.save.history" value:self.scene extra:@""];
XieZuoSaveAlterView *view = [[XieZuoSaveAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
[self.viewController.view addSubview:view];
[view setBackValue:^{

View File

@ -258,6 +258,8 @@
[LoadAlterView dismiss];
if(state)
{
[UserInfoModel shijianShangBao:0 key:@"client.save.history" value:@"write_with_content" extra:@""];
XieZuoSaveAlterView *view = [[XieZuoSaveAlterView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
[self.viewController.view addSubview:view];
[view setBackValue:^{

View File

@ -323,6 +323,9 @@
}
///
[self shutterCamera];
[UserInfoModel shijianShangBao:0 key:@"client.take.picture" value:@"correct" extra:@""];
}
break;
case 1:
@ -385,6 +388,9 @@
else
{
[self.viewImages setHidden:!self.viewImages.hidden];
[UserInfoModel shijianShangBao:0 key:@"client.preview.picture" value:[NSString stringWithFormat:@"%@",[NSNumber numberWithBool:self.viewImages.hidden]] extra:@""];
}
}
break;
@ -397,6 +403,9 @@
{
NSLog(@"ssss");
[self.arrData removeAllObjects];
[UserInfoModel shijianShangBao:0 key:@"client.select.picture" value:@"correct" extra:@""];
for(HXPhotoModel *photoModel in photoList)
{
[photoModel requestPreviewImageWithSize:PHImageManagerMaximumSize startRequestICloud:^(PHImageRequestID iCloudRequestId, HXPhotoModel *model) {

View File

@ -76,6 +76,8 @@
NSIndexPath *AindexPath = [self.collect indexPathForItemAtPoint:[longGesture locationInView:self.collect]];
[self.collect beginInteractiveMovementForItemAtIndexPath:AindexPath];
index = AindexPath.section;
[UserInfoModel shijianShangBao:0 key:@"client.drag.picture" value:[NSString stringWithFormat:@"%ld",AindexPath.row+1] extra:@""];
}
break;
case UIGestureRecognizerStateChanged:{

View File

@ -113,12 +113,16 @@
}
-(void)backAction
{
[UserInfoModel shijianShangBao:0 key:@"client.close.example" value:self.strpzname extra:@""];
[self removeFromSuperview];
}
-(void)setStrpzname:(NSString *)strpzname
{
_strpzname = strpzname;
self.lbname.text = strpzname;
[UserInfoModel shijianShangBao:0 key:@"client.show.example.picture" value:strpzname extra:@""];
}
-(void)setArrdata:(NSArray *)arrdata
{
@ -136,10 +140,12 @@
if(self.type==3)
{
view.type = 0;
[UserInfoModel shijianShangBao:0 key:@"client.start.correct.example" value:@"photos_write" extra:@""];
}
else
{
view.type = 1;
[UserInfoModel shijianShangBao:0 key:@"client.start.correct.example" value:@"correct" extra:@""];
}
view.modelDetailZWPG = self.arrdata[self.bannerView.currentIndex];
[self.viewController.view addSubview:view];

View File

@ -88,6 +88,9 @@
vc.strID = [Tools isStringnilkong:[model objectForKey:@"id"]];
vc.strseason = [Tools isStringnilkong:[model objectForKey:@"season"]];
[self.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.classroom.write.select.stage" value:[model objectForKey:@"name"] extra:[model yy_modelToJSONString]];
}
@end

View File

@ -470,6 +470,8 @@
vc.type = 3;
vc.textbook_id = self.modelDetail.ID;
[self.viewController.navigationController pushViewController:vc animated:YES];
[UserInfoModel shijianShangBao:0 key:@"client.jump.to.camera" value:@"课堂批改作文批改" extra:self.modelDetail.content];
}
@end