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
e99978ff
Commit
e99978ff
authored
Nov 10, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:debug
parent
ed21b615
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
25 deletions
+31
-25
CardViewController.m
Class/CardViewController.m
+8
-2
LuckyDrawDetailsViewController.m
Class/LuckyDrawDetailsViewController.m
+1
-2
OrderdetailsViewController.m
Class/OrderdetailsViewController.m
+18
-13
Info.plist
Lighting/Info.plist
+1
-1
NetworkRequestClassManager.m
Tools/NetworkRequestClassManager.m
+1
-1
PrefixHeader.pch
Tools/PrefixHeader.pch
+2
-6
No files found.
Class/CardViewController.m
View file @
e99978ff
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#import "CardCollectionViewCell.h"
#import "CardCollectionViewCell.h"
#import "CardDetailsViewController.h"
#import "CardDetailsViewController.h"
#import "CardAmplificationViewController.h"
#import "CardAmplificationViewController.h"
#import "LuckyDrawViewController.h"
@interface
CardViewController
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
,
DZNEmptyDataSetSource
,
DZNEmptyDataSetDelegate
>
@interface
CardViewController
()
<
UICollectionViewDelegate
,
UICollectionViewDataSource
,
DZNEmptyDataSetSource
,
DZNEmptyDataSetDelegate
>
...
@@ -135,9 +136,14 @@
...
@@ -135,9 +136,14 @@
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
{
TOJingdongEcardEntity
*
model
=
self
.
datasArray
[
indexPath
.
section
];
WS
(
weakSelf
);
TOJingdongEcardEntity
*
model
=
self
.
datasArray
[
indexPath
.
row
];
if
([[
self
class
]
isBlankString
:
model
.
orderReceiptUrl
])
{
if
([[
self
class
]
isBlankString
:
model
.
orderReceiptUrl
])
{
[
self
SHOWPrompttext
:
@"不能查看未激活卡劵,请先上传小票激活卡劵"
];
[
self
promptCustomerTitle
:
@"不能查看未激活卡劵,请先上传小票激活卡劵"
finish
:
^
{
CardDetailsViewController
*
cardDetails
=
[[
weakSelf
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"CardDetailsViewController"
];
[
weakSelf
.
navigationController
pushViewController
:
cardDetails
animated
:
YES
];
}];
}
else
{
}
else
{
CardAmplificationViewController
*
cardVC
=
[[
CardAmplificationViewController
alloc
]
init
];
CardAmplificationViewController
*
cardVC
=
[[
CardAmplificationViewController
alloc
]
init
];
self
.
settingsPopoverController
=
[[
WYPopoverController
alloc
]
initWithContentViewController
:
cardVC
];
self
.
settingsPopoverController
=
[[
WYPopoverController
alloc
]
initWithContentViewController
:
cardVC
];
...
...
Class/LuckyDrawDetailsViewController.m
View file @
e99978ff
...
@@ -219,8 +219,7 @@
...
@@ -219,8 +219,7 @@
if
([
BaseViewController
isBlankString
:
json
[
@"awardId"
]])
{
if
([
BaseViewController
isBlankString
:
json
[
@"awardId"
]])
{
[
weakSelf
SHOWPrompttext
:
@"未中奖"
];
[
weakSelf
SHOWPrompttext
:
@"未中奖"
];
}
else
{
}
else
{
NSString
*
string
=
[
NSString
stringWithFormat
:
@"恭喜获得%ld元红包"
,[
json
[
@"number"
]
integerValue
]];
[
weakSelf
SHOWPrompttext
:[
NSString
stringWithFormat
:
@"恭喜你获得了 %@"
,
json
[
@"description"
]]];
[
weakSelf
SHOWPrompttext
:
string
];
}
}
}
}
}
}
...
...
Class/OrderdetailsViewController.m
View file @
e99978ff
...
@@ -326,19 +326,25 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -326,19 +326,25 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
}
}
/// 默认弹出支付框
/// 默认弹出支付框
if
(
weakSelf
.
isShowPayButton
&&
[
weakSelf
.
orderDetails
.
order
.
orderState
isEqualToString
:
NOTPAY
])
{
if
(
weakSelf
.
isShowPayButton
&&
[
weakSelf
.
orderDetails
.
order
.
orderState
isEqualToString
:
NOTPAY
])
{
for
(
id
object
in
weakSelf
.
luckyDrawAndJDECardArray
)
{
if
([
object
isKindOfClass
:[
LuckyDrawModel
class
]]
&&
!
resultModel
)
{
if
(
weakSelf
.
luckyDrawAndJDECardArray
.
count
)
{
[
weakSelf
queryConsumerLuckyDrawChance
:
object
];
for
(
id
object
in
weakSelf
.
luckyDrawAndJDECardArray
)
{
}
else
{
if
([
object
isKindOfClass
:[
LuckyDrawModel
class
]]
&&
!
resultModel
)
{
[
weakSelf
payButtonClickAction
];
[
weakSelf
queryConsumerLuckyDrawChance
:
object
];
}
}
else
{
/// 区分导购抽奖和消费者抽奖
[
weakSelf
payButtonClickAction
];
if
([
object
isKindOfClass
:[
LuckyDrawModel
class
]])
{
}
LuckyDrawModel
*
model
=
object
;
/// 区分导购抽奖和消费者抽奖
if
([
model
.
body
isEqualToString
:
CONSUMER
])
{
if
([
object
isKindOfClass
:[
LuckyDrawModel
class
]])
{
break
;
LuckyDrawModel
*
model
=
object
;
if
([
model
.
body
isEqualToString
:
CONSUMER
])
{
break
;
}
}
}
}
}
}
else
{
/// 无促销的情况
[
weakSelf
payButtonClickAction
];
}
}
}
}
if
(
finish
)
{
if
(
finish
)
{
...
@@ -472,8 +478,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
...
@@ -472,8 +478,7 @@ NSString *const PROMOTIONALSTRING = @"促销信息";
if
([
BaseViewController
isBlankString
:
weakSelf
.
customerDrawModel
.
awardId
])
{
if
([
BaseViewController
isBlankString
:
weakSelf
.
customerDrawModel
.
awardId
])
{
[
weakSelf
SHOWPrompttext
:
@"未中奖"
];
[
weakSelf
SHOWPrompttext
:
@"未中奖"
];
}
else
{
}
else
{
NSString
*
string
=
[
NSString
stringWithFormat
:
@"恭喜获得%ld折优惠,会在支付时直接扣除!"
,[
weakSelf
.
customerDrawModel
.
number
integerValue
]
/
10
];
[
weakSelf
SHOWPrompttext
:[
NSString
stringWithFormat
:
@"恭喜你获得了 %@"
,
weakSelf
.
customerDrawModel
.
descriptionString
]];
[
weakSelf
SHOWPrompttext
:
string
];
}
}
}
}
}
}
...
...
Lighting/Info.plist
View file @
e99978ff
...
@@ -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.1.
8
<
/string
>
<
string
>
1.1.
9
<
/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
>
...
...
Tools/NetworkRequestClassManager.m
View file @
e99978ff
...
@@ -48,7 +48,7 @@ static NetworkRequestClassManager *manager = nil;
...
@@ -48,7 +48,7 @@ static NetworkRequestClassManager *manager = nil;
AFHTTPSessionManager
*
manager
=
[
AFHTTPSessionManager
manager
];
AFHTTPSessionManager
*
manager
=
[
AFHTTPSessionManager
manager
];
manager
.
responseSerializer
=
[
AFJSONResponseSerializer
serializer
];
manager
.
responseSerializer
=
[
AFJSONResponseSerializer
serializer
];
manager
.
requestSerializer
=
[
AFJSONRequestSerializer
serializer
];
manager
.
requestSerializer
=
[
AFJSONRequestSerializer
serializer
];
manager
.
requestSerializer
.
timeoutInterval
=
1
2
0
.
0
f
;
manager
.
requestSerializer
.
timeoutInterval
=
10
.
0
f
;
[
manager
.
requestSerializer
setValue
:
@"application/json;charset=utf-8"
forHTTPHeaderField
:
@"Content-Type"
];
[
manager
.
requestSerializer
setValue
:
@"application/json;charset=utf-8"
forHTTPHeaderField
:
@"Content-Type"
];
return
manager
;
return
manager
;
}
}
...
...
Tools/PrefixHeader.pch
View file @
e99978ff
...
@@ -120,20 +120,16 @@
...
@@ -120,20 +120,16 @@
*/
*/
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://139.196.195.30:8090/opple-web/app%@",URL]
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://139.196.195.30:8090/opple-web/app%@",URL]
///**
// * 服务器开发地址
// */
//#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://192.168.199.188:8081/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]
///**
///**
// * 服务器正式地址
// * 服务器正式地址
// */
// */
//
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg.opple.com/opple-web/app%@",URL]
#define SERVERREQUESTURL(URL) [NSString stringWithFormat:@"http://dg.opple.com/opple-web/app%@",URL]
/**
/**
* 搜索框输入通知
* 搜索框输入通知
...
...
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