Commit ce6ab0c0 authored by Achilles's avatar Achilles

提交无数据时的图片

parent 2f49dc76
This diff is collapsed.
...@@ -21,6 +21,4 @@ ...@@ -21,6 +21,4 @@
@interface NoDataCell_iPhoneCell : BeeUICell @interface NoDataCell_iPhoneCell : BeeUICell
AS_OUTLET( BeeUILabel, lblMsg )
@end @end
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
SUPPORT_AUTOMATIC_LAYOUT( YES ) SUPPORT_AUTOMATIC_LAYOUT( YES )
SUPPORT_RESOURCE_LOADING( YES ) SUPPORT_RESOURCE_LOADING( YES )
DEF_OUTLET( BeeUILabel, lblMsg )
- (void)load - (void)load
{ {
} }
...@@ -36,11 +34,6 @@ DEF_OUTLET( BeeUILabel, lblMsg ) ...@@ -36,11 +34,6 @@ DEF_OUTLET( BeeUILabel, lblMsg )
- (void)dataDidChanged - (void)dataDidChanged
{ {
NSString *str = self.data;
if (nil == str) {
str = @"没有数据,请稍后重试!";
}
$(self.lblMsg).DATA(str);
} }
- (void)layoutDidFinish - (void)layoutDidFinish
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<ui namespace="NoDataCell_iPhoneCell"> <ui namespace="NoDataCell_iPhoneCell">
<linear orientation="v" class="wrapper"> <linear orientation="v" class="wrapper">
<label id="lblMsg" class="msg"/> <image class="bg" />
</linear> </linear>
<style type="text/css"> <style type="text/css">
...@@ -12,10 +12,13 @@ ...@@ -12,10 +12,13 @@
align: center; align: center;
} }
.msg { .bg {
width: auto; position: absolute;
height: 30px; top: 0;
color: black; left: 0;
width: 100%;
height: 100%;
background-image: url(no_data.png);
} }
</style> </style>
</ui> </ui>
\ No newline at end of file
...@@ -77,7 +77,7 @@ ON_CREATE_VIEWS( signal ) ...@@ -77,7 +77,7 @@ ON_CREATE_VIEWS( signal )
self.list.total = 1; self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0]; BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50); item.size = CGSizeMake( self.list.width, 100 );
item.order = 0; item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall; item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class]; item.clazz = [NoDataCell_iPhoneCell class];
......
...@@ -90,7 +90,7 @@ ON_CREATE_VIEWS( signal ) ...@@ -90,7 +90,7 @@ ON_CREATE_VIEWS( signal )
self.list.total = 1; self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0]; BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50); item.size = CGSizeMake( self.list.width, 100);
item.order = 0; item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall; item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class]; item.clazz = [NoDataCell_iPhoneCell class];
......
...@@ -296,7 +296,7 @@ ON_SIGNAL3(VankeStatementDetailListBoard_iPhone, btnConfirm, signal) { ...@@ -296,7 +296,7 @@ ON_SIGNAL3(VankeStatementDetailListBoard_iPhone, btnConfirm, signal) {
self.list.total = 1; self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0]; BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50); item.size = CGSizeMake( self.list.width, 100);
item.order = 0; item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall; item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class]; item.clazz = [NoDataCell_iPhoneCell class];
......
...@@ -215,7 +215,7 @@ ON_NOTIFICATION3( VankeStatementDetailListBoard_iPhone, STATE_CHANGED, notificat ...@@ -215,7 +215,7 @@ ON_NOTIFICATION3( VankeStatementDetailListBoard_iPhone, STATE_CHANGED, notificat
self.list.total = 1; self.list.total = 1;
BeeUIScrollItem * item = self.list.items[0]; BeeUIScrollItem * item = self.list.items[0];
item.size = CGSizeMake( self.list.width, 50); item.size = CGSizeMake( self.list.width, 200);
item.order = 0; item.order = 0;
item.rule = BeeUIScrollLayoutRule_Fall; item.rule = BeeUIScrollLayoutRule_Fall;
item.clazz = [NoDataCell_iPhoneCell class]; item.clazz = [NoDataCell_iPhoneCell class];
......
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