Commit 41bfb31f authored by Mazy's avatar Mazy

fix alert view bugs

parent 4ec49caa
...@@ -50,9 +50,10 @@ ...@@ -50,9 +50,10 @@
} }
- (void)showAlertToView: (UIView *)toView amount: (NSString *)money firstShow: (BOOL)isFirst onlyCash: (BOOL)isCash { - (void)showAlertToView: (UIView *)toView amount: (NSString *)money firstShow: (BOOL)isFirst onlyCash: (BOOL)isCash {
self.gainAmountLabel.text = [NSString stringWithFormat:@"+%@", money];
if (isFirst) { if (isFirst) {
self.gainAmountLeftLabel.hidden = true; self.gainAmountLeftLabel.hidden = true;
self.gainAmountLabel.text = [NSString stringWithFormat:@"+%@", money];
self.mainTitleLabel.text = @"现金奖励"; self.mainTitleLabel.text = @"现金奖励";
// [self.commitButton setBackgroundImage:[UIImage imageNamed:@"alert_six_cash_btn_bg"] forState:UIControlStateNormal]; // [self.commitButton setBackgroundImage:[UIImage imageNamed:@"alert_six_cash_btn_bg"] forState:UIControlStateNormal];
if (isCash) { if (isCash) {
......
...@@ -641,10 +641,12 @@ NSDictionary* appLaunchOpts; ...@@ -641,10 +641,12 @@ NSDictionary* appLaunchOpts;
if (rewardContentList.count <= 0) { if (rewardContentList.count <= 0) {
return; return;
} }
NSString *totalRewardNum = [[rewardContentList.firstObject objectForKey:@"totalRewardNum"] stringValue]; CGFloat totalRewardNumF = [[rewardContentList.firstObject objectForKey:@"totalRewardNum"] floatValue];
NSString *totalRewardNumS = [NSString stringWithFormat:@"%.2f", totalRewardNumF / 100.0];
GYCashSixAwardAlertView *alertVC = [GYCashSixAwardAlertView loadFromNib]; GYCashSixAwardAlertView *alertVC = [GYCashSixAwardAlertView loadFromNib];
[alertVC showAlertToView:[[weakSelf ufw] appController].window amount:totalRewardNum firstShow: false onlyCash:false]; [alertVC showAlertToView:[[weakSelf ufw] appController].window amount:totalRewardNumS firstShow: false onlyCash:false];
[weakSelf ios_getHomeInfo]; [weakSelf ios_getHomeInfo];
[weakSelf ios_onGetRedPackList]; [weakSelf ios_onGetRedPackList];
......
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