|
@@ -1881,7 +1881,7 @@
|
|
|
|
|
|
|
|
NSDictionary * item_json =[[self.category_data objectForKey:@"items" ] objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]];
|
|
NSDictionary * item_json =[[self.category_data objectForKey:@"items" ] objectForKey:[NSString stringWithFormat:@"item_%ld",(long)indexPath.row]];
|
|
|
NSString* img_url =[item_json valueForKey:@"img"]; // 默认小图
|
|
NSString* img_url =[item_json valueForKey:@"img"]; // 默认小图
|
|
|
- NSString* file_name=[img_url lastPathComponent];
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
NSString *loading = @"loading_l";
|
|
NSString *loading = @"loading_l";
|
|
|
NSString *notFound = @"notfound_l";
|
|
NSString *notFound = @"notfound_l";
|
|
@@ -1898,7 +1898,7 @@
|
|
|
notFound = @"notfound_s";
|
|
notFound = @"notfound_s";
|
|
|
img_url =[item_json valueForKey:@"img"]; // small 小图
|
|
img_url =[item_json valueForKey:@"img"]; // small 小图
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ NSString* file_name=[img_url lastPathComponent];
|
|
|
if (![cell.imageName isEqualToString:img_url]) {
|
|
if (![cell.imageName isEqualToString:img_url]) {
|
|
|
cell.imageName = img_url;
|
|
cell.imageName = img_url;
|
|
|
cell.cellImageView.image = [UIImage imageNamed:loading];
|
|
cell.cellImageView.image = [UIImage imageNamed:loading];
|