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
1fdb50ad
Commit
1fdb50ad
authored
Oct 25, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车增加手动促销、优化代码
parent
b8e88c23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
921 additions
and
555 deletions
+921
-555
CardAmplificationViewController.h
Class/CardAmplificationViewController.h
+1
-1
CardAmplificationViewController.m
Class/CardAmplificationViewController.m
+6
-5
CardBeenUseViewController.m
Class/CardBeenUseViewController.m
+8
-2
CardDontUseViewController.m
Class/CardDontUseViewController.m
+14
-6
CardOrderInformationReusableView.m
Class/CardOrderInformationReusableView.m
+0
-11
CardViewController.m
Class/CardViewController.m
+1
-1
ClientViewController.m
Class/ClientViewController.m
+6
-15
InformationTableViewCell.h
Class/InformationTableViewCell.h
+0
-3
InformationTableViewCell.m
Class/InformationTableViewCell.m
+0
-5
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+21
-25
PaymentsViewController.m
Class/PaymentsViewController.m
+1
-1
ProductDetailsViewController.m
Class/ProductDetailsViewController.m
+1
-1
ProductLibraryViewController.m
Class/ProductLibraryViewController.m
+30
-50
RebateDetailsViewController.m
Class/RebateDetailsViewController.m
+2
-2
SettlementViewController.m
Class/SettlementViewController.m
+0
-2
GenerateOrdersViewController.m
Class/Shoppingcart/GenerateOrdersViewController.m
+0
-3
ShoppingTableViewCell.h
Class/Shoppingcart/ShoppingTableViewCell.h
+1
-1
ShoppingTableViewCell.m
Class/Shoppingcart/ShoppingTableViewCell.m
+10
-8
ShoppingViewController.h
Class/Shoppingcart/ShoppingViewController.h
+5
-0
ShoppingViewController.m
Class/Shoppingcart/ShoppingViewController.m
+150
-50
CustomTabbarController.m
Class/Tabbar/CustomTabbarController.m
+2
-2
WithdrawalViewController.m
Class/WithdrawalViewController.m
+1
-1
project.pbxproj
Lighting.xcodeproj/project.pbxproj
+16
-16
StoryboardwithCYX.storyboard
Lighting/StoryboardwithCYX.storyboard
+19
-6
BaseViewController.h
Tools/BaseViewController.h
+5
-0
BaseViewController.m
Tools/BaseViewController.m
+10
-6
CYConstManager.h
Tools/CYConstManager.h
+5
-0
CYConstManager.m
Tools/CYConstManager.m
+5
-0
ExperienceCentreViewController.m
Tools/ExperienceCentreViewController.m
+1
-1
PrefixHeader.pch
Tools/PrefixHeader.pch
+1
-1
ShareGoodsViewController.h
Tools/ShareGoodsViewController.h
+1
-1
ShareGoodsViewController.m
Tools/ShareGoodsViewController.m
+2
-2
ShoppingBagViewController.m
Tools/ShoppingBagViewController.m
+11
-27
opple_objc_json_client.h
Tools/opple_objc_json_client.h
+433
-229
opple_objc_json_client.m
Tools/opple_objc_json_client.m
+152
-71
No files found.
Class/CardAmplificationViewController.h
View file @
1fdb50ad
...
...
@@ -55,6 +55,6 @@
/**
* 改变京东卡状态后需要刷新
*/
@property
(
nonatomic
,
copy
)
void
(
^
refreshJDCardList
)();
@property
(
nonatomic
,
copy
)
void
(
^
refreshJDCardList
)(
BOOL
isComplete
);
@end
Class/CardAmplificationViewController.m
View file @
1fdb50ad
...
...
@@ -31,7 +31,7 @@
make
.
size
.
equalTo
(
self
.
cardPasswordLabel
);
}];
_maskView
.
delegate
=
self
;
[
_maskView
setImage
:
TCImage
(
@"mask"
)
radius
:
1
0
];
[
_maskView
setImage
:
TCImage
(
@"mask"
)
radius
:
2
0
];
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
...
...
@@ -50,17 +50,18 @@
WS
(
weakSelf
);
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
RECEIVEJDECARD
),
_cardModel
.
cardNumber
]
WithRequestType
:
Z
ero
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
RECEIVEJDECARD
),
_cardModel
.
cardNumber
]
WithRequestType
:
Z
ERO
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
weakSelf
SHOWPrompttext
:
@"领取成功"
];
if
(
weakSelf
.
refreshJDCardList
)
{
weakSelf
.
refreshJDCardList
();
weakSelf
.
refreshJDCardList
(
YES
);
}
}
else
{
[
weakSelf
ErrorMBProgressView
:
@"领取失败"
];
if
(
weakSelf
.
refreshJDCardList
)
{
weakSelf
.
refreshJDCardList
(
YES
);
}
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
...
...
Class/CardBeenUseViewController.m
View file @
1fdb50ad
...
...
@@ -91,15 +91,17 @@
-
(
void
)
getCardDatasAction
:
(
BOOL
)
isRemove
{
WS
(
weakSelf
);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
WithRequestType
:
Zero
WithParameter
:
self
.
requestModel
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
WithRequestType
:
ZERO
WithParameter
:
self
.
requestModel
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
weakSelf
.
beenUseCardCollectionView
.
emptyDataSetSource
=
self
;
weakSelf
.
beenUseCardCollectionView
.
emptyDataSetDelegate
=
self
;
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
beenUseCardCollectionView
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
RsJingDongECardResponse
*
cardInformation
=
[[
RsJingDongECardResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
weakSelf
.
totalPage
=
cardInformation
.
totalpages
;
if
(
cardInformation
.
list
.
count
)
{
if
(
isRemove
)
{
[
weakSelf
.
datasArray
removeAllObjects
];
}
[
weakSelf
.
datasArray
addObjectsFromArray
:
cardInformation
.
list
];
...
...
@@ -109,8 +111,12 @@
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
beenUseCardCollectionView
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
beenUseCardCollectionView
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
...
...
Class/CardDontUseViewController.m
View file @
1fdb50ad
...
...
@@ -107,15 +107,17 @@
-
(
void
)
getCardDatasAction
:
(
BOOL
)
isRemove
{
WS
(
weakSelf
);
[
self
CreateMBProgressHUDLoding
];
NSLog
(
@"%@"
,[
self
.
requestModel
toDictionary
]);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
WithRequestType
:
Z
ero
WithParameter
:
self
.
requestModel
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
WithRequestType
:
Z
ERO
WithParameter
:
self
.
requestModel
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
weakSelf
.
dontUseCardCollectionView
.
emptyDataSetSource
=
weakSelf
;
weakSelf
.
dontUseCardCollectionView
.
emptyDataSetDelegate
=
weakSelf
;
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
dontUseCardCollectionView
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
RsJingDongECardResponse
*
cardInformation
=
[[
RsJingDongECardResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
if
(
cardInformation
.
list
.
count
)
{
if
(
isRemove
)
{
[
weakSelf
.
datasArray
removeAllObjects
];
}
weakSelf
.
totalPage
=
cardInformation
.
totalpages
;
...
...
@@ -126,8 +128,12 @@
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
dontUseCardCollectionView
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
dontUseCardCollectionView
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
...
...
@@ -152,6 +158,7 @@
CardOrderInformationReusableView
*
headerView
=
[
collectionView
dequeueReusableSupplementaryViewOfKind
:
UICollectionElementKindSectionHeader
withReuseIdentifier
:
@"CardOrderInformationReusableView"
forIndexPath
:
indexPath
];
headerView
.
delegate
=
self
;
headerView
.
model
=
self
.
datasArray
[
indexPath
.
section
];
headerView
.
sectionIndex
=
indexPath
.
section
;
return
headerView
;
}
return
nil
;
...
...
@@ -180,7 +187,8 @@
pop
.
sourceView
=
settlement
.
view
;
settlement
.
cardModel
=
model
.
eCards
[
indexPath
.
row
];
WS
(
weakSelf
);
[
settlement
setRefreshJDCardList
:
^
{
[
settlement
setRefreshJDCardList
:
^
(
BOOL
boolValue
)
{
[
weakSelf
SHOWPrompttext
:
boolValue
?
@"领取成功"
:
@"领取失败"
];
[
weakSelf
.
dontUseCardCollectionView
.
mj_header
beginRefreshing
];
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
VIEWPASSWORD
object
:
nil
];
}];
...
...
@@ -267,17 +275,17 @@
{
WS
(
weakSelf
);
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
ACTIVIATIONJDECARD
),
self
.
orderNumber
,
imagePath
]
WithRequestType
:
Z
ero
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
ACTIVIATIONJDECARD
),
self
.
orderNumber
,
imagePath
]
WithRequestType
:
Z
ERO
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
weakSelf
SuccessMBProgressView
:
@"激活成功"
];
for
(
GroupByOrderNumber
*
order
in
weakSelf
.
datasArray
)
{
if
([
order
.
orderNumber
isEqualToString
:
self
.
orderNumber
])
{
order
.
orderReceiptUrl
=
imagePath
;
break
;
order
.
orderReceiptUrl
=
imagePath
;
[
weakSelf
.
dontUseCardCollectionView
reloadSections
:[
NSIndexSet
indexSetWithIndex
:[
weakSelf
.
datasArray
indexOfObject
:
order
]]];
break
;
}
}
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
UPLOAD_COMPLETE
object
:
nil
];
}
else
{
[
weakSelf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
...
...
Class/CardOrderInformationReusableView.m
View file @
1fdb50ad
...
...
@@ -11,11 +11,6 @@
@implementation
CardOrderInformationReusableView
-
(
void
)
awakeFromNib
{
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
uploadCompleteHiddenButton
:
)
name
:
UPLOAD_COMPLETE
object
:
nil
];
}
#pragma mark - 上传小票
-
(
IBAction
)
uploadReceiptsButtonClickAction
:(
UIButton
*
)
sender
{
...
...
@@ -32,12 +27,6 @@
self
.
uploadReceiptsButton
.
hidden
=
[
BaseViewController
isBlankString
:
_model
.
orderReceiptUrl
]?
NO
:
YES
;
}
#pragma mark - 上传完成隐藏按钮
-
(
void
)
uploadCompleteHiddenButton
:
(
NSNotification
*
)
sender
{
self
.
uploadReceiptsButton
.
hidden
=
YES
;
}
-
(
void
)
dealloc
{
[[
NSNotificationCenter
defaultCenter
]
removeObserver
:
self
];
...
...
Class/CardViewController.m
View file @
1fdb50ad
...
...
@@ -58,7 +58,7 @@
-
(
void
)
getCardDatasAction
{
WS
(
weakSelf
);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
WithRequestType
:
Z
ero
WithParameter
:
self
.
requestModel
WithReturnValueBlock
:^
(
id
returnValue
)
{
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CARDINFORMATION
)
WithRequestType
:
Z
ERO
WithParameter
:
self
.
requestModel
WithReturnValueBlock
:^
(
id
returnValue
)
{
// weakSelf.cardCollectionView.emptyDataSetSource = self;
// weakSelf.cardCollectionView.emptyDataSetDelegate = self;
...
...
Class/ClientViewController.m
View file @
1fdb50ad
...
...
@@ -87,7 +87,6 @@
}
}
#pragma mark -布局
-
(
void
)
uiConfigAction
{
...
...
@@ -107,10 +106,8 @@
self
.
indexPage
=
1
;
self
.
customerHeader
.
userInteractionEnabled
=
YES
;
[
self
.
customerHeader
addGestureRecognizer
:[[
UITapGestureRecognizer
alloc
]
initWithTarget
:
self
action
:
@selector
(
customerHeaderClckAction
:)]];
//隐藏更改客户按钮
self
.
changePersonInformationButton
.
hidden
=
YES
;
//代理
self
.
informationTableview
.
delegate
=
self
;
self
.
informationTableview
.
dataSource
=
self
;
...
...
@@ -122,7 +119,6 @@
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
SetupCurrentCustomer
:
)
name
:
@"SETUPCURRENTCUSTOMER"
object
:
nil
];
//清空当前客户数据
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
ChangeCustomerName
:
)
name
:
@"EMPTYCUSTOMERNAME"
object
:
nil
];
WS
(
weakSelf
);
//下拉刷新
MjRefreshHeaderCustom
*
headerRefresh
=
[
MjRefreshHeaderCustom
headerWithRefreshingBlock
:
^
{
...
...
@@ -157,7 +153,7 @@
#pragma mark -获取导购关联客户
-
(
void
)
getShoppersAssociatedCustomer
:
(
ConsumerQueryCondition
*
)
condition
isRemoveArray
:
(
BOOL
)
remove
{
__weak
typeof
(
self
)
weakSelf
=
self
;
WS
(
weakSelf
)
;
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
GETSHOPPERSCONSUMER
)
WithRequestType
:
0
WithParameter
:
condition
WithReturnValueBlock
:^
(
id
returnValue
)
{
...
...
@@ -212,12 +208,13 @@
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
promptCustomerWithString
:
@"网络连接已断开"
];
[
weakSelf
promptCustomerWithString
:
NETWORK
];
}
WithFailureBlock
:^
(
id
error
)
{
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
informationTableview
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
...
...
@@ -229,7 +226,7 @@
cell
.
indexNumber
=
indexPath
.
row
;
cell
.
model
=
[
self
.
CustomerresultArray
objectAtIndex_opple
:
indexPath
.
row
];
//清空其他选中状态
__weak
typeof
(
self
)
weakSelf
=
self
;
WS
(
weakSelf
)
;
[
cell
setBlockSeletced
:
^
(
NSInteger
index
)
{
[
weakSelf
SetCustomerButtonClick
:
index
];
}];
...
...
@@ -254,13 +251,12 @@
clientdetails
.
model
=
[
self
.
CustomerresultArray
objectAtIndex_opple
:
indexPath
.
row
];
clientdetails
.
cellindex
=
indexPath
.
row
;
//设置当前客户
__weak
typeof
(
self
)
weakSelf
=
self
;
WS
(
weakSelf
)
;
[
clientdetails
setCurrentUserBlock
:
^
(
NSInteger
index
,
NSString
*
title
)
{
if
([
title
isEqualToString
:
@"设为当前客户"
])
{
InformationTableViewCell
*
cell
=
[
weakSelf
.
informationTableview
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
index
inSection
:
0
]];
[
weakSelf
SetCustomerButtonClick
:
index
];
cell
.
setCurrentCustomer
.
selected
=
YES
;
}
else
if
([
title
isEqualToString
:
@"退出当前客户"
])
{
[
weakSelf
ExitCurrentCustomer
];
...
...
@@ -316,23 +312,18 @@
#pragma mark -设置为当前客户回调2
-
(
void
)
SetCustomerButtonClick
:
(
NSInteger
)
index
;
{
for
(
InformationTableViewCell
*
cell
in
self
.
informationTableview
.
visibleCells
)
{
cell
.
setCurrentCustomer
.
selected
=
NO
;
}
for
(
MyclientEntityModel
*
model
in
self
.
CustomerresultArray
)
{
model
.
selectedState
=
NO
;
}
MyclientEntityModel
*
model
=
[
self
.
CustomerresultArray
objectAtIndex_opple
:
index
];
model
.
selectedState
=
YES
;
self
.
customerNameField
.
text
=
model
.
name
;
self
.
phoneNumberField
.
text
=
model
.
mobile
;
self
.
customerAddress
.
text
=
model
.
address
;
self
.
companyNameField
.
text
=
model
.
company
;
[
self
.
customerHeader
sd_setImageWithURL
:[
NSURL
URLWithString
:
model
.
picture
]
placeholderImage
:
TCImage
(
@"now"
)];
//保存客户信息
[
Shoppersmanager
manager
].
currentCustomer
=
YES
;
...
...
Class/InformationTableViewCell.h
View file @
1fdb50ad
...
...
@@ -48,8 +48,6 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
setCurrentCustomer
;
/**
* 数据源
*/
...
...
@@ -60,7 +58,6 @@
*/
@property
(
nonatomic
,
assign
)
NSInteger
indexNumber
;
/**
* 反传回控制器.cell位置
*/
...
...
Class/InformationTableViewCell.m
View file @
1fdb50ad
...
...
@@ -30,20 +30,15 @@
self
.
setCurrentCustomer
.
selected
=
_model
.
selectedState
;
}
#pragma mark -设为当前用户
-
(
IBAction
)
SelectedButtonClick
:
(
UIButton
*
)
sender
{
if
(
self
.
blockSeletced
)
{
self
.
blockSeletced
(
_indexNumber
);
}
sender
.
selected
=
YES
;
}
-
(
void
)
setSelected
:
(
BOOL
)
selected
animated
:
(
BOOL
)
animated
{
[
super
setSelected
:
selected
animated
:
animated
];
...
...
Class/OrderdetailsViewController.m
View file @
1fdb50ad
...
...
@@ -138,7 +138,7 @@ NSString *const lotteryAction = @"lotteryAction";
[
super
viewDidLoad
];
[
self
uiConfigAction
];
[
self
getOrderDetailsData
:
NO
issueJDECard
:
Z
ero
andGuideId
:
nil
andOrderNumber
:
nil
];
[
self
getOrderDetailsData
:
NO
issueJDECard
:
Z
ERO
andGuideId
:
nil
andOrderNumber
:
nil
];
}
#pragma mark - UI
...
...
@@ -258,12 +258,13 @@ NSString *const lotteryAction = @"lotteryAction";
-
(
void
)
showJEDCard
{
JDEcardViewController
*
jdeCard
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"JDEcardViewController"
];
jdeCard
.
preferredContentSize
=
CGSizeMake
(
500
,
40
0
);
jdeCard
.
preferredContentSize
=
CGSizeMake
(
345
,
36
0
);
self
.
settingsPopoverController
=
[[
WYPopoverController
alloc
]
initWithContentViewController
:
jdeCard
];
self
.
settingsPopoverController
.
popoverLayoutMargins
=
UIEdgeInsetsMake
(
10
,
20
,
10
,
20
);
self
.
settingsPopoverController
.
wantsDefaultContentAppearance
=
NO
;
self
.
settingsPopoverController
.
theme
.
fillBottomColor
=
[
UIColor
clearColor
];
self
.
settingsPopoverController
.
theme
.
fillTopColor
=
[
UIColor
clearColor
];
self
.
settingsPopoverController
.
theme
.
glossShadowColor
=
[
UIColor
clearColor
];
[
self
.
settingsPopoverController
presentPopoverAsDialogAnimated
:
YES
options
:
WYPopoverAnimationOptionFadeWithScale
];
}
...
...
@@ -345,12 +346,12 @@ NSString *const lotteryAction = @"lotteryAction";
//支付成功
WS
(
weakSelf
);
[
settlement
setPaySuccessReturnBlock
:
^
{
[
weakSelf
SuccessMBProgressView
:
@"支付成功"
];
weakSelf
.
isDelectedButton
=
NO
;
weakSelf
.
isUserInteractionEnabled
=
NO
;
[
weakSelf
CreateTableviewHeaderView
];
//** 京东E卡 */
for
(
id
object
in
s
elf
.
luckyDrawAndJDECardArray
)
{
for
(
id
object
in
weakS
elf
.
luckyDrawAndJDECardArray
)
{
if
([
object
isKindOfClass
:[
PromotionalDeductionModel
class
]])
{
PromotionalDeductionModel
*
model
=
(
PromotionalDeductionModel
*
)
object
;
if
([
model
.
type
isEqualToString
:
JDECardAction
])
{
...
...
@@ -358,6 +359,10 @@ NSString *const lotteryAction = @"lotteryAction";
}
}
}
//** 无促销的情况 */
if
(
self
.
luckyDrawAndJDECardArray
.
count
==
0
)
{
[
weakSelf
getOrderDetailsData
:
NO
issueJDECard
:
ZERO
andGuideId
:
nil
andOrderNumber
:
nil
];
}
weakSelf
.
orderDetailsTableview
.
tableFooterView
=
nil
;
if
(
weakSelf
.
DelecteAndPayButtonBlock
)
{
weakSelf
.
DelecteAndPayButtonBlock
(
_cellindex
,
@"002"
);
...
...
@@ -572,23 +577,22 @@ NSString *const lotteryAction = @"lotteryAction";
[
self
DownloadPDF
:
^
(
id
Value
)
{
[
weakSelf
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
DownloadPDFdatasWithURL
:
Value
WithReturnValueBlock
:
^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
callAirprintWithdata
:
returnValue
SuccessBlock
:
^
{
[
weakSelf
SuccessMBProgressView
:
@"打印完成"
];
}
ErrorBlock
:^
{
[
weakSelf
ErrorMBProgressView
:
@"打印失败"
];
}];
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}];
}
#pragma mark -下载PDF
-
(
void
)
DownloadPDF
:
(
void
(
^
)(
id
returnValue
))
success
{
...
...
@@ -602,26 +606,19 @@ NSString *const lotteryAction = @"lotteryAction";
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
@"网络中断"
];
}
WithFailureBlock
:^
(
id
error
)
{
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
#pragma mark -预览订单、撤销订单
-
(
void
)
PreviewButtonClick
:
(
UIButton
*
)
button
{
WS
(
weakSelf
);
if
([
button
.
currentTitle
isEqualToString
:
@"预览"
])
{
[
self
DownloadPDF
:
^
(
id
returnValue
)
{
// self.PDFpath = returnValue;
// QLPreviewController *previewController = [[QLPreviewController alloc] init];
// previewController.dataSource = weakSelf;
// previewController.navigationController.navigationBarHidden = YES;
// [weakSelf presentViewController:previewController animated:YES completion:nil];
PDFViewController
*
pdfvc
=
[[
PDFViewController
alloc
]
init
];
pdfvc
.
pdfURLString
=
returnValue
;
[
weakSelf
presentViewController
:
pdfvc
animated
:
YES
completion
:
nil
];
...
...
@@ -650,17 +647,16 @@ NSString *const lotteryAction = @"lotteryAction";
if
(
weakSelf
.
DelecteAndPayButtonBlock
)
{
weakSelf
.
DelecteAndPayButtonBlock
(
_cellindex
,
@"005"
);
}
}
else
{
}
else
{
[
weakSelf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}]];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
...
...
Class/PaymentsViewController.m
View file @
1fdb50ad
...
...
@@ -40,7 +40,7 @@
if
(
!
_model
)
{
_model
=
[[
RsCommissionRequest
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
Z
ero
;
page
.
page
=
Z
ERO
;
page
.
rows
=
KROWS
;
_model
.
page
=
page
;
_model
.
emploreeId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
...
...
Class/ProductDetailsViewController.m
View file @
1fdb50ad
...
...
@@ -405,7 +405,7 @@
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
@"无网络"
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
id
error
)
{
[
weakSelf
ErrorMBProgressView
:
@"添加购物车失败"
];
}];
...
...
Class/ProductLibraryViewController.m
View file @
1fdb50ad
...
...
@@ -121,11 +121,11 @@
#pragma mark -获取商品列表数据
-
(
void
)
getGoodsListDatasisRemove
:
(
BOOL
)
remove
Withobject
:
(
GoodsCondition
*
)
conditon
{
__weak
typeof
(
self
)
weakSelf
=
self
;
WS
(
weakSelf
)
;
[
self
getGoodsListdatas
:
conditon
returnResponse
:
^
(
GoodsResponse
*
response
)
{
if
(
remove
)
{
[
s
elf
.
datasArray
removeAllObjects
];
[
weakS
elf
.
datasArray
removeAllObjects
];
}
for
(
TOGoodsEntity
*
model
in
response
.
goodsEntity
)
{
[
weakSelf
.
datasArray
addObject
:
model
];
...
...
@@ -137,32 +137,29 @@
#pragma mark -获取产品筛选数据
-
(
void
)
getScreeningdatasisRemoveArray
:
(
BOOL
)
remove
{
WS
(
weakSelf
);
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
SERVERREQUESTURL
(
PRODUCTSCREENING
)
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
(
remove
)
{
[
s
elf
.
screeningDatas
removeAllObjects
];
[
weakS
elf
.
screeningDatas
removeAllObjects
];
}
GoodsFilter
*
goodsStyle
=
[[
GoodsFilter
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
[
s
elf
.
screeningDatas
addObject
:
goodsStyle
.
styles
];
[
s
elf
.
screeningDatas
addObject
:
goodsStyle
.
categories
];
[
s
elf
.
screeningDatas
addObject
:
goodsStyle
.
space
];
[
s
elf
.
screeningDatas
addObject
:
goodsStyle
.
material
];
[
s
elf
.
screeningDatas
addObject
:
goodsStyle
.
price
];
[
weakS
elf
.
screeningDatas
addObject
:
goodsStyle
.
styles
];
[
weakS
elf
.
screeningDatas
addObject
:
goodsStyle
.
categories
];
[
weakS
elf
.
screeningDatas
addObject
:
goodsStyle
.
space
];
[
weakS
elf
.
screeningDatas
addObject
:
goodsStyle
.
material
];
[
weakS
elf
.
screeningDatas
addObject
:
goodsStyle
.
price
];
}
else
{
[
s
elf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
[
weakS
elf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
self
RemoveMBProgressHUDLoding
];
[
self
ErrorMBProgressView
:
@"无网络"
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
self
ErrorMBProgressView
:
error
.
localizedDescription
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
...
...
@@ -192,23 +189,20 @@
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
ErrorMBProgressView
:
@"网络连接中断"
];
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
productCollectionView
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
[
weakSelf
RemoveMBProgressHUDLoding
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
endRefreshingForTableView
:
weakSelf
.
productCollectionView
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
#pragma mark -布局
-
(
void
)
uiConfigAction
{
self
.
indexPage
=
1
;
self
.
selectedIndex
=
9999
;
self
.
selectedIndex
=
9999
;
//无任何意义
self
.
productCollectionLayout
.
itemSize
=
CGSizeMake
((
ScreenWidth
-
100
)
/
3
,
(
ScreenWidth
-
100
)
/
3
);
self
.
productCollectionLayout
.
sectionInset
=
UIEdgeInsetsMake
(
20
,
30
,
20
,
30
);
self
.
productCollectionLayout
.
minimumLineSpacing
=
20
;
...
...
@@ -222,16 +216,12 @@
#pragma mark -获取数据
-
(
void
)
GetdatasAction
{
__weak
typeof
(
self
)
weakSelf
=
self
;
WS
(
weakSelf
);
//下拉刷新
MjRefreshHeaderCustom
*
headerRefresh
=
[
MjRefreshHeaderCustom
headerWithRefreshingBlock
:
^
{
//扫描二维码结果
if
(
weakSelf
.
barcode
)
{
[
weakSelf
barCodeSearchRequest
];
}
else
{
//分页数据
...
...
@@ -287,12 +277,9 @@
[
self
.
productCollectionView
.
mj_header
beginRefreshing
];
//上拉加载
self
.
productCollectionView
.
mj_footer
=
[
MJRefreshAutoNormalFooter
footerWithRefreshingBlock
:
^
{
//扫描二维码结果
if
(
weakSelf
.
barcode
)
{
[
weakSelf
barCodeSearchRequest
];
}
else
{
if
(
++
weakSelf
.
indexPage
>
weakSelf
.
totalPages
)
{
...
...
@@ -345,45 +332,44 @@
}
}];
self
.
productCollectionView
.
mj_footer
.
automaticallyHidden
=
YES
;
}
#pragma mark 填条形码搜索
-
(
void
)
barCodeSearchRequest
{
WS
(
weakSelf
);
[
self
CreateMBProgressHUDLoding
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
BARCODESEARCH
),
_barcode
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
s
elf
endRefreshingForTableView
:
self
.
productCollectionView
];
[
s
elf
RemoveMBProgressHUDLoding
];
[
weakS
elf
endRefreshingForTableView
:
self
.
productCollectionView
];
[
weakS
elf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"data"
]
isKindOfClass
:[
NSNull
class
]])
{
[
s
elf
ErrorMBProgressView
:
@"暂无商品信息"
];
[
weakS
elf
ErrorMBProgressView
:
@"暂无商品信息"
];
return
;
}
TOGoodsEntity
*
goods
=
[[
TOGoodsEntity
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
[
self
.
datasArray
removeAllObjects
];
[
self
.
datasArray
addObject
:
goods
];
[
self
.
productCollectionView
reloadData
];
[
weakSelf
.
datasArray
removeAllObjects
];
[
weakSelf
.
datasArray
addObject
:
goods
];
[
weakSelf
.
productCollectionView
reloadData
];
}
else
{
[
s
elf
ErrorMBProgressView
:
@"查询失败"
];
[
weakS
elf
ErrorMBProgressView
:
@"查询失败"
];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
self
endRefreshingForTableView
:
self
.
productCollectionView
];
[
self
ErrorMBProgressView
:
@"网络连接中断"
];
[
self
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
endRefreshingForTableView
:
self
.
productCollectionView
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
id
error
)
{
[
self
ErrorMBProgressView
:
@"查询失败"
];
[
self
endRefreshingForTableView
:
self
.
productCollectionView
];
[
self
RemoveMBProgressHUDLoding
];
[
weakSelf
endRefreshingForTableView
:
self
.
productCollectionView
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
@"查询失败"
];
}];
}
...
...
@@ -521,7 +507,6 @@
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
ProductDetailsViewController
*
productDetails
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"productdetails"
];
productDetails
.
goodsID
=
[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
item
]
fid
];
[
self
.
navigationController
pushViewController
:
productDetails
animated
:
YES
];
...
...
@@ -531,7 +516,6 @@
#pragma mark -筛选
-
(
void
)
ScreeningButtonClick
{
self
.
screenView
=
[[[
NSBundle
mainBundle
]
loadNibNamed
:
@"ScreeningView"
owner
:
self
options
:
nil
]
firstObject
];
self
.
screenView
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
ScreenHeight
);
self
.
screenView
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
.
5
];
...
...
@@ -544,15 +528,11 @@
self
.
screenView
.
frame
=
CGRectMake
(
0
,
0
,
ScreenWidth
,
ScreenHeight
);
[
self
.
view
.
window
addSubview
:
self
.
screenView
];
self
.
screenView
.
alpha
=
0
;
//监听Segmented菜单
[
self
.
screenView
.
sortingSegmented
addTarget
:
self
action
:
@selector
(
sortingSegmentedClick
:
)
forControlEvents
:
UIControlEventValueChanged
];
self
.
selectedIndex
=
0
;
[
self
CreateClassificationView
];
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
{
self
.
screenView
.
alpha
=
1
;
}];
}
...
...
Class/RebateDetailsViewController.m
View file @
1fdb50ad
...
...
@@ -146,8 +146,8 @@
return
NO
;
}
}
NSRange
zero
Range
=
[
textField
.
text
rangeOfString
:
@"0"
];
if
(
zeroRange
.
length
==
1
&&
zero
Range
.
location
==
0
){
//判断输入框第一个字符是否为“0”
NSRange
ZERO
Range
=
[
textField
.
text
rangeOfString
:
@"0"
];
if
(
ZERORange
.
length
==
1
&&
ZERO
Range
.
location
==
0
){
//判断输入框第一个字符是否为“0”
if
(
!
[
string
isEqualToString
:
@"0"
]
&&
!
[
string
isEqualToString
:
@"."
]
&&
[
textField
.
text
length
]
==
1
){
//当输入框只有一个字符并且字符为“0”时,再输入不为“0”或者“.”的字符时,则将此输入替换输入框的这唯一字符。
textField
.
text
=
string
;
return
NO
;
...
...
Class/SettlementViewController.m
View file @
1fdb50ad
...
...
@@ -355,12 +355,10 @@
}
[
self
CreateMBProgressHUDLoding
];
WS
(
weakSelf
);
NSLog
(
@"%@"
,[[
order
toDictionary
]
JSONString
]);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CONFIRMPAY
)
WithRequestType
:
0
WithParameter
:
order
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
[
weakSelf
ErrorMBProgressView
:
@"支付成功"
];
if
(
weakSelf
.
PaySuccessReturnBlock
)
{
weakSelf
.
PaySuccessReturnBlock
();
}
...
...
Class/Shoppingcart/GenerateOrdersViewController.m
View file @
1fdb50ad
...
...
@@ -484,11 +484,8 @@
#pragma mark -设置为当前地址回调
-
(
void
)
SetCustomerButtonClick
:
(
NSInteger
)
index
;
{
for
(
UITableViewCell
*
cell
in
self
.
generateOrderTableview
.
visibleCells
)
{
if
([
cell
isKindOfClass
:[
GenerateOrdersTableViewCell
class
]])
{
GenerateOrdersTableViewCell
*
Newcell
=
(
GenerateOrdersTableViewCell
*
)
cell
;
Newcell
.
isSelectedButton
.
selected
=
NO
;
}
...
...
Class/Shoppingcart/ShoppingTableViewCell.h
View file @
1fdb50ad
...
...
@@ -16,7 +16,7 @@
/**
* 当前商品数量、成交价 ,通过返回参数判断是否能修改
*/
-
(
void
)
C
hangeGoodsNumber
:
(
NSInteger
)
goodsNumber
WithcostPrice
:
(
CGFloat
)
costprice
Withcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
value
))
result
;
-
(
void
)
c
hangeGoodsNumber
:
(
NSInteger
)
goodsNumber
WithcostPrice
:
(
CGFloat
)
costprice
Withcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
value
))
result
;
@end
...
...
Class/Shoppingcart/ShoppingTableViewCell.m
View file @
1fdb50ad
...
...
@@ -66,7 +66,7 @@
break
;
case
101
:
//增加
{
if
(
goodsNumber
>=
[
_
model
.
goods
.
number
integerValue
])
{
if
(
goodsNumber
>=
[
self
.
model
.
goods
.
number
integerValue
])
{
//不能大于库存
if
(
self
.
promptStringBlock
)
{
self
.
promptStringBlock
(
@"个数不能大于库存"
);
...
...
@@ -81,12 +81,14 @@
}
//改变价格
WS
(
weakSelf
);
if
([
self
.
delegate
respondsToSelector
:
@selector
(
C
hangeGoodsNumber
:
WithcostPrice
:
Withcellindex
:
returnValue
:
)])
{
[
self
.
delegate
C
hangeGoodsNumber
:
goodsNumber
WithcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
Withcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
c
hangeGoodsNumber
:
WithcostPrice
:
Withcellindex
:
returnValue
:
)])
{
[
self
.
delegate
c
hangeGoodsNumber
:
goodsNumber
WithcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
Withcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
if
([
value
isKindOfClass
:[
NSDictionary
class
]])
{
if
([
value
[
@"code"
]
isEqualToNumber
:
@0
])
{
weakSelf
.
goodsNumbersLabe
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
goodsNumber
];
weakSelf
.
productPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
self
.
goodsNumbersLabe
.
text
integerValue
]
*
[
self
.
clinchTextfield
.
text
floatValue
]];
weakSelf
.
productPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,
goodsNumber
*
[
self
.
clinchTextfield
.
text
floatValue
]];
self
.
model
.
costPrice
=
[
NSNumber
numberWithFloat
:[
self
.
clinchTextfield
.
text
floatValue
]];
self
.
model
.
goodsNum
=
goodsNumber
;
}
}
}];
...
...
@@ -120,8 +122,8 @@
//改变价格
self
.
productPriceLabe
.
text
=
[
NSString
stringWithFormat
:
@"¥%.2f"
,[
self
.
goodsNumbersLabe
.
text
integerValue
]
*
[
textField
.
text
floatValue
]];
if
([
self
.
delegate
respondsToSelector
:
@selector
(
C
hangeGoodsNumber
:
WithcostPrice
:
Withcellindex
:
returnValue
:
)])
{
[
self
.
delegate
C
hangeGoodsNumber
:[
self
.
goodsNumbersLabe
.
text
integerValue
]
WithcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
Withcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
if
([
self
.
delegate
respondsToSelector
:
@selector
(
c
hangeGoodsNumber
:
WithcostPrice
:
Withcellindex
:
returnValue
:
)])
{
[
self
.
delegate
c
hangeGoodsNumber
:[
self
.
goodsNumbersLabe
.
text
integerValue
]
WithcostPrice
:[
self
.
clinchTextfield
.
text
floatValue
]
Withcellindex
:
_cellindex
returnValue
:^
(
id
value
)
{
}];
}
}
...
...
@@ -153,8 +155,8 @@
return
NO
;
}
}
NSRange
zero
Range
=
[
textField
.
text
rangeOfString
:
@"0"
];
if
(
zeroRange
.
length
==
1
&&
zero
Range
.
location
==
0
){
//判断输入框第一个字符是否为“0”
NSRange
ZERO
Range
=
[
textField
.
text
rangeOfString
:
@"0"
];
if
(
ZERORange
.
length
==
1
&&
ZERO
Range
.
location
==
0
){
//判断输入框第一个字符是否为“0”
if
(
!
[
string
isEqualToString
:
@"0"
]
&&
!
[
string
isEqualToString
:
@"."
]
&&
[
textField
.
text
length
]
==
1
){
//当输入框只有一个字符并且字符为“0”时,再输入不为“0”或者“.”的字符时,则将此输入替换输入框的这唯一字符。
textField
.
text
=
string
;
return
NO
;
...
...
Class/Shoppingcart/ShoppingViewController.h
View file @
1fdb50ad
...
...
@@ -32,6 +32,11 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
allSelectedButton
;
/**
* 折扣比例
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
discountTextField
;
@end
Class/Shoppingcart/ShoppingViewController.m
View file @
1fdb50ad
This diff is collapsed.
Click to expand it.
Class/Tabbar/CustomTabbarController.m
View file @
1fdb50ad
...
...
@@ -100,8 +100,8 @@
#pragma mark -UI
-
(
void
)
uiConfigAction
{
self
.
tabBar
.
frame
=
CGRectMake
(
Z
ero
,
Zero
,
ScreenWidth
,
NavigationHeight
);
self
.
toolview
=
[[
Toolview
alloc
]
initWithFrame
:
CGRectMake
(
Z
ero
,
Zero
,
ScreenWidth
,
NavigationHeight
)];
self
.
tabBar
.
frame
=
CGRectMake
(
Z
ERO
,
ZERO
,
ScreenWidth
,
NavigationHeight
);
self
.
toolview
=
[[
Toolview
alloc
]
initWithFrame
:
CGRectMake
(
Z
ERO
,
ZERO
,
ScreenWidth
,
NavigationHeight
)];
self
.
toolview
.
delegate
=
self
;
self
.
toolview
.
inputField
.
delegate
=
self
;
self
.
delegate
=
self
;
...
...
Class/WithdrawalViewController.m
View file @
1fdb50ad
...
...
@@ -39,7 +39,7 @@
if
(
!
_model
)
{
_model
=
[[
RsApplyBillRequest
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
Z
ero
;
page
.
page
=
Z
ERO
;
page
.
rows
=
KROWS
;
_model
.
page
=
page
;
_model
.
employeeId
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
;
...
...
Lighting.xcodeproj/project.pbxproj
View file @
1fdb50ad
This diff is collapsed.
Click to expand it.
Lighting/StoryboardwithCYX.storyboard
View file @
1fdb50ad
...
...
@@ -289,7 +289,7 @@
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"X4y-1C-nSB"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
<point
key=
"canvasLocation"
x=
"17
84"
y=
"433
"
/>
<point
key=
"canvasLocation"
x=
"17
69"
y=
"490
"
/>
</scene>
<!--Clientdetails View Controller-->
<scene
sceneID=
"lDH-lU-tQw"
>
...
...
@@ -1283,7 +1283,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"JDECard"
id=
"vNC-g1-zfP"
>
<rect
key=
"frame"
x=
"
134"
y=
"312"
width=
"500"
height=
"40
0"
/>
<rect
key=
"frame"
x=
"
212"
y=
"332"
width=
"345"
height=
"36
0"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"calibratedWhite"
/>
</imageView>
...
...
@@ -1910,16 +1910,16 @@
<color
key=
"textColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"SzO-sh-Q17"
>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
""
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"SzO-sh-Q17"
>
<rect
key=
"frame"
x=
"668"
y=
"18"
width=
"144"
height=
"25"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"24"
/>
<color
key=
"textColor"
red=
"0.9882352941176471"
green=
"0.33725490196078434"
blue=
"0.12941176470588234"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
合计金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"lfY-O6-zCQ
"
>
<rect
key=
"frame"
x=
"
604"
y=
"21"
width=
"85
"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"
折扣比例(%):"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"5UU-hv-OWB
"
>
<rect
key=
"frame"
x=
"
392"
y=
"21"
width=
"82
"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleM
inY=
"YES"
flexibleM
axY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<nil
key=
"highlightedColor"
/>
</label>
...
...
@@ -1954,6 +1954,18 @@
<action
selector=
"delecteSelectedGoods:"
destination=
"4Ho-ZE-RT8"
eventType=
"touchUpInside"
id=
"Ylw-dW-E2P"
/>
</connections>
</button>
<textField
opaque=
"NO"
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
placeholder=
"请输入"
textAlignment=
"center"
minimumFontSize=
"17"
id=
"3Ma-x4-wIO"
>
<rect
key=
"frame"
x=
"481"
y=
"17"
width=
"70"
height=
"30"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<label
opaque=
"NO"
multipleTouchEnabled=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"合计金额:"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"lfY-O6-zCQ"
>
<rect
key=
"frame"
x=
"594"
y=
"21"
width=
"73"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</view>
...
...
@@ -1964,6 +1976,7 @@
<simulatedScreenMetrics
key=
"simulatedDestinationMetrics"
type=
"iPadPro"
/>
<connections>
<outlet
property=
"allSelectedButton"
destination=
"va8-YD-eVD"
id=
"QFT-8I-gC3"
/>
<outlet
property=
"discountTextField"
destination=
"3Ma-x4-wIO"
id=
"KWE-H2-HVs"
/>
<outlet
property=
"settlementButton"
destination=
"QOZ-rd-1Ea"
id=
"eFY-bt-n2S"
/>
<outlet
property=
"shoppingTableview"
destination=
"RJW-eG-Q3P"
id=
"M5W-yO-xaT"
/>
<outlet
property=
"totalpriceLabe"
destination=
"SzO-sh-Q17"
id=
"L5U-re-i18"
/>
...
...
Tools/BaseViewController.h
View file @
1fdb50ad
...
...
@@ -98,6 +98,11 @@
*/
-
(
void
)
QueryShoppingCarNumber
;
/**
* 查询购物车商品
*/
-
(
void
)
queryShoppingCarGoods
;
/**
* 系统提示框
...
...
Tools/BaseViewController.m
View file @
1fdb50ad
...
...
@@ -436,22 +436,27 @@
#pragma mark -查询购物车数量
-
(
void
)
QueryShoppingCarNumber
{
WS
(
weakSelf
);
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:[
NSString
stringWithFormat
:
@"%@%@"
,
SERVERREQUESTURL
(
QUERYSHOPPINGBAGNUMBER
),[
Customermanager
manager
].
model
.
fid
]
WithRequestType
:
1
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSLog
(
@"更新购物车数量成功"
);
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
REFRESHSHOPPINGCAR
object
:
returnValue
[
@"data"
]];
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
s
elf
RemoveMBProgressHUDLoding
];
[
s
elf
ErrorMBProgressView
:
@"无网络"
];
}
WithFailureBlock
:^
(
id
error
)
{
[
weakS
elf
RemoveMBProgressHUDLoding
];
[
weakS
elf
ErrorMBProgressView
:
@"无网络"
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
NSLog
(
@"更新购物车数量失败"
);
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
#pragma mark - 查询购物车商品
-
(
void
)
queryShoppingCarGoods
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
SHOPPINGCARGOODS
object
:
nil
];
}
#pragma mark -系统提示框
-
(
void
)
promptCustomerWithString
:
(
NSString
*
)
message
...
...
@@ -466,7 +471,6 @@
});
}
#pragma mark -友好化时间
+
(
NSString
*
)
compareCurrentTime
:
(
NSString
*
)
str
{
...
...
Tools/CYConstManager.h
View file @
1fdb50ad
...
...
@@ -269,3 +269,8 @@ extern NSString *const ACTIVED;
* 京东卡状态<查看>
*/
extern
NSString
*
const
LOOKED
;
/**
* 更新购物车商品
*/
extern
NSString
*
const
SHOPPINGCARGOODS
;
Tools/CYConstManager.m
View file @
1fdb50ad
...
...
@@ -269,6 +269,11 @@ NSString *const ACTIVED = @"actived";
*/
NSString
*
const
LOOKED
=
@"looked"
;
/**
* 更新购物车商品
*/
NSString
*
const
SHOPPINGCARGOODS
=
@"shoppingCar"
;
...
...
Tools/ExperienceCentreViewController.m
View file @
1fdb50ad
...
...
@@ -585,7 +585,7 @@
}
#pragma mark -分享失败
-
(
void
)
CodeNotEqualZ
ero
:
(
NSString
*
)
message
-
(
void
)
CodeNotEqualZ
ERO
:
(
NSString
*
)
message
{
[
self
ErrorMBProgressView
:
message
];
}
...
...
Tools/PrefixHeader.pch
View file @
1fdb50ad
...
...
@@ -83,7 +83,7 @@
/**
* 0
*/
#define Z
ero
0
#define Z
ERO
0
/**
* 断网标示
...
...
Tools/ShareGoodsViewController.h
View file @
1fdb50ad
...
...
@@ -34,7 +34,7 @@
/**
* code不为0
*/
-
(
void
)
CodeNotEqualZ
ero
:(
NSString
*
)
message
;
-
(
void
)
CodeNotEqualZ
ERO
:(
NSString
*
)
message
;
@end
...
...
Tools/ShareGoodsViewController.m
View file @
1fdb50ad
...
...
@@ -62,9 +62,9 @@
[
weakSelf
callSharePlatform
:
shareWeb
withPlatformTag
:
sender
withTitle
:
ShareTitle
];
}
else
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
CodeNotEqualZ
ero
:)])
{
if
([
weakSelf
.
delegate
respondsToSelector
:
@selector
(
CodeNotEqualZ
ERO
:)])
{
[
weakSelf
.
delegate
CodeNotEqualZ
ero
:
returnValue
[
@"message"
]];
[
weakSelf
.
delegate
CodeNotEqualZ
ERO
:
returnValue
[
@"message"
]];
}
}
...
...
Tools/ShoppingBagViewController.m
View file @
1fdb50ad
...
...
@@ -272,9 +272,10 @@
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
}
WithFailureBlock
:^
(
id
error
)
{
[
weakSelf
ErrorMBProgressView
:
@"加入购物车失败"
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
...
...
@@ -284,41 +285,25 @@
{
UIAlertController
*
alertVC
=
[
UIAlertController
alertControllerWithTitle
:
@"提示"
message
:
message
preferredStyle
:
UIAlertControllerStyleAlert
];
[
alertVC
addAction
:[
UIAlertAction
actionWithTitle
:
@"我知道了"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
_Nonnull
action
)
{
[
alertVC
dismissViewControllerAnimated
:
YES
completion
:
nil
];
}]];
[
self
presentViewController
:
alertVC
animated
:
YES
completion
:
nil
];
}
//#pragma mark -改变商品数量
//- (void)ChangeGoodsNumber:(NSInteger)goodsNumber WithcostPrice:(CGFloat)costprice Withcellindex:(NSInteger)cellindex returnValue:(void (^)(id))result
//{
// ShopcarModel *model = [self.datasArray objectAtIndex_opple:cellindex];
// //保存商品数量
// model.goodsNum = goodsNumber;
// //保存成交价格
// model.costPrice = [NSNumber numberWithFloat:costprice];
// [self CalculateSelectedGoodsAllprice];
//}
#pragma mark -改变商品数量
-
(
void
)
ChangeGoodsNumber
:
(
NSInteger
)
goodsNumber
WithcostPrice
:
(
CGFloat
)
costprice
Withcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
))
result
#pragma mark -修改单个商品数量、价格
-
(
void
)
changeGoodsNumber
:
(
NSInteger
)
goodsNumber
WithcostPrice
:
(
CGFloat
)
costprice
Withcellindex
:
(
NSInteger
)
cellindex
returnValue
:
(
void
(
^
)(
id
))
result
{
[
self
CreateMBProgressHUDLoding
];
//保存商品数量
ShopcarModel
*
model
=
[
self
.
datasArray
objectAtIndex_opple
:
cellindex
];
model
.
goodsNum
=
goodsNumber
;
// [self.shopResponseArray replaceObjectAtIndex:cellindex withObject:model];
//保存成交价格
ShopcarModel
*
Newmodel
=
[
self
.
datasArray
objectAtIndex_opple
:
cellindex
];
Newmodel
.
costPrice
=
(
NSDecimalNumber
*
)[
NSDecimalNumber
numberWithFloat
:
costprice
];
// [self.shopResponseArray replaceObjectAtIndex:cellindex withObject:Newmodel];
model
.
costPrice
=
[
NSNumber
numberWithFloat
:
costprice
];
//在服务器保存数量、成交价
//购物车ID
NSString
*
carid
=
[[
self
.
datasArray
objectAtIndex_opple
:
cellindex
]
fid
]
;
NSString
*
carid
=
model
.
fid
;
//商品id
NSString
*
goodsis
=
[[[
self
.
datasArray
objectAtIndex_opple
:
cellindex
]
goods
]
uuid
]
;
NSString
*
goodsis
=
model
.
goodsId
;
//成交价
NSString
*
costpriceString
=
[
NSString
stringWithFormat
:
@"%.2f"
,
costprice
];
//商品数量
...
...
@@ -329,7 +314,6 @@
[
weakSelf
RemoveMBProgressHUDLoding
];
result
(
returnValue
);
//提供是否支持修改的参数
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSLog
(
@"写入服务器成功"
);
[
weakSelf
CalculateSelectedGoodsAllprice
];
[
weakSelf
QueryShoppingCarNumber
];
}
else
{
...
...
@@ -339,11 +323,11 @@
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
@"无网络"
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
id
error
)
{
NSLog
(
@"写入服务器失败"
);
}
WithFailureBlock
:^
(
NSError
*
error
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
}];
}
...
...
Tools/opple_objc_json_client.h
View file @
1fdb50ad
This diff is collapsed.
Click to expand it.
Tools/opple_objc_json_client.m
View file @
1fdb50ad
...
...
@@ -171,12 +171,49 @@
@end
@implementation
OrderBill
@synthesize
datapage
;
@synthesize
order
;
@synthesize
orderdetailList
;
@synthesize
consumer
;
@synthesize
employee
;
@implementation
Draw
@synthesize
fid
;
@synthesize
lotteryId
;
@synthesize
drawDate
;
@synthesize
winnerId
;
@synthesize
award
;
@synthesize
orderNumber
;
@synthesize
state
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@implementation
RsLotteryRequest
@synthesize
guideIdEquals
;
@synthesize
page
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
OrderFilter
@synthesize
resellerCodeEquals
;
@synthesize
orderStateEquals
;
@synthesize
consumerNameOrMobileEquals
;
@synthesize
consumerIdEquals
;
@synthesize
dp
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -195,6 +232,7 @@
@synthesize
billType
;
@synthesize
billTitle
;
@synthesize
realAmount
;
@synthesize
draw
;
@synthesize
promotionGoods
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
...
...
@@ -213,9 +251,10 @@
@end
@implementation
PromotionGoods
@synthesize
goods
;
@synthesize
promotionNumber
;
@implementation
SceneCondition
@synthesize
styleEquals
;
@synthesize
spaceEquals
;
@synthesize
page
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -237,8 +276,8 @@
@end
@implementation
RsShippingAddrEntity
@synthesize
list
;
@implementation
DeleteCartRequest
@synthesize
cartIds
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -248,10 +287,9 @@
@end
@implementation
S
aveShoppingCartRequest
@implementation
S
hopCartFilter
@synthesize
consumerId
;
@synthesize
goodsId
;
@synthesize
count
;
@synthesize
dp
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -261,9 +299,9 @@
@end
@implementation
ShopCartFilter
@synthesize
consumer
Id
;
@synthesize
dp
;
@implementation
RsShareResponse
@synthesize
share
Id
;
@synthesize
url
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -273,22 +311,19 @@
@end
@implementation
TO
ApplyBill
Entity
@implementation
TO
CommissionHist
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
billNumber
;
@synthesize
guideId
;
@synthesize
guideName
;
@synthesize
applyMoney
;
@synthesize
beforeMoney
;
@synthesize
afterMoney
;
@synthesize
billStates
;
@synthesize
resellerCode
;
@synthesize
employeeId
;
@synthesize
orderId
;
@synthesize
amount
;
@synthesize
afteramount
;
@synthesize
remark
;
@synthesize
orderNumber
;
@synthesize
employeeName
;
@synthesize
state
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -306,21 +341,21 @@
@end
@implementation
TO
Consumer
Entity
@implementation
TO
Draw
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
name
;
@synthesize
mobile
;
@synthesize
province
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
picture
;
@synthesize
lastVisitedTime
;
@synthesize
company
;
@synthesize
lotteryId
;
@synthesize
drawDate
;
@synthesize
winnerId
;
@synthesize
award
;
@synthesize
orderNumber
;
@synthesize
state
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -827,19 +862,21 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
TOCo
mmissionHist
Entity
@implementation
TOCo
nsumer
Entity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
resellerCode
;
@synthesize
employeeId
;
@synthesize
orderId
;
@synthesize
amount
;
@synthesize
afteramount
;
@synthesize
remark
;
@synthesize
orderNumber
;
@synthesize
employeeName
;
@synthesize
state
;
@synthesize
sysOrgCode
;
@synthesize
name
;
@synthesize
mobile
;
@synthesize
province
;
@synthesize
city
;
@synthesize
country
;
@synthesize
address
;
@synthesize
picture
;
@synthesize
lastVisitedTime
;
@synthesize
company
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -857,9 +894,22 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
RsShareResponse
@synthesize
shareId
;
@synthesize
url
;
@implementation
TOApplyBillEntity
@synthesize
fid
;
@synthesize
createName
;
@synthesize
createBy
;
@synthesize
createDate
;
@synthesize
updateName
;
@synthesize
updateBy
;
@synthesize
updateDate
;
@synthesize
sysOrgCode
;
@synthesize
billNumber
;
@synthesize
guideId
;
@synthesize
guideName
;
@synthesize
applyMoney
;
@synthesize
beforeMoney
;
@synthesize
afterMoney
;
@synthesize
billStates
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -867,10 +917,20 @@ NSString * const SORTDIRECTION_DESC = @"desc";
}
+
(
JSONKeyMapper
*
)
keyMapper
{
return
[[
JSONKeyMapper
alloc
]
initWithDictionary
:@{
@"id"
:
@"fid"
,
}];
}
@end
@implementation
DeleteCartRequest
@synthesize
cartIds
;
@implementation
SaveShoppingCartRequest
@synthesize
consumerId
;
@synthesize
goodsId
;
@synthesize
count
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -880,10 +940,8 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
SceneCondition
@synthesize
styleEquals
;
@synthesize
spaceEquals
;
@synthesize
page
;
@implementation
RsShippingAddrEntity
@synthesize
list
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -893,12 +951,24 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
OrderFilter
@synthesize
resellerCodeEquals
;
@synthesize
orderStateEquals
;
@synthesize
consumerNameOrMobileEquals
;
@synthesize
consumerIdEquals
;
@synthesize
dp
;
@implementation
PromotionGoods
@synthesize
goods
;
@synthesize
promotionNumber
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
OrderBill
@synthesize
datapage
;
@synthesize
order
;
@synthesize
orderdetailList
;
@synthesize
consumer
;
@synthesize
employee
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -1097,6 +1167,17 @@ NSString * const SORTDIRECTION_DESC = @"desc";
}
@end
@implementation
OrderResponse
@synthesize
orderBillList
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
return
YES
;
}
@end
@implementation
TSUserOrg
...
...
@@ -1111,8 +1192,8 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
S
cene
Response
@synthesize
lis
t
;
@implementation
S
hopCart
Response
@synthesize
shopcar
t
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -1122,8 +1203,8 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
S
hopCart
Response
@synthesize
shopcar
t
;
@implementation
S
cene
Response
@synthesize
lis
t
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
@@ -1133,8 +1214,8 @@ NSString * const SORTDIRECTION_DESC = @"desc";
@end
@implementation
Order
Response
@synthesize
orderBillL
ist
;
@implementation
RsLottery
Response
@synthesize
l
ist
;
+
(
BOOL
)
propertyIsOptional
:(
NSString
*
)
propertyName
{
...
...
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