12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- //
- // SPSBSafeProblemsListViewController.m
- // 我的社保
- //
- // Created by shanp on 2021/5/22.
- //
- #import "SPSBSafeProblemsListViewController.h"
- #import "SPSBUIGeneralHeader.h"
- #import "SPSBSafeProblemDetailsViewController.h"
- @interface SPSBSafeProblemsListViewController () {
- NSArray *_questionArray;
- }
- @end
- @implementation SPSBSafeProblemsListViewController
- - (instancetype)init {
- self = [super initWithStyle:UITableViewStylePlain backgroundColor:SPSBTableViewBackgroundColorGray];
- if (!self) return nil;
- return self;
- }
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self initData];
- [self setupUI];
- }
- - (void)initData {
- _questionArray = @[
- @{@"question": @"我的社保账号如何注册、登录?", @"answer": @"目前“我的社保”仅支持中国大陆手机注册和登录。\n如果你第一次使用APP,注册时请直接填写中国大陆手机号码,设置登录密码,并收取手机号验证码。若填写的验证码正确,则注册成功。\n注册成功后,可以使用手机号+密码登录系统。\n我们有与第三方合作,双方约定使用联合登录方式。如果你曾通过第三方账号使用我的社保,可以直接使用第三方账号登录我的社保APP,若不知道初始密码可以使用忘记密码功能找回密码。"},
- @{@"question": @"为何收不到验证码?", @"answer": @"如果收不到验证码,请检查你的手机是否拦截了我们的短信(下发短信的号码前缀一般是1069或者1065)。\n苹果手机请检查设置-信息-黑名单: 不要添加我们的短信号码\n安卓手机请打开短信-拦截短信-设置: 不要添加我们的短信号码为黑名单,可以添加我们的短信号码为白名单。不同品牌的安卓手机设置可能会有所不同。\n同时,请检查手机助手,手机管家等第三方软件的拦截功能。\n若还是确定收不到验证码,请联系在线客服。"},
- @{@"question": @"参保人信息在平台是否安全?", @"answer": @"参保人是指购买社保或者缴纳公积金的人,可以不同于持有账号的人。一个账号下可以挂多个参保人。\n参保人信息在“我的-购买人员”下可见。\n为了保护参保人隐私信息,平台对参保人信息采取了加密措施。身份证照片隐藏,身份证号打星号作模糊化处理。若需要查看身份证号码,需要用手机验证码验证才可见。\n若需要删除参保人信息,可以点击我的-购买人员-删除 进行删除。\n若温馨提示:参保人一旦删除将不得恢复。请谨慎操作。"},
- @{@"question": @"不记得密码怎么办?", @"answer": @"系统登录需要手机号+密码登录。若不记得密码可以使用系统的忘记密码功能。具体操作如下:\n点击我的-页面上方的注册登录进入登录页面\n点击右下角的“忘记密码”\n填写账号,并收取验证码\n设置新密码\n完成设置后可以使用手机号+新密码登录系统。"},
- @{@"question": @"可以用不同的手机号为同一个参保人购买社保吗?", @"answer": @"若为同一参保人购买社保、公积金,建议使用同一账号。若您已更换手机号,可使用“更换手机号”功能,操作如下:\n登录APP,点击“我的-账号与安全”,\n点击“更换手机号”,输入新的手机号并收取验证码即可完成更换手机号。\n用新的手机号登录,原来账户的信息,包括参保人资料、订单记录都可查询到。\n若用新的手机号重新注册并为同一个参保人购买社保、公积金,也是允许的,但是由于原来账号(旧手机号)下的用户信息带不过来,导致需要重新录入参保人信息等重复操作,所以不建议哦。"}
- ];
- }
- #pragma mark - Action
- #pragma mark - Network Action
- #pragma mark - Delegate & DataSource
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
- UILabel *titleLabel = [UILabel convenienceWithFont:spsb_font(16) text:_questionArray[indexPath.row][@"question"] textColor:spsb_333333_color()];
- [cell.contentView addSubview:titleLabel];
- [titleLabel makeConstraints:^(JXHConstraintMaker *make) {
- make.leading.equalTo(15);
- make.trailing.lessThanOrEqualTo(-50);
- make.centerY.equalTo(0);
- }];
-
- UIImageView *arrow = [[UIImageView alloc] initWithImage:jxh_getImage(list_arrow)];
- [cell.contentView addSubview:arrow];
- [arrow makeConstraints:^(JXHConstraintMaker *make) {
- make.trailing.equalTo(-15);
- make.centerY.equalTo(0);
- }];
- if (indexPath.row != _questionArray.count - 1) {
- [cell.contentView createLineWithLocation:JXHLineLocationBottom headOffset:15 footOffset:0];
- }
-
- return cell;
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return _questionArray.count;
- }
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
- [tableView deselectRowAtIndexPath:indexPath animated:false];
- SPSBSafeProblemDetailsViewController *vc = SPSBSafeProblemDetailsViewController.new;
- vc.spsb_question = _questionArray[indexPath.row];
- [self.navigationController pushViewController:vc animated:true];
- }
- #pragma mark - UI
- - (void)setupUI {
- self.title = @"常见问题";
- [self setupTableView];
- }
- - (void)setupTableView {
- self.tableView.rowHeight = 50.f;
-
- self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:(CGRect){0, 0, jxh_screenWidth(), 12}];
- }
- @end
|