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
912fec60
Commit
912fec60
authored
8 years ago
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:修复导购抽奖闪退
parent
ec8c4c9b
master
dev
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
219 additions
and
176 deletions
+219
-176
CardBeenUseViewController.m
Class/CardBeenUseViewController.m
+3
-0
CardDetailsViewController.h
Class/CardDetailsViewController.h
+4
-0
CardDetailsViewController.m
Class/CardDetailsViewController.m
+15
-1
LuckyDrawDetailsViewController.m
Class/LuckyDrawDetailsViewController.m
+5
-8
Info.plist
Lighting/Info.plist
+1
-1
StoryboardwithCYX.storyboard
Lighting/StoryboardwithCYX.storyboard
+179
-164
CYConstManager.h
Tools/CYConstManager.h
+5
-0
CYConstManager.m
Tools/CYConstManager.m
+5
-0
PrefixHeader.pch
Tools/PrefixHeader.pch
+2
-2
No files found.
Class/CardBeenUseViewController.m
View file @
912fec60
...
...
@@ -211,6 +211,9 @@
-
(
void
)
collectionView
:
(
UICollectionView
*
)
collectionView
didSelectItemAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
if
([
self
.
cardState
isEqualToString
:
CHECK
])
{
return
;
}
CardAmplificationViewController
*
cardVC
=
[[
CardAmplificationViewController
alloc
]
init
];
self
.
settingsPopoverController
=
[[
WYPopoverController
alloc
]
initWithContentViewController
:
cardVC
];
self
.
settingsPopoverController
.
theme
.
fillBottomColor
=
[
UIColor
clearColor
];
...
...
This diff is collapsed.
Click to expand it.
Class/CardDetailsViewController.h
View file @
912fec60
...
...
@@ -26,6 +26,10 @@
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
isUsedButton
;
/**
审核中
*/
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
examinationButton
;
/**
* 指示线
...
...
This diff is collapsed.
Click to expand it.
Class/CardDetailsViewController.m
View file @
912fec60
...
...
@@ -33,6 +33,10 @@
// 未领取
CardDontUseViewController
*
dontUseVc
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"CardDontUseViewController"
];
[
self
addChildViewController
:
dontUseVc
];
// 审批中
CardBeenUseViewController
*
examineUseVc
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"CardBeenUseViewController"
];
examineUseVc
.
cardState
=
CHECK
;
[
self
addChildViewController
:
examineUseVc
];
// 已领取
CardBeenUseViewController
*
beenUseVc
=
[[
self
getStoryboardWithName
]
instantiateViewControllerWithIdentifier
:
@"CardBeenUseViewController"
];
beenUseVc
.
cardState
=
ACTIVED
;
...
...
@@ -43,6 +47,7 @@
[
self
addChildViewController
:
usedVc
];
dontUseVc
.
view
.
frame
=
CGRectMake
(
0
,
0
,
self
.
cardBackgroundView
.
mj_w
,
self
.
cardBackgroundView
.
mj_h
);
beenUseVc
.
view
.
frame
=
CGRectMake
(
0
,
0
,
self
.
cardBackgroundView
.
mj_w
,
self
.
cardBackgroundView
.
mj_h
);
examineUseVc
.
view
.
frame
=
CGRectMake
(
0
,
0
,
self
.
cardBackgroundView
.
mj_w
,
self
.
cardBackgroundView
.
mj_h
);
usedVc
.
view
.
frame
=
CGRectMake
(
0
,
0
,
self
.
cardBackgroundView
.
mj_w
,
self
.
cardBackgroundView
.
mj_h
);
[
self
.
cardBackgroundView
addSubview
:
dontUseVc
.
view
];
self
.
currentVC
=
dontUseVc
;
...
...
@@ -68,19 +73,28 @@
{
self
.
beenUseButton
.
selected
=
NO
;
self
.
isUsedButton
.
selected
=
NO
;
self
.
examinationButton
.
selected
=
NO
;
}
break
;
case
101
:
{
self
.
dontUseButton
.
selected
=
NO
;
self
.
isUsedButton
.
selected
=
NO
;
self
.
beenUseButton
.
selected
=
NO
;
}
break
;
case
102
:
{
self
.
dontUseButton
.
selected
=
NO
;
self
.
beenUseButton
.
selected
=
NO
;
self
.
examinationButton
.
selected
=
NO
;
}
break
;
case
103
:
{
self
.
dontUseButton
.
selected
=
NO
;
self
.
beenUseButton
.
selected
=
NO
;
self
.
examinationButton
.
selected
=
NO
;
}
break
;
...
...
This diff is collapsed.
Click to expand it.
Class/LuckyDrawDetailsViewController.m
View file @
912fec60
...
...
@@ -211,14 +211,11 @@
RsAwardDraw
*
drawEntity
=
self
.
datasArray
[
sender
.
tag
];
[
self
showLuckyDrawControl
:
drawEntity
.
draw
.
lotteryId
andOrderNumber
:
drawEntity
.
draw
.
orderNumber
andDrawid
:
drawEntity
.
draw
.
fid
luckyDrawFinish
:^
(
NSDictionary
*
dict
)
{
id
json
=
[
NSJSONSerialization
JSONObjectWithData
:[
dict
[
@"body"
]
dataUsingEncoding
:
NSUTF8StringEncoding
]
options
:
NSJSONReadingMutableContainers
error
:
nil
];
if
(
json
)
{
if
([
json
isKindOfClass
:[
NSDictionary
class
]])
{
if
([
BaseViewController
isBlankString
:
json
[
@"awardId"
]])
{
[
weakSelf
SHOWPrompttext
:
@"未中奖"
];
}
else
{
[
weakSelf
SHOWPrompttext
:[
NSString
stringWithFormat
:
@"恭喜你获得了 %@"
,
json
[
@"description"
]]];
}
if
([
dict
isKindOfClass
:[
NSDictionary
class
]])
{
if
([
BaseViewController
isBlankString
:
dict
[
@"awardId"
]])
{
[
weakSelf
SHOWPrompttext
:
@"未中奖"
];
}
else
{
[
weakSelf
SHOWPrompttext
:[
NSString
stringWithFormat
:
@"恭喜你获得了 %@"
,
dict
[
@"description"
]]];
}
}
}];
...
...
This diff is collapsed.
Click to expand it.
Lighting/Info.plist
View file @
912fec60
...
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundleName
<
/k
e
y
>
<
string
>
欧立方
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.
6
<
/string
>
<
string
>
1.2.
7
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
...
...
This diff is collapsed.
Click to expand it.
Lighting/StoryboardwithCYX.storyboard
View file @
912fec60
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
Tools/CYConstManager.h
View file @
912fec60
...
...
@@ -310,6 +310,11 @@ extern NSString *const ACTIVED;
*/
extern
NSString
*
const
USED
;
/**
* 京东卡状态<审批中>
*/
extern
NSString
*
const
CHECK
;
/**
* 更新购物车商品
*/
...
...
This diff is collapsed.
Click to expand it.
Tools/CYConstManager.m
View file @
912fec60
...
...
@@ -299,6 +299,11 @@ NSString *const DISPENSED = @"dispensed";
*/
NSString
*
const
ACTIVED
=
@"actived"
;
/**
* 京东卡状态<审批中>
*/
NSString
*
const
CHECK
=
@"checking"
;
/**
* 京东卡状态<查看>
*/
...
...
This diff is collapsed.
Click to expand it.
Tools/PrefixHeader.pch
View file @
912fec60
...
...
@@ -140,7 +140,7 @@
/**
* 服务器开发地址
*/
#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]
/**
...
...
@@ -151,7 +151,7 @@
//**
// * 服务器正式地址
// */
//
#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]
/**
* 搜索框输入通知
...
...
This diff is collapsed.
Click to expand it.
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