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
853747a5
Commit
853747a5
authored
May 20, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
曹云霄
parent
62b1e46a
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
94 additions
and
38 deletions
+94
-38
ClientViewController.m
Lighting/Class/ClientViewController.m
+1
-11
OrderdetailsViewController.m
Lighting/Class/OrderdetailsViewController.m
+7
-5
GenerateOrdersViewController.h
Lighting/Class/Shoppingcart/GenerateOrdersViewController.h
+7
-0
GenerateOrdersViewController.m
Lighting/Class/Shoppingcart/GenerateOrdersViewController.m
+11
-4
ShoppingViewController.m
Lighting/Class/Shoppingcart/ShoppingViewController.m
+42
-1
StoryboardwithCYX.storyboard
Lighting/Lighting/StoryboardwithCYX.storyboard
+2
-13
BaseViewController.h
Lighting/Tools/BaseViewController.h
+4
-1
BaseViewController.m
Lighting/Tools/BaseViewController.m
+20
-3
No files found.
Lighting/Class/ClientViewController.m
View file @
853747a5
...
@@ -265,17 +265,7 @@
...
@@ -265,17 +265,7 @@
#pragma mark -设置为当前客户、查询购物车数量
#pragma mark -设置为当前客户、查询购物车数量
-
(
void
)
SetupUserShoppingCarNumberRequest
-
(
void
)
SetupUserShoppingCarNumberRequest
{
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
ServerAddress
,
@"/shopcart/get/"
,[
Customermanager
manager
].
customerID
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
QueryShoppingCarNumber
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
REFRESHSHOPPINGCAR
object
:
returnValue
[
@"data"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
}];
}
}
...
...
Lighting/Class/OrderdetailsViewController.m
View file @
853747a5
...
@@ -55,6 +55,9 @@
...
@@ -55,6 +55,9 @@
self
.
orderDetailsTableview
.
dataSource
=
self
;
self
.
orderDetailsTableview
.
dataSource
=
self
;
self
.
orderDetailsTableview
.
delegate
=
self
;
self
.
orderDetailsTableview
.
delegate
=
self
;
// [self CreateTableviewHeaderView];
// [self CreateTableviewHeaderView];
//附加信息cell
[
self
.
orderDetailsTableview
registerNib
:[
UINib
nibWithNibName
:
@"AdditionalTableViewCell"
bundle
:
nil
]
forCellReuseIdentifier
:
@"fifthcell"
];
[
self
CreateTableviewFooterView
];
[
self
CreateTableviewFooterView
];
}
}
...
@@ -123,11 +126,6 @@
...
@@ -123,11 +126,6 @@
lineView
.
backgroundColor
=
kTCColor
(
193
,
193
,
193
);
lineView
.
backgroundColor
=
kTCColor
(
193
,
193
,
193
);
[
headerView
addSubview
:
lineView
];
[
headerView
addSubview
:
lineView
];
//附加信息cell
[
self
.
orderDetailsTableview
registerNib
:[
UINib
nibWithNibName
:
@"AdditionalTableViewCell"
bundle
:
nil
]
forCellReuseIdentifier
:
@"fifthcell"
];
self
.
orderDetailsTableview
.
tableHeaderView
=
headerView
;
self
.
orderDetailsTableview
.
tableHeaderView
=
headerView
;
}
}
...
@@ -273,6 +271,10 @@
...
@@ -273,6 +271,10 @@
return
nil
;
return
nil
;
}
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
{
switch
(
indexPath
.
section
)
{
switch
(
indexPath
.
section
)
{
...
...
Lighting/Class/Shoppingcart/GenerateOrdersViewController.h
View file @
853747a5
...
@@ -41,6 +41,13 @@
...
@@ -41,6 +41,13 @@
@property
(
nonatomic
,
strong
)
NSArray
*
settlementGoodsdatas
;
@property
(
nonatomic
,
strong
)
NSArray
*
settlementGoodsdatas
;
/**
* 清空已生成订单的商品 ,goodsCode表示选中商品购物车ID
*/
@property
(
nonatomic
,
copy
)
void
(
^
DelecteSelectedGoods
)(
NSArray
*
goodsCode
);
@end
@end
Lighting/Class/Shoppingcart/GenerateOrdersViewController.m
View file @
853747a5
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
NSIndexPath
*
indexpath
=
[
NSIndexPath
indexPathForRow
:
i
inSection
:
1
];
NSIndexPath
*
indexpath
=
[
NSIndexPath
indexPathForRow
:
i
inSection
:
1
];
[
addCellArray
addObject
:
indexpath
];
[
addCellArray
addObject
:
indexpath
];
}
}
[
self
.
generateOrderTableview
insertRowsAtIndexPaths
:
addCellArray
withRowAnimation
:
UITableViewRowAnimation
Left
];
[
self
.
generateOrderTableview
insertRowsAtIndexPaths
:
addCellArray
withRowAnimation
:
UITableViewRowAnimation
Bottom
];
}
}
else
else
{
{
...
@@ -329,15 +329,12 @@
...
@@ -329,15 +329,12 @@
-
(
IBAction
)
CreateOrderButtonClick
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
CreateOrderButtonClick
:
(
UIButton
*
)
sender
{
OrderBill
*
order
=
[[
OrderBill
alloc
]
init
];
OrderBill
*
order
=
[[
OrderBill
alloc
]
init
];
//分页
//分页
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
0
;
page
.
page
=
0
;
order
.
datapage
=
page
;
order
.
datapage
=
page
;
//收货地址
//收货地址
TOOrderEntity
*
orderReceiver
=
[[
TOOrderEntity
alloc
]
init
];
TOOrderEntity
*
orderReceiver
=
[[
TOOrderEntity
alloc
]
init
];
NSArray
*
Adressarr
=
[
self
.
datasArray
objectAtIndex_opple
:
1
];
NSArray
*
Adressarr
=
[
self
.
datasArray
objectAtIndex_opple
:
1
];
...
@@ -385,11 +382,21 @@
...
@@ -385,11 +382,21 @@
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/order/save"
]
WithRequestType
:
0
WithParameter
:
order
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/order/save"
]
WithRequestType
:
0
WithParameter
:
order
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
//商品购物车id
NSMutableArray
*
codeArrray
=
[
NSMutableArray
array
];
for
(
ShopcarModel
*
model
in
_settlementGoodsdatas
)
{
[
codeArrray
addObject
:
model
.
fid
?
model
.
fid
:
@" "
];
}
//调用删除购物车
if
(
self
.
DelecteSelectedGoods
)
{
self
.
DelecteSelectedGoods
(
codeArrray
);
}
OrderdetailsViewController
*
orderDetails
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
OrderdetailsViewController
*
orderDetails
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
orderDetails
.
orderCode
=
returnValue
[
@"data"
];
orderDetails
.
orderCode
=
returnValue
[
@"data"
];
orderDetails
.
sectionTitle
=
@[
@"订单信息"
,
@"客户信息"
,
@"收货信息"
,
@"商品清单"
];
orderDetails
.
sectionTitle
=
@[
@"订单信息"
,
@"客户信息"
,
@"收货信息"
,
@"商品清单"
];
orderDetails
.
isShowattachment
=
NO
;
orderDetails
.
isShowattachment
=
NO
;
[
self
.
navigationController
pushViewController
:
orderDetails
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
orderDetails
animated
:
YES
];
}
else
}
else
{
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
...
...
Lighting/Class/Shoppingcart/ShoppingViewController.m
View file @
853747a5
...
@@ -153,6 +153,7 @@
...
@@ -153,6 +153,7 @@
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
{
ShoppingTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"Shopping"
forIndexPath
:
indexPath
];
ShoppingTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"Shopping"
forIndexPath
:
indexPath
];
...
@@ -228,6 +229,44 @@
...
@@ -228,6 +229,44 @@
[
array
addObject
:
ZhanweiModel
];
[
array
addObject
:
ZhanweiModel
];
GenerateOrdersViewController
*
generateOrder
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"generateorders"
];
GenerateOrdersViewController
*
generateOrder
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"generateorders"
];
generateOrder
.
settlementGoodsdatas
=
array
;
generateOrder
.
settlementGoodsdatas
=
array
;
//清除已经生成订单的商品
[
generateOrder
setDelecteSelectedGoods
:
^
(
NSArray
*
goodsCode
)
{
DeleteCartRequest
*
delecteGoods
=
[[
DeleteCartRequest
alloc
]
init
];
delecteGoods
.
cartIds
=
goodsCode
;
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
ServerAddress
,
@"/shopcart/delete"
]
WithRequestType
:
0
WithParameter
:
delecteGoods
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
self
QueryShoppingCarNumber
];
//商品cell
NSMutableArray
*
cellArray
=
[
NSMutableArray
array
];
//删除商品
for
(
int
i
=
0
;
i
<
self
.
shopResponseArray
.
count
;
i
++
)
{
ShopcarModel
*
model
=
[
self
.
shopResponseArray
objectAtIndex_opple
:
i
];
if
([
goodsCode
containsObject
:
model
.
fid
])
{
[
self
.
shopResponseArray
removeObject
:
model
];
NSIndexPath
*
indexpath
=
[
NSIndexPath
indexPathForRow
:
i
inSection
:
0
];
[
cellArray
addObject
:
indexpath
];
}
}
//删除cell
[
self
.
shoppingTableview
deleteRowsAtIndexPaths
:
cellArray
withRowAnimation
:
UITableViewRowAnimationTop
];
}
else
{
[
self
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
}];
[
self
.
navigationController
pushViewController
:
generateOrder
animated
:
YES
];
[
self
.
navigationController
pushViewController
:
generateOrder
animated
:
YES
];
}
}
...
@@ -311,6 +350,7 @@
...
@@ -311,6 +350,7 @@
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
self
QueryShoppingCarNumber
];
//删除商品
//删除商品
for
(
ShopcarModel
*
model
in
delectemodel
)
{
for
(
ShopcarModel
*
model
in
delectemodel
)
{
[
self
.
shopResponseArray
removeObject
:
model
];
[
self
.
shopResponseArray
removeObject
:
model
];
...
@@ -335,6 +375,7 @@
...
@@ -335,6 +375,7 @@
}
}
#pragma mark -改变商品数量
#pragma mark -改变商品数量
-
(
void
)
ChangeGoodsNumber
:
(
int
)
goodsNumber
WithcostPrice
:
(
NSInteger
)
costprice
Withcellindex
:
(
NSInteger
)
cellindex
-
(
void
)
ChangeGoodsNumber
:
(
int
)
goodsNumber
WithcostPrice
:
(
NSInteger
)
costprice
Withcellindex
:
(
NSInteger
)
cellindex
{
{
...
...
Lighting/Lighting/StoryboardwithCYX.storyboard
View file @
853747a5
...
@@ -601,7 +601,6 @@
...
@@ -601,7 +601,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"oYO-Ty-li3"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"oYO-Ty-li3"
>
<rect
key=
"frame"
x=
"104"
y=
"13"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"104"
y=
"13"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -609,7 +608,6 @@
...
@@ -609,7 +608,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ysN-Xc-Pna"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ysN-Xc-Pna"
>
<rect
key=
"frame"
x=
"104"
y=
"43"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"104"
y=
"43"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -617,7 +615,6 @@
...
@@ -617,7 +615,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Bad-XW-0bg"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Bad-XW-0bg"
>
<rect
key=
"frame"
x=
"104"
y=
"74"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"104"
y=
"74"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -625,7 +622,6 @@
...
@@ -625,7 +622,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"q0f-75-VmW"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"q0f-75-VmW"
>
<rect
key=
"frame"
x=
"104"
y=
"106"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"104"
y=
"106"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -633,7 +629,6 @@
...
@@ -633,7 +629,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"eAc-Y2-BcG"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"eAc-Y2-BcG"
>
<rect
key=
"frame"
x=
"104"
y=
"136"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"104"
y=
"136"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -641,7 +636,6 @@
...
@@ -641,7 +636,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ygb-zQ-59Y"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ygb-zQ-59Y"
>
<rect
key=
"frame"
x=
"104"
y=
"165"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"104"
y=
"165"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -649,7 +643,6 @@
...
@@ -649,7 +643,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"xeN-1m-zqn"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"xeN-1m-zqn"
>
<rect
key=
"frame"
x=
"403"
y=
"13"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"403"
y=
"13"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -657,7 +650,6 @@
...
@@ -657,7 +650,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"XFH-Ra-nFt"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"XFH-Ra-nFt"
>
<rect
key=
"frame"
x=
"403"
y=
"74"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"403"
y=
"74"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -665,7 +657,6 @@
...
@@ -665,7 +657,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"C89-SH-CLU"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"C89-SH-CLU"
>
<rect
key=
"frame"
x=
"403"
y=
"106"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"403"
y=
"106"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -673,7 +664,6 @@
...
@@ -673,7 +664,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"aUc-nr-JmM"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"aUc-nr-JmM"
>
<rect
key=
"frame"
x=
"403"
y=
"136"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"403"
y=
"136"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -681,7 +671,6 @@
...
@@ -681,7 +671,6 @@
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"sza-qy-jFZ"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"曹云霄"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"sza-qy-jFZ"
>
<rect
key=
"frame"
x=
"403"
y=
"43"
width=
"180"
height=
"21"
/>
<rect
key=
"frame"
x=
"403"
y=
"43"
width=
"180"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
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"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
<nil
key=
"highlightedColor"
/>
...
@@ -1185,7 +1174,7 @@
...
@@ -1185,7 +1174,7 @@
</collectionViewFlowLayout>
</collectionViewFlowLayout>
<cells>
<cells>
<collectionViewCell
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
reuseIdentifier=
"productcell"
id=
"J5m-0M-uqb"
customClass=
"ProductCollectionViewCell"
>
<collectionViewCell
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
reuseIdentifier=
"productcell"
id=
"J5m-0M-uqb"
customClass=
"ProductCollectionViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
64
"
width=
"300"
height=
"300"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
0.0
"
width=
"300"
height=
"300"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<view
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
>
<view
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"300"
height=
"300"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"300"
height=
"300"
/>
...
@@ -1261,7 +1250,7 @@
...
@@ -1261,7 +1250,7 @@
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<prototypes>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"productDetailscell"
rowHeight=
"170"
id=
"Sye-2R-IQf"
customClass=
"ProductDetailsTableViewCell"
>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"productDetailscell"
rowHeight=
"170"
id=
"Sye-2R-IQf"
customClass=
"ProductDetailsTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
92
"
width=
"768"
height=
"170"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
28
"
width=
"768"
height=
"170"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"Sye-2R-IQf"
id=
"CXs-SR-gHP"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"Sye-2R-IQf"
id=
"CXs-SR-gHP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"169.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"768"
height=
"169.5"
/>
...
...
Lighting/Tools/BaseViewController.h
View file @
853747a5
...
@@ -90,6 +90,9 @@
...
@@ -90,6 +90,9 @@
+
(
id
)
ReturnOrderStateTitleWithStateCode
:(
NSInteger
)
ordercode
withPoint
:(
CGPoint
)
point
WithCode
:(
NSInteger
)
code
;
+
(
id
)
ReturnOrderStateTitleWithStateCode
:(
NSInteger
)
ordercode
withPoint
:(
CGPoint
)
point
WithCode
:(
NSInteger
)
code
;
/**
* 查询购物车数量
*/
-
(
void
)
QueryShoppingCarNumber
;
@end
@end
Lighting/Tools/BaseViewController.m
View file @
853747a5
...
@@ -286,17 +286,17 @@
...
@@ -286,17 +286,17 @@
{
{
const
NSArray
*
imageArray
=
[
NSArray
arrayWithObjects
:
@"已撤销"
,
@"已完成"
,
@"已退货"
,
nil
];
const
NSArray
*
imageArray
=
[
NSArray
arrayWithObjects
:
@"已撤销"
,
@"已完成"
,
@"已退货"
,
nil
];
switch
(
ordercode
)
{
switch
(
ordercode
)
{
case
00
4
:
//退货
case
4
:
//退货
{
{
return
TCImage
([
imageArray
objectAtIndex_opple
:
2
]);
return
TCImage
([
imageArray
objectAtIndex_opple
:
2
]);
}
}
break
;
break
;
case
00
5
:
//作废
case
5
:
//作废
{
{
return
TCImage
([
imageArray
objectAtIndex_opple
:
0
]);
return
TCImage
([
imageArray
objectAtIndex_opple
:
0
]);
}
}
break
;
break
;
case
00
6
:
//完成
case
6
:
//完成
{
{
return
TCImage
([
imageArray
objectAtIndex_opple
:
1
]);
return
TCImage
([
imageArray
objectAtIndex_opple
:
1
]);
}
}
...
@@ -374,6 +374,23 @@
...
@@ -374,6 +374,23 @@
return
nil
;
return
nil
;
}
}
#pragma mark -查询购物车数量
-
(
void
)
QueryShoppingCarNumber
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@%@"
,
ServerAddress
,
@"/shopcart/get/"
,[
Customermanager
manager
].
customerID
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSLog
(
@"更新购物车数量成功"
);
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
REFRESHSHOPPINGCAR
object
:
returnValue
[
@"data"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
NSLog
(
@"更新购物车数量失败"
);
}];
}
...
...
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