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

修改项说明:抽奖优化

parent 38cc7ea4
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
self.cardNumberLabel.text = [NSString stringWithFormat:@"卡号: %@",_cardModel.cardNumber]; self.cardNumberLabel.text = [NSString stringWithFormat:@"卡号: %@",_cardModel.cardNumber];
self.cardPasswordLabel.text = [NSString stringWithFormat:@"密码: %@",_cardModel.cardPassword]; self.cardPasswordLabel.text = [NSString stringWithFormat:@"密码: %@",_cardModel.cardPassword];
/// 判断状态 /// 判断状态
BOOL isUsed = [_cardModel.state isEqualToString:LOOKED]; BOOL isUsed = [_cardModel.state isEqualToString:USED];
BOOL isActived = [_cardModel.state isEqualToString:ACTIVED]; BOOL isActived = [_cardModel.state isEqualToString:ACTIVED];
BOOL isDispensed = [_cardModel.state isEqualToString:DISPENSED]; BOOL isDispensed = [_cardModel.state isEqualToString:DISPENSED];
if (isDispensed) { if (isDispensed) {
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
self.self.amountLabel.attributedText = attributedString; self.self.amountLabel.attributedText = attributedString;
/// 判断状态 /// 判断状态
BOOL isUsed = [_Cardmodel.state isEqualToString:LOOKED]; BOOL isUsed = [_Cardmodel.state isEqualToString:USED];
BOOL isActived = [_Cardmodel.state isEqualToString:ACTIVED]; BOOL isActived = [_Cardmodel.state isEqualToString:ACTIVED];
BOOL isDispensed = [_Cardmodel.state isEqualToString:DISPENSED]; BOOL isDispensed = [_Cardmodel.state isEqualToString:DISPENSED];
if (isDispensed) { if (isDispensed) {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
[self addChildViewController:beenUseVc]; [self addChildViewController:beenUseVc];
/// 已使用 /// 已使用
CardBeenUseViewController *usedVc = [[self getStoryboardWithName] instantiateViewControllerWithIdentifier:@"CardBeenUseViewController"]; CardBeenUseViewController *usedVc = [[self getStoryboardWithName] instantiateViewControllerWithIdentifier:@"CardBeenUseViewController"];
usedVc.cardState = LOOKED; usedVc.cardState = USED;
[self addChildViewController:usedVc]; [self addChildViewController:usedVc];
dontUseVc.view.frame = CGRectMake(0, 0, self.cardBackgroundView.mj_w, self.cardBackgroundView.mj_h); dontUseVc.view.frame = CGRectMake(0, 0, self.cardBackgroundView.mj_w, self.cardBackgroundView.mj_h);
beenUseVc.view.frame = CGRectMake(0, 0, self.cardBackgroundView.mj_w, self.cardBackgroundView.mj_h); beenUseVc.view.frame = CGRectMake(0, 0, self.cardBackgroundView.mj_w, self.cardBackgroundView.mj_h);
......
...@@ -230,7 +230,6 @@ ...@@ -230,7 +230,6 @@
} }
#pragma mark -RightVCselectedDelegate 方法 #pragma mark -RightVCselectedDelegate 方法
- (void)SelectedControllerWithIndex:(NSString *)Name - (void)SelectedControllerWithIndex:(NSString *)Name
{ {
...@@ -243,8 +242,8 @@ ...@@ -243,8 +242,8 @@
}else if ([Name isEqualToString:@"场景库"]) }else if ([Name isEqualToString:@"场景库"])
{ {
selectedIndex = 5; selectedIndex = 4;
SceneLibraryViewController *sceneVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:5]; SceneLibraryViewController *sceneVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:4];
sceneVC.conditionModel.styleEquals = nil; sceneVC.conditionModel.styleEquals = nil;
sceneVC.conditionModel.spaceEquals = nil; sceneVC.conditionModel.spaceEquals = nil;
[sceneVC.StyleButton setTitle:@"风格" forState:UIControlStateNormal]; [sceneVC.StyleButton setTitle:@"风格" forState:UIControlStateNormal];
...@@ -253,8 +252,8 @@ ...@@ -253,8 +252,8 @@
}else if ([Name isEqualToString:@"产品库"]) }else if ([Name isEqualToString:@"产品库"])
{ {
selectedIndex = 4; selectedIndex = 5;
ProductLibraryViewController *productVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:4]; ProductLibraryViewController *productVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:5];
//默认加载全部数据 //默认加载全部数据
productVC.barcode = nil; productVC.barcode = nil;
productVC.selectedCode = nil; productVC.selectedCode = nil;
...@@ -268,8 +267,8 @@ ...@@ -268,8 +267,8 @@
[productVC.productCollectionView.mj_header beginRefreshing]; [productVC.productCollectionView.mj_header beginRefreshing];
}else if ([Name isEqualToString:@"所有客户"]) }else if ([Name isEqualToString:@"所有客户"])
{ {
selectedIndex = 3; selectedIndex = 6;
AllCustomerViewController *AllcustomerVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:3]; AllCustomerViewController *AllcustomerVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:6];
AllcustomerVC.searchTextfield.text = nil; AllcustomerVC.searchTextfield.text = nil;
AllcustomerVC.conditionModel.resellerCodeEquals = nil; AllcustomerVC.conditionModel.resellerCodeEquals = nil;
AllcustomerVC.conditionModel.mobileEquals = nil; AllcustomerVC.conditionModel.mobileEquals = nil;
...@@ -279,8 +278,8 @@ ...@@ -279,8 +278,8 @@
[AllcustomerVC.allCustomerTableview.mj_header beginRefreshing]; [AllcustomerVC.allCustomerTableview.mj_header beginRefreshing];
}else if ([Name isEqualToString:@"客户订单"]) }else if ([Name isEqualToString:@"客户订单"])
{ {
selectedIndex = 2; selectedIndex = 7;
CustomerOrderViewController *customerVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:2]; CustomerOrderViewController *customerVC = [SHARED_APPDELEGATE.allControllerArray objectAtIndex_opple:7];
customerVC.searchCustomerOrder.text = nil; customerVC.searchCustomerOrder.text = nil;
[customerVC.StyleButton setTitle:@"全部订单" forState:UIControlStateNormal]; [customerVC.StyleButton setTitle:@"全部订单" forState:UIControlStateNormal];
customerVC.model.consumerNameOrMobileEquals = nil; customerVC.model.consumerNameOrMobileEquals = nil;
...@@ -288,7 +287,7 @@ ...@@ -288,7 +287,7 @@
[customerVC.customerOrderTableView.mj_header beginRefreshing]; [customerVC.customerOrderTableView.mj_header beginRefreshing];
}else if ([Name isEqualToString:@"关于"]) }else if ([Name isEqualToString:@"关于"])
{ {
selectedIndex = 1; selectedIndex = 8;
} }
self.customtabbar.selectedIndex = selectedIndex; self.customtabbar.selectedIndex = selectedIndex;
} }
......
...@@ -12,13 +12,36 @@ ...@@ -12,13 +12,36 @@
/**
* 抽奖主题标识
*/
@property (nonatomic,copy) NSString *lotteryId; @property (nonatomic,copy) NSString *lotteryId;
/**
* 奖品类型<discount/redPackage>
*/
@property (nonatomic,copy) NSString *type; @property (nonatomic,copy) NSString *type;
/**
* 折扣率、面额
*/
@property (nonatomic,copy) NSString *number; @property (nonatomic,copy) NSString *number;
/**
* 奖品描述
*/
@property (nonatomic,copy) NSString *descriptionString; @property (nonatomic,copy) NSString *descriptionString;
/**
* 中奖记录标识
*/
@property (nonatomic,copy) NSString *drawId; @property (nonatomic,copy) NSString *drawId;
/**
* 为nil时未中奖
*/
@property (nonatomic,copy) NSString *awardId;
/** /**
* 通过抽奖列表结果初始化抽奖结果 * 通过抽奖列表结果初始化抽奖结果
*/ */
......
...@@ -173,6 +173,11 @@ ...@@ -173,6 +173,11 @@
make.size.mas_equalTo(CGSizeMake(50, 20)); make.size.mas_equalTo(CGSizeMake(50, 20));
make.centerY.equalTo(cell); make.centerY.equalTo(cell);
}]; }];
[cell.orderNumberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(cell.orderNumberTitle.mas_right).offset(-10);
make.centerY.equalTo(cell.orderNumberTitle);
make.right.equalTo(cell).offset(-100);
}];
} }
return cell; return cell;
} }
...@@ -186,6 +191,11 @@ ...@@ -186,6 +191,11 @@
cell.orderNumberTitle.font = [UIFont systemFontOfSize:12]; cell.orderNumberTitle.font = [UIFont systemFontOfSize:12];
cell.trophyLabel.font = [UIFont systemFontOfSize:12]; cell.trophyLabel.font = [UIFont systemFontOfSize:12];
cell.orderNumber.font = [UIFont systemFontOfSize:12]; cell.orderNumber.font = [UIFont systemFontOfSize:12];
[cell.orderNumber mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(cell.orderNumberTitle.mas_right).offset(-10);
make.centerY.equalTo(cell.orderNumberTitle);
make.right.equalTo(cell).offset(-100);
}];
} }
return cell; return cell;
} }
...@@ -202,13 +212,16 @@ ...@@ -202,13 +212,16 @@
RsAwardDraw *drawEntity = self.datasArray[sender.tag]; RsAwardDraw *drawEntity = self.datasArray[sender.tag];
[self showLuckyDrawControl:drawEntity.draw.lotteryId andOrderNumber:drawEntity.draw.orderNumber andDrawid:drawEntity.draw.fid luckyDrawFinish:^(NSDictionary *dict) { [self showLuckyDrawControl:drawEntity.draw.lotteryId andOrderNumber:drawEntity.draw.orderNumber andDrawid:drawEntity.draw.fid luckyDrawFinish:^(NSDictionary *dict) {
id json = [NSJSONSerialization JSONObjectWithData:[[dict[@"body"] firstObject] dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingMutableContainers error:nil]; id json = [NSJSONSerialization JSONObjectWithData:[dict[@"body"] dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingMutableContainers error:nil];
if (json) { if (json) {
if ([json isKindOfClass:[NSDictionary class]]) { if ([json isKindOfClass:[NSDictionary class]]) {
[weakSelf SHOWPrompttext:[NSString stringWithFormat:@"恭喜获得%@元红包",dict[@"number"]]]; if ([BaseViewController isBlankString:json[@"awardId"]]) {
} [weakSelf SHOWPrompttext:@"未中奖"];
}else { }else {
[weakSelf SHOWPrompttext:@"没有中奖,欢迎再来"]; NSString *string = [NSString stringWithFormat:@"恭喜获得%ld元红包",[json[@"number"] integerValue]];
[weakSelf SHOWPrompttext:string];
}
}
} }
}]; }];
} }
......
...@@ -225,7 +225,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -225,7 +225,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
queryDrawState.orderNumberEquals = self.orderCode; queryDrawState.orderNumberEquals = self.orderCode;
} }
queryDrawState.winnerIdEquals = [Customermanager manager].model.fid; queryDrawState.winnerIdEquals = [Customermanager manager].model.fid;
queryDrawState.stateEquals = !self.isShowPayButton?@"used":ACCOMPLISHED; queryDrawState.stateEquals = !self.isShowPayButton?USED:ACCOMPLISHED;
DataPage *page = [[DataPage alloc]init]; DataPage *page = [[DataPage alloc]init];
page.page = ZERO; page.page = ZERO;
page.rows = ONE; page.rows = ONE;
...@@ -288,7 +288,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -288,7 +288,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
/// 我知道了 /// 我知道了
}else if (indexPath.row == 0) }else if (indexPath.row == 0)
{ {
[[NSNotificationCenter defaultCenter] postNotificationName:OPENCONTROLLER object:@(0)]; [[NSNotificationCenter defaultCenter] postNotificationName:OPENCONTROLLER object:@(3)];
} }
}]; }];
success.preferredContentSize = CGSizeMake(315, 320); success.preferredContentSize = CGSizeMake(315, 320);
...@@ -398,17 +398,19 @@ NSString *const PROMOTIONALSTRING = @"促销信息"; ...@@ -398,17 +398,19 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:nil message:@"恭喜您获得一次大转盘抽奖机会!" preferredStyle:UIAlertControllerStyleAlert]; UIAlertController *alertControl = [UIAlertController alertControllerWithTitle:nil message:@"恭喜您获得一次大转盘抽奖机会!" preferredStyle:UIAlertControllerStyleAlert];
[alertControl addAction:[UIAlertAction actionWithTitle:@"马上参与" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) { [alertControl addAction:[UIAlertAction actionWithTitle:@"马上参与" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[weakSelf showLuckyDrawControl:model.lottery.uuid andOrderNumber:weakSelf.orderCode luckyDrawFinish:^(NSDictionary *dict) { [weakSelf showLuckyDrawControl:model.lottery.uuid andOrderNumber:weakSelf.orderCode luckyDrawFinish:^(NSDictionary *dict) {
id json = [NSJSONSerialization JSONObjectWithData:[[dict[@"body"] firstObject] dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingMutableContainers error:nil]; id json = [NSJSONSerialization JSONObjectWithData:[dict[@"body"] dataUsingEncoding:NSUTF8StringEncoding] options:NSJSONReadingMutableContainers error:nil];
if (json) { if (json) {
if ([json isKindOfClass:[NSDictionary class]]) { if ([json isKindOfClass:[NSDictionary class]]) {
weakSelf.customerDrawModel = [[LuckDrawResultModel alloc]initWithDictionary:json error:nil]; weakSelf.customerDrawModel = [[LuckDrawResultModel alloc]initWithDictionary:json error:nil];
if ([BaseViewController isBlankString:weakSelf.customerDrawModel.awardId]) {
[weakSelf SHOWPrompttext:@"未中奖"];
}else {
NSString *string = [NSString stringWithFormat:@"恭喜获得%ld折优惠,会在支付时直接扣除!",[weakSelf.customerDrawModel.number integerValue]/10]; NSString *string = [NSString stringWithFormat:@"恭喜获得%ld折优惠,会在支付时直接扣除!",[weakSelf.customerDrawModel.number integerValue]/10];
[weakSelf SHOWPrompttext:string]; [weakSelf SHOWPrompttext:string];
} }
}else {
[weakSelf SHOWPrompttext:@"没有中奖,欢迎再来"];
} }
return ; }
return;
}]; }];
}]]; }]];
[self presentViewController:alertControl animated:YES completion:nil]; [self presentViewController:alertControl animated:YES completion:nil];
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
/** /**
* 控制器数组 * 控制器数组
*/ */
@property (nonatomic,strong) NSArray *vcArray; @property (nonatomic,strong) NSMutableArray *vcArray;
/** /**
* 工具栏 * 工具栏
...@@ -56,11 +56,19 @@ ...@@ -56,11 +56,19 @@
{ {
if (_identifierArray == nil) { if (_identifierArray == nil) {
_identifierArray = [NSArray arrayWithObjects:@"searchvc",@"shopping",@"Client",@"followheart",@"scenelibrary",@"productlibrary",@"allcustomer",@"customerorder",@"about", nil]; _identifierArray = [NSArray arrayWithObjects:@"SearchViewController",@"ShoppingViewController",@"ClientViewController",@"RebateViewController",@"SceneLibraryViewController",@"ProductLibraryViewController",@"AllCustomerViewController",@"CustomerOrderViewController",@"AboutViewController", nil];
} }
return _identifierArray; return _identifierArray;
} }
- (NSMutableArray *)vcArray
{
if (!_vcArray) {
_vcArray = [NSMutableArray array];
}
return _vcArray;
}
-(void)viewWillAppear:(BOOL)animated -(void)viewWillAppear:(BOOL)animated
{ {
...@@ -105,7 +113,7 @@ ...@@ -105,7 +113,7 @@
[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];
//2016年08月26日15:52:28显示我的账户 //打开相应控制器
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openControllerWithIndex:) name:OPENCONTROLLER object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(openControllerWithIndex:) name:OPENCONTROLLER object:nil];
} }
...@@ -113,34 +121,17 @@ ...@@ -113,34 +121,17 @@
#pragma mark -添加controller到viewControllers #pragma mark -添加controller到viewControllers
- (void)addViewcontroller - (void)addViewcontroller
{ {
NSMutableArray *controllerArray = [NSMutableArray array];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil]; UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"StoryboardwithCYX" bundle:nil];
SearchViewController *searchVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:0]]; for (int i=0; i<self.identifierArray.count; i++) {
ShoppingViewController *shoppingVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:1]]; BaseViewController *control = [storyboard instantiateViewControllerWithIdentifier:self.identifierArray[i]];
ClientViewController *clientVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:2]]; UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:control];
SceneLibraryViewController *sceneVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:4]]; [self.vcArray addObject:nav];
ProductLibraryViewController *productVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:5]]; [controllerArray addObject:control];
AllCustomerViewController *allcustomerVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:6]]; }
CustomerOrderViewController *customerOrderVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:7]];
AboutViewController *aboutVC = [storyboard instantiateViewControllerWithIdentifier:[self.identifierArray objectAtIndex_opple:8]];
//2016年08月26日15:13:04新增返利
RebateViewController *rebateVC = [storyboard instantiateViewControllerWithIdentifier:@"RebateViewController"];
UINavigationController *searchNav = [[UINavigationController alloc]initWithRootViewController:searchVC];
UINavigationController *shoppingNav = [[UINavigationController alloc]initWithRootViewController:shoppingVC];
UINavigationController *clientNav = [[UINavigationController alloc]initWithRootViewController:clientVC];
UINavigationController *sceneNav = [[UINavigationController alloc]initWithRootViewController:sceneVC];
UINavigationController *productNav = [[UINavigationController alloc]initWithRootViewController:productVC];
UINavigationController *allcustomerNav = [[UINavigationController alloc]initWithRootViewController:allcustomerVC];
UINavigationController *cutomerorderNav = [[UINavigationController alloc]initWithRootViewController:customerOrderVC];
UINavigationController *aboutNav = [[UINavigationController alloc]initWithRootViewController:aboutVC];
UINavigationController *rebateNav = [[UINavigationController alloc]initWithRootViewController:rebateVC];
self.vcArray = [NSArray arrayWithObjects:rebateNav,aboutNav,cutomerorderNav,allcustomerNav,productNav,sceneNav,clientNav,shoppingNav,searchNav, nil];
self.viewControllers = self.vcArray; self.viewControllers = self.vcArray;
SHARED_APPDELEGATE.allControllerArray = [NSArray arrayWithObjects:rebateVC,aboutVC,customerOrderVC,allcustomerVC,productVC,sceneVC,clientVC,shoppingVC,searchVC, nil]; SHARED_APPDELEGATE.allControllerArray = controllerArray;
self.selectedIndex = 6; self.selectedIndex = 2;
} }
...@@ -189,7 +180,7 @@ ...@@ -189,7 +180,7 @@
//我的客户 //我的客户
case 102: case 102:
self.selectedIndex = 6; self.selectedIndex = 2;
break; break;
...@@ -211,7 +202,7 @@ ...@@ -211,7 +202,7 @@
}else }else
{ {
self.selectedIndex = 7; self.selectedIndex = 1;
} }
break; break;
...@@ -295,9 +286,7 @@ ...@@ -295,9 +286,7 @@
#pragma mark -搜索框代理方法 #pragma mark -搜索框代理方法
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
{ {
//返回根视图 self.selectedIndex = 0;
[[NSNotificationCenter defaultCenter] postNotificationName:POPROOTCONTROLLER object:nil];
self.selectedIndex = 8;
return YES; return YES;
} }
......
...@@ -68,10 +68,10 @@ ...@@ -68,10 +68,10 @@
} }
#pragma mark -返利余额点击 #pragma mark -我的账户点击
- (void)rebateViewClickAction:(UITapGestureRecognizer *)tap - (void)rebateViewClickAction:(UITapGestureRecognizer *)tap
{ {
[[NSNotificationCenter defaultCenter] postNotificationName:OPENCONTROLLER object:@(0)]; [[NSNotificationCenter defaultCenter] postNotificationName:OPENCONTROLLER object:@(3)];
} }
#pragma mark -用户头像点击 #pragma mark -用户头像点击
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<!--Client View Controller--> <!--Client View Controller-->
<scene sceneID="yCh-EN-sKa"> <scene sceneID="yCh-EN-sKa">
<objects> <objects>
<viewController storyboardIdentifier="Client" id="LsC-DS-ifK" customClass="ClientViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="ClientViewController" id="LsC-DS-ifK" customClass="ClientViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="4VL-r5-nPN"> <view key="view" contentMode="scaleToFill" id="4VL-r5-nPN">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/> <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -838,7 +838,7 @@ ...@@ -838,7 +838,7 @@
<!--Scene Library View Controller--> <!--Scene Library View Controller-->
<scene sceneID="11E-ZI-kT0"> <scene sceneID="11E-ZI-kT0">
<objects> <objects>
<viewController storyboardIdentifier="scenelibrary" id="5yY-jf-6jd" customClass="SceneLibraryViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="SceneLibraryViewController" id="5yY-jf-6jd" customClass="SceneLibraryViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="BW8-jR-i6f"> <view key="view" contentMode="scaleToFill" id="BW8-jR-i6f">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/> <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -908,7 +908,7 @@ ...@@ -908,7 +908,7 @@
<!--Product Library View Controller--> <!--Product Library View Controller-->
<scene sceneID="Vqh-XT-iSv"> <scene sceneID="Vqh-XT-iSv">
<objects> <objects>
<viewController storyboardIdentifier="productlibrary" id="fQA-ga-TL5" customClass="ProductLibraryViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="ProductLibraryViewController" id="fQA-ga-TL5" customClass="ProductLibraryViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="sKB-LA-6KH"> <view key="view" contentMode="scaleToFill" id="sKB-LA-6KH">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/> <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -1652,7 +1652,7 @@ ...@@ -1652,7 +1652,7 @@
<!--About View Controller--> <!--About View Controller-->
<scene sceneID="Gg7-XM-8PC"> <scene sceneID="Gg7-XM-8PC">
<objects> <objects>
<viewController storyboardIdentifier="about" id="Qs2-0N-CQm" customClass="AboutViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="AboutViewController" id="Qs2-0N-CQm" customClass="AboutViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Akw-YQ-k7f"> <view key="view" contentMode="scaleToFill" id="Akw-YQ-k7f">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/> <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -1690,7 +1690,7 @@ ...@@ -1690,7 +1690,7 @@
<!--Shopping View Controller--> <!--Shopping View Controller-->
<scene sceneID="udz-xf-EQK"> <scene sceneID="udz-xf-EQK">
<objects> <objects>
<viewController storyboardIdentifier="shopping" id="4Ho-ZE-RT8" customClass="ShoppingViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="ShoppingViewController" id="4Ho-ZE-RT8" customClass="ShoppingViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="cxt-gf-RU0"> <view key="view" contentMode="scaleToFill" id="cxt-gf-RU0">
<rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/> <rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -2871,21 +2871,21 @@ ...@@ -2871,21 +2871,21 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12345423232323" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="YZ6-qW-0oK">
<rect key="frame" x="102" y="25" width="196" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="w0v-q3-buz"> <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="w0v-q3-buz">
<rect key="frame" x="642" y="20" width="120" height="30"/> <rect key="frame" x="652" y="20" width="110" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/> <fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/>
<state key="normal" title="去抽奖"> <state key="normal" title="去抽奖">
<color key="titleColor" red="0.2901960784" green="0.57254901960000004" blue="0.93725490199999995" alpha="1" colorSpace="calibratedRGB"/> <color key="titleColor" red="0.2901960784" green="0.57254901960000004" blue="0.93725490199999995" alpha="1" colorSpace="calibratedRGB"/>
</state> </state>
</button> </button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12345423232323" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="YZ6-qW-0oK">
<rect key="frame" x="102" y="24" width="303" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
</label>
</subviews> </subviews>
</tableViewCellContentView> </tableViewCellContentView>
<connections> <connections>
...@@ -2909,7 +2909,7 @@ ...@@ -2909,7 +2909,7 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12345423232323" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="q09-fY-3yo"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12345423232323" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="q09-fY-3yo">
<rect key="frame" x="102" y="24" width="197" height="21"/> <rect key="frame" x="102" y="24" width="250" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/> <fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/> <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
...@@ -2923,14 +2923,14 @@ ...@@ -2923,14 +2923,14 @@
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12345423232323" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="lUL-4N-KSj"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="12345423232323" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="lUL-4N-KSj">
<rect key="frame" x="402" y="24" width="156" height="21"/> <rect key="frame" x="439" y="24" width="156" height="21"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/> <fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/> <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="抽奖时间:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="VNw-Tc-lfL"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="抽奖时间:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="VNw-Tc-lfL">
<rect key="frame" x="323" y="24" width="76" height="21"/> <rect key="frame" x="360" y="24" width="76" height="21"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/> <fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/> <color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
...@@ -3863,7 +3863,7 @@ ...@@ -3863,7 +3863,7 @@
<!--All Customer View Controller--> <!--All Customer View Controller-->
<scene sceneID="Tb1-mU-uzp"> <scene sceneID="Tb1-mU-uzp">
<objects> <objects>
<viewController storyboardIdentifier="allcustomer" id="jZG-OJ-q8e" customClass="AllCustomerViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="AllCustomerViewController" id="jZG-OJ-q8e" customClass="AllCustomerViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="kdd-9E-MpA"> <view key="view" contentMode="scaleToFill" id="kdd-9E-MpA">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/> <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -4058,7 +4058,7 @@ ...@@ -4058,7 +4058,7 @@
<!--Customer Order View Controller--> <!--Customer Order View Controller-->
<scene sceneID="G7U-2L-CVg"> <scene sceneID="G7U-2L-CVg">
<objects> <objects>
<viewController storyboardIdentifier="customerorder" id="QTx-ut-yBB" customClass="CustomerOrderViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="CustomerOrderViewController" id="QTx-ut-yBB" customClass="CustomerOrderViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="szp-KJ-fw4"> <view key="view" contentMode="scaleToFill" id="szp-KJ-fw4">
<rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/> <rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -4334,7 +4334,7 @@ ...@@ -4334,7 +4334,7 @@
<!--Search View Controller--> <!--Search View Controller-->
<scene sceneID="SAN-zD-zdn"> <scene sceneID="SAN-zD-zdn">
<objects> <objects>
<viewController storyboardIdentifier="searchvc" id="O7j-UZ-n6W" customClass="SearchViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="SearchViewController" id="O7j-UZ-n6W" customClass="SearchViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="v3k-z6-eR6"> <view key="view" contentMode="scaleToFill" id="v3k-z6-eR6">
<rect key="frame" x="0.0" y="0.0" width="768" height="1024"/> <rect key="frame" x="0.0" y="0.0" width="768" height="1024"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
...@@ -4952,7 +4952,7 @@ ...@@ -4952,7 +4952,7 @@
<!--Shopping Bag View Controller--> <!--Shopping Bag View Controller-->
<scene sceneID="bFG-TW-gKc"> <scene sceneID="bFG-TW-gKc">
<objects> <objects>
<viewController storyboardIdentifier="shoppingbagController" id="z4W-l4-4uY" customClass="ShoppingBagViewController" sceneMemberID="viewController"> <viewController storyboardIdentifier="ShoppingBagViewController" id="z4W-l4-4uY" customClass="ShoppingBagViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="TGk-BQ-3Ep"> <view key="view" contentMode="scaleToFill" id="TGk-BQ-3Ep">
<rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/> <rect key="frame" x="0.0" y="0.0" width="1024" height="1366"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
......
...@@ -293,7 +293,7 @@ extern NSString *const ACTIVED; ...@@ -293,7 +293,7 @@ extern NSString *const ACTIVED;
/** /**
* 京东卡状态<查看> * 京东卡状态<查看>
*/ */
extern NSString *const LOOKED; extern NSString *const USED;
/** /**
* 更新购物车商品 * 更新购物车商品
......
...@@ -292,7 +292,7 @@ NSString *const ACTIVED = @"actived"; ...@@ -292,7 +292,7 @@ NSString *const ACTIVED = @"actived";
/** /**
* 京东卡状态<查看> * 京东卡状态<查看>
*/ */
NSString *const LOOKED = @"used"; NSString *const USED = @"used";
/** /**
* 更新购物车商品 * 更新购物车商品
......
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
- (IBAction)ShoppingBagButtonClickAction:(UIButton *)sender { - (IBAction)ShoppingBagButtonClickAction:(UIButton *)sender {
sender.selected = YES; sender.selected = YES;
ShoppingBagViewController *shoppingBag = [[self getStoryboardWithName] instantiateViewControllerWithIdentifier:@"shoppingbagController"]; ShoppingBagViewController *shoppingBag = [[self getStoryboardWithName] instantiateViewControllerWithIdentifier:@"ShoppingBagViewController"];
[shoppingBag setDismissBlock:^{ [shoppingBag setDismissBlock:^{
sender.selected = NO; sender.selected = NO;
}]; }];
......
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