JXVIPDetailVc.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 JXVIPDetailVc : UIViewController
  11. @end
  12. NS_ASSUME_NONNULL_END
  13. /**
  14. NSString *currentPrice = [NSString stringWithFormat:@"%@",dict[@"next"][@"money"]];
  15. CGFloat currentPriceLabelWidht = [self titleBtnWight:currentPrice and:self.currentPriceLabel].width;
  16. self.currentPriceLabel.text = currentPrice;
  17. self.currentPriceLabel.frame = CGRectMake(self.currentLabel.right+3, self.headerImageView.bottom+96, currentPriceLabelWidht+5, 15);
  18. CGFloat currentCompanyLabelWidht = [self titleBtnWight:[NSString stringWithFormat:@"(%@/%@)",currentPrice,currentPrice] and:self.currentCompanyLabel].width;
  19. self.currentCompanyLabel.text = [NSString stringWithFormat:@"(%@/%@)",currentPrice,currentPrice];;
  20. self.currentCompanyLabel.frame = CGRectMake(self.currentPriceLabel.right+3, self.headerImageView.bottom+96, currentCompanyLabelWidht, 15);
  21. //还差升级存款
  22. self.twoDianView.frame = CGRectMake(35, self.currentLabel.bottom+14, 6, 6);
  23. CGFloat differenceLabelWidht = [self titleBtnWight:@"还差升级存款(元):" and:self.differenceLabel].width;
  24. self.differenceLabel.frame = CGRectMake(self.twoDianView.right+3, self.currentLabel.bottom+10, differenceLabelWidht, 15);
  25. NSString *differencePrice = [NSString stringWithFormat:@"%@",dict[@"totalRecharge"]];
  26. CGFloat differencePriceLabelWidht = [self titleBtnWight:differencePrice and:self.differencePriceLabel].width;
  27. self.differencePriceLabel.text = differencePrice;
  28. self.differencePriceLabel.frame =CGRectMake(self.differenceLabel.right+3, self.currentLabel.bottom+10, differencePriceLabelWidht, 15);
  29. CGFloat differenceCompanyLabelWidht = [self titleBtnWight:[NSString stringWithFormat:@"(%@/%@)",differencePrice,differencePrice] and:self.differenceCompanyLabel].width;
  30. self.differenceCompanyLabel.text = [NSString stringWithFormat:@"(%@/%@)",differencePrice,differencePrice];
  31. self.differenceCompanyLabel.frame = CGRectMake(self.differencePriceLabel.right+3, self.currentLabel.bottom+10, differenceCompanyLabelWidht, 15);
  32. */