|
|
@@ -180,28 +180,32 @@ FBAPIManagerInterceptor
|
|
|
}
|
|
|
- (void)confirmButtonClick:(UIButton *)btn {
|
|
|
|
|
|
+ if (self.inputPhoneView.inputTF.text.length == 0)
|
|
|
+ {
|
|
|
+ [self.view fb_showInfoWithStatus:@"请输入手机号码"];
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (self.inputPhoneView.inputTF.text.length != 11)
|
|
|
+ {
|
|
|
+ [self.view fb_showInfoWithStatus:@"请输入正确手机号码"];
|
|
|
+ return;
|
|
|
+ }
|
|
|
HJMyIntegralExchangeActivityListModel *model = [HJMyIntegralExchangeActivityListModel yy_modelWithDictionary:self.detailDict[@"data"][@"mpCompaignsActivitySettingAPI"]];
|
|
|
if ([model.exchangeType integerValue] == 0)
|
|
|
{//不需要支付的
|
|
|
- if (self.inputPhoneView.inputTF.text.length > 0)
|
|
|
- {
|
|
|
- self.exchangeActivityAPI.mpCompaignsActivitySettingId = model.ID;
|
|
|
- self.exchangeActivityAPI.phone = self.inputPhoneView.inputTF.text;
|
|
|
- self.exchangeActivityAPI.withdrawType = @"0";
|
|
|
- [self.exchangeActivityAPI start];
|
|
|
- }
|
|
|
+ self.exchangeActivityAPI.mpCompaignsActivitySettingId = model.ID;
|
|
|
+ self.exchangeActivityAPI.phone = self.inputPhoneView.inputTF.text;
|
|
|
+ self.exchangeActivityAPI.withdrawType = @"0";
|
|
|
+ [self.exchangeActivityAPI start];
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (self.inputPhoneView.inputTF.text.length > 0)
|
|
|
- {
|
|
|
- HJIntegralExchangePayViewController *vc = [[HJIntegralExchangePayViewController alloc]init];
|
|
|
- vc.phone = self.inputPhoneView.inputTF.text;
|
|
|
- vc.compaignssettingId = model.ID;
|
|
|
- vc.compaigns_type = @"2";
|
|
|
- vc.money = model.money;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }
|
|
|
+ HJIntegralExchangePayViewController *vc = [[HJIntegralExchangePayViewController alloc]init];
|
|
|
+ vc.phone = self.inputPhoneView.inputTF.text;
|
|
|
+ vc.compaignssettingId = model.ID;
|
|
|
+ vc.compaigns_type = @"2";
|
|
|
+ vc.money = model.money;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
}
|
|
|
|