Commit 167e7510 authored by Achilles's avatar Achilles

add affairs tab page

parent 8e420aa4
This diff is collapsed.
......@@ -11,6 +11,7 @@
#import "VankeUtil.h"
#import "VankeMainBoard_iPhone.h"
#import "VankeLoginBoard_iPhone.h"
#import "VankeAffairsBoard_iPhone.h"
#import "VankeSettingsBoard_iPhone.h"
#import "VankeMainTabBoard_iPhone.h"
......@@ -55,7 +56,7 @@ ON_CREATE_VIEWS( signal )
_router.parentBoard = self;
_router.view.alpha = 0.0f;
[_router map:@"home" toClass:[VankeMainBoard_iPhone class]];
// [_router map:@"affairs" toClass:[AboutBoard_iPhone class]];
[_router map:@"affairs" toClass:[VankeAffairsBoard_iPhone class]];
[_router map:@"me" toClass:[VankeSettingsBoard_iPhone class]];
[self.view addSubview:_router.view];
......@@ -152,6 +153,11 @@ ON_SIGNAL3( VankeMainTabBoard_iPhone, home, signal )
[_router open:@"home" animated:YES];
}
ON_SIGNAL3( VankeMainTabBoard_iPhone, affairs, signal )
{
[_router open:@"affairs" animated:YES];
}
ON_SIGNAL3( VankeMainTabBoard_iPhone, me, signal )
{
[_router open:@"me" animated:YES];
......
//
// ______ ______ ______
// /\ __ \ /\ ___\ /\ ___\
// \ \ __< \ \ __\_ \ \ __\_
// \ \_____\ \ \_____\ \ \_____\
// \/_____/ \/_____/ \/_____/
//
// Powered by BeeFramework
//
//
// VankeAffairsBoard_iPhone.h
// vanke
//
// Created by xiaomi on 15/10/28.
// Copyright © 2015年 gomore. All rights reserved.
//
#import "Bee.h"
#pragma mark -
@interface VankeAffairsBoard_iPhone : BeeUIBoard
AS_OUTLET( BeeUIButton, btnNotice )
AS_OUTLET( BeeUIButton, btnBill )
AS_OUTLET( BeeUIButton, btnSaleInput )
AS_OUTLET( BeeUIButton, btnServiceApply )
@end
//
// ______ ______ ______
// /\ __ \ /\ ___\ /\ ___\
// \ \ __< \ \ __\_ \ \ __\_
// \ \_____\ \ \_____\ \ \_____\
// \/_____/ \/_____/ \/_____/
//
// Powered by BeeFramework
//
//
// VankeAffairsBoard_iPhone.m
// vanke
//
// Created by xiaomi on 15/10/28.
// Copyright © 2015年 gomore. All rights reserved.
//
#import "VankeAffairsBoard_iPhone.h"
#pragma mark -
@interface VankeAffairsBoard_iPhone()
{
//<#@private var#>
}
@end
@implementation VankeAffairsBoard_iPhone
SUPPORT_AUTOMATIC_LAYOUT( YES )
SUPPORT_RESOURCE_LOADING( YES )
DEF_OUTLET( BeeUIButton, btnNotice )
DEF_OUTLET( BeeUIButton, btnBill )
DEF_OUTLET( BeeUIButton, btnSaleInput )
DEF_OUTLET( BeeUIButton, btnServiceApply )
- (void)load
{
}
- (void)unload
{
}
#pragma mark - Signal
ON_CREATE_VIEWS( signal )
{
self.navigationBarShown = YES;
self.navigationBarTitle = @"事务";
UIColor *color = [UIColor colorWithRed:237/255.0 green:27/255.0 blue:35/255.0 alpha:1.0];
if ( IOS7_OR_LATER ) {
self.navigationController.navigationBar.barTintColor = color;
} else {
self.navigationController.navigationBar.tintColor = color;
}
}
ON_DELETE_VIEWS( signal )
{
}
ON_LAYOUT_VIEWS( signal )
{
}
ON_WILL_APPEAR( signal )
{
}
ON_DID_APPEAR( signal )
{
}
ON_WILL_DISAPPEAR( signal )
{
}
ON_DID_DISAPPEAR( signal )
{
}
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnNotice, signal) {
// VankeServiceBoardCell_iPhone *cell = (VankeServiceBoardCell_iPhone *)signal.sourceCell;
// if ([@"当前客流" eq:[cell name]]) {
// [[VankeAppBoard_iPhone sharedInstance] hideMenu];
// [self showListView: CELL_TYPE_PASSENGER];
// } else {
// [GEToast showWithText:@"正在研发中..." bottomOffset:50.0f duration:1.0f];
// }
INFO(@"button notice pressed.");
}
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnBill, signal) {
INFO(@"button bill pressed.");
}
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnSaleInput, signal) {
INFO(@"button sale input pressed.");
}
ON_SIGNAL3(VankeAffairsBoard_iPhone, btnServiceApply, signal) {
INFO(@"button service apply pressed.");
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<ui namespace="VankeAffairsBoard_iPhone">
<linear orientation="v" class="wrapper">
<image class="bg" />
<linear orientation="h" class="row row1">
<linear orientation="v" class="cell notice">
<button id="btnNotice" class="mask" />
<image src="notice.png" />
</linear>
<linear orientation="v" class="cell">
<button id="btnBill" class="mask" />
<image src="bill.png" />
</linear>
</linear>
<linear orientation="h" class="row row2">
<linear orientation="v" class="cell sale-input">
<button id="btnSaleInput" class="mask" />
<image src="sale_input.png" />
</linear>
<linear orientation="v" class="cell">
<button id="btnServiceApply" class="mask" />
<image src="service_apply.png" />
</linear>
</linear>
</linear>
<style type="text/css">
.wrapper {
width: 100%;
height: 100%;
margin-top: 64px;
padding: 5px;
}
.wrapper > .bg {
position: absolute;
width: 100%;
height: 100%;
background-color: #f6f6f6;
}
.wrapper > .row {
width: 100%;
height: 135px;
margin-bottom: 5px;
}
.row > .cell {
width: 50%;
height: 100%;
}
.row > .cell > .mask {
position: absolute;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
}
.row > .cell > image {
image-mode: fill;
}
.row1 > .notice,
.row2 > .sale-input {
padding-right: 5px;
}
</style>
</ui>
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