Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Opple-iOS
Commits
4650a3d1
Commit
4650a3d1
authored
May 22, 2016
by
zhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车
parent
144b8687
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
813 additions
and
200 deletions
+813
-200
FollowHeartViewController.h
Lighting/Class/FollowHeartViewController.h
+3
-0
FollowHeartViewController.m
Lighting/Class/FollowHeartViewController.m
+18
-6
ProductCollectionPictureCell.h
Lighting/Class/ProductCollectionPictureCell.h
+9
-10
ProductCollectionPictureCell.m
Lighting/Class/ProductCollectionPictureCell.m
+16
-2
ProductLibraryView.h
Lighting/Class/ProductLibraryView.h
+11
-11
ProductLibraryView.m
Lighting/Class/ProductLibraryView.m
+114
-54
RightSubView.h
Lighting/Class/RightSubView.h
+3
-2
RightSubView.m
Lighting/Class/RightSubView.m
+5
-3
SeceneLibraryView.h
Lighting/Class/SeceneLibraryView.h
+5
-2
SeceneLibraryView.m
Lighting/Class/SeceneLibraryView.m
+65
-32
ShoppingCell.h
Lighting/Class/ShoppingCell.h
+90
-0
ShoppingCell.m
Lighting/Class/ShoppingCell.m
+86
-0
ShoppingView.h
Lighting/Class/ShoppingView.h
+22
-0
ShoppingView.m
Lighting/Class/ShoppingView.m
+286
-0
ImageCropperView.h
Lighting/Class/tools/ImageCropperView.h
+1
-9
ImageCropperView.m
Lighting/Class/tools/ImageCropperView.m
+56
-61
project.pbxproj
Lighting/Lighting.xcodeproj/project.pbxproj
+12
-0
10-副本.png
...510体验中心图标/其他_iPhone_assets/addshopping.imageset/10-副本.png
+0
-0
10-副本@2x.png
...体验中心图标/其他_iPhone_assets/addshopping.imageset/10-副本@2x.png
+0
-0
Contents.json
...验中心图标/其他_iPhone_assets/addshopping.imageset/Contents.json
+0
-0
contents
...hting/Lighting.xcdatamodeld/Lighting.xcdatamodel/contents
+5
-2
Podfile.lock
Lighting/Podfile.lock
+6
-6
No files found.
Lighting/Class/FollowHeartViewController.h
View file @
4650a3d1
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#import "FootSubView.h"
#import "FootSubView.h"
#import "SeceneLibraryView.h"
#import "SeceneLibraryView.h"
#import "ProductLibraryView.h"
#import "ProductLibraryView.h"
#import "ShoppingView.h"
@protocol
FollowHeartViewAddpicturedelegate
<
NSObject
>
@protocol
FollowHeartViewAddpicturedelegate
<
NSObject
>
@required
@required
...
@@ -28,9 +29,11 @@
...
@@ -28,9 +29,11 @@
@property
(
nonatomic
,
strong
)
FootSubView
*
footSubView
;
@property
(
nonatomic
,
strong
)
FootSubView
*
footSubView
;
@property
(
nonatomic
,
strong
)
SeceneLibraryView
*
seceneLibraryView
;
@property
(
nonatomic
,
strong
)
SeceneLibraryView
*
seceneLibraryView
;
@property
(
nonatomic
,
strong
)
ProductLibraryView
*
productLibraryView
;
@property
(
nonatomic
,
strong
)
ProductLibraryView
*
productLibraryView
;
@property
(
nonatomic
,
strong
)
ShoppingView
*
shoppingView
;
@property
(
nonatomic
,
strong
)
UIImageView
*
backGroundImageView
;
@property
(
nonatomic
,
strong
)
UIImageView
*
backGroundImageView
;
@property
(
nonatomic
,
strong
)
UIButton
*
zoomButton
;
@property
(
nonatomic
,
strong
)
UIButton
*
zoomButton
;
@property
(
nonatomic
,
strong
)
UIButton
*
temporaryBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
temporaryBtn
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
productModelArray
;
...
...
Lighting/Class/FollowHeartViewController.m
View file @
4650a3d1
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
}
}
-
(
void
)
configSubView
-
(
void
)
configSubView
{
{
self
.
productModelArray
=
[[
NSMutableArray
alloc
]
init
];
self
.
backGroundImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"backView.png"
]];
self
.
backGroundImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"backView.png"
]];
self
.
backGroundImageView
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
ScreenHeight
);
self
.
backGroundImageView
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
ScreenHeight
);
[
self
.
view
addSubview
:
self
.
backGroundImageView
];
[
self
.
view
addSubview
:
self
.
backGroundImageView
];
...
@@ -51,7 +52,7 @@
...
@@ -51,7 +52,7 @@
break
;
break
;
case
101
:
//购物车
case
101
:
//购物车
{
{
[
self
addShoppingView
];
}
}
break
;
break
;
case
102
:
//分享
case
102
:
//分享
...
@@ -98,11 +99,12 @@
...
@@ -98,11 +99,12 @@
self
.
backGroundImageView
.
image
=
image
;
self
.
backGroundImageView
.
image
=
image
;
}
}
//产品附图回调
//产品附图回调
-
(
void
)
resetSubProductImage
:
(
UIImage
*
)
image
-
(
void
)
resetSubProductImage
:
(
UIImage
*
)
image
productModel
:
(
NSMutableArray
*
)
productModel
{
{
ImageCropperView
*
cropper
=
[[
ImageCropperView
alloc
]
initWithFrame
:
CGRectMake
(
400
,
300
,
300
,
300
)];
ImageCropperView
*
cropper
=
[[
ImageCropperView
alloc
]
initWithFrame
:
CGRectMake
(
400
,
300
,
300
,
300
)];
cropper
.
layer
.
borderWidth
=
1
.
0
;
// cropper.layer.borderWidth = 1.0;
cropper
.
layer
.
borderColor
=
[
UIColor
blueColor
].
CGColor
;
// cropper.layer.borderColor = [UIColor blueColor].CGColor;
cropper
.
image
=
image
;
cropper
.
image
=
image
;
[
self
.
view
addSubview
:
cropper
];
[
self
.
view
addSubview
:
cropper
];
}
}
...
@@ -112,9 +114,9 @@
...
@@ -112,9 +114,9 @@
[
self
.
footSubView
addFootSubViewImage
:
image
];
[
self
.
footSubView
addFootSubViewImage
:
image
];
}
}
//产品库选图回调
//产品库选图回调
-
(
void
)
addProductImage
:
(
UIImage
*
)
image
-
(
void
)
addProductImage
:
(
UIImage
*
)
image
productModel
:
(
TOGoodsEntity
*
)
productModel
{
{
[
self
.
rightSubView
addRightSubViewImage
:
image
];
[
self
.
rightSubView
addRightSubViewImage
:
image
productModel
:
productModel
];
}
}
//全屏
//全屏
-
(
void
)
setViewAnimations
:
(
UIButton
*
)
sender
-
(
void
)
setViewAnimations
:
(
UIButton
*
)
sender
...
@@ -172,6 +174,16 @@
...
@@ -172,6 +174,16 @@
self
.
productLibraryView
.
delegate
=
self
;
self
.
productLibraryView
.
delegate
=
self
;
[
self
.
view
addSubview
:
self
.
productLibraryView
.
view
];
[
self
.
view
addSubview
:
self
.
productLibraryView
.
view
];
}
}
//添加购物车
-
(
void
)
addShoppingView
{
self
.
shoppingView
=
[[
ShoppingView
alloc
]
init
];
self
.
shoppingView
.
view
.
backgroundColor
=
[
UIColor
clearColor
];
self
.
shoppingView
.
productModelArray
=
self
.
productModelArray
;
// self.shoppingView.delegate=self;
[
self
.
view
addSubview
:
self
.
shoppingView
.
view
];
}
-
(
void
)
didReceiveMemoryWarning
{
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
[
super
didReceiveMemoryWarning
];
// Dispose of any resources that can be recreated.
// Dispose of any resources that can be recreated.
...
...
Lighting/Class/ProductCollectionPictureCell.h
View file @
4650a3d1
...
@@ -11,20 +11,19 @@
...
@@ -11,20 +11,19 @@
@interface
ProductCollectionPictureCell
:
UICollectionViewCell
@interface
ProductCollectionPictureCell
:
UICollectionViewCell
@property
(
strong
,
nonatomic
)
UIImageView
*
productImageView
;
@property
(
strong
,
nonatomic
)
UIImageView
*
productImageView
;
/**
//产品参数
* 产品参数
*/
@property
(
strong
,
nonatomic
)
UILabel
*
productParameter
;
@property
(
strong
,
nonatomic
)
UILabel
*
productParameter
;
/**
// 产品价格
* 产品价格
*/
@property
(
strong
,
nonatomic
)
UILabel
*
productPrice
;
@property
(
strong
,
nonatomic
)
UILabel
*
productPrice
;
// 产品描述
@property
(
strong
,
nonatomic
)
UILabel
*
productDesce
;
@property
(
strong
,
nonatomic
)
TOGoodsEntity
*
productModel
;
/**
* 加入购物车
*/
@property
(
strong
,
nonatomic
)
UIButton
*
addShoppingbags
;
@end
@end
Lighting/Class/ProductCollectionPictureCell.m
View file @
4650a3d1
...
@@ -12,9 +12,23 @@
...
@@ -12,9 +12,23 @@
-
(
id
)
initWithFrame
:(
CGRect
)
frame
{
-
(
id
)
initWithFrame
:(
CGRect
)
frame
{
self
=
[
super
initWithFrame
:
frame
];
self
=
[
super
initWithFrame
:
frame
];
if
(
self
)
{
if
(
self
)
{
self
.
productImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
frame
.
size
.
width
,
frame
.
size
.
height
)];
self
.
productImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
frame
.
size
.
width
,
2
*
frame
.
size
.
height
/
3
)];
self
.
productImageView
.
image
=
[
UIImage
imageNamed
:
@"05产品库-详情_03"
];
[
self
addSubview
:
self
.
productImageView
];
[
self
addSubview
:
self
.
productImageView
];
// 产品描述
self
.
productDesce
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
2
*
frame
.
size
.
height
/
3
,
frame
.
size
.
width
,
frame
.
size
.
height
/
6
)];
self
.
productDesce
.
text
=
@"名称描述"
;
self
.
productDesce
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
addSubview
:
self
.
productDesce
];
// 产品参数
self
.
productParameter
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
2
*
frame
.
size
.
height
/
3
+
frame
.
size
.
height
/
6
,
frame
.
size
.
width
,
frame
.
size
.
height
/
6
)];
self
.
productParameter
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
addSubview
:
self
.
productParameter
];
// 产品价格
self
.
productPrice
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
2
*
frame
.
size
.
height
/
3
+
2
*
frame
.
size
.
height
/
6
,
frame
.
size
.
width
,
frame
.
size
.
height
/
6
)];
self
.
productPrice
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
addSubview
:
self
.
productPrice
];
self
.
productModel
=
[[
TOGoodsEntity
alloc
]
init
];
}
}
return
self
;
return
self
;
}
}
...
...
Lighting/Class/ProductLibraryView.h
View file @
4650a3d1
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
@required
@required
//回调
//回调
-
(
void
)
addProductImage
:
(
UIImage
*
)
image
;
-
(
void
)
addProductImage
:
(
UIImage
*
)
image
productModel
:
(
TOGoodsEntity
*
)
productModel
;
@end
@end
...
@@ -28,22 +28,22 @@ UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
...
@@ -28,22 +28,22 @@ UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
@property
(
nonatomic
,
strong
)
UIButton
*
fengGeBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
fengGeBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
leiXingBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
leiXingBtn
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
nameData
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
nameData
;
@property
(
nonatomic
,
strong
)
NSArray
*
arrayData
;
@property
(
nonatomic
,
strong
)
NS
Mutable
Array
*
arrayData
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array1
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array1
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array2
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array2
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array3
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array3
;
@property
(
nonatomic
,
strong
)
UICollectionView
*
collectionView
;
@property
(
nonatomic
,
strong
)
UICollectionView
*
collectionView
;
/**
//筛选数据源
* 筛选数据源
*/
@property
(
nonatomic
,
strong
)
NSMutableArray
*
screeningDatas
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
screeningDatas
;
@property
(
nonatomic
,
strong
)
GoodsFilter
*
goodsFilter
;
@property
(
nonatomic
,
strong
)
GoodsFilter
*
goodsFilter
;
/**
//商品数据源对象
* 商品数据源对象
*/
@property
(
nonatomic
,
strong
)
NSMutableArray
*
datasArray
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
datasArray
;
/**
//商品iD
* 商品iD
*/
@property
(
nonatomic
,
copy
)
NSString
*
goodsID
;
@property
(
nonatomic
,
copy
)
NSString
*
goodsID
;
//当前页数
@property
(
nonatomic
,
assign
)
int
indexPage
;
// 搜索code
@property
(
nonatomic
,
copy
)
NSString
*
selectedCode
;
@end
@end
Lighting/Class/ProductLibraryView.m
View file @
4650a3d1
This diff is collapsed.
Click to expand it.
Lighting/Class/RightSubView.h
View file @
4650a3d1
...
@@ -12,12 +12,13 @@
...
@@ -12,12 +12,13 @@
//回调
//回调
-
(
void
)
buttonClick
:
(
NSInteger
)
btnTag
withButton
:
(
UIButton
*
)
button
;
-
(
void
)
buttonClick
:
(
NSInteger
)
btnTag
withButton
:
(
UIButton
*
)
button
;
-
(
void
)
resetSubProductImage
:(
UIImage
*
)
image
;
-
(
void
)
resetSubProductImage
:(
UIImage
*
)
image
productModel
:(
NSMutableArray
*
)
productModel
;
@end
@end
@interface
RightSubView
:
UIView
@interface
RightSubView
:
UIView
@property
(
nonatomic
,
assign
)
id
<
RightViewBtnClickdelegate
>
delegate
;
@property
(
nonatomic
,
assign
)
id
<
RightViewBtnClickdelegate
>
delegate
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
dataArray
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
dataArray
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
productModelArray
;
@property
(
nonatomic
,
strong
)
UIScrollView
*
scrollView
;
@property
(
nonatomic
,
strong
)
UIScrollView
*
scrollView
;
-
(
void
)
addRightSubViewImage
:(
UIImage
*
)
image
;
-
(
void
)
addRightSubViewImage
:(
UIImage
*
)
image
productModel
:(
TOGoodsEntity
*
)
productModel
;
@end
@end
Lighting/Class/RightSubView.m
View file @
4650a3d1
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
NSString
*
imageName
=
[
NSString
stringWithFormat
:
@"05产品库-详情_03"
];
NSString
*
imageName
=
[
NSString
stringWithFormat
:
@"05产品库-详情_03"
];
UIImage
*
image
=
[
UIImage
imageNamed
:
imageName
];
UIImage
*
image
=
[
UIImage
imageNamed
:
imageName
];
self
.
dataArray
=
[[
NSMutableArray
alloc
]
initWithObjects
:
image
,
image
,
image
,
nil
];
self
.
dataArray
=
[[
NSMutableArray
alloc
]
initWithObjects
:
image
,
image
,
image
,
nil
];
self
.
productModelArray
=
[[
NSMutableArray
alloc
]
init
];
// 待接收
// 待接收
}
}
...
@@ -67,9 +68,9 @@
...
@@ -67,9 +68,9 @@
-
(
void
)
clicked
:
(
UIButton
*
)
sender
-
(
void
)
clicked
:
(
UIButton
*
)
sender
{
{
NSLog
(
@"%d"
,(
sender
.
tag
));
NSLog
(
@"%d"
,(
sender
.
tag
));
if
([
self
.
delegate
respondsToSelector
:
@selector
(
resetSubProductImage
:)])
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
resetSubProductImage
:
productModel
:
)])
{
[
self
.
delegate
resetSubProductImage
:
sender
.
imageView
.
image
];
[
self
.
delegate
resetSubProductImage
:
sender
.
imageView
.
image
productModel
:
self
.
productModelArray
];
}
}
// resetSuperBackGroundImage
// resetSuperBackGroundImage
...
@@ -100,8 +101,9 @@
...
@@ -100,8 +101,9 @@
}
}
}
}
-
(
void
)
addRightSubViewImage
:
(
UIImage
*
)
image
-
(
void
)
addRightSubViewImage
:
(
UIImage
*
)
image
productModel
:
(
TOGoodsEntity
*
)
productModel
{
{
[
self
.
productModelArray
addObject
:
productModel
];
[
self
.
dataArray
addObject
:
image
];
[
self
.
dataArray
addObject
:
image
];
[
self
showProductPicture
];
[
self
showProductPicture
];
...
...
Lighting/Class/SeceneLibraryView.h
View file @
4650a3d1
...
@@ -28,7 +28,7 @@ UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
...
@@ -28,7 +28,7 @@ UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
@property
(
nonatomic
,
strong
)
UIButton
*
kongJianBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
kongJianBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
fengGeBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
fengGeBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
leiXingBtn
;
@property
(
nonatomic
,
strong
)
UIButton
*
leiXingBtn
;
@property
(
nonatomic
,
strong
)
NSArray
*
arrayData
;
@property
(
nonatomic
,
strong
)
NS
Mutable
Array
*
arrayData
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array1
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array1
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array2
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array2
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array3
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
array3
;
...
@@ -38,5 +38,8 @@ UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
...
@@ -38,5 +38,8 @@ UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
@property
(
nonatomic
,
strong
)
NSArray
*
imageArray
;
//筛选cell个数图片
@property
(
nonatomic
,
strong
)
NSArray
*
imageArray
;
//筛选cell个数图片
@property
(
strong
,
nonatomic
)
screeningButton
*
StyleButton
;
//风格按钮
@property
(
strong
,
nonatomic
)
screeningButton
*
StyleButton
;
//风格按钮
@property
(
strong
,
nonatomic
)
screeningButton
*
SpaceButton
;
//房型按钮
@property
(
strong
,
nonatomic
)
screeningButton
*
SpaceButton
;
//房型按钮
/**
* 当前页数
*/
@property
(
nonatomic
,
assign
)
int
indexPage
;
@end
@end
Lighting/Class/SeceneLibraryView.m
View file @
4650a3d1
...
@@ -16,26 +16,57 @@
...
@@ -16,26 +16,57 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
self
initdata
];
[
self
initdata
];
[
self
getdatasAction
];
[
self
initView
];
[
self
initView
];
[
self
uiConfigAction
];
[
self
getdatasAction
];
}
}
-
(
void
)
initdata
-
(
void
)
initdata
{
{
self
.
arrayData
=
[[
NSArray
alloc
]
init
];
self
.
arrayData
=
[[
NSMutableArray
alloc
]
init
];
self
.
indexPage
=
0
;
}
-
(
void
)
uiConfigAction
{
//下拉刷新
MjRefreshHeaderCustom
*
headerRefresh
=
[
MjRefreshHeaderCustom
headerWithRefreshingBlock
:
^
{
//默认数据
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
;
page
.
rows
=
10
;
condition
.
page
=
page
;
[
self
getSceneLibrarydatas
:
condition
isRemove
:
YES
];
}];
headerRefresh
.
stateLabel
.
hidden
=
YES
;
headerRefresh
.
lastUpdatedTimeLabel
.
hidden
=
YES
;
self
.
collectionView
.
mj_header
=
headerRefresh
;
[
self
.
collectionView
.
mj_header
beginRefreshing
];
//上拉加载
self
.
collectionView
.
mj_footer
=
[
MJRefreshAutoNormalFooter
footerWithRefreshingBlock
:
^
{
//默认数据
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
++
;
page
.
rows
=
10
;
condition
.
page
=
page
;
[
self
getSceneLibrarydatas
:
condition
isRemove
:
NO
];
}];
}
}
#pragma mark -获取场景筛选数据
#pragma mark -获取场景筛选数据
-
(
void
)
getdatasAction
-
(
void
)
getdatasAction
{
{
[
self
CreateMBProgressHUDLoding
];
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/scene/getSceneFilter"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/scene/getSceneFilter"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
self
.
filter
=
[[
SceneFilter
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
self
.
filter
=
[[
SceneFilter
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
self
.
arrayData
=
self
.
filter
.
styles
;
self
.
arrayData
=
[
NSMutableArray
arrayWithArray
:
self
.
filter
.
styles
]
;
[
self
.
seceneTableView
reloadData
];
[
self
.
seceneTableView
reloadData
];
}
}
else
else
...
@@ -52,16 +83,20 @@
...
@@ -52,16 +83,20 @@
//
//
//
//
#pragma mark -获取场景列表数据
#pragma mark -获取场景列表数据
-
(
void
)
getSceneLibrarydatas
:
(
SceneCondition
*
)
condition
-
(
void
)
getSceneLibrarydatas
:
(
SceneCondition
*
)
condition
isRemove
:
(
BOOL
)
remove
{
{
[
self
CreateMBProgressHUDLoding
];
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/scene/query"
]
WithRequestType
:
0
WithParameter
:
condition
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/scene/query"
]
WithRequestType
:
0
WithParameter
:
condition
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
endRefreshingForTableView
:
self
.
collectionView
];
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
// if (remove) {
// [self.responseArray removeAllObjects];
// }
self
.
response
=
[[
SceneResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
self
.
response
=
[[
SceneResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
NSArray
*
array
=
[[
NSArray
alloc
]
init
];
array
=
self
.
response
.
list
;
[
self
.
collectionView
reloadData
];
[
self
.
collectionView
reloadData
];
}
}
else
else
...
@@ -74,6 +109,7 @@
...
@@ -74,6 +109,7 @@
}
WithFailureBlock
:^
(
id
error
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
[
self
endRefreshingForTableView
:
self
.
collectionView
];
}];
}];
}
}
...
@@ -105,18 +141,6 @@
...
@@ -105,18 +141,6 @@
self
.
fengGeBtn
.
layer
.
masksToBounds
=
YES
;
self
.
fengGeBtn
.
layer
.
masksToBounds
=
YES
;
self
.
fengGeBtn
.
layer
.
cornerRadius
=
15
;
self
.
fengGeBtn
.
layer
.
cornerRadius
=
15
;
[
self
.
view
addSubview
:
self
.
fengGeBtn
];
[
self
.
view
addSubview
:
self
.
fengGeBtn
];
// //类型
// self.leiXingBtn=[UIButton buttonWithType:UIButtonTypeCustom];
// self.leiXingBtn.frame=CGRectMake(ScreenWidth-250, 152, 100, 46) ;
// self.leiXingBtn.backgroundColor=[UIColor whiteColor];
// [self.leiXingBtn setTitle:@"类型 " forState:UIControlStateNormal];
// [self.leiXingBtn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
// self.leiXingBtn.contentEdgeInsets = UIEdgeInsetsMake(0, 60, 0, 0);
// [self.leiXingBtn addTarget:self action:@selector(selectedType:) forControlEvents:UIControlEventTouchUpInside];
// self.leiXingBtn.tag=103;
// self.leiXingBtn.layer.masksToBounds = YES;
// self.leiXingBtn.layer.cornerRadius = 15;
// [self.view addSubview:self.leiXingBtn];
self
.
subView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
100
,
50
,
ScreenWidth
-
300
,
ScreenHeight
-
200
)];
self
.
subView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
100
,
50
,
ScreenWidth
-
300
,
ScreenHeight
-
200
)];
self
.
subView
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
subView
.
backgroundColor
=
[
UIColor
whiteColor
];
...
@@ -129,13 +153,7 @@
...
@@ -129,13 +153,7 @@
tap
.
cancelsTouchesInView
=
NO
;
tap
.
cancelsTouchesInView
=
NO
;
[[
UIApplication
sharedApplication
].
keyWindow
addGestureRecognizer
:
tap
];
[[
UIApplication
sharedApplication
].
keyWindow
addGestureRecognizer
:
tap
];
[
self
initSubViews
];
[
self
initSubViews
];
//默认数据
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
condition
.
page
=
page
;
[
self
getSceneLibrarydatas
:
condition
];
}
}
-
(
void
)
initSubViews
-
(
void
)
initSubViews
{
{
...
@@ -173,11 +191,11 @@
...
@@ -173,11 +191,11 @@
switch
(
sender
.
tag
)
{
switch
(
sender
.
tag
)
{
case
101
:
case
101
:
// 空间
// 空间
self
.
arrayData
=
self
.
filter
.
space
;
;
self
.
arrayData
=
[
NSMutableArray
arrayWithArray
:
self
.
filter
.
space
]
;
break
;
break
;
case
102
:
case
102
:
// 风格
// 风格
self
.
arrayData
=
self
.
filter
.
styles
;
;
self
.
arrayData
=
[
NSMutableArray
arrayWithArray
:
self
.
filter
.
styles
]
;
break
;
break
;
case
103
:
case
103
:
// 类型
// 类型
...
@@ -207,7 +225,19 @@
...
@@ -207,7 +225,19 @@
//定义展示的UICollectionViewCell的个数
//定义展示的UICollectionViewCell的个数
-
(
NSInteger
)
collectionView
:
(
UICollectionView
*
)
collectionView
numberOfItemsInSection
:
(
NSInteger
)
section
-
(
NSInteger
)
collectionView
:
(
UICollectionView
*
)
collectionView
numberOfItemsInSection
:
(
NSInteger
)
section
{
{
// if (self.response.list.count<3) {
// return self.response.list.count;
// }else
// {
// if (self.response.list.count/section==0) {
// return 3;
// }else
// {
// return self.response.list.count%section;
// }
// }
return
3
;
return
3
;
}
}
//每个UICollectionView展示的内容
//每个UICollectionView展示的内容
...
@@ -286,19 +316,22 @@
...
@@ -286,19 +316,22 @@
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
void
)
tableView
:
(
UITableView
*
)
tableView
didSelectRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
{
//选择数据
self
.
indexPage
=
0
;
//默认数据
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
page
.
page
=
self
.
indexPage
;
page
.
rows
=
10
;
condition
.
page
=
page
;
condition
.
page
=
page
;
[
self
getSceneLibrarydatas
:
condition
];
[
self
getSceneLibrarydatas
:
condition
isRemove
:
NO
];
}
}
-
(
void
)
DismissScreenView
:
(
UITapGestureRecognizer
*
)
sender
{
-
(
void
)
DismissScreenView
:
(
UITapGestureRecognizer
*
)
sender
{
CGPoint
point
=
[
sender
locationInView
:
self
.
view
];
CGPoint
point
=
[
sender
locationInView
:
self
.
view
];
if
(
point
.
x
<
100
||
point
.
x
>
ScreenWidth
-
1
0
0
||
point
.
y
<
50
||
point
.
y
>
ScreenHeight
-
150
)
{
if
(
point
.
x
<
100
||
point
.
x
>
ScreenWidth
-
1
5
0
||
point
.
y
<
50
||
point
.
y
>
ScreenHeight
-
150
)
{
if
(
self
)
{
if
(
self
)
{
[
self
.
view
removeFromSuperview
];
[
self
.
view
removeFromSuperview
];
...
...
Lighting/Class/ShoppingCell.h
0 → 100644
View file @
4650a3d1
//
// ShoppingCell.h
// Lighting
//
// Created by mac on 16/5/23.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ShopcarModel.h"
@interface
ShoppingCell
:
UITableViewCell
/**
* 选中
*/
@property
(
strong
,
nonatomic
)
UIButton
*
selectedButton
;
/**
* 商品图片
*/
@property
(
strong
,
nonatomic
)
UIImageView
*
goodsImageView
;
/**
* 商品信息
*/
@property
(
strong
,
nonatomic
)
UILabel
*
goodsInformationLabe
;
/**
* 吊牌价格
*/
@property
(
strong
,
nonatomic
)
UILabel
*
tagsPriceLabe
;
/**
* 成交价格
*/
@property
(
strong
,
nonatomic
)
UITextField
*
clinchTextfield
;
/**
* 减号
*/
@property
(
strong
,
nonatomic
)
UIButton
*
reduceButton
;
/**
* 商品数量
*/
@property
(
strong
,
nonatomic
)
UILabel
*
goodsNumbersLabe
;
/**
* 加号
*/
@property
(
strong
,
nonatomic
)
UIButton
*
addButton
;
/**
* 产品金额
*/
@property
(
strong
,
nonatomic
)
UILabel
*
productPriceLabe
;
/**
* 数据源model
*/
@property
(
nonatomic
,
strong
)
ShopcarModel
*
model
;
/**
* 传入cel下标
*/
@property
(
nonatomic
,
assign
)
NSInteger
cellindex
;
/**
* 传回选中状态
*/
@property
(
nonatomic
,
copy
)
void
(
^
returnCellblock
)(
NSInteger
index
);
//选中索引
//@property (strong, nonatomic) NSIndexPath *indexpath;
/**
* 成交价背景View
*/
@property
(
strong
,
nonatomic
)
UIView
*
ClinchPriceBackView
;
/**
* 商品数量
*/
//@property (nonatomic,assign) id<ChangeGoodsNumberDelegate>delegate;
@end
Lighting/Class/ShoppingCell.m
0 → 100644
View file @
4650a3d1
//
// ShoppingCell.m
// Lighting
//
// Created by mac on 16/5/23.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "ShoppingCell.h"
#define Width 800
#define Height self.frame.size.height
#define Gap 5
@implementation
ShoppingCell
-
(
instancetype
)
initWithStyle
:(
UITableViewCellStyle
)
style
reuseIdentifier
:(
NSString
*
)
reuseIdentifier
{
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
];
if
(
self
)
{
[
self
bulidLayout
];
}
return
self
;
}
-
(
void
)
bulidLayout
{
// 选中
self
.
selectedButton
=
[[
UIButton
alloc
]
initWithFrame
:
CGRectMake
(
10
,
10
,
Width
/
15
-
20
,
Height
-
20
)];
[
self
.
selectedButton
setBackgroundImage
:[
UIImage
imageNamed
:
@"box-副本"
]
forState
:
UIControlStateNormal
];
// box-副本
[
self
.
contentView
addSubview
:
self
.
selectedButton
];
// 商品图片
self
.
goodsImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
Width
/
15
,
0
,
2
*
Width
/
15
,
Height
)];
self
.
goodsImageView
.
image
=
[
UIImage
imageNamed
:
@"05产品库-详情_03"
];
//05产品库-详情_03
[
self
.
contentView
addSubview
:
self
.
goodsImageView
];
// 商品信息
self
.
goodsInformationLabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
3
*
Width
/
15
,
0
,
3
*
Width
/
15
,
Height
)];
self
.
goodsInformationLabe
.
text
=
@"吊灯jkdsfhkdhfkdsh
\n
2000133434"
;
self
.
goodsInformationLabe
.
numberOfLines
=
0
;
[
self
.
contentView
addSubview
:
self
.
goodsInformationLabe
];
// 吊牌价格
self
.
tagsPriceLabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
6
*
Width
/
15
,
0
,
2
*
Width
/
15
,
Height
)];
self
.
tagsPriceLabe
.
text
=
@"$5500"
;
[
self
.
contentView
addSubview
:
self
.
tagsPriceLabe
];
// 成交价格
self
.
clinchTextfield
=
[[
UITextField
alloc
]
initWithFrame
:
CGRectMake
(
8
*
Width
/
15
,
0
,
2
*
Width
/
15
,
Height
)];
self
.
clinchTextfield
.
text
=
@"$5500"
;
[
self
.
contentView
addSubview
:
self
.
clinchTextfield
];
// 数量减
self
.
reduceButton
=
[[
UIButton
alloc
]
initWithFrame
:
CGRectMake
(
10
*
Width
/
15
,
0
,
Width
/
15
,
Height
)];
[
self
.
reduceButton
setTitle
:
@"-"
forState
:
UIControlStateNormal
];
[
self
.
reduceButton
setTitleColor
:[
UIColor
blackColor
]
forState
:
UIControlStateNormal
];
self
.
reduceButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
18
.
0
];
[
self
.
contentView
addSubview
:
self
.
reduceButton
];
// 商品数量
self
.
goodsNumbersLabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
11
*
Width
/
15
,
0
,
Width
/
15
,
Height
)];
self
.
goodsNumbersLabe
.
text
=
@"1"
;
self
.
goodsNumbersLabe
.
textAlignment
=
NSTextAlignmentCenter
;
[
self
.
contentView
addSubview
:
self
.
goodsNumbersLabe
];
// 数量加
self
.
addButton
=
[[
UIButton
alloc
]
initWithFrame
:
CGRectMake
(
12
*
Width
/
15
,
0
,
Width
/
15
,
Height
)];
[
self
.
addButton
setTitle
:
@"+"
forState
:
UIControlStateNormal
];
[
self
.
addButton
setTitleColor
:[
UIColor
blackColor
]
forState
:
UIControlStateNormal
];
self
.
addButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
18
.
0
];
[
self
.
contentView
addSubview
:
self
.
addButton
];
// 产品金额
self
.
productPriceLabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
13
*
Width
/
15
,
0
,
2
*
Width
/
15
,
Height
)];
self
.
productPriceLabe
.
text
=
@"$5500"
;
self
.
productPriceLabe
.
textColor
=
[
UIColor
redColor
];
[
self
.
contentView
addSubview
:
self
.
productPriceLabe
];
}
-
(
void
)
awakeFromNib
{
[
super
awakeFromNib
];
// Initialization code
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
// Configure the view for the selected state
}
@end
Lighting/Class/ShoppingView.h
0 → 100644
View file @
4650a3d1
//
// ShoppingView.h
// Lighting
//
// Created by mac on 16/5/23.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "BaseViewController.h"
#import "ShoppingCell.h"
@interface
ShoppingView
:
BaseViewController
<
UIGestureRecognizerDelegate
,
UITableViewDelegate
,
UITableViewDataSource
>
@property
(
nonatomic
,
strong
)
UIView
*
subView
;
@property
(
nonatomic
,
strong
)
UIView
*
headerView
;
@property
(
nonatomic
,
strong
)
UIView
*
toolView
;
@property
(
nonatomic
,
strong
)
UIView
*
footView
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
nameDataArray
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
productModelArray
;
@property
(
nonatomic
,
strong
)
NSMutableArray
*
selectTagArray
;
@property
(
nonatomic
,
strong
)
UITableView
*
shoppingTableView
;
@property
(
nonatomic
,
assign
)
BOOL
isAllSelected
;
@end
\ No newline at end of file
Lighting/Class/ShoppingView.m
0 → 100644
View file @
4650a3d1
This diff is collapsed.
Click to expand it.
Lighting/Class/tools/ImageCropperView.h
View file @
4650a3d1
...
@@ -11,15 +11,7 @@
...
@@ -11,15 +11,7 @@
@protocol
ImageCropperDelegate
;
@protocol
ImageCropperDelegate
;
@interface
ImageCropperView
:
UIImageView
{
@interface
ImageCropperView
:
UIImageView
UIImageView
*
imageView
;
}
@property
(
nonatomic
,
retain
)
UIImage
*
image
;
@property
(
nonatomic
,
retain
)
UIImage
*
croppedImage
;
@property
(
nonatomic
,
assign
)
id
<
ImageCropperDelegate
>
delegate
;
@property
(
nonatomic
,
assign
)
id
<
ImageCropperDelegate
>
delegate
;
-
(
void
)
setup
;
-
(
void
)
setup
;
...
...
Lighting/Class/tools/ImageCropperView.m
View file @
4650a3d1
...
@@ -14,17 +14,12 @@
...
@@ -14,17 +14,12 @@
#import "UIImage+Rotation.h"
#import "UIImage+Rotation.h"
@interface
ImageCropperView
()
@interface
ImageCropperView
()
{
@private
CGSize
_originalImageViewSize
;
}
@property
(
nonatomic
,
retain
)
UIImageView
*
imageView
;
@end
@end
@implementation
ImageCropperView
@implementation
ImageCropperView
@synthesize
imageView
,
image
=
_image
,
delegate
,
croppedImage
;
-
(
id
)
initWithFrame
:(
CGRect
)
frame
{
-
(
id
)
initWithFrame
:(
CGRect
)
frame
{
self
=
[
super
initWithFrame
:
frame
];
self
=
[
super
initWithFrame
:
frame
];
...
@@ -110,61 +105,61 @@
...
@@ -110,61 +105,61 @@
}
}
}
}
float
_lastTransX
=
0
.
0
,
_lastTransY
=
0
.
0
;
//
float _lastTransX = 0.0, _lastTransY = 0.0;
-
(
void
)
moveImage
:(
UIPanGestureRecognizer
*
)
sender
//
- (void)moveImage:(UIPanGestureRecognizer *)sender
{
//
{
CGPoint
translatedPoint
=
[
sender
translationInView
:
self
];
//
CGPoint translatedPoint = [sender translationInView:self];
//
if
([
sender
state
]
==
UIGestureRecognizerStateBegan
)
{
//
if([sender state] == UIGestureRecognizerStateBegan) {
_lastTransX
=
0
.
0
;
//
_lastTransX = 0.0;
_lastTransY
=
0
.
0
;
//
_lastTransY = 0.0;
}
//
}
//
CGAffineTransform
trans
=
CGAffineTransformMakeTranslation
(
translatedPoint
.
x
-
_lastTransX
,
translatedPoint
.
y
-
_lastTransY
);
//
CGAffineTransform trans = CGAffineTransformMakeTranslation(translatedPoint.x - _lastTransX, translatedPoint.y - _lastTransY);
CGAffineTransform
newTransform
=
CGAffineTransformConcat
(
self
.
transform
,
trans
);
//
CGAffineTransform newTransform = CGAffineTransformConcat(self.transform, trans);
_lastTransX
=
translatedPoint
.
x
;
//
_lastTransX = translatedPoint.x;
_lastTransY
=
translatedPoint
.
y
;
//
_lastTransY = translatedPoint.y;
//
self
.
transform
=
newTransform
;
//
self.transform = newTransform;
}
//
}
//
float
_lastScale
=
1
.
0
;
//
float _lastScale = 1.0;
-
(
void
)
scaleImage
:(
UIPinchGestureRecognizer
*
)
sender
//
- (void)scaleImage:(UIPinchGestureRecognizer *)sender
{
//
{
if
([
sender
state
]
==
UIGestureRecognizerStateBegan
)
{
//
if([sender state] == UIGestureRecognizerStateBegan) {
//
_lastScale
=
2
.
0
;
//
_lastScale = 2.0;
return
;
//
return;
}
//
}
//
CGFloat
scale
=
[
sender
scale
]
/
_lastScale
;
//
CGFloat scale = [sender scale]/_lastScale;
//
CGAffineTransform
currentTransform
=
self
.
transform
;
//
CGAffineTransform currentTransform = self.transform;
CGAffineTransform
newTransform
=
CGAffineTransformScale
(
currentTransform
,
scale
,
scale
);
//
CGAffineTransform newTransform = CGAffineTransformScale(currentTransform, scale, scale);
[
self
setTransform
:
newTransform
];
//
[self setTransform:newTransform];
//
_lastScale
=
[
sender
scale
];
//
_lastScale = [sender scale];
}
//
}
//
float
_lastRotation
=
0
.
0
;
//
float _lastRotation = 0.0;
//旋转
//
//
旋转
-
(
void
)
rotateImage
:(
UIRotationGestureRecognizer
*
)
sender
//
- (void)rotateImage:(UIRotationGestureRecognizer *)sender
{
//
{
if
([
sender
state
]
==
UIGestureRecognizerStateEnded
)
{
//
if([sender state] == UIGestureRecognizerStateEnded) {
//
_lastRotation
=
0
.
0
;
//
_lastRotation = 0.0;
return
;
//
return;
}
//
}
//
CGFloat
rotation
=
-
_lastRotation
+
[
sender
rotation
];
//
CGFloat rotation = -_lastRotation + [sender rotation];
//
CGAffineTransform
currentTransform
=
self
.
transform
;
//
CGAffineTransform currentTransform = self.transform;
CGAffineTransform
newTransform
=
CGAffineTransformRotate
(
currentTransform
,
rotation
);
//
CGAffineTransform newTransform = CGAffineTransformRotate(currentTransform,rotation);
[
self
setTransform
:
newTransform
];
//
[self setTransform:newTransform];
//
_lastRotation
=
[
sender
rotation
];
//
_lastRotation = [sender rotation];
//
}
//
}
//长按响应的事件
//长按响应的事件
-
(
void
)
handleLongPress2
:
(
id
)
sender
{
-
(
void
)
handleLongPress2
:
(
id
)
sender
{
...
...
Lighting/Lighting.xcodeproj/project.pbxproj
View file @
4650a3d1
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
04A14A251CE0FC3A00DAD5F3
/* LeftSubView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A14A241CE0FC3A00DAD5F3
/* LeftSubView.m */
;
};
04A14A251CE0FC3A00DAD5F3
/* LeftSubView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A14A241CE0FC3A00DAD5F3
/* LeftSubView.m */
;
};
04A14A281CE0FC5600DAD5F3
/* RightSubView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A14A271CE0FC5600DAD5F3
/* RightSubView.m */
;
};
04A14A281CE0FC5600DAD5F3
/* RightSubView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A14A271CE0FC5600DAD5F3
/* RightSubView.m */
;
};
04A14A2B1CE0FC7F00DAD5F3
/* FootSubView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A14A2A1CE0FC7F00DAD5F3
/* FootSubView.m */
;
};
04A14A2B1CE0FC7F00DAD5F3
/* FootSubView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04A14A2A1CE0FC7F00DAD5F3
/* FootSubView.m */
;
};
04F9EE181CF2235000BD729F
/* ShoppingView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F9EE171CF2235000BD729F
/* ShoppingView.m */
;
};
04F9EE1B1CF22B5900BD729F
/* ShoppingCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04F9EE1A1CF22B5900BD729F
/* ShoppingCell.m */
;
};
060D397C1CE45CFE0082AECD
/* ImageCropperView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
060D39791CE45CFE0082AECD
/* ImageCropperView.m */
;
};
060D397C1CE45CFE0082AECD
/* ImageCropperView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
060D39791CE45CFE0082AECD
/* ImageCropperView.m */
;
};
060D397D1CE45CFE0082AECD
/* UIImage+Rotation.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
060D397B1CE45CFE0082AECD
/* UIImage+Rotation.m */
;
};
060D397D1CE45CFE0082AECD
/* UIImage+Rotation.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
060D397B1CE45CFE0082AECD
/* UIImage+Rotation.m */
;
};
2906B5D71CD89246000849B4
/* ClientDetailsTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2906B5D61CD89246000849B4
/* ClientDetailsTableViewCell.m */
;
};
2906B5D71CD89246000849B4
/* ClientDetailsTableViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
2906B5D61CD89246000849B4
/* ClientDetailsTableViewCell.m */
;
};
...
@@ -147,6 +149,10 @@
...
@@ -147,6 +149,10 @@
04A14A271CE0FC5600DAD5F3
/* RightSubView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
RightSubView.m
;
sourceTree
=
"<group>"
;
};
04A14A271CE0FC5600DAD5F3
/* RightSubView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
RightSubView.m
;
sourceTree
=
"<group>"
;
};
04A14A291CE0FC7F00DAD5F3
/* FootSubView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
FootSubView.h
;
sourceTree
=
"<group>"
;
};
04A14A291CE0FC7F00DAD5F3
/* FootSubView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
FootSubView.h
;
sourceTree
=
"<group>"
;
};
04A14A2A1CE0FC7F00DAD5F3
/* FootSubView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
FootSubView.m
;
sourceTree
=
"<group>"
;
};
04A14A2A1CE0FC7F00DAD5F3
/* FootSubView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
FootSubView.m
;
sourceTree
=
"<group>"
;
};
04F9EE161CF2235000BD729F
/* ShoppingView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ShoppingView.h
;
sourceTree
=
"<group>"
;
};
04F9EE171CF2235000BD729F
/* ShoppingView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ShoppingView.m
;
sourceTree
=
"<group>"
;
};
04F9EE191CF22B5900BD729F
/* ShoppingCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ShoppingCell.h
;
sourceTree
=
"<group>"
;
};
04F9EE1A1CF22B5900BD729F
/* ShoppingCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ShoppingCell.m
;
sourceTree
=
"<group>"
;
};
060D39781CE45CFE0082AECD
/* ImageCropperView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ImageCropperView.h
;
sourceTree
=
"<group>"
;
};
060D39781CE45CFE0082AECD
/* ImageCropperView.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ImageCropperView.h
;
sourceTree
=
"<group>"
;
};
060D39791CE45CFE0082AECD
/* ImageCropperView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ImageCropperView.m
;
sourceTree
=
"<group>"
;
};
060D39791CE45CFE0082AECD
/* ImageCropperView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ImageCropperView.m
;
sourceTree
=
"<group>"
;
};
060D397A1CE45CFE0082AECD
/* UIImage+Rotation.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"UIImage+Rotation.h"
;
sourceTree
=
"<group>"
;
};
060D397A1CE45CFE0082AECD
/* UIImage+Rotation.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
"UIImage+Rotation.h"
;
sourceTree
=
"<group>"
;
};
...
@@ -407,6 +413,8 @@
...
@@ -407,6 +413,8 @@
0470D6101CE2936000647F0F
/* SeceneLibraryView.m */
,
0470D6101CE2936000647F0F
/* SeceneLibraryView.m */
,
0470D6121CE2938000647F0F
/* ProductLibraryView.h */
,
0470D6121CE2938000647F0F
/* ProductLibraryView.h */
,
0470D6131CE2938000647F0F
/* ProductLibraryView.m */
,
0470D6131CE2938000647F0F
/* ProductLibraryView.m */
,
04F9EE161CF2235000BD729F
/* ShoppingView.h */
,
04F9EE171CF2235000BD729F
/* ShoppingView.m */
,
);
);
name
=
subView
;
name
=
subView
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -438,6 +446,8 @@
...
@@ -438,6 +446,8 @@
044CD6ED1CEB771C0004A715
/* SeceneCollectionPictureCell.m */
,
044CD6ED1CEB771C0004A715
/* SeceneCollectionPictureCell.m */
,
044CD6EF1CEB81350004A715
/* ProductCollectionPictureCell.h */
,
044CD6EF1CEB81350004A715
/* ProductCollectionPictureCell.h */
,
044CD6F01CEB81350004A715
/* ProductCollectionPictureCell.m */
,
044CD6F01CEB81350004A715
/* ProductCollectionPictureCell.m */
,
04F9EE191CF22B5900BD729F
/* ShoppingCell.h */
,
04F9EE1A1CF22B5900BD729F
/* ShoppingCell.m */
,
);
);
name
=
customCell
;
name
=
customCell
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -1397,7 +1407,9 @@
...
@@ -1397,7 +1407,9 @@
290887131CE5DF16000B7097
/* ShopcarModel.m in Sources */
,
290887131CE5DF16000B7097
/* ShopcarModel.m in Sources */
,
29BB27681CD9D38E009A0813
/* AllpriceTableViewCell.m in Sources */
,
29BB27681CD9D38E009A0813
/* AllpriceTableViewCell.m in Sources */
,
29BB27771CD9DFBA009A0813
/* ProductLibraryViewController.m in Sources */
,
29BB27771CD9DFBA009A0813
/* ProductLibraryViewController.m in Sources */
,
04F9EE181CF2235000BD729F
/* ShoppingView.m in Sources */
,
29EAAEAA1CDC7FE800C4DBA2
/* AllCutomerTableViewCell.m in Sources */
,
29EAAEAA1CDC7FE800C4DBA2
/* AllCutomerTableViewCell.m in Sources */
,
04F9EE1B1CF22B5900BD729F
/* ShoppingCell.m in Sources */
,
29360C2F1CDDC47E002A5D89
/* ScreeningView.m in Sources */
,
29360C2F1CDDC47E002A5D89
/* ScreeningView.m in Sources */
,
2985AEA21CE72F1500704C91
/* NSDictionary+ZXPUnicode.m in Sources */
,
2985AEA21CE72F1500704C91
/* NSDictionary+ZXPUnicode.m in Sources */
,
29EAAE9C1CDC74CA00C4DBA2
/* AllCustomerViewController.m in Sources */
,
29EAAE9C1CDC74CA00C4DBA2
/* AllCustomerViewController.m in Sources */
,
...
...
Lighting/Lighting/Images.xcassets/0510体验中心图标/其他_iPhone_assets/
10-副本
.imageset/10-副本.png
→
Lighting/Lighting/Images.xcassets/0510体验中心图标/其他_iPhone_assets/
addshopping
.imageset/10-副本.png
View file @
4650a3d1
File moved
Lighting/Lighting/Images.xcassets/0510体验中心图标/其他_iPhone_assets/
10-副本
.imageset/10-副本@2x.png
→
Lighting/Lighting/Images.xcassets/0510体验中心图标/其他_iPhone_assets/
addshopping
.imageset/10-副本@2x.png
View file @
4650a3d1
File moved
Lighting/Lighting/Images.xcassets/0510体验中心图标/其他_iPhone_assets/
10-副本
.imageset/Contents.json
→
Lighting/Lighting/Images.xcassets/0510体验中心图标/其他_iPhone_assets/
addshopping
.imageset/Contents.json
View file @
4650a3d1
File moved
Lighting/Lighting/Lighting.xcdatamodeld/Lighting.xcdatamodel/contents
View file @
4650a3d1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model
name=
"Test1.xcdatamodel"
userDefinedModelVersionIdentifier=
""
type=
"com.apple.IDECoreDataModeler.DataModel"
documentVersion=
"1.0"
lastSavedToolsVersion=
"1"
systemVersion=
"11A491"
minimumToolsVersion=
"Automatic"
macOSVersion=
"Automatic"
iOSVersion=
"Automatic"
>
<model
userDefinedModelVersionIdentifier=
""
type=
"com.apple.IDECoreDataModeler.DataModel"
documentVersion=
"1.0"
lastSavedToolsVersion=
"10171"
systemVersion=
"15E65"
minimumToolsVersion=
"Automatic"
>
<elements/>
<entity
name=
"Entity"
syncable=
"YES"
/>
<elements>
<element
name=
"Entity"
positionX=
"-63"
positionY=
"-18"
width=
"128"
height=
"45"
/>
</elements>
</model>
</model>
\ No newline at end of file
Lighting/Podfile.lock
View file @
4650a3d1
...
@@ -14,7 +14,7 @@ PODS:
...
@@ -14,7 +14,7 @@ PODS:
- AFNetworking/Serialization (3.1.0)
- AFNetworking/Serialization (3.1.0)
- AFNetworking/UIKit (3.1.0):
- AFNetworking/UIKit (3.1.0):
- AFNetworking/NSURLSession
- AFNetworking/NSURLSession
- IQKeyboardManager (4.0.
3
)
- IQKeyboardManager (4.0.
2
)
- JSONModel (1.2.0)
- JSONModel (1.2.0)
- Masonry (0.6.4)
- Masonry (0.6.4)
- MBProgressHUD (0.9.2)
- MBProgressHUD (0.9.2)
...
@@ -32,9 +32,9 @@ PODS:
...
@@ -32,9 +32,9 @@ PODS:
- MMDrawerController/Core
- MMDrawerController/Core
- MMDrawerController/Subclass (0.6.0):
- MMDrawerController/Subclass (0.6.0):
- MMDrawerController/Core
- MMDrawerController/Core
- SDWebImage (3.7.
6
):
- SDWebImage (3.7.
5
):
- SDWebImage/Core (= 3.7.
6
)
- SDWebImage/Core (= 3.7.
5
)
- SDWebImage/Core (3.7.
6
)
- SDWebImage/Core (3.7.
5
)
- SVProgressHUD (2.0.3)
- SVProgressHUD (2.0.3)
DEPENDENCIES:
DEPENDENCIES:
...
@@ -51,14 +51,14 @@ DEPENDENCIES:
...
@@ -51,14 +51,14 @@ DEPENDENCIES:
SPEC CHECKSUMS:
SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67
IQKeyboardManager:
be9695ffc5a52077deb4847608f338771022d6d1
IQKeyboardManager:
2341089c4ae25fa2fa82ce356a259fcd267dc6b6
JSONModel: 12523685c4b623553ccf844bbbf7007624317b2c
JSONModel: 12523685c4b623553ccf844bbbf7007624317b2c
Masonry: 281802d04d787ea2973179ee8bcb50500579ede2
Masonry: 281802d04d787ea2973179ee8bcb50500579ede2
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
MJExtension: d86aacb740c87519d20e3cca55b6fa4be6cc7548
MJExtension: d86aacb740c87519d20e3cca55b6fa4be6cc7548
MJRefresh: 743e6404967d1c2c688472ea3ecfde247d872db4
MJRefresh: 743e6404967d1c2c688472ea3ecfde247d872db4
MMDrawerController: e3a54a5570388463ad3b36975251575b50c4e1a0
MMDrawerController: e3a54a5570388463ad3b36975251575b50c4e1a0
SDWebImage:
c325cf02c30337336b95beff20a13df489ec0ec9
SDWebImage:
69c6303e3348fba97e03f65d65d4fbc26740f461
SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4
SVProgressHUD: b0830714205bea1317ea1a2ebc71e5633af334d4
COCOAPODS: 0.39.0
COCOAPODS: 0.39.0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment