2.5.0提交

This commit is contained in:
pengguangjian 2024-11-27 15:19:37 +08:00
parent c867369f1a
commit b2b7f54959
25 changed files with 216 additions and 43 deletions

View File

@ -5659,7 +5659,7 @@
"$(PROJECT_DIR)/ProductApp/Other/语音/arm/lib",
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
);
MARKETING_VERSION = 2.3.1;
MARKETING_VERSION = 2.5.0;
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
@ -5730,7 +5730,7 @@
"$(PROJECT_DIR)/ProductApp/Other/语音/arm/lib",
"$(PROJECT_DIR)/ProductApp/BaseControl/Category/RSAEncrypt/lib",
);
MARKETING_VERSION = 2.3.1;
MARKETING_VERSION = 2.5.0;
PRODUCT_BUNDLE_IDENTIFIER = com.batiao.aiwrite;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;

View File

@ -36,5 +36,21 @@
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "C1B02E23-FCFA-41B2-9F01-B43A3CE74F34"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "ProductApp/ProductMain/&#x5f15;&#x5bfc;/view/StartGNView.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "343"
endingLineNumber = "343"
landmarkName = "-tiyanAction"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>

View File

@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "组 43272@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "组 43272@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -50,7 +50,7 @@
DTDefaultTextColor:self.color,
DTDefaultFontSize:@(self.font.pointSize),
DTDefaultFontFamily:@"Helvetica Neue",
DTDefaultFontName:@"HelveticaNeue-Light"
DTDefaultFontName:@"HelveticaNeue"
};
}
return _DTCoreText_options;

View File

@ -35,7 +35,7 @@
if(!_style)
{
NSMutableParagraphStyle *style = [NSMutableParagraphStyle new];
style.lineSpacing = 5;
style.lineSpacing = 5.2;
style.lineBreakMode = NSLineBreakByWordWrapping;
style.alignment = NSTextAlignmentLeft;
_style = style;

View File

@ -772,7 +772,14 @@ NS_ASSUME_NONNULL_BEGIN
ID:(NSString *)ID
Callback:(completeModeBlock)callback;
/*
/api/batch/correct/save
id
*/
+ (void)requestBatchCorrectDelData:(UIView *)view
ID:(NSString *)ID
Callback:(completeModeBlock)callback;
@end

View File

@ -2381,5 +2381,40 @@
}];
}
/*
/api/batch/correct/save
id
*/
+ (void)requestBatchCorrectDelData:(UIView *)view
ID:(NSString *)ID
Callback:(completeModeBlock)callback
{
NSMutableDictionary *dicQuery = [NSMutableDictionary new];
[dicQuery setObject:[Tools isStringnil:ID] forKey:@"id"];
NSMutableDictionary *dicHeader = [NSMutableDictionary new];
NSMutableDictionary *dicpush = [NSMutableDictionary new];
[YSAPIClient requestWithRequestBaseUrl:BaseUrl Type:4 url:@"api/batch/correct/save" paraments:dicpush Headers:dicHeader Query:dicQuery completeBlock:^(id _Nullable responseObject, NSError * _Nullable error) {
BOOL state = NO;
NSString *describle = @"";
if (responseObject==nil) {
describle = @"网络错误";
BaseModel *model = [BaseModel new];
model.message =describle;
callback(state,model,describle);
}else{
NSDictionary *dicAll=responseObject;
describle = dicAll[@"message"];
if ([[NSString stringWithFormat:@"%@",dicAll[@"code"]] intValue] == 0) {
state = YES;
}
callback(state,[BaseModel yy_modelWithJSON:dicAll],describle);
}
}];
}
@end

View File

@ -59,15 +59,16 @@
[self.navigationController setNavigationBarHidden:YES animated:NO];
///
// NSArray* familys = [UIFont familyNames];
// for (int i = 0; i<[familys count]; i++) {
// NSString* family = [familys objectAtIndex:i];
// NSLog(@"\r\n\r\nFontfamily:%@\r\n=====",family);
// NSArray* fonts = [UIFont fontNamesForFamilyName:family];
// for (int j = 0; j<[fonts count]; j++) {
// NSLog(@"%@",[fonts objectAtIndex:j]);
// }
// }
NSArray* familys = [UIFont familyNames];
for (int i = 0; i<[familys count]; i++) {
NSString* family = [familys objectAtIndex:i];
NSLog(@"\r\n\r\nFontfamily:%@\r\n=====",family);
NSArray* fonts = [UIFont fontNamesForFamilyName:family];
for (int j = 0; j<[fonts count]; j++) {
NSLog(@"%@",[fonts objectAtIndex:j]);
}
}
UIImageView *imgvback = [[UIImageView alloc] init];
[imgvback setImage:[UIImage imageNamed:@"yd_back"]];

View File

@ -15,6 +15,7 @@
#import "RoleTreeModel.h"
#import "BaseViewController.h"
#import "StartPayViewController.h"
@interface StartGNView ()<UIScrollViewDelegate>
///
@ -331,9 +332,18 @@
}
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];
if(self.pagec.selectNumber==0)
{
[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];
}
else
{
StartPayViewController *vc = [StartPayViewController new];
vc.source = @"guide_workplace_create_ppt";
[self.viewController.navigationController pushViewController:vc animated:YES];
}
}
}

View File

@ -12,6 +12,7 @@
#import "StartZNPPTHUDAlter.h"
#import "StartZNPPTDaGangViewController.h"
#import "NetWorkManager.h"
#import "StartPayViewController.h"
@interface StartZNPPTView ()<JhtBannerScrollViewDelegate, JhtBannerScrollViewDataSource>
@property (nonatomic, strong) JhtBannerScrollView *bannerView;
@ -269,6 +270,7 @@
-(void)nextAction
{
[LoadAlterView show];
ExamplePptModelDataItems *model = self.arrdata[self.bannerView.currentIndex];

View File

@ -68,6 +68,7 @@
[lbname mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(imgvhead.mas_right).offset(12);
make.top.equalTo(imgvhead).offset(2);
make.width.lessThanOrEqualTo(@(100));
}];
_lbname = lbname;

View File

@ -102,7 +102,10 @@
[cell setBackgroundColor:[UIColor clearColor]];
}
cell.model = self.arrdata[indexPath.row];
[cell setBackValueDel:^(BatchStatusByidModelDataItems * _Nonnull model) {
[self.arrdata removeObject:model];
[self.tableView reloadData];
}];
return cell;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

View File

@ -9,11 +9,13 @@
#import "BatchStatusByidModel.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^PiLiangXiuGaiLiShiTableViewCellBackDel)(BatchStatusByidModelDataItems *model);
@interface PiLiangXiuGaiLiShiTableViewCell : UITableViewCell
///
@property (nonatomic , strong) BatchStatusByidModelDataItems *model;
///
@property (nonatomic , strong) PiLiangXiuGaiLiShiTableViewCellBackDel backValueDel;
@end
NS_ASSUME_NONNULL_END

View File

@ -8,6 +8,10 @@
#import "PiLiangXiuGaiLiShiTableViewCell.h"
#import "PingYuAlterView.h"
#import "NomoAlterView.h"
#import "NetWorkManager.h"
@interface PiLiangXiuGaiLiShiTableViewCell ()
@property (nonatomic , strong) UIImageView *imgvback;
@ -35,6 +39,9 @@
}];
[Tools normalShadow:viewback shadowColor:RGBACOLOR(0, 80, 106, 0.1) shadowOpacity:0 cornerRadius:8 shadowRadius:10];
UILongPressGestureRecognizer *gesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longCellAction:)];
[viewback addGestureRecognizer:gesture];
UIImageView *imgvback = [[UIImageView alloc] init];
[viewback addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
@ -195,4 +202,32 @@
[PingYuAlterView showInfo:self.model.comment];
}
-(void)longCellAction:(UIGestureRecognizer *)gesture
{
if(gesture.state==UIGestureRecognizerStateBegan)
{
[NomoAlterView showInfo:[NSString stringWithFormat:@"是否删除‘%@",self.model.title] SelectTag:^(NSInteger tag) {
if(tag==1)
{
[LoadAlterView show];
[NetWorkManager requestBatchCorrectDelData:self ID:self.model.ID Callback:^(BOOL state, BaseModel *responseObject, NSString * _Nullable describle) {
[LoadAlterView dismiss];
if(state)
{
if(self.backValueDel)
{
self.backValueDel(self.model);
}
}
else
{
[HXHud showMessage:responseObject.message afterDelayType:1];
}
}];
}
}];
}
}
@end

View File

@ -31,7 +31,7 @@
[imgvback setImage:[UIImage imageNamed:@"plpg_backhd"]];
[self.view addSubview:imgvback];
[imgvback mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.top.equalTo(imgvback);
make.left.right.top.equalTo(self.view);
}];
[self.view sendSubviewToBack:imgvback];

View File

@ -110,7 +110,7 @@
[field setBackDidTextValue:^(NSString * _Nonnull value) {
if(self.strfenBig.intValue>0)
{
self.lbtsfen.text = [NSString stringWithFormat:@"%@/%@分",value,self.strfenBig];
self.lbtsfen.text = [NSString stringWithFormat:@"%d/%@分",value.intValue+self.strfenNow.intValue,self.strfenBig];
[self refShowFen:self.lbtsfen];
}
}];

View File

@ -140,6 +140,7 @@
make.height.offset(66+(UISCREEN_WIDTH-70)/3.0*140/102);
}];
[viewImages setHidden:YES];
viewImages.ispiliangpigai = self.ispiliangpigai;
_viewImages = viewImages;
[viewImages setBackValue:^{
if(self.arrData.count==0)
@ -291,7 +292,7 @@
{
[btjiaoyan setSelected:YES];
}
[btjiaoyan setHidden:!self.ispiliangpigai];
// [btjiaoyan setHidden:!self.ispiliangpigai];
[btjiaoyan setEnlargeEdgeWithTop:5 right:5 bottom:5 left:5];
UIButton *btshili = [[UIButton alloc] init];
@ -310,6 +311,7 @@
}];
[btshili setIconInLeftWithSpacing:4];
[btshili addTarget:self action:@selector(shiliAction) forControlEvents:UIControlEventTouchUpInside];
[btshili setHidden:self.ispiliangpigai];
}
-(void)backAction
@ -448,22 +450,25 @@
///1 2 3
if(self.type==1)
{
[UserInfoModel quanXianJiaoYan:self scence:@"write_correct" ispush:NO back:^(BOOL value) {
if(self.ispiliangpigai)
{///
if(self.backImages)
{
self.backImages(arrImgages);
}
[self.navigationController popViewControllerAnimated:YES];
}
else
[UserInfoModel quanXianJiaoYan:self scence:@"write_correct" ispush:YES back:^(BOOL value) {
if(value)
{
StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
view.type = 1;
view.arrXZImages = arrImgages;
view.isquanxian = value;
[self.view addSubview:view];
if(self.ispiliangpigai)
{///
if(self.backImages)
{
self.backImages(arrImgages);
}
[self.navigationController popViewControllerAnimated:YES];
}
else
{
StartKTXZPGView *view = [[StartKTXZPGView alloc] initWithFrame:CGRectMake(0, 0, UISCREEN_WIDTH, UISCREEN_HEIGHT)];
view.type = 1;
view.arrXZImages = arrImgages;
view.isquanxian = value;
[self.view addSubview:view];
}
}
}];
}

View File

@ -115,7 +115,7 @@
self.shapeLayer.lineJoin = kCALineJoinRound;
self.shapeLayer.lineWidth = 15.0f;///
self.shapeLayer.strokeColor = [[UIColor blueColor] CGColor];
self.shapeLayer.fillColor = [UIColor whiteColor].CGColor;
self.shapeLayer.fillColor = [UIColor clearColor].CGColor;
[self.layer addSublayer:self.shapeLayer];
self.mosaicImageLayer.mask = self.shapeLayer;
@ -149,6 +149,7 @@
UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self];
CGPathAddLineToPoint(self.path, NULL, point.x, point.y);
CGMutablePathRef path = CGPathCreateMutableCopy(self.path);
self.shapeLayer.path = path;
CGPathRelease(path);
@ -336,7 +337,7 @@
UIColor *pureColor = [UIColor whiteColor]; //
//
UIGraphicsBeginImageContextWithOptions(sourceImage.size, NO, 0.0);
UIGraphicsBeginImageContextWithOptions(sourceImage.size, YES, 1.0);
// 使
[pureColor setFill];

View File

@ -16,6 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic , strong) UILabel *lbnumber;
///
@property (nonatomic , strong) UIButton *btdel;
@property (nonatomic , strong) UIButton *btselect ;
@end
NS_ASSUME_NONNULL_END

View File

@ -48,6 +48,13 @@
[lbnumber.layer setCornerRadius:10];
_lbnumber = lbnumber;
UIButton *btselect = [[UIButton alloc] init];
[viewback addSubview:btselect];
[btselect mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(viewback);
}];
_btselect = btselect;
UIButton *btdel = [[UIButton alloc] init];
[btdel setImage:[UIImage imageNamed:@"cam_del"] forState:UIControlStateNormal];
[viewback addSubview:btdel];

View File

@ -14,6 +14,8 @@ typedef void(^CamreImagesViewBack)(void);
@property (nonatomic , strong) NSMutableArray *arrdata;
///
@property (nonatomic , strong) CamreImagesViewBack backValue;
///是否是批量批改
@property (nonatomic , assign) BOOL ispiliangpigai;
@end
NS_ASSUME_NONNULL_END

View File

@ -7,7 +7,7 @@
#import "CamreImagesView.h"
#import "CamreImagesCollectionViewCell.h"
#import "ImageEditDrawViewController.h"
@interface CamreImagesView ()<UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout>
///
@ -43,7 +43,7 @@
[collect setDelegate:self];
[collect setDataSource:self];
[collect setBackgroundColor:[UIColor clearColor]];
collect.userInteractionEnabled = YES;
// collect.userInteractionEnabled = YES;
[self addSubview:collect];
[collect mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.offset(0);
@ -111,7 +111,28 @@
[self.collect reloadData];
self.backValue();
}
-(void)selectAction:(UIButton *)sender
{
if(self.ispiliangpigai==NO)return;
///
ImageEditDrawViewController *vc = [ImageEditDrawViewController new];
vc.arrImages = [NSMutableArray arrayWithObject:self.arrdata[sender.tag]];
[self.viewController.navigationController pushViewController:vc animated:NO];
[vc setBackValue:^(NSMutableArray * _Nonnull arrimages) {
@try {
self.arrdata[sender.tag] = arrimages.firstObject;
} @catch (NSException *exception) {
} @finally {
}
[self.collect reloadData];
if(self.backValue)
{
self.backValue();
}
}];
}
#pragma mark - UICollectionView
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
@ -127,6 +148,9 @@
[cell.btdel setTag:indexPath.row];
[cell.btdel addTarget:self action:@selector(delAction:) forControlEvents:UIControlEventTouchUpInside];
[cell.btselect setTag:indexPath.row];
[cell.btselect addTarget:self action:@selector(selectAction:) forControlEvents:UIControlEventTouchUpInside];
return cell;
}
//section
@ -149,7 +173,6 @@
}
-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
///
}