PeriodVC.m 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // PeriodVC.m
  3. // JSJPCoach
  4. //
  5. // Created by apple on 2017/3/20.
  6. // Copyright © 2017年 Danson. All rights reserved.
  7. //
  8. #import "PeriodVC.h"
  9. @interface PeriodVC ()
  10. {
  11. UILabel *todayLabel, *allLabel, *noticeLabel;
  12. }
  13. @end
  14. @implementation PeriodVC
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. // todayLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 30, kSize.width - 40, 30)];
  18. // [todayLabel setText:@"您今日已带教0名学员" Font:Font18 TextColor:[UIColor whiteColor]];
  19. // [self.view addSubview:todayLabel];
  20. //
  21. // allLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 60, kSize.width - 40, 30)];
  22. // [allLabel setText:@"您一共带教0名学员" Font:Font17 TextColor:backGroundColor];
  23. // [self.view addSubview:allLabel];
  24. //
  25. //
  26. // UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(kSize.width - 20 - 32, (60 - 32)/2.0 + 30, 32, 32)];
  27. // [button setImage:[UIImage imageNamed:@"passEye"] forState:UIControlStateNormal];
  28. // [button target:self];
  29. // [self.view addSubview:button];
  30. //
  31. //
  32. // NSString *string = @"教练您好:\n 本系统采用分钟学时的方法计算学时,所以请您在带教的过程中注意以下几点: \n\n1、确保您的手机能正常联网,3G以上网络能给您带来更好的效果 \n\n2、带教过程中,规定不允许离开训练场和打电话,系统会实时采集您的位置,用于学员分钟学时有效性判断,请确保网络正常连接,系统允许临时接电话,默认15分钟内,具体按管理部门规定,如果超过规定时间,学员的分钟学时全部无效 \n\n3、如果您选择计时收费,请确认您已经选择好了培训科目和培训价格,否则系统无法进行计费训练 \n\n4、培训结束后,学员可以对您的带教进行评价或投诉,一旦发生投诉,系统将会上传至省监管平台,将会影响您的信誉 \n\n5、为确保学员分钟学时有效,请确保您跟学员的位置在规定范围内,否则学员分钟学时无效 \n\n6、如果是收费训练,在训练结束后,可以在我的订单中选择收款,生成二维码,学员扫码支付成功后,学员学时有效,请提醒您的学员及时支付,否则,学时将不会计入有效学时";
  33. //
  34. // CGFloat noticeH = [string heightForWid:kSize.width - 40 Font:Font17] + 10;
  35. //
  36. // noticeLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 100, kSize.width - 40, noticeH)];
  37. // [noticeLabel setText:string Font:Font17 TextColor:backGroundColor];
  38. // noticeLabel.numberOfLines = 0;
  39. // [self.view addSubview:noticeLabel];
  40. }
  41. - (void)btnClick:(UIButton *)sender
  42. {
  43. sender.selected = !sender.selected;
  44. noticeLabel.hidden = sender.selected;
  45. }
  46. - (void)didReceiveMemoryWarning {
  47. [super didReceiveMemoryWarning];
  48. }
  49. @end