|
@@ -257,8 +257,12 @@
|
|
KWProductListFilterSubModel *subM = mainM.attribute_data[index.item];
|
|
KWProductListFilterSubModel *subM = mainM.attribute_data[index.item];
|
|
|
|
|
|
NSMutableArray *selectSubMs = self.vm.selectDic[mainM.attribute_id];
|
|
NSMutableArray *selectSubMs = self.vm.selectDic[mainM.attribute_id];
|
|
- if (selectSubMs.count > 0 && [selectSubMs containsObject:subM]) {
|
|
|
|
- return true;
|
|
|
|
|
|
+ if (selectSubMs.count > 0) {
|
|
|
|
+ for (KWProductListFilterSubModel *tempSub in selectSubMs) {
|
|
|
|
+ if ([tempSub.Id isEqualToString:subM.Id]) {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
@@ -272,10 +276,13 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
KWProductListFilterSubModel *subM = mainM.attribute_data[index.item];
|
|
KWProductListFilterSubModel *subM = mainM.attribute_data[index.item];
|
|
|
|
+ subM.fathName = mainM.attribute_name;
|
|
|
|
+ subM.status = 1;
|
|
BOOL isselct = [self hadSelectIndex:index];
|
|
BOOL isselct = [self hadSelectIndex:index];
|
|
if (isselct) {
|
|
if (isselct) {
|
|
NSMutableArray *tempSubs = self.vm.selectDic[mainM.attribute_id];
|
|
NSMutableArray *tempSubs = self.vm.selectDic[mainM.attribute_id];
|
|
if (tempSubs != nil && [tempSubs containsObject:subM]) {
|
|
if (tempSubs != nil && [tempSubs containsObject:subM]) {
|
|
|
|
+ subM.status = 0;
|
|
[tempSubs removeObject:subM];
|
|
[tempSubs removeObject:subM];
|
|
}
|
|
}
|
|
[self.collectV reloadData];
|
|
[self.collectV reloadData];
|