1234567891011121314151617181920212223242526272829 |
- //
- // RQTeachSchoolVideoItemViewModel.m
- // JiaPei
- //
- // Created by 张嵘 on 2023/4/13.
- //
- #import "RQTeachSchoolVideoItemViewModel.h"
- @implementation RQTeachSchoolVideoItemViewModel
- - (instancetype)init {
- if (self = [super init]) {
- CGFloat width = RQ_SCREEN_WIDTH - 32.f;
- self.itemSize = CGSizeMake(width, width * (239.f / 345.f));
- self.operation = ^{
- if(RQ_COMMON_MANAGER.APP_SWITCH )return;
- if (RQ_USER_MANAGER.isShouldLogin) {
- RQPlaceListViewModel *viewModel = [[RQPlaceListViewModel alloc] initWithServices:RQ_APPDELEGATE.services params:@{}];
- [RQ_APPDELEGATE.services pushViewModel:viewModel animated:YES];
- }
- };
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQTeachSchoolVideoCell";
- }
- @end
|