SPSBSafeProblemsListViewController.m 5.7 KB

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