JXCsHomeVc.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // JXCsHomeVc.h
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/4/28.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "XMGTitleButton.h"
  10. typedef void(^shuaxinBtn)(UIButton *btn);
  11. @interface JXCsHomeVc : UIViewController
  12. /** 顶部的所有标签 */
  13. @property (nonatomic, weak) UIView *titlesView;
  14. /** 底部的所有内容 */
  15. @property (nonatomic, weak) UIScrollView *contentView;
  16. @property (nonatomic ,copy) NSString * name;
  17. @property (nonatomic ,copy) NSString * strURL;
  18. @property (nonatomic,copy) shuaxinBtn blcokBTb;
  19. @property (nonatomic,weak) UILabel *countTipL;
  20. @property (nonatomic,weak) XMGTitleButton *topButton;
  21. @end
  22. /**
  23. UILabel *countTipL = [[UILabel alloc]init];
  24. countTipL.font=[UIFont systemFontOfSize:11 weight:UIFontWeightMedium];
  25. countTipL.textColor=[UIColor whiteColor];
  26. countTipL.backgroundColor=[UIColor redColor];
  27. countTipL.textAlignment=NSTextAlignmentCenter;
  28. countTipL.layer.cornerRadius=9;
  29. countTipL.layer.masksToBounds=YES;
  30. countTipL.hidden=YES;
  31. [button addSubview:countTipL];
  32. self.countTipL=countTipL;
  33. countTipL.xmg_x=CGRectGetMaxX(button.titleLabel.frame)-5;
  34. countTipL.xmg_height = 18;
  35. countTipL.xmg_width = 18;
  36. countTipL.xmg_y = 5;
  37. if(AppStore == 1){
  38. } else {
  39. _vcnum = (int)g_App.linkArray.count;
  40. }
  41. if (self.vcnum < 0 || self.vcnum >2) {
  42. self.vcnum = 0;
  43. }else{
  44. for (int i = 0; i < self.vcnum; i++) {
  45. if (i == 0) {
  46. _linkName1 = g_App.linkArray[i][@"desc"];
  47. _imgUrl1 = g_App.linkArray[i][@"imgUrl"];
  48. if (_linkName1.length < 1) {
  49. _linkName1 = @"百度";
  50. }
  51. if (_linkURL1.length < 1) {
  52. _linkURL1 = @"http://www.baidu.com";
  53. }
  54. }else if (i == 1){
  55. _linkName2 = g_App.linkArray[i][@"desc"];
  56. _linkURL2 = g_App.linkArray[i][@"link"];
  57. _imgUrl2 = g_App.linkArray[i][@"imgUrl"];
  58. if (_linkName2.length < 1) {
  59. _linkName2 = @"百度";
  60. }
  61. if (_linkURL2.length < 1) {
  62. _linkURL2 = @"http://www.baidu.com";
  63. }
  64. }
  65. }
  66. }
  67. */