JXAboutJiXinVc.m 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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:@"jixin"];
  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. banBen.text=@"版本号 4.3.1";
  39. banBen.textColor=kRGBColor(153, 153, 153);
  40. banBen.font=[UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
  41. [self.view addSubview:banBen];
  42. [banBen mas_makeConstraints:^(MASConstraintMaker *make) {
  43. make.top.mas_equalTo(iconV.mas_bottom).mas_offset(10);
  44. make.centerX.mas_equalTo(0);
  45. }];
  46. UILabel *guanF=[[UILabel alloc]init];
  47. guanF.text=@"官方认证";
  48. guanF.textColor=kRGBColor(92, 14, 7);
  49. guanF.font=[UIFont systemFontOfSize:24 weight:UIFontWeightMedium];
  50. [self.view addSubview:guanF];
  51. [guanF mas_makeConstraints:^(MASConstraintMaker *make) {
  52. make.top.mas_equalTo(banBen.mas_bottom).mas_offset(50);
  53. make.centerX.mas_equalTo(0);
  54. }];
  55. CGFloat btnW=(JX_SCREEN_WIDTH-114)/3;
  56. NSArray *images=@[@"diyi",@"passes",@"yinguo"];
  57. UIButton *btn=nil;
  58. for (int i=0; i<images.count; i++) {
  59. btn=[[UIButton alloc]init];
  60. [btn setImage:[UIImage imageNamed:images[i]] forState:UIControlStateNormal];
  61. [self.view addSubview:btn];
  62. [btn mas_makeConstraints:^(MASConstraintMaker *make) {
  63. make.width.mas_equalTo(btnW);
  64. make.top.mas_equalTo(guanF.mas_bottom).mas_offset(20);
  65. make.height.mas_equalTo(btnW+20);
  66. if (i == 0) {
  67. make.left.mas_equalTo(20);
  68. } else if(i == 1) {
  69. make.left.mas_equalTo(20 + 1*(btnW+36));
  70. } else {
  71. make.left.mas_equalTo(20 + 2*(btnW+36));
  72. }
  73. }];
  74. }
  75. UIButton *taizi=[[UIButton alloc]init];
  76. [taizi setBackgroundImage:[UIImage imageNamed:@"taizi"] forState:UIControlStateNormal];
  77. taizi.contentMode=UIViewContentModeScaleAspectFill;
  78. [self.view addSubview:taizi];
  79. [taizi mas_makeConstraints:^(MASConstraintMaker *make) {
  80. make.top.mas_equalTo(btn.mas_bottom).mas_offset(0);
  81. make.left.mas_equalTo(0);
  82. make.right.mas_equalTo(0);
  83. make.height.mas_equalTo(20);
  84. }];
  85. CGFloat btnW2=(JX_SCREEN_WIDTH-20)/3;
  86. NSArray *titles=@[@"第一卡格扬格",@"菲律宾PARCOR",@"英国曼岛"];
  87. //NSArray *titles=@[@"英国曼岛博彩监督委员会",@"第一卡格扬格",@"PAGCOR"];
  88. for (int i=0; i<titles.count; i++) {
  89. UIButton *btn=[[UIButton alloc]init];
  90. [btn setTitle:titles[i] forState:UIControlStateNormal];
  91. [btn setTitleColor:kRGBColor(51, 51, 51) forState:UIControlStateNormal];
  92. btn.titleLabel.font=[UIFont systemFontOfSize:9 weight:UIFontWeightRegular];
  93. [self.view addSubview:btn];
  94. [btn mas_makeConstraints:^(MASConstraintMaker *make) {
  95. make.width.mas_equalTo(btnW2);
  96. make.top.mas_equalTo(taizi.mas_bottom).mas_offset(1);
  97. if (i == 0) {
  98. make.left.mas_equalTo(0);
  99. } else if(i == 1) {
  100. make.left.mas_equalTo(10 + 1*(btnW2+0));
  101. } else {
  102. make.left.mas_equalTo(10 + 2*(btnW2+0));
  103. }
  104. }];
  105. }
  106. UILabel *titleL=[[UILabel alloc]init];
  107. titleL.text=@"让未来现在就来";
  108. titleL.textColor=kRGBColor(92, 14, 7);
  109. titleL.font=[UIFont systemFontOfSize:15 weight:UIFontWeightMedium];
  110. [self.view addSubview:titleL];
  111. [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
  112. make.bottom.mas_equalTo(-60);
  113. make.centerX.mas_equalTo(0);
  114. }];
  115. }
  116. /*
  117. #pragma mark - Navigation
  118. // In a storyboard-based application, you will often want to do a little preparation before navigation
  119. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  120. // Get the new view controller using [segue destinationViewController].
  121. // Pass the selected object to the new view controller.
  122. }
  123. */
  124. @end