123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- //
- // JXMybossVc.m
- // shiku_im
- //
- // Created by 123 on 2020/5/18.
- // Copyright © 2020 Reese. All rights reserved.
- //
- #import "JXMybossVc.h"
- @interface JXMybossVc ()
- @property (nonatomic,weak) UIButton *bossQQL;
- @property (nonatomic,weak) UIButton *myQQL;
- @end
- @implementation JXMybossVc
- - (void)viewWillAppear:(BOOL)animated{
- [super viewWillAppear:animated];
- [self.navigationController setNavigationBarHidden:NO];
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.navigationItem.title=@"我的上级";
- self.view.backgroundColor=kRGBColor(246, 246, 246);
- //
-
- [self defineNavBar:@"我的上级" andRinghtBtnImg:@""];
-
- UIImageView *bgIMG=[[UIImageView alloc]init];
- bgIMG.image=[UIImage imageNamed:@"BG2111"];
- [self.view addSubview:bgIMG];
- [bgIMG mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(JX_SCREEN_TOP);
- make.right.left.mas_equalTo(20);
- make.bottom.mas_equalTo(0);
- }];
-
-
- UILabel *titleL=[[UILabel alloc]init];
- titleL.font=[UIFont systemFontOfSize:18 weight:UIFontWeightRegular];
- titleL.textColor=kRGBColor(106, 106, 106);
- titleL.text=@"尊敬的会员:";
- [self.view addSubview:titleL];
- [titleL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(JX_SCREEN_TOP+10);
- make.left.mas_equalTo(20);
- }];
-
- UILabel *usertit=[[UILabel alloc]init];
- usertit.text=@" 平台有4点温馨提示,请您注意!\n\n 1、上级导师、管理员、群主都是属于吉利彩票平台的独家代理,他们是不会给您推荐其他平台的!\n\n 2、如果推荐其他平台,就是要骗取您的资金。请您向在线客服进行举报,我们将予以重奖。\n\n 3、【HTTPS://WWW.7520.COM】是吉利彩票的国际域名(备用域名7520.VIP),请您认准域名登录。\n\n 4、每次充值前请您到官方充值窗口或联系在线客服获取卡号。如果是您的上级发给您的充值卡号,请您一定要再三核对是否与本平台的官方卡号一致,谨防上当受骗。";
- usertit.numberOfLines=0;
- usertit.font=[UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
- usertit.textColor=kRGBColor(106, 106, 106);
- [self.view addSubview:usertit];
- [usertit mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(titleL.mas_bottom).mas_offset(20);
- make.left.mas_equalTo(20);
- make.right.mas_equalTo(-20);
- }];
-
-
-
- UILabel *bossQQL=[[UILabel alloc]init];
- bossQQL.text=@"您的上级QQ";
- bossQQL.font=[UIFont systemFontOfSize:16 weight:UIFontWeightRegular];
- [self.view addSubview:bossQQL];
- [bossQQL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(usertit.mas_bottom).mas_offset(30);
- make.left.mas_equalTo(20);
- }];
-
- UIButton *bossQQLValue=[[UIButton alloc]init];
- [bossQQLValue setTitle:@"13254650" forState:UIControlStateNormal];
- //bossQQLValue.contentMode=UIViewContentModeScaleAspectFit;
- [bossQQLValue setImage:[UIImage imageNamed:@"qqValue"] forState:UIControlStateNormal];
- [bossQQLValue setTitleColor:kRGBColor(11, 11, 11) forState:UIControlStateNormal];
- [self.view addSubview:bossQQLValue];
- self.bossQQL=bossQQLValue;
- [bossQQLValue mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerY.mas_equalTo(bossQQL.mas_centerY).mas_offset(0);
- make.centerX.mas_equalTo(self.view.mas_centerX);
- //make.height.mas_equalTo(15);
- }];
-
- UIButton *addBtn=[[UIButton alloc]init];
- [addBtn setTitle:@" 复制 " forState:UIControlStateNormal];
- addBtn.titleLabel.font=[UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
- [addBtn setTitleColor:kRGBColor(206, 28, 28) forState:UIControlStateNormal];
- addBtn.backgroundColor=[UIColor whiteColor];
- [self.view addSubview:addBtn];
- [addBtn addTarget:self action:@selector(fuzhiBtnQQClick) forControlEvents:UIControlEventTouchUpInside];
- [addBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(usertit.mas_bottom).mas_offset(20);
- make.right.mas_equalTo(-20);
- make.height.mas_equalTo(36);
- }];
-
-
- UILabel *line_VIew=[[UILabel alloc]init];
- line_VIew.backgroundColor=kRGBColor(222, 222, 222);
- [self.view addSubview:line_VIew];
- [line_VIew mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(addBtn.mas_bottom).mas_offset(8);
- make.right.left.mas_equalTo(20);
- make.height.mas_equalTo(1);
- }];
-
-
-
- UILabel *myQQL=[[UILabel alloc]init];
- myQQL.text=@"您的上级微信";
- myQQL.font=[UIFont systemFontOfSize:16 weight:UIFontWeightRegular];
- [self.view addSubview:myQQL];
- [myQQL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(line_VIew.mas_bottom).mas_offset(10);
- make.left.mas_equalTo(20);
- }];
-
-
- UIButton *wxBtnValue=[[UIButton alloc]init];
- [wxBtnValue setTitle:@"13254650" forState:UIControlStateNormal];
- [wxBtnValue setImage:[UIImage imageNamed:@"wxValue"] forState:UIControlStateNormal];
- [wxBtnValue setTitleColor:kRGBColor(11, 11, 11) forState:UIControlStateNormal];
- [self.view addSubview:wxBtnValue];
- self.myQQL=wxBtnValue;
- [wxBtnValue mas_makeConstraints:^(MASConstraintMaker *make) {
- make.centerY.mas_equalTo(myQQL.mas_centerY).mas_offset(0);
- make.centerX.mas_equalTo(self.view.mas_centerX);
- make.height.mas_equalTo(15);
- }];
-
-
- UIButton *fuzhiBtn=[[UIButton alloc]init];
- [fuzhiBtn setTitle:@" 复制 " forState:UIControlStateNormal];
- fuzhiBtn.titleLabel.font=[UIFont systemFontOfSize:14 weight:UIFontWeightMedium];
- [fuzhiBtn setTitleColor:kRGBColor(206, 28, 28) forState:UIControlStateNormal];
- fuzhiBtn.backgroundColor=[UIColor whiteColor];
- [self.view addSubview:fuzhiBtn];
- [fuzhiBtn addTarget:self action:@selector(fuzhiBtnWXClick) forControlEvents:UIControlEventTouchUpInside];
- [fuzhiBtn mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.mas_equalTo(line_VIew.mas_bottom).mas_offset(0);
- make.right.mas_equalTo(-20);
- make.height.mas_equalTo(36);
- }];
-
-
- UILabel *vesionL=[[UILabel alloc]init];
- vesionL.text=@" 即信版本号:2.0.3";
- vesionL.textAlignment=NSTextAlignmentCenter;
- vesionL.font=[UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
- [self.view addSubview:vesionL];
- [vesionL mas_makeConstraints:^(MASConstraintMaker *make) {
- make.bottom.mas_equalTo(self.view.mas_bottom).mas_offset(-44);
- make.left.mas_equalTo(20);
- make.right.mas_equalTo(-20);
- }];
-
-
- long time = (long)[[NSDate date] timeIntervalSince1970];
- time = (time *1000 + g_server.timeDifference);
- NSString *salt = [NSString stringWithFormat:@"%ld", time];
-
-
- NSString *membershipAccount=[[NSUserDefaults standardUserDefaults] objectForKey:@"membershipAccount_ID"];
-
- [g_server get_act_GetshangXiaJi:membershipAccount salt:salt toView:self];
-
-
- }
- //复制qq
- - (void)fuzhiBtnQQClick{
-
- UIPasteboard *paseBoard=[UIPasteboard generalPasteboard];
- paseBoard.string=_strWXURL[@"qq"];
- [SVProgressHUD showWithStatus:@"复制成功"];
- [SVProgressHUD dismissWithDelay:1.0];
-
- }
- //复制微信号
- - (void)fuzhiBtnWXClick{
-
- UIPasteboard *paseBoard=[UIPasteboard generalPasteboard];
- paseBoard.string=_strWXURL[@"wx"];
- [SVProgressHUD showWithStatus:@"复制成功"];
- [SVProgressHUD dismissWithDelay:1.0];
-
- }
- //服务端返回数据
- -(void) didServerResultSucces:(JXConnection*)aDownload dict:(NSDictionary*)dict array:(NSArray*)array1{
-
- if([aDownload.action isEqualToString:act_GetshangXiaJi]){
- NSDictionary * currentDictionary = [dict objectForKey:@"superior"];
-
- _strWXURL=currentDictionary;
- //[self.bossQQL setImage:[UIImage imageNamed:@"qqValue"] forState:UIControlStateNormal];
- [self.bossQQL setTitle:[NSString stringWithFormat:@" %@ ",currentDictionary[@"qq"]] forState:UIControlStateNormal];
-
- //[self.myQQL setImage:[UIImage imageNamed:@"wxValue"] forState:UIControlStateNormal];
- [self.myQQL setTitle:[NSString stringWithFormat:@" %@ ",currentDictionary[@"wx"]] forState:UIControlStateNormal];
-
-
-
- }
-
-
-
- }
- - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
-
-
- }
- -(int) didServerResultFailed:(JXConnection*)aDownload dict:(NSDictionary*)dict{
-
- if( [aDownload.action isEqualToString:act_GetSerServeWxget] ){
-
-
-
- }
- return hide_error;
- }
- @end
|