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
9c26f7db
Commit
9c26f7db
authored
Nov 21, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:
parent
0f2587e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
16 deletions
+25
-16
GuideIntegralViewController.m
Class/GuideIntegralViewController.m
+15
-13
PaymentsViewController.h
Class/PaymentsViewController.h
+2
-0
GuideIntegral.storyboard
Lighting/GuideIntegral.storyboard
+8
-3
No files found.
Class/GuideIntegralViewController.m
View file @
9c26f7db
...
...
@@ -11,6 +11,11 @@
@interface
GuideIntegralViewController
()
/**
积分
*/
@property
(
nonatomic
,
strong
)
RsScoreDetails
*
integralDatas
;
@end
@implementation
GuideIntegralViewController
...
...
@@ -29,10 +34,9 @@
NSString
*
url
=
[
NSString
stringWithFormat
:
SERVERREQUESTURL
(
INTEGRALQUERY
),[
Shoppersmanager
manager
].
Shoppers
.
employee
.
fid
];
[[
NetworkRequestClassManager
Manager
]
NetworkWithDictionaryRequestWithURL
:
url
WithCallClass
:
weakSelf
WithRequestType
:
ONE
WithParameter
:
nil
WithReturnValueBlock
:^
(
id
returnValue
)
{
NSSLog
(
@"%@"
,
returnValue
);
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
RsScoreDetails
*
integral
=
[[
RsScoreDetails
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
weakSelf
.
integralDatas
=
[[
RsScoreDetails
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
[
weakSelf
integralAssignment
:
weakSelf
.
integralDatas
];
}
else
{
[
weakSelf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
...
...
@@ -60,28 +64,26 @@
[
self
addChildViewController
:
payments
];
payments
.
view
.
frame
=
CGRectMake
(
0
,
50
,
self
.
integralDetailsView
.
mj_w
,
self
.
integralDetailsView
.
mj_h
-
50
);
[
self
.
integralDetailsView
addSubview
:
payments
.
view
];
NSString
*
headerurl
=
[
Shoppersmanager
manager
].
Shoppers
.
employee
.
picture
;
[
self
.
guideHeaderView
sd_setImageWithURL
:[
NSURL
URLWithString
:
headerurl
]
placeholderImage
:
ReplaceImage
];
}
#pragma mark - 礼品兑换
-
(
IBAction
)
exchangeButtonClick
:
(
UIButton
*
)
sender
{
}
-
(
void
)
didReceiveMemoryWarning
{
[
super
didReceiveMemoryWarning
];
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
Class/PaymentsViewController.h
View file @
9c26f7db
...
...
@@ -10,4 +10,6 @@
@interface
PaymentsViewController
:
BaseViewController
@end
Lighting/GuideIntegral.storyboard
View file @
9c26f7db
...
...
@@ -52,7 +52,7 @@
</connections>
</button>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"DFa-vp-e22"
>
<frame
key=
"frameInset"
minX=
"25.7
5
%"
minY=
"50.62%"
width=
"1.5"
height=
"49.5"
/>
<frame
key=
"frameInset"
minX=
"25.7
0
%"
minY=
"50.62%"
width=
"1.5"
height=
"49.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
red=
"0.87058823529999996"
green=
"0.87058823529999996"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
...
...
@@ -62,7 +62,7 @@
<color
key=
"backgroundColor"
red=
"0.87058823529999996"
green=
"0.87058823529999996"
blue=
"0.87058823529999996"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"13"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"YJy-KV-6XP"
>
<frame
key=
"frameInset"
minX=
"46.
42
%"
minY=
"67.63%"
width=
"13.75%"
height=
"20.5"
/>
<frame
key=
"frameInset"
minX=
"46.
37
%"
minY=
"67.63%"
width=
"13.75%"
height=
"20.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -81,7 +81,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"年度积分排行"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"Xbh-34-JR3"
>
<frame
key=
"frameInset"
minX=
"46.
42%"
minY=
"31.69%"
width=
"9.41
%"
height=
"19"
/>
<frame
key=
"frameInset"
minX=
"46.
37%"
minY=
"31.69%"
width=
"9.46
%"
height=
"19"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.66666666669999997"
green=
"0.66666666669999997"
blue=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -106,6 +106,11 @@
<color
key=
"textColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
misplaced=
"YES"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"44"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
id=
"Zp0-Op-Meu"
>
<frame
key=
"frameInset"
minY=
"45"
width=
"978"
height=
"304"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
</tableView>
</subviews>
<color
key=
"backgroundColor"
red=
"0.96078431372549022"
green=
"0.96470588235294119"
blue=
"0.96862745098039216"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
</view>
...
...
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