Commit 43e28d0d authored by 曹云霄's avatar 曹云霄

准备新建抽奖分支

parent cef9c44f
......@@ -191,7 +191,7 @@ NSString *const lotteryAction = @"lotteryAction";
[weakSelf.promotionalArray removeAllObjects];
[weakSelf.luckyDrawAndJDECardArray removeAllObjects];
for (NSDictionary *dict in promotionalArray) {
//** 抵扣金额、京东E卡、微信卡劵 */
/// 折扣金额
if ([dict[@"type"] isEqualToString:deductionAction]) {
PromotionalDeductionModel *deductionModel = [[PromotionalDeductionModel alloc]initWithDictionary:dict error:nil];
deductionModel.isSelected = YES;
......@@ -199,6 +199,7 @@ NSString *const lotteryAction = @"lotteryAction";
[weakSelf.sectionTitle addObject:PROMOTIONALSTRING];
}
[weakSelf.promotionalArray addObject:deductionModel];
/// 赠送商品
}else if ([dict[@"type"] isEqualToString:goodsAction]){
PromotionalGoodsModel *goodsModel = [[PromotionalGoodsModel alloc]initWithDictionary:dict error:nil];
goodsModel.isSelected = YES;
......@@ -206,6 +207,7 @@ NSString *const lotteryAction = @"lotteryAction";
[weakSelf.sectionTitle addObject:PROMOTIONALSTRING];
}
[weakSelf.promotionalArray addObject:goodsModel];
/// 京东E卡
}else if ([dict[@"type"] isEqualToString:JDECardAction]){
PromotionalDeductionModel *deductionModel = [[PromotionalDeductionModel alloc]initWithDictionary:dict error:nil];
[weakSelf.luckyDrawAndJDECardArray addObject:deductionModel];
......
......@@ -252,6 +252,11 @@ extern NSString *const QUERYALLJDECARD;
* 使用京东E卡
*/
extern NSString *const USEJDECARD;
/**
* 抽奖
*/
extern NSString *const DRAW;
/*****************************************接口地址*****************************************/
......
......@@ -251,6 +251,11 @@ NSString *const QUERYALLJDECARD = @"/jingdongecard/simpleQuery";
* 使用京东E卡
*/
NSString *const USEJDECARD = @"/jingdongecard/use?cardNumber=%@";
/**
* 抽奖
*/
NSString *const DRAW = @"/tOLotteryController.do?lotteryAward&lotteryId=%@&drawId=%@&orderNumber=%@";
/*****************************************接口地址*****************************************/
......
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