JXAboutJiXinVc.m 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. //
  2. // JXAboutJiXinVc.m
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/23.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXAboutJiXinVc.h"
  9. @interface JXAboutJiXinVc ()
  10. @end
  11. @implementation JXAboutJiXinVc
  12. - (void)bacbtnClick{
  13. [g_navigation dismissViewController:self animated:NO];
  14. }
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. // Do any additional setup after loading the view.
  18. self.view.backgroundColor=kRGBColor246;
  19. [self defineNavBar:@"关于即信" andRinghtBtnImg:@""];
  20. self.navigationItem.title=@"关于即信";
  21. UIImageView *iconIMG=[[UIImageView alloc]init];
  22. iconIMG.image=[UIImage imageNamed:@"BG111"];
  23. [self.view addSubview:iconIMG];
  24. [iconIMG mas_makeConstraints:^(MASConstraintMaker *make) {
  25. make.bottom.mas_equalTo(0);
  26. make.centerX.mas_equalTo(0);
  27. make.height.mas_equalTo(0);
  28. make.width.mas_equalTo(0);
  29. }];
  30. UIImageView *iconV=[[UIImageView alloc]init];
  31. iconV.image=[UIImage imageNamed:@"ALOGO_1200"];
  32. [self.view addSubview:iconV];
  33. [iconV mas_makeConstraints:^(MASConstraintMaker *make) {
  34. make.top.mas_equalTo(JX_SCREEN_HEIGHT>812?100:80);
  35. make.centerX.mas_equalTo(0);
  36. }];
  37. UILabel *banBen=[[UILabel alloc]init];
  38. NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
  39. NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
  40. banBen.text=[NSString stringWithFormat:@"版本号 %@", app_Version];
  41. banBen.textColor=kRGBColor(153, 153, 153);
  42. banBen.font=[UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
  43. [self.view addSubview:banBen];
  44. [banBen mas_makeConstraints:^(MASConstraintMaker *make) {
  45. make.top.mas_equalTo(iconV.mas_bottom).mas_offset(10);
  46. make.centerX.mas_equalTo(0);
  47. }];
  48. UILabel *guanF=[[UILabel alloc]init];
  49. guanF.text=@"官方认证";
  50. guanF.textColor=kRGBColor(92, 14, 7);
  51. guanF.font=[UIFont systemFontOfSize:24 weight:UIFontWeightMedium];
  52. [self.view addSubview:guanF];
  53. [guanF mas_makeConstraints:^(MASConstraintMaker *make) {
  54. make.top.mas_equalTo(banBen.mas_bottom).mas_offset(50);
  55. make.centerX.mas_equalTo(0);
  56. }];
  57. CGFloat btnW=(JX_SCREEN_WIDTH-114)/3;
  58. NSArray *images=@[@"yinguo",@"diyi",@"passes"];
  59. UIButton *btn=nil;
  60. for (int i=0; i<images.count; i++) {
  61. btn=[[UIButton alloc]init];
  62. [btn setImage:[UIImage imageNamed:images[i]] forState:UIControlStateNormal];
  63. [self.view addSubview:btn];
  64. [btn mas_makeConstraints:^(MASConstraintMaker *make) {
  65. make.width.mas_equalTo(btnW);
  66. make.top.mas_equalTo(guanF.mas_bottom).mas_offset(20);
  67. make.height.mas_equalTo(btnW+20);
  68. if (i == 0) {
  69. make.left.mas_equalTo(20);
  70. } else if(i == 1) {
  71. make.left.mas_equalTo(20 + 1*(btnW+36));
  72. } else {
  73. make.left.mas_equalTo(20 + 2*(btnW+36));
  74. }
  75. }];
  76. }
  77. UIButton *taizi=[[UIButton alloc]init];
  78. [taizi setBackgroundImage:[UIImage imageNamed:@"taizi"] forState:UIControlStateNormal];
  79. taizi.contentMode=UIViewContentModeScaleAspectFill;
  80. [self.view addSubview:taizi];
  81. [taizi mas_makeConstraints:^(MASConstraintMaker *make) {
  82. make.top.mas_equalTo(btn.mas_bottom).mas_offset(0);
  83. make.left.mas_equalTo(0);
  84. make.right.mas_equalTo(0);
  85. make.height.mas_equalTo(20);
  86. }];
  87. CGFloat btnW2=(JX_SCREEN_WIDTH-20)/3;
  88. NSArray *titles=@[@"英国曼岛博彩监督委员会",@"第一卡格扬格",@"菲律宾PARCOR"];
  89. //NSArray *titles=@[@"英国曼岛博彩监督委员会",@"第一卡格扬格",@"PAGCOR"];
  90. for (int i=0; i<titles.count; i++) {
  91. UIButton *btn=[[UIButton alloc]init];
  92. [btn setTitle:titles[i] forState:UIControlStateNormal];
  93. [btn setTitleColor:kRGBColor(51, 51, 51) forState:UIControlStateNormal];
  94. btn.titleLabel.font=[UIFont systemFontOfSize:9 weight:UIFontWeightRegular];
  95. [self.view addSubview:btn];
  96. [btn mas_makeConstraints:^(MASConstraintMaker *make) {
  97. make.width.mas_equalTo(btnW2);
  98. make.top.mas_equalTo(taizi.mas_bottom).mas_offset(1);
  99. if (i == 0) {
  100. make.left.mas_equalTo(0);
  101. } else if(i == 1) {
  102. make.left.mas_equalTo(10 + 1*(btnW2+0));
  103. } else {
  104. make.left.mas_equalTo(10 + 2*(btnW2+0));
  105. }
  106. }];
  107. }
  108. UILabel *titleL=[[UILabel alloc]init];
  109. titleL.text=@"让未来现在就来";
  110. titleL.textColor=kRGBColor(92, 14, 7);
  111. titleL.font=[UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
  112. [self.view addSubview:titleL];
  113. [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
  114. make.bottom.mas_equalTo(-60);
  115. make.centerX.mas_equalTo(0);
  116. }];
  117. }
  118. /*
  119. #pragma mark - Navigation
  120. // In a storyboard-based application, you will often want to do a little preparation before navigation
  121. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  122. // Get the new view controller using [segue destinationViewController].
  123. // Pass the selected object to the new view controller.
  124. }
  125. */
  126. @end