JXVIPDetailViewController.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // JXVIPDetailViewController.h
  3. // shiku_im
  4. //
  5. // Created by cindy on 2020/5/29.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface JXVIPDetailViewController : UIViewController
  11. @property (nonatomic, copy) NSString *name;
  12. @property (nonatomic, copy) NSString *dengji;
  13. @end
  14. NS_ASSUME_NONNULL_END
  15. /*if (aaaa==0) {
  16. aaaaxx=0.0;
  17. }else if (aaaa==1) {
  18. // vipDetailModel *model = [_dataArr firstObject];
  19. // vipDetailModel *model2 = _dataArr[1];
  20. // int chaMoney= [model2.rechargeMoney intValue]-[model.rechargeMoney intValue];
  21. //
  22. // CGFloat bafenbi = aaaaMoney-[model.rechargeMoney intValue]*1.0;;
  23. // aaaaxx= bafenbi/chaMoney;
  24. //
  25. vipDetailModel *model2 = _dataArr[aaaa+1];
  26. int chaMoney= [model2.rechargeMoney intValue];
  27. aaaaxx= aaaaMoney/chaMoney;
  28. }else{
  29. vipDetailModel *model = _dataArr[aaaa];
  30. vipDetailModel *model2 = _dataArr[aaaa-1];
  31. CGFloat chaMoney= ( [model.rechargeMoney intValue]-[model2.rechargeMoney intValue])*1.0;
  32. CGFloat bafenbi = aaaaMoney-[model.rechargeMoney intValue]*1.0;;
  33. aaaaxx= aaaaMoney/chaMoney;
  34. if (aaaaxx>=1) {
  35. aaaaxx=1;
  36. }
  37. }*/
  38. /**
  39. NSString *currentPrice = [NSString stringWithFormat:@"%@",dict[@"next"][@"money"]];
  40. CGFloat currentPriceLabelWidht = [self titleBtnWight:currentPrice and:self.currentPriceLabel].width;
  41. self.currentPriceLabel.text = currentPrice;
  42. self.currentPriceLabel.frame = CGRectMake(self.currentLabel.right+3, self.headerImageView.bottom+96, currentPriceLabelWidht+5, 15);
  43. CGFloat currentCompanyLabelWidht = [self titleBtnWight:[NSString stringWithFormat:@"(%@/%@)",currentPrice,currentPrice] and:self.currentCompanyLabel].width;
  44. self.currentCompanyLabel.text = [NSString stringWithFormat:@"(%@/%@)",currentPrice,currentPrice];;
  45. self.currentCompanyLabel.frame = CGRectMake(self.currentPriceLabel.right+3, self.headerImageView.bottom+96, currentCompanyLabelWidht, 15);
  46. //还差升级存款
  47. self.twoDianView.frame = CGRectMake(35, self.currentLabel.bottom+14, 6, 6);
  48. CGFloat differenceLabelWidht = [self titleBtnWight:@"还差升级存款(元):" and:self.differenceLabel].width;
  49. self.differenceLabel.frame = CGRectMake(self.twoDianView.right+3, self.currentLabel.bottom+10, differenceLabelWidht, 15);
  50. NSString *differencePrice = [NSString stringWithFormat:@"%@",dict[@"totalRecharge"]];
  51. CGFloat differencePriceLabelWidht = [self titleBtnWight:differencePrice and:self.differencePriceLabel].width;
  52. self.differencePriceLabel.text = differencePrice;
  53. self.differencePriceLabel.frame =CGRectMake(self.differenceLabel.right+3, self.currentLabel.bottom+10, differencePriceLabelWidht, 15);
  54. CGFloat differenceCompanyLabelWidht = [self titleBtnWight:[NSString stringWithFormat:@"(%@/%@)",differencePrice,differencePrice] and:self.differenceCompanyLabel].width;
  55. self.differenceCompanyLabel.text = [NSString stringWithFormat:@"(%@/%@)",differencePrice,differencePrice];
  56. self.differenceCompanyLabel.frame = CGRectMake(self.differencePriceLabel.right+3, self.currentLabel.bottom+10, differenceCompanyLabelWidht, 15);
  57. */