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
7e94e12c
Commit
7e94e12c
authored
May 25, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
4c5cda30
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
337 additions
and
178 deletions
+337
-178
AdditionalTableViewCell.xib
Lighting/Class/AdditionalTableViewCell.xib
+4
-8
AllCustomerViewController.m
Lighting/Class/AllCustomerViewController.m
+2
-2
ClientDetailsTableViewCell.h
Lighting/Class/ClientDetailsTableViewCell.h
+5
-0
ClientDetailsTableViewCell.m
Lighting/Class/ClientDetailsTableViewCell.m
+5
-4
ClientViewController.m
Lighting/Class/ClientViewController.m
+2
-4
ClientdetailsViewController.m
Lighting/Class/ClientdetailsViewController.m
+145
-49
CustomerOrderTableViewCell.m
Lighting/Class/CustomerOrderTableViewCell.m
+3
-3
CustomerOrderViewController.m
Lighting/Class/CustomerOrderViewController.m
+1
-3
FullScreenViewController.h
Lighting/Class/FullScreenViewController.h
+4
-0
FullScreenViewController.m
Lighting/Class/FullScreenViewController.m
+10
-8
LoginViewController.m
Lighting/Class/Login/LoginViewController.m
+1
-0
OrderTableViewCell.m
Lighting/Class/OrderTableViewCell.m
+6
-6
OrderdetailsViewController.m
Lighting/Class/OrderdetailsViewController.m
+43
-32
ProductDetailsViewController.m
Lighting/Class/ProductDetailsViewController.m
+1
-1
ProductLibraryViewController.m
Lighting/Class/ProductLibraryViewController.m
+29
-16
ScannerViewController.m
Lighting/Class/ScannerViewController.m
+1
-1
SceneLibraryViewController.m
Lighting/Class/SceneLibraryViewController.m
+9
-7
SettlementViewController.m
Lighting/Class/SettlementViewController.m
+7
-4
SettlementViewController.xib
Lighting/Class/SettlementViewController.xib
+2
-2
AddressViewController.m
Lighting/Class/Shoppingcart/AddressViewController.m
+6
-1
CustomTabbarController.m
Lighting/Class/Tabbar/CustomTabbarController.m
+12
-6
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+35
-20
PrefixHeader.pch
Lighting/Tools/PrefixHeader.pch
+4
-1
No files found.
Lighting/Class/AdditionalTableViewCell.xib
View file @
7e94e12c
...
...
@@ -20,10 +20,9 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
曹云霄
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Gdg-fx-ziI"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Gdg-fx-ziI"
>
<rect
key=
"frame"
x=
"95"
y=
"13"
width=
"150"
height=
"17"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -35,10 +34,9 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
曹云霄
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"IhE-VI-oy0"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"IhE-VI-oy0"
>
<rect
key=
"frame"
x=
"95"
y=
"45"
width=
"220"
height=
"17"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -50,10 +48,9 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
曹云霄
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"7ty-c7-Sgn"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"7ty-c7-Sgn"
>
<rect
key=
"frame"
x=
"432"
y=
"13"
width=
"170"
height=
"17"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -65,10 +62,9 @@
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
曹云霄
"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"MPi-P0-LEg"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"MPi-P0-LEg"
>
<rect
key=
"frame"
x=
"432"
y=
"43"
width=
"170"
height=
"17"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"0.7124683436"
blue=
"0.054982668810000003"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
...
...
Lighting/Class/AllCustomerViewController.m
View file @
7e94e12c
...
...
@@ -100,7 +100,7 @@
ConsumerQueryCondition
*
condition
=
[[
ConsumerQueryCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
1
;
page
.
rows
=
10
;
page
.
rows
=
KROWS
;
condition
.
page
=
page
;
[
self
getShoppersAssociatedCustomer
:
condition
isRemove
:
YES
];
}];
...
...
@@ -114,7 +114,7 @@
ConsumerQueryCondition
*
condition
=
[[
ConsumerQueryCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
rows
=
10
;
page
.
rows
=
KROWS
;
if
(
self
.
indexPage
++
>
self
.
totalPages
)
{
[
self
.
allCustomerTableview
.
mj_footer
endRefreshingWithNoMoreData
];
}
else
...
...
Lighting/Class/ClientDetailsTableViewCell.h
View file @
7e94e12c
...
...
@@ -48,4 +48,9 @@
*/
@property
(
nonatomic
,
strong
)
ShopcarModel
*
model
;
/**
* 成交价
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UILabel
*
clinchPrice
;
@end
Lighting/Class/ClientDetailsTableViewCell.m
View file @
7e94e12c
...
...
@@ -23,10 +23,11 @@
_model
=
model
;
[
self
.
goodsImageview
sd_setImageWithURL
:[
NSURL
URLWithString
:
_model
.
goods
.
pictures
]
placeholderImage
:
REPLACEIMAGE
];
self
.
goodsName
.
text
=
_model
.
goods
.
name
;
self
.
goodsCraneQuotation
.
text
=
[
_model
.
goods
.
tagPrice
stringValue
];
self
.
goodsSpecifications
.
text
=
_model
.
goods
.
spec
;
self
.
goodsNumber
.
text
=
_model
.
goods
.
number
;
self
.
goodsPrice
.
text
=
[
_model
.
goods
.
costPrice
stringValue
];
self
.
goodsCraneQuotation
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
_model
.
goods
.
tagPrice
floatValue
]];
self
.
goodsSpecifications
.
text
=
_model
.
goods
.
size
;
self
.
clinchPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
_model
.
goods
.
costPrice
floatValue
]];
self
.
goodsNumber
.
text
=
[
NSString
stringWithFormat
:
@"%d"
,
_model
.
goodsNum
];
self
.
goodsPrice
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
_model
.
goods
.
costPrice
floatValue
]
*
_model
.
goodsNum
];
}
...
...
Lighting/Class/ClientViewController.m
View file @
7e94e12c
...
...
@@ -104,8 +104,6 @@
//监听键盘落下的通知
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
KeyboadrDismiss
)
name
:
UIKeyboardWillHideNotification
object
:
nil
];
//下拉刷新
MjRefreshHeaderCustom
*
headerRefresh
=
[
MjRefreshHeaderCustom
headerWithRefreshingBlock
:
^
{
ConsumerQueryCondition
*
condition
=
[[
ConsumerQueryCondition
alloc
]
init
];
...
...
@@ -113,7 +111,7 @@
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
1
;
condition
.
page
=
page
;
page
.
rows
=
10
;
page
.
rows
=
KROWS
;
self
.
indexPage
=
1
;
[
self
.
informationTableview
.
mj_footer
resetNoMoreData
];
[
self
getShoppersAssociatedCustomer
:
condition
isRemoveArray
:
YES
];
...
...
@@ -134,7 +132,7 @@
ConsumerQueryCondition
*
condition
=
[[
ConsumerQueryCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
++
;
page
.
rows
=
10
;
page
.
rows
=
KROWS
;
condition
.
page
=
page
;
[
self
getShoppersAssociatedCustomer
:
condition
isRemoveArray
:
NO
];
}
...
...
Lighting/Class/ClientdetailsViewController.m
View file @
7e94e12c
This diff is collapsed.
Click to expand it.
Lighting/Class/CustomerOrderTableViewCell.m
View file @
7e94e12c
...
...
@@ -51,14 +51,14 @@
self
.
phoneNumber
.
text
=
_model
.
consumer
.
mobile
;
self
.
consigneeAddress
.
text
=
_model
.
order
.
receiverAddress
;
NSInteger
goodsAllprice
=
0
;
CGFloat
goodsAllprice
=
0
;
NSInteger
goodsAllnum
=
0
;
for
(
TOOrderdetailEntity
*
goodslist
in
_model
.
orderdetailList
)
{
goodsAllprice
+=
[
goodslist
.
goodsTotalPrice
integer
Value
];
goodsAllprice
+=
[
goodslist
.
goodsTotalPrice
float
Value
];
goodsAllnum
+=
[
goodslist
.
goodsNum
integerValue
];
}
self
.
orderTotalPrice
.
text
=
[
NSString
stringWithFormat
:
@"
%ld
"
,
goodsAllprice
];
self
.
orderTotalPrice
.
text
=
[
NSString
stringWithFormat
:
@"
¥%.2f
"
,
goodsAllprice
];
self
.
styleNumber
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsAllnum
];
...
...
Lighting/Class/CustomerOrderViewController.m
View file @
7e94e12c
...
...
@@ -291,7 +291,7 @@
orderState
=
@"004"
;
}
self
.
indexPage
=
0
;
self
.
indexPage
=
1
;
Neworder
.
orderState
=
orderState
;
[
self
getGuideAllcustomerOrder
:
YES
WithorderBill
:
allOrder
];
}
...
...
@@ -325,8 +325,6 @@
/**
* 撤销订单
*
...
...
Lighting/Class/FullScreenViewController.h
View file @
7e94e12c
...
...
@@ -17,4 +17,8 @@
@property
(
nonatomic
,
copy
)
NSArray
*
datasArray
;
/**
* 身份ID/判断是场景库调用还是产品库调用
*/
@property
(
nonatomic
,
assign
)
BOOL
isProductLibrary
;
@end
Lighting/Class/FullScreenViewController.m
View file @
7e94e12c
...
...
@@ -63,8 +63,8 @@ static NSString * const reuseIdentifier = @"Cell";
#pragma amrk 返回View
-
(
void
)
CreateBackView
{
self
.
backView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
0
)];
self
.
backView
.
backgroundColor
=
[
kMainGrayColor
colorWithAlphaComponent
:
0
.
5
];
self
.
backView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
64
)];
self
.
backView
.
backgroundColor
=
[
kMainGrayColor
colorWithAlphaComponent
:
0
.
8
];
[
self
.
view
addSubview
:
self
.
backView
];
//返回按钮
...
...
@@ -73,13 +73,15 @@ static NSString * const reuseIdentifier = @"Cell";
[
backButton
setImage
:
TCImage
(
@"1"
)
forState
:
UIControlStateNormal
];
[
backButton
addTarget
:
self
action
:
@selector
(
BackButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
backView
addSubview
:
backButton
];
//体验中心
UIButton
*
tiYanCenterButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
tiYanCenterButton
.
frame
=
CGRectMake
(
ScreenWidth
-
100
,
0
,
100
,
64
);
[
tiYanCenterButton
setImage
:
TCImage
(
@"1"
)
forState
:
UIControlStateNormal
];
[
tiYanCenterButton
addTarget
:
self
action
:
@selector
(
GotoTiYanCenterButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
backView
addSubview
:
tiYanCenterButton
];
if
(
self
.
isProductLibrary
)
{
//体验中心
UIButton
*
tiYanCenterButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
tiYanCenterButton
.
frame
=
CGRectMake
(
ScreenWidth
-
100
,
0
,
100
,
64
);
[
tiYanCenterButton
setImage
:
TCImage
(
@"1"
)
forState
:
UIControlStateNormal
];
[
tiYanCenterButton
addTarget
:
self
action
:
@selector
(
GotoTiYanCenterButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
backView
addSubview
:
tiYanCenterButton
];
}
}
#pragma mark -返回
...
...
Lighting/Class/Login/LoginViewController.m
View file @
7e94e12c
...
...
@@ -74,6 +74,7 @@
}
#pragma mark - 布局
-
(
void
)
uiConfigAction
{
...
...
Lighting/Class/OrderTableViewCell.m
View file @
7e94e12c
...
...
@@ -33,16 +33,16 @@
self
.
consigneeName
.
text
=
_model
.
order
.
receiverName
;
self
.
consigneePhoneNumber
.
text
=
_model
.
order
.
receiverMobile
;
self
.
orderSerialNumber
.
text
=
_model
.
order
.
orderNumber
;
self
.
shopperName
.
text
=
_model
.
employee
.
user
Name
;
self
.
shopperName
.
text
=
_model
.
employee
.
real
Name
;
self
.
phoneNumber
.
text
=
_model
.
consumer
.
mobile
;
//价格
NSInteger
allprice
=
0
;
//
总
价格
CGFloat
allprice
=
0
;
for
(
TOOrderdetailEntity
*
objc
in
_model
.
orderdetailList
)
{
allprice
+=
[
objc
.
goodsPrice
integerValue
];
allprice
+=
[
objc
.
goodsPrice
floatValue
]
*
[
objc
.
goodsNum
integerValue
];
}
self
.
orderAllprice
.
text
=
[
NSString
stringWithFormat
:
@"
%ld
"
,
allprice
];
self
.
customerAddress
.
text
=
_model
.
consumer
.
a
ddress
;
self
.
orderAllprice
.
text
=
[
NSString
stringWithFormat
:
@"
¥%.2f
"
,
allprice
];
self
.
customerAddress
.
text
=
_model
.
order
.
receiverA
ddress
;
//订单状态图片
self
.
orderStateShowImageView
.
image
=
[
BaseViewController
ReturnOrderStateImageWithStateCode
:[
_model
.
order
.
orderState
integerValue
]];
...
...
Lighting/Class/OrderdetailsViewController.m
View file @
7e94e12c
...
...
@@ -334,12 +334,14 @@
-
(
UIView
*
)
tableView
:
(
UITableView
*
)
tableView
viewForHeaderInSection
:
(
NSInteger
)
section
{
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
44
)];
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
60
)];
//区头文字
UILabel
*
Titlelabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
30
,
0
,
100
,
44
)];
Titlelabe
.
text
=
[
self
.
sectionTitle
objectAtIndex_opple
:
section
];
UILabel
*
Titlelabe
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
0
,
10
,
ScreenWidth
,
50
)];
Titlelabe
.
text
=
[
NSString
stringWithFormat
:
@" %@"
,[
self
.
sectionTitle
objectAtIndex_opple
:
section
]];
view
.
backgroundColor
=
kTCColor
(
236
,
236
,
236
);
Titlelabe
.
backgroundColor
=
[
UIColor
whiteColor
];
Titlelabe
.
font
=
[
UIFont
systemFontOfSize
:
13
];
[
view
addSubview
:
Titlelabe
];
return
view
;
...
...
@@ -349,7 +351,7 @@
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForHeaderInSection
:
(
NSInteger
)
section
{
return
44
;
return
60
;
}
...
...
@@ -414,36 +416,45 @@
}
else
if
([
button
.
currentTitle
isEqualToString
:
@"撤销订单"
])
{
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@/%@/%@"
,
ServerAddress
,
@"/order/updateOrderState/"
,
_orderCode
,
@"001"
,
@"005"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
self
SuccessMBProgressView
:
@"撤销成功"
];
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
0
)];
self
.
orderDetailsTableview
.
tableHeaderView
=
view
;
self
.
orderDetailsTableview
.
tableFooterView
=
nil
;
self
.
orderDetails
.
order
.
orderState
=
@"005"
;
[
self
.
orderDetailsTableview
reloadData
];
__weak
typeof
(
self
)
weakSelf
=
self
;
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:
@"提示"
message
:
@"请确认是否撤销订单"
preferredStyle
:
UIAlertControllerStyleAlert
];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleCancel
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
weakSelf
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}]];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"确认"
style
:
UIAlertActionStyleDestructive
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@/%@/%@"
,
ServerAddress
,
@"/order/updateOrderState/"
,
_orderCode
,
@"001"
,
@"005"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
if
(
self
.
DelecteAndPayButtonBlock
)
{
self
.
DelecteAndPayButtonBlock
(
_cellindex
,
@"005"
);
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
self
SuccessMBProgressView
:
@"撤销成功"
];
UIView
*
view
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
ScreenWidth
,
0
)];
self
.
orderDetailsTableview
.
tableHeaderView
=
view
;
self
.
orderDetailsTableview
.
tableFooterView
=
nil
;
self
.
orderDetails
.
order
.
orderState
=
@"005"
;
[
self
.
orderDetailsTableview
reloadData
];
if
(
self
.
DelecteAndPayButtonBlock
)
{
self
.
DelecteAndPayButtonBlock
(
_cellindex
,
@"005"
);
}
}
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
}]];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
}
}
...
...
Lighting/Class/ProductDetailsViewController.m
View file @
7e94e12c
...
...
@@ -130,7 +130,7 @@
self
.
headerView
.
serialNumber
.
text
=
self
.
entity
.
code
;
self
.
headerView
.
nameLabe
.
text
=
self
.
entity
.
name
;
self
.
headerView
.
brandName
.
text
=
self
.
entity
.
company
;
self
.
headerView
.
dorpPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
self
.
entity
.
guide
Price
floatValue
]];
self
.
headerView
.
dorpPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
self
.
entity
.
tag
Price
floatValue
]];
self
.
imagesArray
=
[
NSMutableArray
arrayWithArray
:[
self
.
entity
.
pictures
componentsSeparatedByString
:
@","
]];
[
self
.
headerView
.
goodsImageview
sd_setImageWithURL
:[
self
.
imagesArray
firstObject
]
placeholderImage
:
REPLACEIMAGE
];
//商品小图
...
...
Lighting/Class/ProductLibraryViewController.m
View file @
7e94e12c
...
...
@@ -110,7 +110,16 @@
self
.
view
.
backgroundColor
=
[
UIColor
blueColor
];
[
self
uiConfigAction
];
[
self
GetdatasAction
];
//扫描二维码结果
if
(
self
.
barcode
)
{
[
self
barCodeSearchRequest
];
}
else
{
[
self
GetdatasAction
];
}
}
...
...
@@ -228,7 +237,7 @@
//分页数据
DataPage
*
Newpage
=
[[
DataPage
alloc
]
init
];
Newpage
.
page
=
1
;
Newpage
.
rows
=
10
;
Newpage
.
rows
=
KROWS
;
conditon
.
page
=
Newpage
;
self
.
indexPage
=
1
;
//搜索
...
...
@@ -257,7 +266,7 @@
}
else
{
Newpage
.
page
=
self
.
indexPage
++
;
Newpage
.
rows
=
10
;
Newpage
.
rows
=
KROWS
;
conditon
.
page
=
Newpage
;
//搜索
if
(
_selectedCode
)
{
...
...
@@ -273,22 +282,26 @@
#pragma mark 填条形码搜索
-
(
void
)
barCodeSearchRequest
{
if
(
self
.
barcode
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
ServerAddress
,
@"/goods/getGoodsByCode/"
,
_barcode
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/goods/getGoodsByCode/"
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
TOGoodsEntity
*
goods
=
[[
TOGoodsEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
NSLog
(
@"%@"
,
goods
);
}];
}
}
else
{
[
self
promptCustomerWithString
:
@"查询失败"
];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
promptCustomerWithString
:
@"查询失败"
];
}];
}
...
...
Lighting/Class/ScannerViewController.m
View file @
7e94e12c
...
...
@@ -113,7 +113,7 @@
// CGRect cropRect = self.scanRectView.frame;
// CGFloat p1 = size.height/size.width;
// CGFloat p2 = 1920./1080.; //使用1080p的图像输出
output
.
rectOfInterest
=
CGRectMake
(
self
.
scanRectView
.
frame
.
origin
.
y
/
ScreenHeight
,((
ScreenWidth
-
self
.
scanRectView
.
frame
.
size
.
width
)
/
2
)
/
ScreenWidth
,
self
.
scanRectView
.
frame
.
size
.
height
/
ScreenHeight
,
self
.
scanRectView
.
frame
.
size
.
width
/
ScreenWidth
);
output
.
rectOfInterest
=
CGRectMake
(
self
.
scanRectView
.
frame
.
origin
.
y
/
ScreenHeight
,((
ScreenWidth
-
self
.
scanRectView
.
frame
.
size
.
width
)
/
2
)
/
ScreenWidth
+
0
.
1
,
self
.
scanRectView
.
frame
.
size
.
height
/
ScreenHeight
,
self
.
scanRectView
.
frame
.
size
.
width
/
ScreenWidth
);
//
// CGFloat fixHeight = [UIScreen mainScreen].bounds.size.width * 1920. / 1080.;
...
...
Lighting/Class/SceneLibraryViewController.m
View file @
7e94e12c
...
...
@@ -109,20 +109,22 @@
self
.
SpaceButton
.
layer
.
cornerRadius
=
10
;
[
self
.
backView
addSubview
:
self
.
StyleButton
];
[
self
.
backView
addSubview
:
self
.
SpaceButton
];
self
.
indexPage
=
1
;
//下拉刷新
MjRefreshHeaderCustom
*
headerRefresh
=
[
MjRefreshHeaderCustom
headerWithRefreshingBlock
:
^
{
//默认数据
self
.
indexPage
=
1
;
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
1
;
page
.
rows
=
10
;
page
.
page
=
self
.
indexPage
;
page
.
rows
=
KROWS
;
condition
.
page
=
page
;
[
self
.
seceneLibararyCollectionView
.
mj_footer
resetNoMoreData
];
[
self
getSceneLibrarydatas
:
condition
isRemove
:
YES
];
}];
headerRefresh
.
stateLabel
.
hidden
=
YES
;
headerRefresh
.
lastUpdatedTimeLabel
.
hidden
=
YES
;
self
.
seceneLibararyCollectionView
.
mj_header
=
headerRefresh
;
...
...
@@ -130,15 +132,15 @@
//上拉加载
self
.
seceneLibararyCollectionView
.
mj_footer
=
[
MJRefreshAutoNormalFooter
footerWithRefreshingBlock
:
^
{
//默认数据
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
if
(
self
.
indexPage
++
>
self
.
totalPages
)
{
[
self
.
seceneLibararyCollectionView
.
mj_footer
endRefreshingWithNoMoreData
];
}
else
{
//默认数据
SceneCondition
*
condition
=
[[
SceneCondition
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
self
.
indexPage
++
;
page
.
rows
=
10
;
page
.
rows
=
KROWS
;
condition
.
page
=
page
;
[
self
getSceneLibrarydatas
:
condition
isRemove
:
NO
];
}
...
...
Lighting/Class/SettlementViewController.m
View file @
7e94e12c
...
...
@@ -74,10 +74,10 @@
CGFloat
goodAllprice
=
0
;
//总价格
for
(
TOOrderdetailEntity
*
model
in
_goodsArray
)
{
goodsAllNumber
+=
[
model
.
goodsNum
integerValue
];
goodAllprice
+=
[
model
.
goodsPrice
floatValue
];
goodAllprice
+=
[
model
.
goodsPrice
floatValue
]
*
[
model
.
goodsNum
integerValue
]
;
}
self
.
goodsAllNumber
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsAllNumber
];
self
.
goodsAllPrice
.
text
=
[
NSString
stringWithFormat
:
@"
%.2f元"
,(
goodAllprice
*
goodsAllNumber
)
];
self
.
goodsAllPrice
.
text
=
[
NSString
stringWithFormat
:
@"
¥%.2f"
,
goodAllprice
];
}
...
...
@@ -89,8 +89,8 @@
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSLog
(
@"获取二维码成功"
);
self
.
zhiFubaoLabe
=
returnValue
[
@"data"
][
@"
weixin
"
];
self
.
weiXinLabe
=
returnValue
[
@"data"
][
@"
zhifubao
"
];
self
.
zhiFubaoLabe
=
returnValue
[
@"data"
][
@"
zhifubao
"
];
self
.
weiXinLabe
=
returnValue
[
@"data"
][
@"
weixin
"
];
}
else
{
...
...
@@ -144,6 +144,7 @@
#pragma mark -微信支付
-
(
IBAction
)
WechatButtonClick
:
(
UIButton
*
)
sender
{
self
.
showPayQrCodeImageView
.
hidden
=
NO
;
sender
.
selected
=
!
sender
.
selected
;
if
(
sender
.
selected
)
{
...
...
@@ -157,6 +158,7 @@
#pragma mark -支付宝支付
-
(
IBAction
)
ZhifubaoPayButtonClick
:
(
UIButton
*
)
sender
{
self
.
showPayQrCodeImageView
.
hidden
=
NO
;
sender
.
selected
=
!
sender
.
selected
;
if
(
sender
.
selected
)
{
...
...
@@ -213,6 +215,7 @@
-
(
void
)
returnCellindexpathwithrow
:
(
NSString
*
)
Type
WithcellTitle
:
(
NSString
*
)
title
Withselected
:
(
NSInteger
)
Selected
{
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
self
.
showPayQrCodeImageView
.
hidden
=
YES
;
switch
(
Selected
)
{
case
0
:
//支付方式
{
...
...
Lighting/Class/SettlementViewController.xib
View file @
7e94e12c
...
...
@@ -72,7 +72,7 @@
</connections>
</button>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
id=
"evA-uJ-YEb"
>
<rect
key=
"frame"
x=
"25
5"
y=
"143"
width=
"100"
height=
"100
"
/>
<rect
key=
"frame"
x=
"25
3"
y=
"120"
width=
"120"
height=
"187
"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"发票类型:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"IOP-zc-e6A"
>
...
...
@@ -230,7 +230,7 @@
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite"
/>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"521"
y=
"319
.5
"
/>
<point
key=
"canvasLocation"
x=
"521"
y=
"319"
/>
</view>
</objects>
<resources>
...
...
Lighting/Class/Shoppingcart/AddressViewController.m
View file @
7e94e12c
...
...
@@ -170,7 +170,9 @@
address
.
name
=
self
.
recipientPerson
.
text
;
address
.
miblephone
=
self
.
PhoneNumber
.
text
;
address
.
city
=
[
self
.
citySelected
currentTitle
];
address
.
province
=
self
.
provincesString
;
if
(
!
[
self
.
provincesString
isEqualToString
:[
self
.
citySelected
currentTitle
]])
{
address
.
province
=
self
.
provincesString
;
}
address
.
address
=
self
.
detailsAddress
.
text
;
[
self
CreateMBProgressHUDLoding
];
...
...
@@ -244,6 +246,9 @@
address
.
miblephone
=
self
.
PhoneNumber
.
text
;
address
.
city
=
[
self
.
citySelected
currentTitle
];
address
.
address
=
self
.
detailsAddress
.
text
;
if
(
!
[
self
.
provincesString
isEqualToString
:[
self
.
citySelected
currentTitle
]])
{
address
.
province
=
self
.
provincesString
;
}
address
.
fid
=
_model
.
fid
;
[
self
CreateMBProgressHUDLoding
];
...
...
Lighting/Class/Tabbar/CustomTabbarController.m
View file @
7e94e12c
...
...
@@ -21,6 +21,7 @@
#import "ChangePasswordViewController.h"
#import "SearchViewController.h"
#import "ScannerViewController.h"
#import "BaseViewController.h"
@interface
CustomTabbarController
()
<
TabbarButtonClickdelegate
,
ChangpasswordDelegate
,
CancelButtondelegate
,
UITextFieldDelegate
>
...
...
@@ -269,12 +270,17 @@
ScannerViewController
*
scannerVC
=
[[
ScannerViewController
alloc
]
init
];
[
scannerVC
setReturnScannerResponse
:
^
(
id
value
)
{
[
self
dismissViewControllerAnimated
:
YES
completion
:
nil
];
//调用商品控制器
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
ProductLibraryViewController
*
productVC
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"productlibrary"
];
productVC
.
selectedCode
=
value
;
[
self
.
navigationController
pushViewController
:
productVC
animated
:
YES
];
[
self
dismissViewControllerAnimated
:
YES
completion
:
^
{
//调用商品控制器
UIStoryboard
*
storyboard
=
[
UIStoryboard
storyboardWithName
:
@"StoryboardwithCYX"
bundle
:
nil
];
ProductLibraryViewController
*
productVC
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"productlibrary"
];
productVC
.
barcode
=
value
;
// [self.navigationController pushViewController:productVC animated:YES];
BaseViewController
*
baseVC
=
[
self
.
vcArray
objectAtIndex_opple
:
self
.
selectedIndex
];
[
baseVC
.
navigationController
pushViewController
:
productVC
animated
:
YES
];
}];
}];
[
self
presentViewController
:
scannerVC
animated
:
YES
completion
:
nil
];
}
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
7e94e12c
This diff is collapsed.
Click to expand it.
Lighting/Tools/PrefixHeader.pch
View file @
7e94e12c
...
...
@@ -184,7 +184,10 @@
#define PASSWORD @"password"
/**
* 网络请求返回个数
*/
#define KROWS 10
...
...
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