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
3241f8a1
Commit
3241f8a1
authored
Nov 18, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:修复未选中当前客户时,促销查询错误
parent
ab139e43
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
14 deletions
+12
-14
CustomerOrderViewController.m
Class/CustomerOrderViewController.m
+1
-0
LuckyDrawDetailsViewController.m
Class/LuckyDrawDetailsViewController.m
+1
-2
OrderdetailsViewController.h
Class/OrderdetailsViewController.h
+5
-0
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+4
-11
Info.plist
Lighting/Info.plist
+1
-1
No files found.
Class/CustomerOrderViewController.m
View file @
3241f8a1
...
@@ -202,6 +202,7 @@
...
@@ -202,6 +202,7 @@
OrderdetailsViewController
*
orderdetails
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
OrderdetailsViewController
*
orderdetails
=
[
storyboard
instantiateViewControllerWithIdentifier
:
@"orderdetails"
];
TOOrderEntity
*
model
=
(
TOOrderEntity
*
)[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
row
]
order
];
TOOrderEntity
*
model
=
(
TOOrderEntity
*
)[[
self
.
datasArray
objectAtIndex_opple
:
indexPath
.
row
]
order
];
orderdetails
.
orderCode
=
model
.
orderNumber
;
orderdetails
.
orderCode
=
model
.
orderNumber
;
orderdetails
.
consumerID
=
model
.
consumerId
;
if
([
model
.
orderState
isEqualToString
:
@"006"
]
||
[
model
.
orderState
isEqualToString
:
@"002"
]
||
[
model
.
orderState
isEqualToString
:
@"003"
])
{
if
([
model
.
orderState
isEqualToString
:
@"006"
]
||
[
model
.
orderState
isEqualToString
:
@"002"
]
||
[
model
.
orderState
isEqualToString
:
@"003"
])
{
orderdetails
.
isShowPrintButton
=
YES
;
orderdetails
.
isShowPrintButton
=
YES
;
orderdetails
.
isShowPayButton
=
NO
;
orderdetails
.
isShowPayButton
=
NO
;
...
...
Class/LuckyDrawDetailsViewController.m
View file @
3241f8a1
...
@@ -143,7 +143,6 @@
...
@@ -143,7 +143,6 @@
RsLotteryResponse
*
drawRecord
=
[[
RsLotteryResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
RsLotteryResponse
*
drawRecord
=
[[
RsLotteryResponse
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
[
weakSelf
.
datasArray
addObjectsFromArray
:
drawRecord
.
list
];
[
weakSelf
.
datasArray
addObjectsFromArray
:
drawRecord
.
list
];
weakSelf
.
totalPage
=
[
returnValue
[
@"data"
][
@"totalpages"
]
integerValue
];
weakSelf
.
totalPage
=
[
returnValue
[
@"data"
][
@"totalpages"
]
integerValue
];
NSLog
(
@"%ld"
,
weakSelf
.
datasArray
.
count
);
[
weakSelf
.
drawDetailsTableView
reloadData
];
[
weakSelf
.
drawDetailsTableView
reloadData
];
}
else
{
}
else
{
[
weakSelf
SHOWPrompttext
:
returnValue
[
@"message"
]];
[
weakSelf
SHOWPrompttext
:
returnValue
[
@"message"
]];
...
@@ -185,7 +184,7 @@
...
@@ -185,7 +184,7 @@
}
}
UsedDrawTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"UsedDrawTableViewCell"
forIndexPath
:
indexPath
];
UsedDrawTableViewCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"UsedDrawTableViewCell"
forIndexPath
:
indexPath
];
cell
.
orderNumber
.
text
=
drawEntity
.
draw
.
orderNumber
;
cell
.
orderNumber
.
text
=
drawEntity
.
draw
.
orderNumber
;
cell
.
drawTimeLabel
.
text
=
drawEntity
.
draw
.
create
Date
;
cell
.
drawTimeLabel
.
text
=
drawEntity
.
draw
.
draw
Date
;
cell
.
trophyLabel
.
text
=
drawEntity
.
draw
.
awardDescription
;
cell
.
trophyLabel
.
text
=
drawEntity
.
draw
.
awardDescription
;
if
(
self
.
drawValue
==
0
)
{
if
(
self
.
drawValue
==
0
)
{
cell
.
drawTimeLabel
.
hidden
=
YES
;
cell
.
drawTimeLabel
.
hidden
=
YES
;
...
...
Class/OrderdetailsViewController.h
View file @
3241f8a1
...
@@ -66,6 +66,11 @@
...
@@ -66,6 +66,11 @@
*/
*/
@property
(
nonatomic
,
assign
)
BOOL
isUserInteractionEnabled
;
@property
(
nonatomic
,
assign
)
BOOL
isUserInteractionEnabled
;
/**
消费者ID
*/
@property
(
nonatomic
,
copy
)
NSString
*
consumerID
;
...
...
Class/OrderdetailsViewController.m
View file @
3241f8a1
...
@@ -288,14 +288,14 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -288,14 +288,14 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
}];
}];
}
}
/// 查询客户订单抽奖状态
/// 查询客户订单抽奖状态
static
RsAwardDraw
*
resultModel
=
nil
;
__block
RsAwardDraw
*
resultModel
=
nil
;
dispatch_group_enter
(
group
);
dispatch_group_enter
(
group
);
RsLotteryRequest
*
queryDrawState
=
[[
RsLotteryRequest
alloc
]
init
];
RsLotteryRequest
*
queryDrawState
=
[[
RsLotteryRequest
alloc
]
init
];
/// 判断订单是否支付
/// 判断订单是否支付
if
(
!
self
.
isShowPayButton
)
{
if
(
!
self
.
isShowPayButton
)
{
queryDrawState
.
orderNumberEquals
=
self
.
orderCode
;
queryDrawState
.
orderNumberEquals
=
self
.
orderCode
;
}
}
queryDrawState
.
winnerIdEquals
=
[
Customermanager
manager
].
model
.
fid
;
queryDrawState
.
winnerIdEquals
=
self
.
consumerID
?
self
.
consumerID
:
[
Customermanager
manager
].
model
.
fid
;
queryDrawState
.
stateEquals
=
self
.
isShowPayButton
?
ACCOMPLISHED
:
USED
;
queryDrawState
.
stateEquals
=
self
.
isShowPayButton
?
ACCOMPLISHED
:
USED
;
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
DataPage
*
page
=
[[
DataPage
alloc
]
init
];
page
.
page
=
ZERO
;
page
.
page
=
ZERO
;
...
@@ -306,17 +306,13 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -306,17 +306,13 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
NSDictionary
*
dict
=
[
returnValue
[
@"data"
][
@"list"
]
firstObject
];
NSDictionary
*
dict
=
[
returnValue
[
@"data"
][
@"list"
]
firstObject
];
resultModel
=
[[
RsAwardDraw
alloc
]
initWithDictionary
:
dict
error
:
nil
];
resultModel
=
[[
RsAwardDraw
alloc
]
initWithDictionary
:
dict
error
:
nil
];
}
else
{
resultModel
=
nil
;
}
}
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
resultModel
=
nil
;
dispatch_group_leave
(
group
);
dispatch_group_leave
(
group
);
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
[
weakSelf
ErrorMBProgressView
:
NETWORK
];
}
WithFailureBlock
:^
(
NSError
*
error
)
{
}
WithFailureBlock
:^
(
NSError
*
error
)
{
resultModel
=
nil
;
dispatch_group_leave
(
group
);
dispatch_group_leave
(
group
);
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
RemoveMBProgressHUDLoding
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
[
weakSelf
ErrorMBProgressView
:
error
.
localizedDescription
];
...
@@ -543,8 +539,8 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -543,8 +539,8 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
weakSelf
.
isShowHeaderView
=
YES
;
weakSelf
.
isShowHeaderView
=
YES
;
[
weakSelf
CreateTableviewHeaderView
];
[
weakSelf
CreateTableviewHeaderView
];
weakSelf
.
orderDetailsTableview
.
tableFooterView
=
nil
;
weakSelf
.
orderDetailsTableview
.
tableFooterView
=
nil
;
static
BOOL
isJDEcard
=
NO
;
//促销中是否有京东E卡;
__block
BOOL
isJDEcard
=
NO
;
//促销中是否有京东E卡;
static
BOOL
isGuideDraw
=
NO
;
//促销中是否有导购抽奖机会
__block
BOOL
isGuideDraw
=
NO
;
//促销中是否有导购抽奖机会
/// 刷新数据成功
/// 刷新数据成功
[
weakSelf
getOrderDetailsData
:
^
{
[
weakSelf
getOrderDetailsData
:
^
{
/// 先判断促销中有无E卡,有则认为发放成功
/// 先判断促销中有无E卡,有则认为发放成功
...
@@ -568,9 +564,6 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -568,9 +564,6 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
}
else
if
(
!
isJDEcard
&&
isGuideDraw
)
{
}
else
if
(
!
isJDEcard
&&
isGuideDraw
)
{
[
weakSelf
rebateApplySuccess
:
@"抽奖机会已放到你的账户"
];
[
weakSelf
rebateApplySuccess
:
@"抽奖机会已放到你的账户"
];
}
}
/// 初始化判断
isGuideDraw
=
NO
;
isJDEcard
=
NO
;
}];
}];
}];
}];
}
}
...
...
Lighting/Info.plist
View file @
3241f8a1
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
欧立方
<
/string
>
<
string
>
欧立方
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.
1
<
/string
>
<
string
>
1.2.
2
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
<
d
i
c
t
>
...
...
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