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.

81 lines
3.2 KiB

//
// LineStatusViewController.m
// tongxin
//
// Created by ecell on 2023/6/1.
// Copyright © 2023 xTT. All rights reserved.
//
#import "LineStatusViewController.h"
#import "LineStatusTableViewCell.h"
#import "CommonTableView.h"
@interface LineStatusViewController ()
@property (nonatomic ,strong) CommonTableView *listTable;
@property (nonatomic ,strong) NSArray *imgArr;
@property (nonatomic ,strong) NSArray *titleArr;
@property (nonatomic ,strong) NSArray *textsArr;
@end
@implementation LineStatusViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.zx_navTitle = @"如何解决";
self.imgArr = @[@"lineStatus_01",@"lineStatus_02",@"lineStatus_03"];
self.titleArr = @[@"手表处于关机状态",@"手表网络信号异常",@"其他问题"];
self.textsArr = @[@"• 手表耗尽电量关机:请充电开机后尝试;\n• 手表其他原因关机:请长按电源键开机。",
@"• 可在手表表盘下滑,查看手表网络信号;\n• 手表处于信号弱的区域,请稍后尝试查看;\n• 手表欠费,请为手表 SIM 卡号充值后,长按手表电源键重启手表重试:\n• 手表 SIM 卡接触不良,请重新插拔或更换 SIM 卡后尝试;\n• 手表曾出国漫游使用,请尝试将 SIM 卡插入手机恢复信号显示后重新装回手表上使用。",
@"• 请在手机后台关闭“作业帮手表”App 后重新打开尝试;\n• “作业帮手表”App 与手表未升级至最新版本,请升级至最新版本后尝试,如果仍频繁出现未连接网络的提示,请联系手表 SIM卡运营商后确认问题。"];
[self.view addSubview:self.listTable];
[self.listTable mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.view);
make.top.equalTo(self.view).offset(iPhoneX_NavHeight);
make.bottom.equalTo(self.view.mas_bottom);
}];
}
- (CommonTableView *)listTable
{
if (!_listTable)
{
_listTable = [[CommonTableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain cellHeight:126 cellRow:self.imgArr.count isAdaptive:YES isLine:NO commonCell:LineStatusTableViewCell.class
createCell:^(ZZTableViewCell * _Nonnull cells, NSIndexPath * _Nonnull indexPath) {
LineStatusTableViewCell *cell = (LineStatusTableViewCell *)cells;
[cell cellWithImg:self.imgArr[indexPath.row] Title:self.titleArr[indexPath.row] Texts:self.textsArr[indexPath.row]];
} selectedCell:^(UITableView * _Nonnull tableView, NSIndexPath * _Nonnull indexPath) {
} DidscrollView:^(UIScrollView * _Nonnull scrollView) {
}];
_listTable.backgroundColor = KKClearColor;
}
return _listTable;
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end