From 05deb73f9ac92b3619308796665ef5f99fc5d106 Mon Sep 17 00:00:00 2001 From: Achilles <wlz.debenson@gmail.com> Date: Tue, 1 Dec 2015 23:08:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=85=AC=E5=91=8A=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/notice/VankeNoticeListBoardCell_iPhone.m | 8 +++++++- .../templates/notice/VankeNoticeListBoardCell_iPhone.xml | 5 +++++ .../templates/notice/VankeNoticeListBoard_iPhone.xml | 7 ++++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.m b/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.m index 41839d5..ab70bd8 100755 --- a/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.m +++ b/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.m @@ -32,7 +32,13 @@ DEF_OUTLET( BeeUILabel, lblPublishTime ) [self setPriority:obj.priority]; $(self.lblPublisher).DATA([NSString stringWithFormat:@"å‘布人: %@", obj.create_operName]); - $(self.lblPublishTime).DATA([NSString stringWithFormat:@"å‘布时间: %@", obj.create_time]); + + NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; + [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; + NSDate *createTime = [dateFormatter dateFromString:obj.create_time]; + NSDateFormatter *dateFormatter2 = [[NSDateFormatter alloc] init]; + [dateFormatter2 setDateFormat:@"yyyy-MM-dd"]; + $(self.lblPublishTime).DATA([NSString stringWithFormat:@"å‘布时间: %@", [dateFormatter2 stringFromDate: createTime]]); } -(void) setPriority: (NSNumber*) priority { diff --git a/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.xml b/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.xml index 7b90462..71609e1 100755 --- a/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.xml +++ b/vanke/view_iPhone/templates/notice/VankeNoticeListBoardCell_iPhone.xml @@ -83,10 +83,15 @@ height: 50%; } + .title-wrapper .title { + font-size: 18px; + } + .publisher, .publish-time { width: auto; height: auto; color: gray; + font-size: 13px; } .publish-time { diff --git a/vanke/view_iPhone/templates/notice/VankeNoticeListBoard_iPhone.xml b/vanke/view_iPhone/templates/notice/VankeNoticeListBoard_iPhone.xml index c2e35fe..009e2dc 100644 --- a/vanke/view_iPhone/templates/notice/VankeNoticeListBoard_iPhone.xml +++ b/vanke/view_iPhone/templates/notice/VankeNoticeListBoard_iPhone.xml @@ -25,16 +25,17 @@ } .segment-wrapper { - height: 45px; + height: 30px; width: 100%; position: absolute; left: 0px; - top: 64px; + top: 70px; + align: center; } #segment { height: 100%; - width: 100%; + width: 80%; } #list { -- 2.18.1