You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

61 lines
1.6 KiB

//
// HomeEmptyViewCell.m
// tongxin
//
// Created by Apple on 2020/4/9.
// Copyright © 2020 xTT. All rights reserved.
//
#import "HomeEmptyViewCell.h"
#import "HomeEmptyView.h"
#import "User.h"
#import "Device.h"
#import "CommonPopView.h"
@interface HomeEmptyViewCell ()
@end
@implementation HomeEmptyViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
self.selectionStyle = UITableViewCellSelectionStyleNone;
self.contentView.backgroundColor = [UIColor clearColor];
self.backgroundColor = [UIColor clearColor];
[self.addDeviceBtn setCornerRadius:3];
self.addDeviceBtn.backgroundColor = mainColor;
[self.addDeviceBtn addTarget:self action:@selector(toAddDeviceVC) forControlEvents:UIControlEventTouchUpInside];
}
/**
跳转 添加设备 指令
*/
-(void)toAddDeviceVC{
//是微信用户的,判断是否有 手机号了,没有需要添加后才能添加设备
WEAKSELF
if(cUser.wxid && (cUser.phone == nil || cUser.phone.length == 0)){
CommonPopView *popView = [CommonPopView new];
[popView bangdinPhone];
return;
}
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"LoginStoryboard" bundle:nil];
UINavigationController *vc = [sb instantiateViewControllerWithIdentifier:@"ScanCodeViewController"];
[self.getViewController.navigationController pushViewController:vc animated:YES];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end