123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- //
- // JXVIPDetailViewController.h
- // shiku_im
- //
- // Created by cindy on 2020/5/29.
- // Copyright © 2020 Reese. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface JXVIPDetailViewController : UIViewController
- @property (nonatomic, copy) NSString *name;
- @property (nonatomic, copy) NSString *dengji;
- @end
- NS_ASSUME_NONNULL_END
- /*if (aaaa==0) {
-
- aaaaxx=0.0;
-
- }else if (aaaa==1) {
-
-
- // vipDetailModel *model = [_dataArr firstObject];
- // vipDetailModel *model2 = _dataArr[1];
- // int chaMoney= [model2.rechargeMoney intValue]-[model.rechargeMoney intValue];
- //
- // CGFloat bafenbi = aaaaMoney-[model.rechargeMoney intValue]*1.0;;
- // aaaaxx= bafenbi/chaMoney;
- //
- vipDetailModel *model2 = _dataArr[aaaa+1];
- int chaMoney= [model2.rechargeMoney intValue];
-
- aaaaxx= aaaaMoney/chaMoney;
-
- }else{
- vipDetailModel *model = _dataArr[aaaa];
- vipDetailModel *model2 = _dataArr[aaaa-1];
- CGFloat chaMoney= ( [model.rechargeMoney intValue]-[model2.rechargeMoney intValue])*1.0;
- CGFloat bafenbi = aaaaMoney-[model.rechargeMoney intValue]*1.0;;
- aaaaxx= aaaaMoney/chaMoney;
- if (aaaaxx>=1) {
- aaaaxx=1;
- }
- }*/
-
- /**
-
- NSString *currentPrice = [NSString stringWithFormat:@"%@",dict[@"next"][@"money"]];
- CGFloat currentPriceLabelWidht = [self titleBtnWight:currentPrice and:self.currentPriceLabel].width;
- self.currentPriceLabel.text = currentPrice;
- self.currentPriceLabel.frame = CGRectMake(self.currentLabel.right+3, self.headerImageView.bottom+96, currentPriceLabelWidht+5, 15);
-
- CGFloat currentCompanyLabelWidht = [self titleBtnWight:[NSString stringWithFormat:@"(%@/%@)",currentPrice,currentPrice] and:self.currentCompanyLabel].width;
- self.currentCompanyLabel.text = [NSString stringWithFormat:@"(%@/%@)",currentPrice,currentPrice];;
- self.currentCompanyLabel.frame = CGRectMake(self.currentPriceLabel.right+3, self.headerImageView.bottom+96, currentCompanyLabelWidht, 15);
-
- //还差升级存款
- self.twoDianView.frame = CGRectMake(35, self.currentLabel.bottom+14, 6, 6);
- CGFloat differenceLabelWidht = [self titleBtnWight:@"还差升级存款(元):" and:self.differenceLabel].width;
- self.differenceLabel.frame = CGRectMake(self.twoDianView.right+3, self.currentLabel.bottom+10, differenceLabelWidht, 15);
-
- NSString *differencePrice = [NSString stringWithFormat:@"%@",dict[@"totalRecharge"]];
- CGFloat differencePriceLabelWidht = [self titleBtnWight:differencePrice and:self.differencePriceLabel].width;
- self.differencePriceLabel.text = differencePrice;
- self.differencePriceLabel.frame =CGRectMake(self.differenceLabel.right+3, self.currentLabel.bottom+10, differencePriceLabelWidht, 15);
-
- CGFloat differenceCompanyLabelWidht = [self titleBtnWight:[NSString stringWithFormat:@"(%@/%@)",differencePrice,differencePrice] and:self.differenceCompanyLabel].width;
- self.differenceCompanyLabel.text = [NSString stringWithFormat:@"(%@/%@)",differencePrice,differencePrice];
- self.differenceCompanyLabel.frame = CGRectMake(self.differencePriceLabel.right+3, self.currentLabel.bottom+10, differenceCompanyLabelWidht, 15);
- */
|