修正首页排行榜显示判断
This commit is contained in:
@@ -113,8 +113,12 @@
|
||||
- (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
XPNewHomeItemCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([XPNewHomeItemCell class]) forIndexPath:indexPath];
|
||||
if(indexPath.row < self.itemList.count){
|
||||
cell.itemModel = self.itemList[indexPath.row];
|
||||
cell.rankAvatarsModelArray = self.rankAvatars;
|
||||
if (indexPath.row == 0) {
|
||||
cell.rankAvatarsModelArray = self.rankAvatars;
|
||||
cell.itemModel = self.itemList[indexPath.row];
|
||||
} else {
|
||||
cell.itemModel = self.itemList[indexPath.row];
|
||||
}
|
||||
}
|
||||
@kWeakify(self);
|
||||
cell.didTapRankArea = ^{
|
||||
|
Reference in New Issue
Block a user