|
@@ -161,8 +161,17 @@
|
|
|
|
|
|
- (void)clearBtAction {
|
|
|
[self.vm.selectDic removeAllObjects];
|
|
|
+ for (KWProductListFilterModel *m in self.vm.sourceArr) {
|
|
|
+ if ([m.attribute_id isEqualToString:@"price"]) {
|
|
|
+ for (KWProductListFilterSubModel *subM in m.attribute_data) {
|
|
|
+ subM.inputMin = @"";
|
|
|
+ subM.inputMax = @"";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
[ASHomeAlertWindow alertMsg:@"All Selection Properties Have Been Cleared"];
|
|
|
[self.collectV reloadData];
|
|
|
+ [self doneBtAction];
|
|
|
}
|
|
|
|
|
|
- (void)showAnimate:(NSMutableDictionary<NSString *,NSMutableArray<KWProductListFilterSubModel *> *> *)arr {
|
|
@@ -285,6 +294,7 @@
|
|
|
[tempSubs removeObject:subM];
|
|
|
}
|
|
|
[self.collectV reloadData];
|
|
|
+ [self doneBtAction];
|
|
|
return;
|
|
|
}
|
|
|
NSMutableArray *tempSubs = [NSMutableArray array];
|
|
@@ -296,6 +306,7 @@
|
|
|
self.vm.selectDic[mainM.attribute_id] = tempSubs;
|
|
|
|
|
|
[self.collectV reloadData];
|
|
|
+ [self doneBtAction];
|
|
|
}
|
|
|
|
|
|
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
|
@@ -385,5 +396,4 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
@end
|