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
0fdbe5b8
Commit
0fdbe5b8
authored
Mar 30, 2017
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
30e9f987
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
48 additions
and
48 deletions
+48
-48
OrderTableViewCell.m
...etails/controller/Clientdetails/view/OrderTableViewCell.m
+2
-6
OrderInformationTableViewCell.m
...yClient/Orderdetails/view/OrderInformationTableViewCell.m
+2
-2
CustomerOrderTableViewCell.m
...agementVC/CustomerOrder/view/CustomerOrderTableViewCell.m
+2
-2
ShoppingViewController.m
Class/Shoppingcart/controller/ShoppingViewController.m
+12
-11
ShoppingTableViewCell.h
Class/Shoppingcart/view/ShoppingTableViewCell.h
+1
-1
ShoppingTableViewCell.m
Class/Shoppingcart/view/ShoppingTableViewCell.m
+4
-4
CardViewController.m
Class/XXuserController/CardStock/CardViewController.m
+6
-6
LuckyDrawMainViewController.m
...XuserController/MyLuckyDraw/LuckyDrawMainViewController.m
+5
-3
ReadPacketMainViewController.m
...XuserController/ReadPacket/ReadPacketMainViewController.m
+8
-5
CYConstManager.h
Tools/CYConst/CYConstManager.h
+2
-2
BaseViewController.h
Tools/parentclass/BaseViewController.h
+2
-2
BaseViewController.m
Tools/parentclass/BaseViewController.m
+2
-4
No files found.
Class/MyClient/Orderdetails/controller/Clientdetails/view/OrderTableViewCell.m
View file @
0fdbe5b8
...
@@ -48,15 +48,11 @@
...
@@ -48,15 +48,11 @@
self
.
orderStateShowImageView
.
image
=
[
BaseViewController
returnOrderStateImageWithStateCode
:[
_model
.
order
.
orderState
integerValue
]];
self
.
orderStateShowImageView
.
image
=
[
BaseViewController
returnOrderStateImageWithStateCode
:[
_model
.
order
.
orderState
integerValue
]];
//订单状态文本
//订单状态文本
self
.
orderState
.
text
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderState
.
frame
.
origin
.
x
,
self
.
orderState
.
frame
.
origin
.
y
)
WithCode
:
0
];
self
.
orderState
.
text
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderState
.
frame
.
origin
.
x
,
self
.
orderState
.
frame
.
origin
.
y
)
withCode
:
0
];
self
.
orderState
.
textColor
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderState
.
frame
.
origin
.
x
,
self
.
orderState
.
frame
.
origin
.
y
)
WithCode
:
1
];
self
.
orderState
.
textColor
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderState
.
frame
.
origin
.
x
,
self
.
orderState
.
frame
.
origin
.
y
)
withCode
:
1
];
}
}
#pragma mark -时间转换NSDate转NSString
#pragma mark -时间转换NSDate转NSString
-
(
NSString
*
)
dateAsString
:
(
NSDate
*
)
date
{
-
(
NSString
*
)
dateAsString
:
(
NSDate
*
)
date
{
...
...
Class/MyClient/Orderdetails/view/OrderInformationTableViewCell.m
View file @
0fdbe5b8
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
_model
=
model
;
_model
=
model
;
self
.
orderNumber
.
text
=
_model
.
order
.
orderNumber
;
self
.
orderNumber
.
text
=
_model
.
order
.
orderNumber
;
self
.
orderTime
.
text
=
_model
.
order
.
createDate
;
self
.
orderTime
.
text
=
_model
.
order
.
createDate
;
self
.
orderStatus
.
text
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
W
ithCode
:
0
];
self
.
orderStatus
.
text
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
w
ithCode
:
0
];
self
.
orderStatus
.
textColor
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
W
ithCode
:
1
];
self
.
orderStatus
.
textColor
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
w
ithCode
:
1
];
self
.
operatorName
.
text
=
_model
.
employee
.
realName
;
self
.
operatorName
.
text
=
_model
.
employee
.
realName
;
}
}
...
...
Class/RIghtVC/CustomerManagementVC/CustomerOrder/view/CustomerOrderTableViewCell.m
View file @
0fdbe5b8
...
@@ -70,8 +70,8 @@
...
@@ -70,8 +70,8 @@
self
.
orderStateImageView
.
image
=
[
BaseViewController
returnOrderStateImageWithStateCode
:[
_model
.
order
.
orderState
integerValue
]];
self
.
orderStateImageView
.
image
=
[
BaseViewController
returnOrderStateImageWithStateCode
:[
_model
.
order
.
orderState
integerValue
]];
//订单状态文本
//订单状态文本
self
.
orderStatus
.
text
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
W
ithCode
:
0
];
self
.
orderStatus
.
text
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
w
ithCode
:
0
];
self
.
orderStatus
.
textColor
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
W
ithCode
:
1
];
self
.
orderStatus
.
textColor
=
[
BaseViewController
returnOrderStateTitleWithStateCode
:[
_model
.
order
.
orderState
integerValue
]
withPoint
:
CGPointMake
(
self
.
orderStatus
.
frame
.
origin
.
x
,
self
.
orderStatus
.
frame
.
origin
.
y
)
w
ithCode
:
1
];
}
}
...
...
Class/Shoppingcart/controller/ShoppingViewController.m
View file @
0fdbe5b8
...
@@ -517,7 +517,7 @@
...
@@ -517,7 +517,7 @@
}
}
#pragma mark -修改单个商品数量、价格
#pragma mark -修改单个商品数量、价格
-
(
void
)
changeGoodsNumber
:
(
NSInteger
)
goodsNumber
WithcostPrice
:
(
CGFloat
)
costprice
W
ithcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
))
result
-
(
void
)
changeGoodsNumber
:
(
NSInteger
)
goodsNumber
withcostPrice
:
(
CGFloat
)
costprice
w
ithcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
))
result
{
{
[
XBLoadingView
showHUDViewWithDefault
];
[
XBLoadingView
showHUDViewWithDefault
];
//保存商品数量
//保存商品数量
...
@@ -525,17 +525,18 @@
...
@@ -525,17 +525,18 @@
model
.
goodsNum
=
goodsNumber
;
model
.
goodsNum
=
goodsNumber
;
//保存成交价格
//保存成交价格
model
.
costPrice
=
[
NSNumber
numberWithFloat
:
costprice
];
model
.
costPrice
=
[
NSNumber
numberWithFloat
:
costprice
];
//在服务器保存数量、成交价
//
//在服务器保存数量、成交价
//购物车ID
//
//购物车ID
NSString
*
carid
=
model
.
fid
;
//
NSString *carid = model.fid;
//商品id
//
//商品id
NSString
*
goodsis
=
model
.
goodsId
;
//
NSString *goodsis = model.goodsId;
//成交价
//
//成交价
NSString
*
costpriceString
=
[
NSString
stringWithFormat
:
@"%.2f"
,
costprice
];
//
NSString *costpriceString = [NSString stringWithFormat:@"%.2f",costprice];
//商品数量
//
//商品数量
NSString
*
goodsNumberString
=
[
NSString
stringWithFormat
:
@"%ld"
,(
long
)
goodsNumber
];
//
NSString *goodsNumberString = [NSString stringWithFormat:@"%ld",(long)goodsNumber];
WS
(
weakSelf
);
WS
(
weakSelf
);
[
HTTP
networkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@/%@/%@/%@"
,
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
carid
,
goodsis
,
costpriceString
,
goodsNumberString
]
withRequestType
:
ONE
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
NSString
*
urlString
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
CHANGESHOPPINGBAGNUMBERPRICE
),
model
.
fid
,[
model
.
costPrice
stringValue
],
model
.
goodsId
,
model
.
goodsNum
];
[
HTTP
networkWithDictionaryRequestWithURL
:
urlString
withRequestType
:
ZERO
withParameter
:
nil
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
XBLoadingView
hideHUDViewWithDefault
];
result
(
returnValue
);
//提供是否支持修改的参数
result
(
returnValue
);
//提供是否支持修改的参数
...
...
Class/Shoppingcart/view/ShoppingTableViewCell.h
View file @
0fdbe5b8
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
/**
/**
* 当前商品数量、成交价 ,通过返回参数判断是否能修改
* 当前商品数量、成交价 ,通过返回参数判断是否能修改
*/
*/
-
(
void
)
changeGoodsNumber
:
(
NSInteger
)
goodsNumber
WithcostPrice
:
(
CGFloat
)
costprice
W
ithcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
value
))
result
;
-
(
void
)
changeGoodsNumber
:
(
NSInteger
)
goodsNumber
withcostPrice
:
(
CGFloat
)
costprice
w
ithcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
value
))
result
;
@end
@end
...
...
Class/Shoppingcart/view/ShoppingTableViewCell.m
View file @
0fdbe5b8
...
@@ -81,8 +81,8 @@
...
@@ -81,8 +81,8 @@
}
}
//改变价格
//改变价格
WS
(
weakSelf
);
WS
(
weakSelf
);
if
([
self
.
delegate
respondsToSelector
:
@selector
(
changeGoodsNumber
:
WithcostPrice
:
W
ithcellindex
:
returnValue
:
)])
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
changeGoodsNumber
:
withcostPrice
:
w
ithcellindex
:
returnValue
:
)])
{
[
self
.
delegate
changeGoodsNumber
:
goodsNumber
WithcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
W
ithcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
[
self
.
delegate
changeGoodsNumber
:
goodsNumber
withcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
w
ithcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
if
([
value
isKindOfClass
:[
NSDictionary
class
]])
{
if
([
value
isKindOfClass
:[
NSDictionary
class
]])
{
if
([
value
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
value
[
@"code"
]
isEqualToNumber
:
@0
])
{
weakSelf
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsNumber
];
weakSelf
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsNumber
];
...
@@ -122,8 +122,8 @@
...
@@ -122,8 +122,8 @@
//改变价格
//改变价格
self
.
productPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
self
.
goodsNumbersLabe
.
text
integerValue
]
*
[
textField
.
text
floatValue
]];
self
.
productPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
self
.
goodsNumbersLabe
.
text
integerValue
]
*
[
textField
.
text
floatValue
]];
if
([
self
.
delegate
respondsToSelector
:
@selector
(
changeGoodsNumber
:
WithcostPrice
:
W
ithcellindex
:
returnValue
:
)])
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
changeGoodsNumber
:
withcostPrice
:
w
ithcellindex
:
returnValue
:
)])
{
[
self
.
delegate
changeGoodsNumber
:[
self
.
goodsNumbersLabe
.
text
integerValue
]
WithcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
W
ithcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
[
self
.
delegate
changeGoodsNumber
:[
self
.
goodsNumbersLabe
.
text
integerValue
]
withcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
w
ithcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
}];
}];
}
}
}
}
...
...
Class/XXuserController/CardStock/CardViewController.m
View file @
0fdbe5b8
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
-
(
void
)
viewDidAppear
:
(
BOOL
)
animated
-
(
void
)
viewDidAppear
:
(
BOOL
)
animated
{
{
[
super
viewDidAppear
:
animated
];
[
super
viewDidAppear
:
animated
];
[
self
getCardDatasAction
];
[
self
getCardDatasAction
:
YES
];
}
}
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
}
}
#pragma mark - 查询卡劵
#pragma mark - 查询卡劵
-
(
void
)
getCardDatasAction
-
(
void
)
getCardDatasAction
:
(
BOOL
)
isRefresh
{
{
WS
(
weakSelf
);
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
...
@@ -69,8 +69,9 @@
...
@@ -69,8 +69,9 @@
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
cardCollectionView
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
cardCollectionView
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
if
(
RESULT
(
returnValue
))
{
if
(
RESULT
(
returnValue
))
{
[
weakSelf
.
datasArray
removeAllObjects
];
if
(
isRefresh
)
{
[
weakSelf
.
datasArray
removeAllObjects
];
}
RsSimpleJingDongECardResponse
*
cardInformation
=
[[
RsSimpleJingDongECardResponse
alloc
]
initWithDictionary
:
RESPONSE
(
returnValue
)
error
:
nil
];
RsSimpleJingDongECardResponse
*
cardInformation
=
[[
RsSimpleJingDongECardResponse
alloc
]
initWithDictionary
:
RESPONSE
(
returnValue
)
error
:
nil
];
for
(
TOJingdongEcardEntity
*
eCard
in
cardInformation
.
list
)
{
for
(
TOJingdongEcardEntity
*
eCard
in
cardInformation
.
list
)
{
[
weakSelf
.
datasArray
addObject
:
eCard
];
[
weakSelf
.
datasArray
addObject
:
eCard
];
...
@@ -81,9 +82,8 @@
...
@@ -81,9 +82,8 @@
}
}
}
withFailureBlock
:^
(
NSError
*
error
)
{
}
withFailureBlock
:^
(
NSError
*
error
)
{
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
cardCollectionView
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
cardCollectionView
];
[
XBLoadingView
showHUDViewWithText
:
error
.
localizedDescription
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
}];
}];
}
}
...
...
Class/XXuserController/MyLuckyDraw/LuckyDrawMainViewController.m
View file @
0fdbe5b8
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
-
(
void
)
viewDidAppear
:
(
BOOL
)
animated
-
(
void
)
viewDidAppear
:
(
BOOL
)
animated
{
{
[
super
viewDidAppear
:
animated
];
[
super
viewDidAppear
:
animated
];
[
self
getDrawDatas
];
[
self
getDrawDatas
:
YES
];
}
}
-
(
void
)
viewDidLoad
-
(
void
)
viewDidLoad
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
}
}
#pragma mark - 抽奖数据
#pragma mark - 抽奖数据
-
(
void
)
getDrawDatas
-
(
void
)
getDrawDatas
:
(
BOOL
)
isRefresh
{
{
WS
(
weakSelf
);
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
[
XBLoadingView
showHUDViewWithDefaultWithView
:
self
.
view
];
...
@@ -72,6 +72,9 @@
...
@@ -72,6 +72,9 @@
weakSelf
.
luckyDrawMainTableView
.
emptyDataSetDelegate
=
weakSelf
;
weakSelf
.
luckyDrawMainTableView
.
emptyDataSetDelegate
=
weakSelf
;
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
if
(
RESULT
(
returnValue
))
{
if
(
RESULT
(
returnValue
))
{
if
(
isRefresh
)
{
[
weakSelf
.
datasArray
removeAllObjects
];
}
RsLotteryResponse
*
drawRecord
=
[[
RsLotteryResponse
alloc
]
initWithDictionary
:
RESPONSE
(
returnValue
)
error
:
nil
];
RsLotteryResponse
*
drawRecord
=
[[
RsLotteryResponse
alloc
]
initWithDictionary
:
RESPONSE
(
returnValue
)
error
:
nil
];
[
weakSelf
.
datasArray
addObjectsFromArray
:
drawRecord
.
list
];
[
weakSelf
.
datasArray
addObjectsFromArray
:
drawRecord
.
list
];
[
weakSelf
.
luckyDrawMainTableView
reloadData
];
[
weakSelf
.
luckyDrawMainTableView
reloadData
];
...
@@ -81,7 +84,6 @@
...
@@ -81,7 +84,6 @@
}
withFailureBlock
:^
(
NSError
*
error
)
{
}
withFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
luckyDrawMainTableView
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
luckyDrawMainTableView
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
[
XBLoadingView
showHUDViewWithText
:
error
.
localizedDescription
];
}];
}];
}
}
...
...
Class/XXuserController/ReadPacket/ReadPacketMainViewController.m
View file @
0fdbe5b8
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
{
{
[
super
viewDidAppear
:
animated
];
[
super
viewDidAppear
:
animated
];
[
self
getReadPacketAction
];
[
self
getReadPacketAction
:
YES
];
}
}
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
...
@@ -50,17 +50,20 @@
...
@@ -50,17 +50,20 @@
}
}
#pragma mark - 获取红包信息
#pragma mark - 获取红包信息
-
(
void
)
getReadPacketAction
-
(
void
)
getReadPacketAction
:
(
BOOL
)
isRefresh
{
{
WS
(
weakSelf
);
WS
(
weakSelf
);
[
XBLoadingView
showHUDViewWithDefault
];
[
XBLoadingView
showHUDViewWithDefault
WithView
:
self
.
view
];
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERY_REDPACKAGE
)
withRequestType
:
ZERO
withParameter
:
self
.
queryReadPacket
withReturnValueBlock
:^
(
id
returnValue
)
{
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERY_REDPACKAGE
)
withRequestType
:
ZERO
withParameter
:
self
.
queryReadPacket
withReturnValueBlock
:^
(
id
returnValue
)
{
[
XBLoadingView
hideHUDViewWithDefault
];
[
XBLoadingView
hideHUDViewWithDefault
WithView
:
weakSelf
.
view
];
weakSelf
.
readPacketMainCollectionView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
readPacketMainCollectionView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
readPacketMainCollectionView
.
emptyDataSetDelegate
=
weakSelf
;
weakSelf
.
readPacketMainCollectionView
.
emptyDataSetDelegate
=
weakSelf
;
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
readPacketMainCollectionView
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
readPacketMainCollectionView
];
if
(
RESULT
(
returnValue
))
{
if
(
RESULT
(
returnValue
))
{
if
(
isRefresh
)
{
[
weakSelf
.
readPacketArray
removeAllObjects
];
}
weakSelf
.
readPacketResult
=
[[
RedPackageResponse
alloc
]
initWithDictionary
:
RESPONSE
(
returnValue
)
error
:
nil
];
weakSelf
.
readPacketResult
=
[[
RedPackageResponse
alloc
]
initWithDictionary
:
RESPONSE
(
returnValue
)
error
:
nil
];
[
weakSelf
.
readPacketArray
addObjectsFromArray
:[
NSMutableArray
arrayWithArray
:
weakSelf
.
readPacketResult
.
list
]];
[
weakSelf
.
readPacketArray
addObjectsFromArray
:[
NSMutableArray
arrayWithArray
:
weakSelf
.
readPacketResult
.
list
]];
[
weakSelf
.
readPacketMainCollectionView
reloadData
];
[
weakSelf
.
readPacketMainCollectionView
reloadData
];
...
@@ -69,7 +72,7 @@
...
@@ -69,7 +72,7 @@
}
}
}
withFailureBlock
:^
(
NSError
*
error
)
{
}
withFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
readPacketMainCollectionView
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
readPacketMainCollectionView
];
[
XBLoadingView
showHUDViewWithText
:
error
.
localizedDescription
];
[
XBLoadingView
hideHUDViewWithDefaultWithView
:
weakSelf
.
view
];
}];
}];
}
}
...
...
Tools/CYConst/CYConstManager.h
View file @
0fdbe5b8
...
@@ -95,12 +95,12 @@ typedef NS_ENUM(NSInteger,COMMENT_PRAISE) {
...
@@ -95,12 +95,12 @@ typedef NS_ENUM(NSInteger,COMMENT_PRAISE) {
/**
/**
* 服务器开发地址
* 服务器开发地址
*/
*/
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://gomoredev:8082/opple-web/app%@",URL]
//
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://gomoredev:8082/opple-web/app%@",URL]
/**
/**
* 服务器测试地址
* 服务器测试地址
*/
*/
//
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg-dev.opple.com/opple-web/app%@",URL]
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg-dev.opple.com/opple-web/app%@",URL]
//**
//**
// * 服务器正式地址
// * 服务器正式地址
...
...
Tools/parentclass/BaseViewController.h
View file @
0fdbe5b8
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
/**
/**
* 调用打印机
* 调用打印机
*/
*/
-
(
void
)
callAirprintWithdata
:(
NSString
*
)
PDFpath
SuccessBlock
:(
void
(
^
)())
success
E
rrorBlock
:(
void
(
^
)())
failed
;
-
(
void
)
callAirprintWithdata
:(
NSString
*
)
PDFpath
successBlock
:(
void
(
^
)())
success
e
rrorBlock
:(
void
(
^
)())
failed
;
/**
/**
* 判断是否有相机权限
* 判断是否有相机权限
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
/**
/**
* 查询订单状态文本 //code == 0 取文字 code == 1取颜色
* 查询订单状态文本 //code == 0 取文字 code == 1取颜色
*/
*/
+
(
id
)
returnOrderStateTitleWithStateCode
:(
NSInteger
)
ordercode
withPoint
:(
CGPoint
)
point
W
ithCode
:(
NSInteger
)
code
;
+
(
id
)
returnOrderStateTitleWithStateCode
:(
NSInteger
)
ordercode
withPoint
:(
CGPoint
)
point
w
ithCode
:(
NSInteger
)
code
;
/**
/**
* 查询购物车数量
* 查询购物车数量
...
...
Tools/parentclass/BaseViewController.m
View file @
0fdbe5b8
...
@@ -293,8 +293,6 @@
...
@@ -293,8 +293,6 @@
return
[
NSString
stringWithFormat
:
@"%@%@"
,
moneyType
,(
money
>
0
)?
@"返佣"
:
@"提现"
];
return
[
NSString
stringWithFormat
:
@"%@%@"
,
moneyType
,(
money
>
0
)?
@"返佣"
:
@"提现"
];
}
}
#pragma mark - 获取当前时间之前或者之后的时间(之前传入负数)
#pragma mark - 获取当前时间之前或者之后的时间(之前传入负数)
+
(
NSString
*
)
getTimeby
:
(
NSInteger
)
day
+
(
NSString
*
)
getTimeby
:
(
NSInteger
)
day
{
{
...
@@ -313,7 +311,7 @@
...
@@ -313,7 +311,7 @@
}
}
#pragma mark 调用airPrint无线打印机
#pragma mark 调用airPrint无线打印机
-
(
void
)
callAirprintWithdata
:
(
NSString
*
)
PDFpath
SuccessBlock
:
(
void
(
^
)())
success
E
rrorBlock
:
(
void
(
^
)())
failed
-
(
void
)
callAirprintWithdata
:
(
NSString
*
)
PDFpath
successBlock
:
(
void
(
^
)())
success
e
rrorBlock
:
(
void
(
^
)())
failed
{
{
NSData
*
mypdfdata
=
[
NSData
dataWithContentsOfFile
:
PDFpath
];
NSData
*
mypdfdata
=
[
NSData
dataWithContentsOfFile
:
PDFpath
];
UIPrintInteractionController
*
pic
=
[
UIPrintInteractionController
sharedPrintController
];
UIPrintInteractionController
*
pic
=
[
UIPrintInteractionController
sharedPrintController
];
...
@@ -375,7 +373,7 @@
...
@@ -375,7 +373,7 @@
#pragma mark -传入订单状态,返回订单文本信息,字体颜色
#pragma mark -传入订单状态,返回订单文本信息,字体颜色
+
(
id
)
returnOrderStateTitleWithStateCode
:
(
NSInteger
)
ordercode
withPoint
:
(
CGPoint
)
point
W
ithCode
:
(
NSInteger
)
code
+
(
id
)
returnOrderStateTitleWithStateCode
:
(
NSInteger
)
ordercode
withPoint
:
(
CGPoint
)
point
w
ithCode
:
(
NSInteger
)
code
{
{
switch
(
ordercode
)
{
switch
(
ordercode
)
{
...
...
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