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
0f2587e2
Commit
0f2587e2
authored
Nov 21, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:
parent
558981b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1438 additions
and
1105 deletions
+1438
-1105
GuideIntegralViewController.m
Class/GuideIntegralViewController.m
+11
-1
GuideIntegral.storyboard
Lighting/GuideIntegral.storyboard
+7
-7
opple_objc_json_client.h
Tools/opple_objc_json_client.h
+1054
-824
opple_objc_json_client.m
Tools/opple_objc_json_client.m
+366
-273
No files found.
Class/GuideIntegralViewController.m
View file @
0f2587e2
...
...
@@ -31,7 +31,8 @@
NSSLog
(
@"%@"
,
returnValue
);
if
([
returnValue
[
@"code"
]
isEqualToNumber
:
@0
])
{
// RsScoreDetails *integral = [RsScoreDetails alloc];
RsScoreDetails
*
integral
=
[[
RsScoreDetails
alloc
]
initWithDictionary
:
returnValue
[
@"data"
]
error
:
nil
];
}
else
{
[
weakSelf
ErrorMBProgressView
:
returnValue
[
@"message"
]];
}
...
...
@@ -43,6 +44,15 @@
}];
}
#pragma mark - 积分赋值
-
(
void
)
integralAssignment
:
(
RsScoreDetails
*
)
scoreModel
{
self
.
currentIntegralLabel
.
text
=
[
NSString
stringWithFormat
:
@"%.0lf"
,
scoreModel
.
currentScore
];
self
.
quarterIntegralLabel
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
scoreModel
.
quarterlyRanking
];
self
.
yearIntegralLabel
.
text
=
[
NSString
stringWithFormat
:
@"%ld"
,
scoreModel
.
annualRanking
];
}
#pragma mark - 添加积分明细、导购头像
-
(
void
)
addChildViewController
{
...
...
Lighting/GuideIntegral.storyboard
View file @
0f2587e2
...
...
@@ -18,7 +18,7 @@
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
id=
"ehM-sk-qnE"
>
<frame
key=
"frameInset"
minX=
"1.
10
%"
minY=
"51.28%"
width=
"70.5"
height=
"70.5"
/>
<frame
key=
"frameInset"
minX=
"1.
05
%"
minY=
"51.28%"
width=
"70.5"
height=
"70.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"当前积分"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"W9n-sx-VVL"
>
...
...
@@ -29,7 +29,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"12233300"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"luv-aV-HGH"
>
<frame
key=
"frameInset"
minX=
"11.30%"
minY=
"6
8.34
%"
width=
"13.91%"
height=
"20.5"
/>
<frame
key=
"frameInset"
minX=
"11.30%"
minY=
"6
7.63
%"
width=
"13.91%"
height=
"20.5"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
widthSizable=
"YES"
flexibleMaxX=
"YES"
flexibleMinY=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<color
key=
"textColor"
red=
"0.98039215690000003"
green=
"0.32156862749999998"
blue=
"0.050980392159999999"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
...
...
@@ -51,8 +51,8 @@
<action
selector=
"exchangeButtonClick:"
destination=
"yKS-hT-LhA"
eventType=
"touchUpInside"
id=
"0HO-nU-sQ2"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
id=
"DFa-vp-e22"
>
<frame
key=
"frameInset"
minX=
"25.
82%"
minY=
"50.62%
"
height=
"49.5"
/>
<view
contentMode=
"scaleToFill"
misplaced=
"YES"
id=
"DFa-vp-e22"
>
<frame
key=
"frameInset"
minX=
"25.
75%"
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,13 +62,13 @@
<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.
63%"
minY=
"68.34
%"
width=
"13.75%"
height=
"20.5"
/>
<frame
key=
"frameInset"
minX=
"46.
42%"
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"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
misplaced=
"YES"
text=
"35"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"0Eh-Eu-GWV"
>
<frame
key=
"frameInset"
minX=
"28.89%"
minY=
"6
8.34
%"
width=
"13.86%"
height=
"20.5"
/>
<frame
key=
"frameInset"
minX=
"28.89%"
minY=
"6
7.63
%"
width=
"13.86%"
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.
63
%"
minY=
"31.69%"
width=
"9.41%"
height=
"19"
/>
<frame
key=
"frameInset"
minX=
"46.
42
%"
minY=
"31.69%"
width=
"9.41%"
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"
/>
...
...
Tools/opple_objc_json_client.h
View file @
0f2587e2
This diff is collapsed.
Click to expand it.
Tools/opple_objc_json_client.m
View file @
0f2587e2
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