-(void)loadData
{
//使用(网络请求类)做网络数据请求
NSDictionary *dic=@{@"pageNum":@(1),@"userId":@(10)};
[NetRequestManager requestWithUrl:@"http://123.126.40.109:7003/asmr/videos/A1100101.shtml" withRequestType:POST postParameters:dic success:^(NSDictionary *resDict) {
NSLog(@"wwwwwwwwwwwwwwwwwwww%@",resDict);
//数据请求成功:
//数据处理 数组字典 -> 数组模型:
self.dataSourceArr = [videoModel mj_objectArrayWithKeyValuesArray:[resDict objectForKey:@"result"]];
NSLog(@"%@",self.dataSourceArr);
[self.collection reloadData];
} failure:^(NSError *error) {
NSLog(@"home网络请求错误:%@",error);
}];
}