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
ceb5b36e
Commit
ceb5b36e
authored
Nov 11, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:优化抽奖机会提示,协调和卡劵提示的关系
parent
63f30440
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
10 deletions
+32
-10
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+20
-9
GenerateOrdersViewController.m
Class/Shoppingcart/GenerateOrdersViewController.m
+0
-1
PrefixHeader.pch
Tools/PrefixHeader.pch
+12
-0
No files found.
Class/OrderdetailsViewController.m
View file @
ceb5b36e
...
...
@@ -357,10 +357,10 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
#pragma mark - 卡劵领取成功
-
(
void
)
rebateApplySuccess
-
(
void
)
rebateApplySuccess
:
(
NSString
*
)
message
{
RebateSuccessTableViewController
*
success
=
[
self
.
getStoryboardWithName
instantiateViewControllerWithIdentifier
:
@"RebateSuccessTableViewController"
];
success
.
titleArray
=
@[
@"卡劵已发放到你的账户"
,
@"查看账户"
,
@"我知道了"
];
success
.
titleArray
=
@[
message
,
@"查看账户"
,
@"我知道了"
];
[
success
setClickEvent
:
^
(
NSIndexPath
*
indexPath
)
{
if
(
indexPath
.
row
==
1
)
{
/// 我知道了
...
...
@@ -520,16 +520,18 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
///支付成功
WS
(
weakSelf
);
[
settlement
setPaySuccessReturnBlock
:
^
{
/// 支付完成后若导购有抽奖机会需要提示导购
[
weakSelf
queryGuideLuckyDrawChanceisTrue
:
^
{
[[
NSNotificationCenter
defaultCenter
]
postNotificationName
:
PROMPTDRAWINFORMATION
object
:
@
(
1
)]
;
}
];
if
(
weakSelf
.
DelecteAndPayButtonBlock
)
{
weakSelf
.
DelecteAndPayButtonBlock
(
_cellindex
,
PAYSUCCESS
)
;
}
[
weakSelf
SuccessMBProgressView
:
@"支付成功"
];
weakSelf
.
isShowPayButton
=
NO
;
weakSelf
.
isUserInteractionEnabled
=
NO
;
weakSelf
.
isShowHeaderView
=
YES
;
[
weakSelf
CreateTableviewHeaderView
];
weakSelf
.
orderDetailsTableview
.
tableFooterView
=
nil
;
__block
BOOL
isJDEcard
;
//促销中是否有京东E卡;
__block
BOOL
isGuideDraw
;
//促销中是否有导购抽奖机会
/// 刷新数据成功
[
weakSelf
getOrderDetailsData
:
^
{
/// 先判断促销中有无E卡,有则认为发放成功
...
...
@@ -537,13 +539,22 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
if
([
object
isKindOfClass
:[
PromotionalDeductionModel
class
]])
{
PromotionalDeductionModel
*
model
=
(
PromotionalDeductionModel
*
)
object
;
if
([
model
.
body
isEqualToString
:
GUIDE
]
&&
[
model
.
type
isEqualToString
:
JDECardAction
])
{
[
weakSelf
rebateApplySuccess
]
;
break
;
isJDEcard
=
YES
;
break
;
}
}
}
/// 查询导购抽奖机会
[
weakSelf
queryGuideLuckyDrawChanceisTrue
:
^
{
isGuideDraw
=
YES
;
}];
}];
if
(
weakSelf
.
DelecteAndPayButtonBlock
)
{
weakSelf
.
DelecteAndPayButtonBlock
(
_cellindex
,
PAYSUCCESS
);
/// 弹出框
if
(
isJDEcard
&&
isGuideDraw
)
{
[
weakSelf
rebateApplySuccess
:
@"京东E卡、抽奖机会已放到你的账户"
];
}
else
if
(
isJDEcard
&&
!
isGuideDraw
)
{
[
weakSelf
rebateApplySuccess
:
@"京东E卡已放到你的账户"
];
}
else
if
(
!
isJDEcard
&&
isGuideDraw
)
{
[
weakSelf
rebateApplySuccess
:
@"抽奖机会已放到你的账户"
];
}
}];
}
...
...
Class/Shoppingcart/GenerateOrdersViewController.m
View file @
ceb5b36e
...
...
@@ -407,7 +407,6 @@
order
.
orderdetailList
=
(
NSArray
<
TOOrderdetailEntity
>
*
)
goodidArr
;
[
self
CreateMBProgressHUDLoding
];
WS
(
weakSelf
);
NSLog
(
@"%@"
,[
order
toDictionary
]);
[[
NetworkRequestClassManager
Manager
]
NetworkRequestWithURL
:
SERVERREQUESTURL
(
CREATEORDER
)
WithCallClass
:
weakSelf
WithRequestType
:
0
WithParameter
:
order
WithReturnValueBlock
:^
(
id
returnValue
)
{
[
weakSelf
RemoveMBProgressHUDLoding
];
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
...
...
Tools/PrefixHeader.pch
View file @
ceb5b36e
...
...
@@ -44,6 +44,18 @@
// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.
/**
* 禁止所有的打印,打包时使用
*/
#ifdef DEBUG
#define NSLog(...) NSLog(__VA_ARGS__)
#define debugMethod() NSLog(@"%s", __func__)
#else
#define NSLog(...)
#define debugMethod()
#endif
/**
* AppDelegate代理
*/
...
...
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