Commit 2ad224ab authored by 曹云霄's avatar 曹云霄

no message

parent 42016026
...@@ -473,7 +473,7 @@ ...@@ -473,7 +473,7 @@
#pragma mark -AddImagesDelegate选中图片 #pragma mark -AddImagesDelegate选中图片
- (void)SelectedImageswithModel:(JSONModel *)model withisScene:(BOOL)isScene returnResponse:(void (^)(BOOL))isThere - (void)selectedImageswithModel:(JSONModel *)model withisScene:(BOOL)isScene returnResponse:(void (^)(BOOL))isThere
{ {
if (isScene) { if (isScene) {
//场景 //场景
...@@ -509,7 +509,7 @@ ...@@ -509,7 +509,7 @@
} }
#pragma mark -刷新 #pragma mark -刷新
- (void)RefreshSceneAndProduct:(BOOL)isScene - (void)refreshSceneAndProduct:(BOOL)isScene
{ {
if (isScene) { if (isScene) {
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
@required @required
//增加图片 //增加图片
- (void)SelectedImageswithModel:(JSONModel *)model withisScene:(BOOL)isScene returnResponse:(void(^)(BOOL boolValue))isThere; - (void)selectedImageswithModel:(JSONModel *)model withisScene:(BOOL)isScene returnResponse:(void(^)(BOOL boolValue))isThere;
//刷新 //刷新
- (void)RefreshSceneAndProduct:(BOOL)isScene; - (void)refreshSceneAndProduct:(BOOL)isScene;
//删除图片 //删除图片
@end @end
......
...@@ -745,9 +745,9 @@ ...@@ -745,9 +745,9 @@
if (self.isScene) { if (self.isScene) {
ScreeningCollectionViewCell *cell = (ScreeningCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath]; ScreeningCollectionViewCell *cell = (ScreeningCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
CGPoint startPoint = [cell convertPoint:cell.sceneImageView.center toView:self.sceneOrProductClollectionView.window]; CGPoint startPoint = [cell convertPoint:cell.sceneImageView.center toView:self.sceneOrProductClollectionView.window];
if ([self.delegate respondsToSelector:@selector(SelectedImageswithModel:withisScene:returnResponse:)]) { if ([self.delegate respondsToSelector:@selector(selectedImageswithModel:withisScene:returnResponse:)]) {
SceneListModel *model = [self.sceneDatasArray objectAtIndex_opple:indexPath.item]; SceneListModel *model = [self.sceneDatasArray objectAtIndex_opple:indexPath.item];
[self.delegate SelectedImageswithModel:model withisScene:self.isScene returnResponse:^(BOOL boolValue) { [self.delegate selectedImageswithModel:model withisScene:self.isScene returnResponse:^(BOOL boolValue) {
//判断选中的图片是否存在 //判断选中的图片是否存在
if (!boolValue) { if (!boolValue) {
[weakSelf StartAddShoppingCarAnimationWithimage:[cell.sceneImageView image] withStartpoint:startPoint withSize:cell.mj_size]; [weakSelf StartAddShoppingCarAnimationWithimage:[cell.sceneImageView image] withStartpoint:startPoint withSize:cell.mj_size];
...@@ -764,9 +764,9 @@ ...@@ -764,9 +764,9 @@
{ {
ProductScreeningCollectionViewCell *cell = (ProductScreeningCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath]; ProductScreeningCollectionViewCell *cell = (ProductScreeningCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
CGPoint startPoint = [cell convertPoint:cell.goodsImageView.center toView:self.sceneOrProductClollectionView.window]; CGPoint startPoint = [cell convertPoint:cell.goodsImageView.center toView:self.sceneOrProductClollectionView.window];
if ([self.delegate respondsToSelector:@selector(SelectedImageswithModel:withisScene:returnResponse:)]) { if ([self.delegate respondsToSelector:@selector(selectedImageswithModel:withisScene:returnResponse:)]) {
GoodsCategoryModel *model = [self.productDatasArray objectAtIndex_opple:indexPath.item]; GoodsCategoryModel *model = [self.productDatasArray objectAtIndex_opple:indexPath.item];
[self.delegate SelectedImageswithModel:model withisScene:self.isScene returnResponse:^(BOOL boolValue) { [self.delegate selectedImageswithModel:model withisScene:self.isScene returnResponse:^(BOOL boolValue) {
//判断图片是否存在 //判断图片是否存在
if (!boolValue) { if (!boolValue) {
[weakSelf StartAddShoppingCarAnimationWithimage:[cell.goodsImageView image] withStartpoint:startPoint withSize:cell.mj_size]; [weakSelf StartAddShoppingCarAnimationWithimage:[cell.goodsImageView image] withStartpoint:startPoint withSize:cell.mj_size];
...@@ -841,9 +841,9 @@ ...@@ -841,9 +841,9 @@
#pragma mark -动画完成 #pragma mark -动画完成
- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag - (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag
{ {
if ([self.delegate respondsToSelector:@selector(RefreshSceneAndProduct:)]) { if ([self.delegate respondsToSelector:@selector(refreshSceneAndProduct:)]) {
[self.delegate RefreshSceneAndProduct:self.isScene]; [self.delegate refreshSceneAndProduct:self.isScene];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment