JXCsHomeVc.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. // 是否调用好友和群组列表接口
  22. @property (nonatomic, assign) BOOL isLoadFriendAndGroup;
  23. @end
  24. /**
  25. UILabel *countTipL = [[UILabel alloc]init];
  26. countTipL.font=[UIFont systemFontOfSize:11 weight:UIFontWeightMedium];
  27. countTipL.textColor=[UIColor whiteColor];
  28. countTipL.backgroundColor=[UIColor redColor];
  29. countTipL.textAlignment=NSTextAlignmentCenter;
  30. countTipL.layer.cornerRadius=9;
  31. countTipL.layer.masksToBounds=YES;
  32. countTipL.hidden=YES;
  33. [button addSubview:countTipL];
  34. self.countTipL=countTipL;
  35. countTipL.xmg_x=CGRectGetMaxX(button.titleLabel.frame)-5;
  36. countTipL.xmg_height = 18;
  37. countTipL.xmg_width = 18;
  38. countTipL.xmg_y = 5;
  39. if(AppStore == 1){
  40. } else {
  41. _vcnum = (int)g_App.linkArray.count;
  42. }
  43. if (self.vcnum < 0 || self.vcnum >2) {
  44. self.vcnum = 0;
  45. }else{
  46. for (int i = 0; i < self.vcnum; i++) {
  47. if (i == 0) {
  48. _linkName1 = g_App.linkArray[i][@"desc"];
  49. _imgUrl1 = g_App.linkArray[i][@"imgUrl"];
  50. if (_linkName1.length < 1) {
  51. _linkName1 = @"百度";
  52. }
  53. if (_linkURL1.length < 1) {
  54. _linkURL1 = @"http://www.baidu.com";
  55. }
  56. }else if (i == 1){
  57. _linkName2 = g_App.linkArray[i][@"desc"];
  58. _linkURL2 = g_App.linkArray[i][@"link"];
  59. _imgUrl2 = g_App.linkArray[i][@"imgUrl"];
  60. if (_linkName2.length < 1) {
  61. _linkName2 = @"百度";
  62. }
  63. if (_linkURL2.length < 1) {
  64. _linkURL2 = @"http://www.baidu.com";
  65. }
  66. }
  67. }
  68. }
  69. */