Commit 3d0d5c10 authored by Achilles's avatar Achilles

公告查看页。

parent 6e929801
......@@ -30,7 +30,7 @@
[NSString stringWithFormat:@"%lu", self.pageNumber], @"page_number",
[NSString stringWithFormat:@"%lu", self.pageSize], @"page_size",
nil];
NSString *url = [NSString stringWithFormat:@"/affiche/download/%@", curUser.code];
NSString *url = [NSString stringWithFormat:@"/affiche/download/%@", curUser.uuid];
[self http_post:url].BODY(dict).TIMEOUT(10);
}
else if (self.succeed)
......
......@@ -25,6 +25,7 @@
@property (strong, nonatomic) Notice* data;
AS_OUTLET( BeeUILabel, lblContent )
AS_OUTLET( BeeUIView, viewAtts )
@end
......@@ -33,6 +33,7 @@
SUPPORT_AUTOMATIC_LAYOUT( YES )
SUPPORT_RESOURCE_LOADING( YES )
DEF_OUTLET( BeeUILabel, lblContent )
DEF_OUTLET( BeeUIView, viewAtts )
- (void)load
......@@ -84,6 +85,17 @@ ON_DID_DISAPPEAR( signal )
{
}
ON_LOAD_DATAS( signal ) {
if (nil == self.data) {
return;
}
$(@"lblTitle").DATA(_data.title);
$(@"lblPublisher").DATA(_data.create_operName);
$(@"lblPublishTime").DATA(_data.create_time);
NSAttributedString * attrStr = [[NSAttributedString alloc] initWithData:[_data.content dataUsingEncoding:NSUnicodeStringEncoding] options:@{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType } documentAttributes:nil error:nil];
_lblContent.attributedText = attrStr;
}
@end
......@@ -6,7 +6,7 @@
<linear orientation="h" class="title-wrapper">
<image class="bg" />
<label id="lblTitle" class="title">通知标题</title>
<label id="lblTitle" class="title">通知标题</label>
</linear>
<linear orientation="h" class="row lbl-row">
......
......@@ -169,14 +169,6 @@ ON_DID_DISAPPEAR( signal )
{
}
ON_SIGNAL3( BeeUINavigationBar, LEFT_TOUCHED, signal )
{
}
ON_SIGNAL3( BeeUINavigationBar, RIGHT_TOUCHED, signal )
{
}
#pragma UISegmentedControl
ON_SIGNAL3( VankeNoticeListBoard_iPhone, segment, signal )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment