Commit ba1ca1b5 authored by 曹云霄's avatar 曹云霄

修改项说明:

parent 9f093788
...@@ -26,9 +26,15 @@ ...@@ -26,9 +26,15 @@
- (void)getIntegralDataAction - (void)getIntegralDataAction
{ {
WS(weakSelf); WS(weakSelf);
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:SERVERREQUESTURL(INTEGRALQUERY) WithCallClass:weakSelf WithRequestType:ONE WithParameter:nil WithReturnValueBlock:^(id returnValue) { NSString *url = [NSString stringWithFormat:SERVERREQUESTURL(INTEGRALQUERY),[Shoppersmanager manager].Shoppers.employee.fid];
[[NetworkRequestClassManager Manager] NetworkWithDictionaryRequestWithURL:url WithCallClass:weakSelf WithRequestType:ONE WithParameter:nil WithReturnValueBlock:^(id returnValue) {
NSSLog(@"%@",returnValue); NSSLog(@"%@",returnValue);
if ([returnValue[@"code"] isEqualToNumber:@0]) {
// RsScoreDetails *integral = [RsScoreDetails alloc];
}else {
[weakSelf ErrorMBProgressView:returnValue[@"message"]];
}
} WithErrorCodeBlock:^(id errorCodeValue) { } WithErrorCodeBlock:^(id errorCodeValue) {
......
...@@ -276,10 +276,10 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -276,10 +276,10 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
deductionModel.type = @"deductionAction"; deductionModel.type = @"deductionAction";
[weakSelf.promotionInformationArray addObject:deductionModel]; [weakSelf.promotionInformationArray addObject:deductionModel];
} else if (![BaseViewController isBlankString:[oldPromotion.jdecardDenomation stringValue]]) { } else if (![BaseViewController isBlankString:[oldPromotion.JDEcardDenomation stringValue]]) {
// 京东E卡 // 京东E卡
PromotionJDECardModel *model = [[PromotionJDECardModel alloc]init]; PromotionJDECardModel *model = [[PromotionJDECardModel alloc]init];
model.total = [oldPromotion.jdecardDenomation integerValue]; model.total = [oldPromotion.JDEcardDenomation integerValue];
model.body = GUIDE; model.body = GUIDE;
model.type = JDECardAction; model.type = JDECardAction;
[weakSelf.promotionInformationArray addObject:model]; [weakSelf.promotionInformationArray addObject:model];
...@@ -552,7 +552,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -552,7 +552,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
// 我知道了 // 我知道了
}else if (indexPath.row == 0) }else if (indexPath.row == 0)
{ {
[[NSNotificationCenter defaultCenter] postNotificationName:OPENCONTROLLER object:@(3)]; SHARED_APPDELEGATE.tabBarController.selectedIndex = 3;
} }
}]; }];
success.preferredContentSize = CGSizeMake(315, 320); success.preferredContentSize = CGSizeMake(315, 320);
......
...@@ -116,8 +116,6 @@ ...@@ -116,8 +116,6 @@
[self.tabBar addSubview:self.toolview]; [self.tabBar addSubview:self.toolview];
//显示体验中心 //显示体验中心
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ShowFollowHeart:) name:OPENFOLLOWHEARTVC object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ShowFollowHeart:) name:OPENFOLLOWHEARTVC object:nil];
//打开相应控制器
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openControllerWithIndex:) name:OPENCONTROLLER object:nil];
} }
...@@ -125,8 +123,22 @@ ...@@ -125,8 +123,22 @@
- (void)addViewcontroller - (void)addViewcontroller
{ {
NSMutableArray *controllerArray = [NSMutableArray array]; NSMutableArray *controllerArray = [NSMutableArray array];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"OppleMain" bundle:nil]; UIStoryboard *storyboard = nil;
for (int i=0; i<self.identifierArray.count; i++) { for (int i=0; i<self.identifierArray.count; i++) {
NSString *controllString = self.identifierArray[i];
// 公告
if ([controllString isEqualToString:@"AnnouncementViewController"]) {
storyboard = [BaseViewController getAnnouncementStoryboardClass];
}else if ([controllString isEqualToString:@"LearningCenterMainViewController"]) {
// 学习中心
storyboard = [BaseViewController getLearningCenterStoryboardClass];
}else if ([controllString isEqualToString:@"GuideIntegralViewController"]) {
// 积分
storyboard = [BaseViewController getGuideIntegralStoryboardClass];
}else {
storyboard = [BaseViewController getMainStoryboardClass];
}
BaseViewController *control = [storyboard instantiateViewControllerWithIdentifier:self.identifierArray[i]]; BaseViewController *control = [storyboard instantiateViewControllerWithIdentifier:self.identifierArray[i]];
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:control]; UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:control];
[self.vcArray addObject:nav]; [self.vcArray addObject:nav];
...@@ -134,6 +146,7 @@ ...@@ -134,6 +146,7 @@
} }
self.viewControllers = self.vcArray; self.viewControllers = self.vcArray;
SHARED_APPDELEGATE.allControllerArray = controllerArray; SHARED_APPDELEGATE.allControllerArray = controllerArray;
SHARED_APPDELEGATE.tabBarController = self;
self.selectedIndex = 2; self.selectedIndex = 2;
} }
...@@ -164,9 +177,17 @@ ...@@ -164,9 +177,17 @@
break; break;
//某某用户 //公告
case 101: case 101:
{
self.selectedIndex = 5;
}
break;
//某某用户
case 102:
{ {
UserViewController *userVC = [[UserViewController alloc]init]; UserViewController *userVC = [[UserViewController alloc]init];
userVC.delegate = self; userVC.delegate = self;
...@@ -181,14 +202,14 @@ ...@@ -181,14 +202,14 @@
break; break;
//我的客户 //我的客户
case 102: case 103:
self.selectedIndex = 2; self.selectedIndex = 2;
break; break;
//购物车 //购物车
case 103: case 104:
//必须设置当前客户才能跳转到购物车 //必须设置当前客户才能跳转到购物车
if (![Shoppersmanager manager].currentCustomer) { if (![Shoppersmanager manager].currentCustomer) {
...@@ -233,7 +254,6 @@ ...@@ -233,7 +254,6 @@
} }
#pragma mark -取消按钮 #pragma mark -取消按钮
- (void)cancelButtonClick - (void)cancelButtonClick
{ {
...@@ -344,12 +364,5 @@ ...@@ -344,12 +364,5 @@
} }
} }
#pragma mark - 打开相应的控制器
- (void)openControllerWithIndex:(NSNotification *)sender
{
NSInteger index = [sender.object integerValue];
[self dismissViewControllerAnimated:NO completion:nil];
self.selectedIndex = index;
}
@end @end
...@@ -776,12 +776,8 @@ ...@@ -776,12 +776,8 @@
2921F2FB1DB5E75300D6439B /* PromotionalGoodsModel.m */, 2921F2FB1DB5E75300D6439B /* PromotionalGoodsModel.m */,
2921F3011DB5EBD600D6439B /* PromotionalDeductionModel.h */, 2921F3011DB5EBD600D6439B /* PromotionalDeductionModel.h */,
2921F3021DB5EBD600D6439B /* PromotionalDeductionModel.m */, 2921F3021DB5EBD600D6439B /* PromotionalDeductionModel.m */,
2986B9951DE1D30600F4A1CF /* PromotionChooseNavigationController.h */,
2986B9961DE1D30600F4A1CF /* PromotionChooseNavigationController.m */,
2986B9971DE1D30600F4A1CF /* PromotionChooseTableViewCell.h */, 2986B9971DE1D30600F4A1CF /* PromotionChooseTableViewCell.h */,
2986B9981DE1D30600F4A1CF /* PromotionChooseTableViewCell.m */, 2986B9981DE1D30600F4A1CF /* PromotionChooseTableViewCell.m */,
2986B9991DE1D30600F4A1CF /* PromotionChooseViewController.h */,
2986B99A1DE1D30600F4A1CF /* PromotionChooseViewController.m */,
2986B99B1DE1D30600F4A1CF /* PromotionJDECardModel.h */, 2986B99B1DE1D30600F4A1CF /* PromotionJDECardModel.h */,
2986B99C1DE1D30600F4A1CF /* PromotionJDECardModel.m */, 2986B99C1DE1D30600F4A1CF /* PromotionJDECardModel.m */,
2986B99D1DE1D30600F4A1CF /* PromotionLuckDrawResultModel.h */, 2986B99D1DE1D30600F4A1CF /* PromotionLuckDrawResultModel.h */,
...@@ -1370,6 +1366,10 @@ ...@@ -1370,6 +1366,10 @@
2994C0141CFBE793005A80AF /* PayViewController.xib */, 2994C0141CFBE793005A80AF /* PayViewController.xib */,
2903F93B1DBE57F4003CC6B1 /* JDEcardViewController.h */, 2903F93B1DBE57F4003CC6B1 /* JDEcardViewController.h */,
2903F93C1DBE57F4003CC6B1 /* JDEcardViewController.m */, 2903F93C1DBE57F4003CC6B1 /* JDEcardViewController.m */,
2986B9951DE1D30600F4A1CF /* PromotionChooseNavigationController.h */,
2986B9961DE1D30600F4A1CF /* PromotionChooseNavigationController.m */,
2986B9991DE1D30600F4A1CF /* PromotionChooseViewController.h */,
2986B99A1DE1D30600F4A1CF /* PromotionChooseViewController.m */,
29A8D3951CD85A3C004D558F /* Clientdetails */, 29A8D3951CD85A3C004D558F /* Clientdetails */,
); );
name = controller; name = controller;
......
This diff is collapsed.
#import "opple_objc_json_client.h" #import "opple_objc_json_client.h"
@implementation RsApplyBillRequest @implementation EarningsResponse
@synthesize employeeId; @synthesize accountTotal;
@synthesize page; @synthesize yesterdayEarnings;
@synthesize historyEarning;
@synthesize applytotal;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -13,8 +15,8 @@ ...@@ -13,8 +15,8 @@
@end @end
@implementation RsCommissionRequest @implementation RsApplyBillRequest
@synthesize emploreeId; @synthesize employeeId;
@synthesize page; @synthesize page;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
...@@ -25,12 +27,9 @@ ...@@ -25,12 +27,9 @@
@end @end
@implementation DataPage @implementation RsCommissionRequest
@synthesize total; @synthesize emploreeId;
@synthesize page; @synthesize page;
@synthesize rows;
@synthesize sort;
@synthesize order;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -40,11 +39,9 @@ ...@@ -40,11 +39,9 @@
@end @end
@implementation PageRows @implementation ExceptionCode
@synthesize page; @synthesize code;
@synthesize rows; @synthesize message;
@synthesize total;
@synthesize totalpages;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -65,6 +62,22 @@ ...@@ -65,6 +62,22 @@
} }
@end
@implementation ConsumerQueryCondition
@synthesize resellerCodeEquals;
@synthesize nameEquals;
@synthesize mobileEquals;
@synthesize createTimeBegin;
@synthesize createTimeEnd;
@synthesize page;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation LoginInfo @implementation LoginInfo
...@@ -621,10 +634,23 @@ ...@@ -621,10 +634,23 @@
@end @end
@implementation TOPrizeBillDetailsEntity @implementation TOPrizeBillEntity
@synthesize fid; @synthesize fid;
@synthesize bill; @synthesize orderNumber;
@synthesize prize; @synthesize createName;
@synthesize createBy;
@synthesize createDate;
@synthesize updateName;
@synthesize updateBy;
@synthesize updateDate;
@synthesize billnumber;
@synthesize state;
@synthesize receiver;
@synthesize mobilephone;
@synthesize receiveAddress;
@synthesize employee;
@synthesize logisticsCompany;
@synthesize trackingNumber;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -772,17 +798,10 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -772,17 +798,10 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation TOPrizeEntity @implementation TOPrizeBillDetailsEntity
@synthesize fid; @synthesize fid;
@synthesize picture; @synthesize bill;
@synthesize createName; @synthesize prize;
@synthesize createBy;
@synthesize updateName;
@synthesize updateBy;
@synthesize code;
@synthesize name;
@synthesize createDate;
@synthesize updateDate;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -820,7 +839,8 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -820,7 +839,8 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@synthesize wxcardNumber; @synthesize wxcardNumber;
@synthesize wxcardDenomation; @synthesize wxcardDenomation;
@synthesize wxcardRealDeduction; @synthesize wxcardRealDeduction;
@synthesize jdecardDenomation; @synthesize JDEcardDenomation;
@synthesize redPackageNumber;
@synthesize redPackageCount; @synthesize redPackageCount;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
...@@ -867,7 +887,6 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -867,7 +887,6 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@synthesize resellerName; @synthesize resellerName;
@synthesize oldPrice; @synthesize oldPrice;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
return YES; return YES;
...@@ -1264,13 +1283,9 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1264,13 +1283,9 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation ConsumerQueryCondition @implementation FunctionInfo
@synthesize resellerCodeEquals; @synthesize userName;
@synthesize nameEquals; @synthesize functionName;
@synthesize mobileEquals;
@synthesize createTimeBegin;
@synthesize createTimeEnd;
@synthesize page;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1280,9 +1295,11 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1280,9 +1295,11 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation ExceptionCode @implementation PageRows
@synthesize code; @synthesize page;
@synthesize message; @synthesize rows;
@synthesize total;
@synthesize totalpages;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1292,11 +1309,12 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1292,11 +1309,12 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation EarningsResponse @implementation DataPage
@synthesize accountTotal; @synthesize total;
@synthesize yesterdayEarnings; @synthesize page;
@synthesize historyEarning; @synthesize rows;
@synthesize applytotal; @synthesize sort;
@synthesize order;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1317,8 +1335,13 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1317,8 +1335,13 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation RsJingDongECardResponse @implementation AfficheCondition
@synthesize list; @synthesize page;
@synthesize userIdEquals;
@synthesize dayCountEquals;
@synthesize afficheTypeEuals;
@synthesize order;
@synthesize sort;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1328,7 +1351,7 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1328,7 +1351,7 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation RsSimpleJingDongECardResponse @implementation RsJingDongECardResponse
@synthesize list; @synthesize list;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
...@@ -1339,18 +1362,9 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1339,18 +1362,9 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation TSBaseUser @implementation RsAwardDraw
@synthesize departid; @synthesize draw;
@synthesize signature; @synthesize award;
@synthesize browser;
@synthesize userKey;
@synthesize status;
@synthesize activitiSync;
@synthesize password;
@synthesize userName;
@synthesize realName;
@synthesize currentDepart;
@synthesize userOrgList;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
...@@ -1385,6 +1399,27 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1385,6 +1399,27 @@ NSString * const SORTDIRECTION_DESC = @"desc";
} }
@end
@implementation TSBaseUser
@synthesize departid;
@synthesize signature;
@synthesize browser;
@synthesize userKey;
@synthesize status;
@synthesize activitiSync;
@synthesize password;
@synthesize userName;
@synthesize realName;
@synthesize currentDepart;
@synthesize userOrgList;
+(BOOL)propertyIsOptional:(NSString*)propertyName
{
return YES;
}
@end @end
@implementation TSUserOrg @implementation TSUserOrg
...@@ -1443,9 +1478,8 @@ NSString * const SORTDIRECTION_DESC = @"desc"; ...@@ -1443,9 +1478,8 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end @end
@implementation RsAwardDraw @implementation RsSimpleJingDongECardResponse
@synthesize draw; @synthesize list;
@synthesize award;
+(BOOL)propertyIsOptional:(NSString*)propertyName +(BOOL)propertyIsOptional:(NSString*)propertyName
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment