RQTeachSchoolVideoItemViewModel.m 848 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RQTeachSchoolVideoItemViewModel.m
  3. // JiaPei
  4. //
  5. // Created by 张嵘 on 2023/4/13.
  6. //
  7. #import "RQTeachSchoolVideoItemViewModel.h"
  8. @implementation RQTeachSchoolVideoItemViewModel
  9. - (instancetype)init {
  10. if (self = [super init]) {
  11. CGFloat width = RQ_SCREEN_WIDTH - 32.f;
  12. self.itemSize = CGSizeMake(width, width * (239.f / 345.f));
  13. self.operation = ^{
  14. if(RQ_COMMON_MANAGER.APP_SWITCH )return;//审核版本禁用
  15. if (RQ_USER_MANAGER.isShouldLogin) {
  16. RQPlaceListViewModel *viewModel = [[RQPlaceListViewModel alloc] initWithServices:RQ_APPDELEGATE.services params:@{}];
  17. [RQ_APPDELEGATE.services pushViewModel:viewModel animated:YES];
  18. }
  19. };
  20. }
  21. return self;
  22. }
  23. - (NSString *)itemClassName {
  24. return @"RQTeachSchoolVideoCell";
  25. }
  26. @end