浏览代码

消息列表页面开发
跳转客服邮箱逻辑添加

iOS-Abel 2 年之前
父节点
当前提交
4f1b8b9bc3

+ 21 - 1
Asteria.xcodeproj/project.pbxproj

@@ -118,6 +118,8 @@
 		81C3B45529F66C1700D79294 /* UIView+PublicInit.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C3B45429F66C1700D79294 /* UIView+PublicInit.m */; };
 		81C796242A4FD63A003083B8 /* ASVipCouponsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C796232A4FD63A003083B8 /* ASVipCouponsViewController.m */; };
 		81C796272A4FD898003083B8 /* ASBirthdayTreatViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C796262A4FD898003083B8 /* ASBirthdayTreatViewController.m */; };
+		81C7962B2A539E80003083B8 /* ASMessageListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7962A2A539E80003083B8 /* ASMessageListViewController.m */; };
+		81C7962E2A539F4D003083B8 /* ASMessageListCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 81C7962D2A539F4D003083B8 /* ASMessageListCell.m */; };
 		81DFA5592A4681E900DA708B /* ASPointEranCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 81DFA5582A4681E900DA708B /* ASPointEranCell.m */; };
 		81DFA55D2A46C46D00DA708B /* ASWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 81DFA55C2A46C46D00DA708B /* ASWebViewController.m */; };
 		81DFA5602A46CC8E00DA708B /* CTMediator+ASWebView.m in Sources */ = {isa = PBXBuildFile; fileRef = 81DFA55F2A46CC8E00DA708B /* CTMediator+ASWebView.m */; };
@@ -447,6 +449,10 @@
 		81C796232A4FD63A003083B8 /* ASVipCouponsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASVipCouponsViewController.m; sourceTree = "<group>"; };
 		81C796252A4FD898003083B8 /* ASBirthdayTreatViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASBirthdayTreatViewController.h; sourceTree = "<group>"; };
 		81C796262A4FD898003083B8 /* ASBirthdayTreatViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASBirthdayTreatViewController.m; sourceTree = "<group>"; };
+		81C796292A539E80003083B8 /* ASMessageListViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASMessageListViewController.h; sourceTree = "<group>"; };
+		81C7962A2A539E80003083B8 /* ASMessageListViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASMessageListViewController.m; sourceTree = "<group>"; };
+		81C7962C2A539F4D003083B8 /* ASMessageListCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASMessageListCell.h; sourceTree = "<group>"; };
+		81C7962D2A539F4D003083B8 /* ASMessageListCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASMessageListCell.m; sourceTree = "<group>"; };
 		81DFA5572A4681E900DA708B /* ASPointEranCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASPointEranCell.h; sourceTree = "<group>"; };
 		81DFA5582A4681E900DA708B /* ASPointEranCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ASPointEranCell.m; sourceTree = "<group>"; };
 		81DFA55B2A46C46D00DA708B /* ASWebViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ASWebViewController.h; sourceTree = "<group>"; };
@@ -1134,14 +1140,26 @@
 			path = Extensions;
 			sourceTree = "<group>";
 		};
+		81C796282A539E65003083B8 /* Message */ = {
+			isa = PBXGroup;
+			children = (
+				81C796292A539E80003083B8 /* ASMessageListViewController.h */,
+				81C7962A2A539E80003083B8 /* ASMessageListViewController.m */,
+				81C7962C2A539F4D003083B8 /* ASMessageListCell.h */,
+				81C7962D2A539F4D003083B8 /* ASMessageListCell.m */,
+			);
+			path = Message;
+			sourceTree = "<group>";
+		};
 		81D484DD2A0F40510075DC43 /* UserCenter */ = {
 			isa = PBXGroup;
 			children = (
+				81C796282A539E65003083B8 /* Message */,
 				81E5EE8D2A498FA20075695F /* VipCenter */,
 				81DFA5722A47D91400DA708B /* ConponsAndGiftCard */,
 				811F42432A40531C00DA68F1 /* Points */,
-				81E257F52A12259B004EEF71 /* UserCenter.xcassets */,
 				811F42422A40530200DA68F1 /* UserCenterHome */,
+				81E257F52A12259B004EEF71 /* UserCenter.xcassets */,
 				8134C1AB2A13094F006EB0EC /* Target_userCenter.h */,
 				8134C1AC2A13094F006EB0EC /* Target_userCenter.m */,
 			);
@@ -1890,6 +1908,7 @@
 				81C326712A37020A002EF442 /* ASProductListMenuHeaderView.m in Sources */,
 				81601FF92A2DC78300E4A8F1 /* WMZBannerControl.m in Sources */,
 				81717C912A3BE39C00648139 /* ASProductSortFilterView.m in Sources */,
+				81C7962E2A539F4D003083B8 /* ASMessageListCell.m in Sources */,
 				81717D382A3D322700648139 /* KWNoHisWordsCell.m in Sources */,
 				9AD345FA2A08D60F005CA070 /* ZFLandscapeWindow.m in Sources */,
 				81E257EE2A120756004EEF71 /* ASUserCenterTopView.m in Sources */,
@@ -1964,6 +1983,7 @@
 				81DFA55D2A46C46D00DA708B /* ASWebViewController.m in Sources */,
 				81BEA6832A2D7CF3009D36C4 /* UITableView+ASBase.m in Sources */,
 				81717C992A3BF1DD00648139 /* ASHomeAlertWindow.m in Sources */,
+				81C7962B2A539E80003083B8 /* ASMessageListViewController.m in Sources */,
 				81C3B44429F6612800D79294 /* ASBaseViewController.m in Sources */,
 				81C3266A2A36F035002EF442 /* ASProductListViewModel.m in Sources */,
 				815DA3DF2A396BD300616EF7 /* ASMoreBtCell.m in Sources */,

+ 3 - 0
Asteria/ASUI/SizeDefine.h

@@ -10,6 +10,9 @@
 
 #import "LYTools.h"
 
+#define serviceEmailAdr @"server@asteria.com"
+#define mailServiceUrlStr ([NSString stringWithFormat:@"mailto:%@", serviceEmailAdr])
+
 /// 高
 #define AScreenHeight [UIScreen mainScreen].bounds.size.height
 /// 宽

+ 16 - 0
Asteria/Fuction/UserCenter/Message/ASMessageListCell.h

@@ -0,0 +1,16 @@
+//
+//  ASMessageListCell.h
+//  Asteria
+//
+//  Created by iOS on 2023/7/4.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface ASMessageListCell : UITableViewCell
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 194 - 0
Asteria/Fuction/UserCenter/Message/ASMessageListCell.m

@@ -0,0 +1,194 @@
+//
+//  ASMessageListCell.m
+//  Asteria
+//
+//  Created by iOS on 2023/7/4.
+//
+
+#import "ASMessageListCell.h"
+
+@interface ASMessageListCell ()
+
+@property (nonatomic,strong) UIView *bgV;
+
+@property (nonatomic,strong) UIStackView *stackV;
+
+@property (nonatomic,strong) UIView *unreadTipV;
+@property (nonatomic,strong) UILabel *titleLb;
+@property (nonatomic,strong) UIImageView *imgV;
+@property (nonatomic,strong) UILabel *desLb;
+@property (nonatomic,strong) UILabel *timeLb;
+
+@end
+
+@implementation ASMessageListCell
+
+//- (void)setData:(KWMessageListModel *)m {
+//    self.timeLb.text = m.time;
+//    self.unreadTipV.hidden = m.isReaded == 1;
+//    self.titleLb.text = m.title;
+//    self.desLb.text = m.des;
+//    if ([m.imgUrl isEmpty]) {
+//        self.imgV.hidden = true;
+//    } else {
+//        self.imgV.hidden = false;
+//        [self.imgV sd_setImageWithURL:[NSURL URLWithString:m.imgUrl.urlEncode]];
+//    }
+//}
+
+- (void)setDemoData {
+    self.timeLb.text = @"timtimetimetime";
+    self.unreadTipV.hidden = arc4random()%2 == 1;
+    self.titleLb.text = @"title title title title title title title";
+    self.desLb.text = @"content content content content content content content content content content content content content content content content content content content 134";
+    if (arc4random()%2 == 1) {
+        self.imgV.hidden = true;
+    } else {
+        self.imgV.hidden = false;
+        self.imgV.image = [UIImage imageNamed:@"vip_bg1"];
+    }
+}
+
+- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
+    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
+    if (self) {
+        [self configSubV];
+        [self setDemoData];
+    }
+    return self;
+}
+
+- (void)awakeFromNib {
+    [super awakeFromNib];
+    // Initialization code
+}
+
+- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
+    [super setSelected:selected animated:animated];
+
+    // Configure the view for the selected state
+}
+
+- (void)configSubV {
+    self.selectionStyle = UITableViewCellSelectionStyleNone;
+    
+    [self.contentView addSubview:self.bgV];
+    [self.bgV addSubview:self.titleLb];
+    [self.bgV addSubview:self.unreadTipV];
+    [self.bgV addSubview:self.stackV];
+    [self.stackV addArrangedSubview:self.imgV];
+    [self.stackV addArrangedSubview:self.desLb];
+    [self.stackV addArrangedSubview:self.timeLb];
+    
+    [self.bgV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.equalTo(self.contentView).offset(15);
+        make.bottom.equalTo(self.contentView).offset(-15);
+        make.left.equalTo(self.contentView).offset(10);
+        make.right.equalTo(self.contentView).offset(-10);
+    }];
+    [self.titleLb mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.left.equalTo(self.bgV).offset(13);
+        make.height.equalTo(@20);
+        make.centerX.equalTo(self.bgV);
+    }];
+    [self.unreadTipV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.width.height.equalTo(@10);
+        make.centerY.equalTo(self.titleLb);
+        make.right.equalTo(self.bgV).offset(-20);
+    }];
+    [self.stackV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.equalTo(self.titleLb.mas_bottom).offset(13);
+        make.left.right.equalTo(self.bgV);
+        make.bottom.equalTo(self.bgV).offset(-20);
+    }];
+    
+    [self.imgV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.width.equalTo(self.bgV);
+        make.width.equalTo(self.imgV.mas_height).multipliedBy(355/115.0);
+    }];
+    [self.timeLb mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.height.equalTo(@14);
+    }];
+    
+}
+
+- (UIView *)bgV {
+    if (!_bgV) {
+        UIView *v = [[UIView alloc] init];
+        v.backgroundColor = [UIColor colorWithHexString:@"#F8F8F8"];
+        _bgV = v;
+    }
+    return  _bgV;
+}
+
+- (UIView *)unreadTipV {
+    if (!_unreadTipV) {
+        UIView *v = [[UIView alloc] init];
+        v.backgroundColor = [UIColor colorWithHexString:@"#E60013"];
+        v.layer.cornerRadius = 5;
+        v.layer.masksToBounds = true;
+        _unreadTipV = v;
+    }
+    return  _unreadTipV;
+}
+
+-(UIStackView *)stackV {
+    if (!_stackV) {
+        UIStackView *stv = [[UIStackView alloc] init];
+        stv.axis = UILayoutConstraintAxisVertical;
+        stv.spacing = 10;
+        stv.alignment = UIStackViewAlignmentFill;
+        stv.distribution = UIStackViewDistributionFill;
+        _stackV = stv;
+    }
+    return _stackV;
+}
+
+- (UILabel *)titleLb {
+    if (!_titleLb) {
+        UILabel *lb = [UILabel new];
+        lb.textColor = [UIColor blackColor];
+        lb.textAlignment = NSTextAlignmentCenter;
+        lb.font = [UIFont fontWithName:Rob_Regular size:14];
+        lb.numberOfLines = 1;
+        _titleLb = lb;
+    }
+    return _titleLb;
+}
+
+- (UILabel *)desLb {
+    if (!_desLb) {
+        UILabel *lb = [UILabel new];
+        lb.textColor = [[UIColor blackColor] colorWithAlphaComponent:0.8];
+        lb.textAlignment = NSTextAlignmentCenter;
+        lb.font = [UIFont fontWithName:Rob_Regular size:12];
+        lb.numberOfLines = 1;
+        _desLb = lb;
+    }
+    return _desLb;
+}
+
+- (UILabel *)timeLb {
+    if (!_timeLb) {
+        UILabel *lb = [UILabel new];
+        lb.textColor = [[UIColor colorWithHexString:@"#0b0b0b"] colorWithAlphaComponent:1];
+        lb.textAlignment = NSTextAlignmentCenter;
+        lb.font = [UIFont fontWithName:Rob_Regular size:12];
+        lb.numberOfLines = 1;
+        _timeLb = lb;
+    }
+    return _timeLb;
+}
+
+- (UIImageView *)imgV {
+    if (!_imgV) {
+        UIImageView *v = [[UIImageView alloc] init];
+        v.contentMode = UIViewContentModeScaleAspectFill;
+        v.clipsToBounds = true;
+        _imgV = v;
+    }
+    return _imgV;
+}
+
+
+@end

+ 16 - 0
Asteria/Fuction/UserCenter/Message/ASMessageListViewController.h

@@ -0,0 +1,16 @@
+//
+//  ASMessageListViewController.h
+//  Asteria
+//
+//  Created by iOS on 2023/7/4.
+//
+
+#import "ASBaseViewController.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface ASMessageListViewController : ASBaseViewController
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 164 - 0
Asteria/Fuction/UserCenter/Message/ASMessageListViewController.m

@@ -0,0 +1,164 @@
+//
+//  ASMessageListViewController.m
+//  Asteria
+//
+//  Created by iOS on 2023/7/4.
+//
+
+#import "ASMessageListViewController.h"
+#import "ASMessageListCell.h"
+
+@interface ASMessageListViewController () <UITableViewDelegate,UITableViewDataSource>
+
+@property (nonatomic, strong) UITableView *tableV;
+
+@end
+
+@implementation ASMessageListViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    [self loadSubVs];
+//    self.vm = [KWMessageListViewModel new];
+    self.titleStr = @"Message";
+    [self setNav];
+    
+}
+
+- (void)viewWillAppear:(BOOL)animated {
+    [super viewWillAppear:animated];
+    [self.tableV.mj_header beginRefreshing];
+}
+
+- (void)getData {
+    [self.tableV.mj_header endRefreshing];
+//    [MBProgressHUD showHUDAddedTo:self.view animated:true];
+//    @weakify(self);
+//    [self.vm getMessageList:self.tableV page:1 complate:^{
+//        @strongify(self);
+//        [MBProgressHUD hideHUDForView:self.view animated:true];
+//        if (self.vm.messageList.count == 0) {
+//            [self showNoDataV:self.tableV mes:@"No News Yet"];
+//        } else {
+//            [self hideNoDataV];
+//        }
+//        [self.tableV reloadData];
+//    }];
+    
+    
+}
+
+- (void)setNav {
+    self.customNavBar.backgroundColor = UIColor.whiteColor;
+    self.statusBgV.backgroundColor = UIColor.whiteColor;
+    
+    [self setNavRightSearch:^{
+        
+    }];
+    
+    return;
+    
+    UIButton *readAllBt = [UIButton buttonWithType:UIButtonTypeCustom];
+    [readAllBt setImage:[UIImage imageNamed:@"nav_message_read"] forState:UIControlStateNormal];
+    UIView *v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];
+    v.backgroundColor = UIColor.clearColor;
+    readAllBt.frame = v.bounds;
+    [readAllBt addTarget:self action:@selector(rightBtAction) forControlEvents:UIControlEventTouchUpInside];
+    [v addSubview:readAllBt];
+    [self.customNavBar addSubview:v];
+    [v mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.centerY.equalTo(self.customNavBar);
+        make.right.equalTo(self.customNavBar).offset(-15);
+        make.width.height.equalTo(@40);
+    }];
+//    UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithCustomView:v];
+//    self.navigationItem.rightBarButtonItem = rightItem;
+}
+
+- (void)rightBtAction {
+    [MBProgressHUD showHUDAddedTo:self.view animated:true];
+//    @weakify(self);
+//    [self.vm getMessageRead:self.tableV messageId:@"" type:@"2" complate:^{
+//        [MBProgressHUD hideHUDForView:weak_self.view animated:true];
+//        [self.tableV.mj_header beginRefreshing];
+//    }];
+}
+
+- (void)loadSubVs {
+    [self.view addSubview:self.tableV];
+    [self.tableV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.right.equalTo(self.view);
+        make.top.equalTo(self.customNavBar.mas_bottom);
+        make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
+    }];
+    
+}
+
+- (UITableView *)tableV {
+    if (!_tableV) {
+        UITableView *tabV = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
+        tabV.backgroundColor = [UIColor colorWithHexString:@"#ffffff"];
+        [tabV registerClass:[ASMessageListCell class] forCellReuseIdentifier:@"ASMessageListCell"];
+        tabV.delegate = self;
+        tabV.dataSource = self;
+        tabV.rowHeight = UITableViewAutomaticDimension;
+        tabV.estimatedRowHeight = 100;
+        tabV.separatorStyle = UITableViewCellSeparatorStyleNone;
+        @weakify(self);
+        tabV.mj_header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
+            [weak_self getData];
+        }];
+        _tableV = tabV;
+    }
+    return _tableV;
+}
+
+
+-(void)pushToProductList:(NSString *)name typeid:(NSString *)typeId {
+    if (typeId == nil || [typeId isEqualToString:@""]) {
+        return;
+    }
+    if (name == nil || [name isEqualToString:@""]) {
+        name = @"Products";
+    }
+//    KWProductListViewController *vc = [[KWProductListViewController alloc] init];
+//    vc.titleName = name;
+//    vc.type = typeId;
+//    [self.navigationController pushViewController:vc animated:YES];
+
+}
+
+-(void)goto_WKM_GoodsDetailsC:(NSString *)entity_id {
+//    WKM_GoodsDetailsC *vc = [[WKM_GoodsDetailsC alloc]init];
+//    vc.entity_id = entity_id;
+//    [self.navigationController pushViewController:vc animated:YES];
+
+}
+
+
+
+#pragma mark - UITableViewDelegate,UITableViewDataSource
+
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+//    KWMessageListModel *m = self.vm.messageList[indexPath.row];
+//
+//    [[KWPushMessageHandler shareInstance] handleMessage:m.title messageId:m.message_id pushPara:m.push_para pushType:m.push_type];
+    
+    return;
+    
+}
+
+- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
+    
+    return  40;//self.vm.messageList.count;
+}
+
+- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
+    ASMessageListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ASMessageListCell" forIndexPath:indexPath];
+//    KWMessageListModel *m = self.vm.messageList[indexPath.row];
+//    [cell setData:m];
+    
+    return  cell;
+}
+
+@end

+ 13 - 0
Asteria/Fuction/UserCenter/UserCenterHome/ASUserCenterViewController.m

@@ -13,6 +13,7 @@
 #import "ASCouponsListViewController.h"
 #import "ASPointsHomeViewController.h"
 #import "ASVipCenterViewController.h"
+#import "ASMessageListViewController.h"
 
 
 @interface ASUserCenterViewController ()<UITableViewDelegate,UITableViewDataSource>
@@ -77,6 +78,18 @@
                 [weakSelf.navigationController pushViewController:vc animated:true];
             }
                 break;
+            case 4: {
+                NSURL *url = [NSURL URLWithString:mailServiceUrlStr];
+                if (url != nil && [UIApplication.sharedApplication canOpenURL:url]) {
+                    [UIApplication.sharedApplication openURL:url options:nil completionHandler:nil];
+                }
+            }
+                break;
+            case 5: {
+                ASMessageListViewController *vc = [ASMessageListViewController new];
+                [weakSelf.navigationController pushViewController:vc animated:true];
+            }
+                break;
             default:
                 break;
         }

+ 0 - 98
Asteria/Fuction/UserCenter/VipCenter/ASBirthdayTreatViewController.m

@@ -146,87 +146,6 @@
         make.height.greaterThanOrEqualTo([NSNumber numberWithFloat:SCREEN_HEIGHT - (NavigationBarHeight+StatusHeight)]);
     }];
     
-//    UIImageView *tl_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_top_left"]];
-//    UIImageView *tr_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_top_right"]];
-//    UIImageView *bl_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_bottom_left"]];
-//    UIImageView *br_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_bottom_right"]];
-//    UIImageView *top_line_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_line_top"]];
-//    UIImageView *bottom_line_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_line_top"]];
-//    UIImageView *left_line_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_line_left"]];
-//    UIImageView *right_line_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_line_left"]];
-//
-//    UIImageView *top_left_bg_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_top_left_bg"]];
-//    UIImageView *bottom_right_bg_imgV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"mine_birth_top_left_bg"]];
-//
-//    [self.bgV addSubview:top_left_bg_imgV];
-//    [self.bgV addSubview:bottom_right_bg_imgV];
-//    [self.bgV addSubview:tl_imgV];
-//    [self.bgV addSubview:tr_imgV];
-//    [self.bgV addSubview:bl_imgV];
-//    [self.bgV addSubview:br_imgV];
-//    [self.bgV addSubview:top_line_imgV];
-//    [self.bgV addSubview:bottom_line_imgV];
-//    [self.bgV addSubview:left_line_imgV];
-//    [self.bgV addSubview:right_line_imgV];
-    
-//    [top_left_bg_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.top.equalTo(@0);
-//        make.left.equalTo(self.bgV).offset(0);
-//        make.width.height.equalTo(@180);
-//    }];
-//
-//    [bottom_right_bg_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.bottom.equalTo(@0);
-//        make.right.equalTo(self.bgV).offset(0);
-//        make.width.height.equalTo(@180);
-//    }];
-//
-//    bottom_right_bg_imgV.transform = CGAffineTransformMakeRotation(M_PI);
-//
-//    [tl_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.top.equalTo(@50);
-//        make.left.equalTo(self.bgV).offset(20);
-//        make.width.height.equalTo(@24);
-//    }];
-//    [tr_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.top.equalTo(@50);
-//        make.right.equalTo(self.bgV).offset(-20);
-//        make.width.height.equalTo(@24);
-//    }];
-//    [bl_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.bottom.equalTo(self.bgV).offset(-50);
-//        make.left.equalTo(self.bgV).offset(20);
-//        make.width.height.equalTo(@24);
-//    }];
-//    [br_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.bottom.equalTo(self.bgV).offset(-50);
-//        make.right.equalTo(self.bgV).offset(-20);
-//        make.width.height.equalTo(@24);
-//    }];
-//
-//    [top_line_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.centerX.equalTo(self.bgV);
-//        make.width.equalTo(self.bgV).offset(-120);
-//        make.top.equalTo(self.bgV).offset(50);
-//    }];
-//    [bottom_line_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.centerX.equalTo(self.bgV);
-//        make.width.equalTo(self.bgV).offset(-120);
-//        make.bottom.equalTo(self.bgV.mas_bottom).offset(-50);
-//    }];
-//
-//    [left_line_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.left.equalTo(tl_imgV.mas_left);
-//        make.top.equalTo(tl_imgV.mas_bottom).offset(20);
-//        make.bottom.equalTo(bl_imgV.mas_top).offset(-20);
-//    }];
-//
-//    [right_line_imgV mas_makeConstraints:^(MASConstraintMaker *make) {
-//        make.right.equalTo(tr_imgV.mas_right);
-//        make.top.equalTo(tr_imgV.mas_bottom).offset(20);
-//        make.bottom.equalTo(br_imgV.mas_top).offset(-20);
-//    }];
-    
     
     [self.bgV addSubview:self.bgImgV];
     [self.bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -393,23 +312,6 @@
     return  _contentLB;
 }
 
-//- (UIView *)lineV {
-//    if (!_lineV) {
-//        UIView *v = [UIView new];
-//        v.backgroundColor = UIColor.clearColor;
-//        UIView *line = [UIView new];
-//        line.backgroundColor = UIColor.blackColor;
-//        [v addSubview:line];
-//        [line mas_makeConstraints:^(MASConstraintMaker *make) {
-//            make.width.equalTo([NSNumber numberWithFloat:SCREEN_WIDTH-140]);
-//            make.height.equalTo(@1);
-//            make.center.equalTo(v);
-//        }];
-//        _lineV = v;
-//    }
-//    return  _lineV;
-//}
-
 - (UILabel *)codeDesLB {
     if (!_codeDesLB) {
         UILabel *lb = [[UILabel alloc] init];