Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
万
万科
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
张杰
万科
Commits
2d300a22
Commit
2d300a22
authored
Nov 29, 2015
by
Achilles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update.
parent
96d017a3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
217 additions
and
296 deletions
+217
-296
project.pbxproj
vanke.xcodeproj/project.pbxproj
+148
-269
VankeSettlementListAPI.m
vanke/controller/VankeSettlementListAPI.m
+1
-1
VankeUserLoginAPI.m
vanke/controller/VankeUserLoginAPI.m
+1
-1
bill_default_image@2x.png
..._iPhone/resource/img/settlement/bill_default_image@2x.png
+0
-0
bill_default_image@3x.png
..._iPhone/resource/img/settlement/bill_default_image@3x.png
+0
-0
bill_icon@2x.png
vanke/view_iPhone/resource/img/settlement/bill_icon@2x.png
+0
-0
bill_icon@3x.png
vanke/view_iPhone/resource/img/settlement/bill_icon@3x.png
+0
-0
bill_remark@2x.png
vanke/view_iPhone/resource/img/settlement/bill_remark@2x.png
+0
-0
bill_remark@3x.png
vanke/view_iPhone/resource/img/settlement/bill_remark@3x.png
+0
-0
wave_line@2x.png
vanke/view_iPhone/resource/img/settlement/wave_line@2x.png
+0
-0
wave_line@3x.png
vanke/view_iPhone/resource/img/settlement/wave_line@3x.png
+0
-0
VankeStatementDetailListBoard_iPhone.m
...emplates/statement/VankeStatementDetailListBoard_iPhone.m
+1
-1
VankeStatementDetailListCell_iPhone.m
...templates/statement/VankeStatementDetailListCell_iPhone.m
+22
-1
VankeStatementDetailListCell_iPhone.xml
...mplates/statement/VankeStatementDetailListCell_iPhone.xml
+21
-12
VankeStatementDetailMonthCell_iPhone.m
...emplates/statement/VankeStatementDetailMonthCell_iPhone.m
+3
-1
VankeStatementDetailMonthCell_iPhone.xml
...plates/statement/VankeStatementDetailMonthCell_iPhone.xml
+6
-2
VankeStatementListBoard_iPhone.m
...hone/templates/statement/VankeStatementListBoard_iPhone.m
+1
-0
VankeStatementListItemCell_iPhone.m
...e/templates/statement/VankeStatementListItemCell_iPhone.m
+1
-2
VankeStatementMonthCell_iPhone.m
...hone/templates/statement/VankeStatementMonthCell_iPhone.m
+6
-4
VankeStatementMonthCell_iPhone.xml
...ne/templates/statement/VankeStatementMonthCell_iPhone.xml
+6
-2
No files found.
vanke.xcodeproj/project.pbxproj
View file @
2d300a22
This diff is collapsed.
Click to expand it.
vanke/controller/VankeSettlementListAPI.m
View file @
2d300a22
...
...
@@ -123,7 +123,7 @@ CONVERT_PROPERTY_CLASS(items, SubjectItem)
-
(
NSString
*
)
getPictureUrlOrDefault
{
if
([
VankeUtil
isBlankString
:
self
.
picture
])
{
return
@"bill_
icon
.png"
;
return
@"bill_
default_image
.png"
;
}
else
{
return
[
NSString
stringWithFormat
:
@"%@/%@"
,
VANKE_SERVER_MEDIA_BASE_URL
,
self
.
picture
];
}
...
...
vanke/controller/VankeUserLoginAPI.m
View file @
2d300a22
...
...
@@ -24,7 +24,7 @@
return
;
}
NSString
*
url
=
[
NSString
stringWithFormat
:
@"/
wanke/
user/login/%@"
,
self
.
userName
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"/user/login/%@"
,
self
.
userName
];
NSString
*
encryptPwd
=
[
VankeUtil
md5
:
self
.
password
];
NSDictionary
*
dict
=
[
NSDictionary
dictionaryWithObjectsAndKeys
:
self
.
authenticode
,
@"authenticode"
,
...
...
vanke/view_iPhone/resource/img/settlement/bill_default_image@2x.png
0 → 100644
View file @
2d300a22
3.03 KB
vanke/view_iPhone/resource/img/settlement/bill_default_image@3x.png
0 → 100644
View file @
2d300a22
4.21 KB
vanke/view_iPhone/resource/img/settlement/bill_icon@2x.png
deleted
100644 → 0
View file @
96d017a3
1.82 KB
vanke/view_iPhone/resource/img/settlement/bill_icon@3x.png
deleted
100644 → 0
View file @
96d017a3
2.82 KB
vanke/view_iPhone/resource/img/settlement/bill_remark@2x.png
0 → 100644
View file @
2d300a22
1.87 KB
vanke/view_iPhone/resource/img/settlement/bill_remark@3x.png
0 → 100644
View file @
2d300a22
2.37 KB
vanke/view_iPhone/resource/img/settlement/wave_line@2x.png
0 → 100644
View file @
2d300a22
4.45 KB
vanke/view_iPhone/resource/img/settlement/wave_line@3x.png
0 → 100644
View file @
2d300a22
3.86 KB
vanke/view_iPhone/templates/statement/VankeStatementDetailListBoard_iPhone.m
View file @
2d300a22
...
...
@@ -284,7 +284,7 @@ ON_SIGNAL3(VankeStatementDetailListBoard_iPhone, btnConfirm, signal) {
}
else
{
for
(
BeeUIScrollItem
*
item
in
self
.
list
.
items
)
{
item
.
size
=
CGSizeMake
(
self
.
list
.
width
/
self
.
list
.
lineCount
,
8
0
);
item
.
size
=
CGSizeMake
(
self
.
list
.
width
/
self
.
list
.
lineCount
,
7
0
);
item
.
order
=
0
;
item
.
rule
=
BeeUIScrollLayoutRule_Fall
;
item
.
clazz
=
[
VankeStatementDetailListCell_iPhone
class
];
...
...
vanke/view_iPhone/templates/statement/VankeStatementDetailListCell_iPhone.m
View file @
2d300a22
...
...
@@ -17,6 +17,7 @@
#import "VankeStatementDetailListCell_iPhone.h"
#import "VankeSettlementListAPI.h"
#import "VankeUtil.h"
#pragma mark -
...
...
@@ -52,7 +53,13 @@ DEF_OUTLET(BeeUILabel, lblDateRange)
}
$
(
self
.
lblName
).
DATA
(
item
.
subject
);
$
(
self
.
lblAmount
).
DATA
(
item
.
amount
.
description
);
if
([
VankeUtil
isBlankString
:
item
.
remark
])
{
$
(
@"btnRemark"
).
HIDE
();
}
else
{
$
(
@"btnRemark"
).
SHOW
();
}
$
(
self
.
lblAmount
).
DATA
([
NSString
stringWithFormat
:
@"%.2f "
,
[
item
.
amount
doubleValue
]]);
NSString
*
beginDate
=
[
self
trancateToDateString
:
item
.
beginDate
];
NSString
*
endDate
=
[
self
trancateToDateString
:
item
.
endDate
];
...
...
@@ -74,4 +81,18 @@ DEF_OUTLET(BeeUILabel, lblDateRange)
// TODO: custom layout here
}
ON_SIGNAL3
(
VankeStatementDetailListCell_iPhone
,
btnRemark
,
signal
)
{
SubjectItem
*
item
=
(
SubjectItem
*
)
self
.
data
;
if
(
!
item
)
{
return
;
}
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"备注"
message
:
item
.
remark
delegate
:
nil
cancelButtonTitle
:
@"确定"
otherButtonTitles
:
nil
,
nil
];
[
alert
show
];
}
@end
vanke/view_iPhone/templates/statement/VankeStatementDetailListCell_iPhone.xml
View file @
2d300a22
...
...
@@ -13,7 +13,10 @@
<linear
orientation=
"v"
class=
"col name-col"
>
<linear
orientation=
"v"
class=
"name-wrapper"
>
<label
id=
"lblName"
class=
"name"
/>
<linear
orientation=
"h"
class=
"name-remark-wrapper"
>
<label
id=
"lblName"
class=
"name"
/>
<button
id=
"btnRemark"
class=
"remark"
/>
</linear>
<label
id=
"lblDateRange"
class=
"date-range"
/>
</linear>
</linear>
...
...
@@ -63,16 +66,14 @@
}
.photo-col {
width: 25%;
h-align: center;
width: 50px;
v-align: center;
align: center;
}
.photo-col .photo {
width: 100%;
height: 100%;
image-mode: fit;
image-loading: white;
padding: 2px;
width: auto;
height: auto;
}
.name-col {
...
...
@@ -82,16 +83,24 @@
v-align: center;
}
.name-col .name-wrapper {
.name-col .name-wrapper,
.name-col .name-wrapper .name-remark-wrapper {
height: auto;
width: 100%;
}
.name-
col
.name {
.name-
remark-wrapper
.name {
font-size: 18px;
font-style: bold;
width: 100%;
width: auto;
height: auto;
}
.name-remark-wrapper .remark {
width: auto;
height: auto;
padding: 3px 0px 0px 5px;
background-image: url(bill_remark.png);
}
.name-col .date-range {
...
...
vanke/view_iPhone/templates/statement/VankeStatementDetailMonthCell_iPhone.m
View file @
2d300a22
...
...
@@ -50,7 +50,9 @@ DEF_OUTLET( BeeUILabel, lblTotalPrefix )
[
dateFormatter
setDateFormat
:
@"yyyyMM"
];
NSDate
*
settleDate
=
[
dateFormatter
dateFromString
:
shop
.
settle
];
[
self
setSettleDate
:
settleDate
];
$
(
self
.
lblAmount
).
DATA
(
shop
.
amount
.
description
);
NSNumber
*
amount
=
shop
.
amount
;
$
(
self
.
lblAmount
).
DATA
([
NSString
stringWithFormat
:
@"%.2f "
,
nil
==
amount
?
0
.
0
f
:[
amount
doubleValue
]]);
}
-
(
void
)
layoutDidFinish
...
...
vanke/view_iPhone/templates/statement/VankeStatementDetailMonthCell_iPhone.xml
View file @
2d300a22
...
...
@@ -53,7 +53,7 @@
position: absolute;
left: 0px;
top: 0px;
background-
color: white
;
background-
image: url(wave_line.png)
;
}
.col-wrapper {
...
...
@@ -86,7 +86,11 @@
/** 左边日期列 */
.date-col {
padding-left: 10px;
align: center;
}
.date-col .col-body {
width: 100px;
}
.date-col .row {
...
...
vanke/view_iPhone/templates/statement/VankeStatementListBoard_iPhone.m
View file @
2d300a22
...
...
@@ -65,6 +65,7 @@ ON_CREATE_VIEWS( signal )
self
.
allowedSwipeToBack
=
YES
;
self
.
title
=
@"对账单"
;
[
self
initListAndModel
];
// [self.searchBar setBarTintColor :[VankeUtil rgbStringToColor: @"246,246,246"]];
}
ON_DELETE_VIEWS
(
signal
)
...
...
vanke/view_iPhone/templates/statement/VankeStatementListItemCell_iPhone.m
View file @
2d300a22
...
...
@@ -48,8 +48,7 @@ DEF_OUTLET(BeeUIImageView, imgState)
$
(
self
.
imgPhoto
).
DATA
([
item
getPictureUrlOrDefault
]);
$
(
self
.
lblName
).
DATA
([
item
codeName
]);
$
(
self
.
lblState
).
DATA
(
@"已确认"
);
$
(
self
.
lblAmount
).
DATA
(
item
.
amount
.
description
);
$
(
self
.
lblAmount
).
DATA
([
NSString
stringWithFormat
:
@"%.2f "
,
[
item
.
amount
doubleValue
]]);
$
(
self
.
imgState
).
DATA
([
NSString
stringWithFormat
:
@"%@.png"
,
item
.
state
]);
}
...
...
vanke/view_iPhone/templates/statement/VankeStatementMonthCell_iPhone.m
View file @
2d300a22
...
...
@@ -47,14 +47,16 @@ DEF_OUTLET( BeeUILabel, lblTotalPrefix )
StatementListResponse
*
resp
=
(
StatementListResponse
*
)
self
.
data
;
if
(
nil
==
resp
)
{
[
self
setSettleDate
:[
NSDate
date
]];
$
(
self
.
lblCount
).
DATA
(
@"0"
);
$
(
self
.
lblAmount
).
DATA
(
@"0"
);
$
(
self
.
lblCount
).
DATA
(
[
NSString
stringWithFormat
:
@" %d "
,
0
]
);
$
(
self
.
lblAmount
).
DATA
(
[
NSString
stringWithFormat
:
@"%.2f "
,
0
.
0
f
]
);
return
;
}
[
self
setSettleDate
:
resp
.
settle
];
$
(
self
.
lblCount
).
DATA
([
NSString
stringWithFormat
:
@"%d"
,
[
resp
.
data
.
paging
.
recordCount
intValue
]]);
$
(
self
.
lblAmount
).
DATA
(
nil
==
resp
.
data
.
amount
?
@"0"
:
resp
.
data
.
amount
.
description
);
$
(
self
.
lblCount
).
DATA
([
NSString
stringWithFormat
:
@" %d "
,
[
resp
.
data
.
paging
.
recordCount
intValue
]]);
NSNumber
*
amount
=
resp
.
data
.
amount
;
$
(
self
.
lblAmount
).
DATA
([
NSString
stringWithFormat
:
@"%.2f "
,
nil
==
amount
?
0
.
0
f
:[
amount
doubleValue
]]);
}
-
(
void
)
layoutDidFinish
...
...
vanke/view_iPhone/templates/statement/VankeStatementMonthCell_iPhone.xml
View file @
2d300a22
...
...
@@ -56,7 +56,7 @@
position: absolute;
left: 0px;
top: 0px;
background-
color: white
;
background-
image: url(wave_line.png)
;
}
.col-wrapper {
...
...
@@ -89,7 +89,11 @@
/** 左边日期列 */
.date-col {
padding-left: 10px;
align: center;
}
.date-col .col-body {
width: 100px;
}
.date-col .row {
...
...
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