Commit 167e7510 authored by Achilles's avatar Achilles

add affairs tab page

parent 8e420aa4
......@@ -104,6 +104,16 @@
C19BBC2A1BBE894D00831290 /* user_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C19BBC281BBE894D00831290 /* user_icon@2x.png */; };
C19BBC2E1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C19BBC2C1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.m */; };
C19BBC2F1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.xml in Resources */ = {isa = PBXBuildFile; fileRef = C19BBC2D1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.xml */; };
C1A069FF1BE105140082006F /* VankeAffairsBoard_iPhone.m in Sources */ = {isa = PBXBuildFile; fileRef = C1A069FD1BE105140082006F /* VankeAffairsBoard_iPhone.m */; };
C1A06A001BE105140082006F /* VankeAffairsBoard_iPhone.xml in Resources */ = {isa = PBXBuildFile; fileRef = C1A069FE1BE105140082006F /* VankeAffairsBoard_iPhone.xml */; };
C1A06A091BE10B080082006F /* bill.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A011BE10B080082006F /* bill.png */; };
C1A06A0A1BE10B080082006F /* bill@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A021BE10B080082006F /* bill@2x.png */; };
C1A06A0B1BE10B080082006F /* notice.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A031BE10B080082006F /* notice.png */; };
C1A06A0C1BE10B080082006F /* notice@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A041BE10B080082006F /* notice@2x.png */; };
C1A06A0D1BE10B080082006F /* sale_input.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A051BE10B080082006F /* sale_input.png */; };
C1A06A0E1BE10B080082006F /* sale_input@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A061BE10B080082006F /* sale_input@2x.png */; };
C1A06A0F1BE10B080082006F /* service_apply.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A071BE10B080082006F /* service_apply.png */; };
C1A06A101BE10B080082006F /* service_apply@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = C1A06A081BE10B080082006F /* service_apply@2x.png */; };
C1D58B1A1BB1BC9200D297FE /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1D58B191BB1BC9200D297FE /* UIKit.framework */; };
C1D58B1C1BB1BC9200D297FE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1D58B1B1BB1BC9200D297FE /* Foundation.framework */; };
C1D58B1E1BB1BC9200D297FE /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1D58B1D1BB1BC9200D297FE /* CoreGraphics.framework */; };
......@@ -634,6 +644,17 @@
C19BBC2B1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VankeFloorDetailBoard_iPhone.h; path = "floor-detail/VankeFloorDetailBoard_iPhone.h"; sourceTree = "<group>"; };
C19BBC2C1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VankeFloorDetailBoard_iPhone.m; path = "floor-detail/VankeFloorDetailBoard_iPhone.m"; sourceTree = "<group>"; };
C19BBC2D1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = VankeFloorDetailBoard_iPhone.xml; path = "floor-detail/VankeFloorDetailBoard_iPhone.xml"; sourceTree = "<group>"; };
C1A069FC1BE105140082006F /* VankeAffairsBoard_iPhone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = VankeAffairsBoard_iPhone.h; path = affairs/VankeAffairsBoard_iPhone.h; sourceTree = "<group>"; };
C1A069FD1BE105140082006F /* VankeAffairsBoard_iPhone.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = VankeAffairsBoard_iPhone.m; path = affairs/VankeAffairsBoard_iPhone.m; sourceTree = "<group>"; };
C1A069FE1BE105140082006F /* VankeAffairsBoard_iPhone.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = VankeAffairsBoard_iPhone.xml; path = affairs/VankeAffairsBoard_iPhone.xml; sourceTree = "<group>"; };
C1A06A011BE10B080082006F /* bill.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = bill.png; path = img/bill.png; sourceTree = "<group>"; };
C1A06A021BE10B080082006F /* bill@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "bill@2x.png"; path = "img/bill@2x.png"; sourceTree = "<group>"; };
C1A06A031BE10B080082006F /* notice.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = notice.png; path = img/notice.png; sourceTree = "<group>"; };
C1A06A041BE10B080082006F /* notice@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "notice@2x.png"; path = "img/notice@2x.png"; sourceTree = "<group>"; };
C1A06A051BE10B080082006F /* sale_input.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = sale_input.png; path = img/sale_input.png; sourceTree = "<group>"; };
C1A06A061BE10B080082006F /* sale_input@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "sale_input@2x.png"; path = "img/sale_input@2x.png"; sourceTree = "<group>"; };
C1A06A071BE10B080082006F /* service_apply.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = service_apply.png; path = img/service_apply.png; sourceTree = "<group>"; };
C1A06A081BE10B080082006F /* service_apply@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "service_apply@2x.png"; path = "img/service_apply@2x.png"; sourceTree = "<group>"; };
C1D58B161BB1BC9200D297FE /* vanke.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = vanke.app; sourceTree = BUILT_PRODUCTS_DIR; };
C1D58B191BB1BC9200D297FE /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
C1D58B1B1BB1BC9200D297FE /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
......@@ -1519,6 +1540,16 @@
name = "floor-list";
sourceTree = "<group>";
};
C1A069FB1BE1046B0082006F /* affairs */ = {
isa = PBXGroup;
children = (
C1A069FC1BE105140082006F /* VankeAffairsBoard_iPhone.h */,
C1A069FD1BE105140082006F /* VankeAffairsBoard_iPhone.m */,
C1A069FE1BE105140082006F /* VankeAffairsBoard_iPhone.xml */,
);
name = affairs;
sourceTree = "<group>";
};
C1D58B0D1BB1BC9200D297FE = {
isa = PBXGroup;
children = (
......@@ -1655,14 +1686,15 @@
C1D58B3D1BB1BC9200D297FE /* templates */ = {
isa = PBXGroup;
children = (
C19ADE5D1BCABBC100206213 /* VankeAppBoard_iPhone.h */,
C19ADE5E1BCABBC100206213 /* VankeAppBoard_iPhone.m */,
C1A069FB1BE1046B0082006F /* affairs */,
C19BBBDE1BBE85B300831290 /* common */,
C19BBBDD1BBE857600831290 /* floor-detail */,
C19BBC121BBE863B00831290 /* floor-list */,
C19BBBDA1BBE855D00831290 /* login */,
C19BBBDB1BBE856500831290 /* main */,
C19ADE531BCA55BE00206213 /* settings */,
C19ADE5D1BCABBC100206213 /* VankeAppBoard_iPhone.h */,
C19ADE5E1BCABBC100206213 /* VankeAppBoard_iPhone.m */,
);
name = templates;
path = view_iPhone/templates;
......@@ -1708,6 +1740,14 @@
C1D594761BB2E5B000D297FE /* img */ = {
isa = PBXGroup;
children = (
C1A06A011BE10B080082006F /* bill.png */,
C1A06A021BE10B080082006F /* bill@2x.png */,
C1A06A031BE10B080082006F /* notice.png */,
C1A06A041BE10B080082006F /* notice@2x.png */,
C1A06A051BE10B080082006F /* sale_input.png */,
C1A06A061BE10B080082006F /* sale_input@2x.png */,
C1A06A071BE10B080082006F /* service_apply.png */,
C1A06A081BE10B080082006F /* service_apply@2x.png */,
C1DED31F1BCEC4B40049BB2D /* blue_bg.png */,
C1DED3201BCEC4B40049BB2D /* blue_bg@2x.png */,
C1DED3211BCEC4B40049BB2D /* business_checked.png */,
......@@ -3146,7 +3186,9 @@
buildActionMask = 2147483647;
files = (
C19BBC261BBE869500831290 /* PullLoader.xml in Resources */,
C1A06A0A1BE10B080082006F /* bill@2x.png in Resources */,
C19BBC001BBE85F500831290 /* VankeServiceDashBoard_iPhone.xml in Resources */,
C1A06A0C1BE10B080082006F /* notice@2x.png in Resources */,
C1DED3301BCEC4B40049BB2D /* business_checked@2x.png in Resources */,
C14D6F571BB8041B00210172 /* homepage_logo.png in Resources */,
C1DED2AD1BCEAC530049BB2D /* location_icon.png in Resources */,
......@@ -3155,13 +3197,17 @@
C1D5948C1BB2E5DD00D297FE /* contact-them@2x.png in Resources */,
C14D6F881BB8268800210172 /* right_icon@2x.png in Resources */,
C19ADE401BC8147800206213 /* search@2x.png in Resources */,
C1A06A0E1BE10B080082006F /* sale_input@2x.png in Resources */,
C1A06A091BE10B080082006F /* bill.png in Resources */,
C19BBC061BBE85F500831290 /* VankeWeatherCell_iPhone.xml in Resources */,
C1D595031BB42A6800D297FE /* page-normal@2x.png in Resources */,
C1DED3391BCEC4B40049BB2D /* user.png in Resources */,
C1A06A0B1BE10B080082006F /* notice.png in Resources */,
C1D595051BB42A6800D297FE /* splash2.xml in Resources */,
C14D6F6C1BB8071700210172 /* sales_red@2x.png in Resources */,
C165078C1BB96C2800CB2FC1 /* pwd_icon.png in Resources */,
C1DED3381BCEC4B40049BB2D /* user_checked@2x.png in Resources */,
C1A06A0D1BE10B080082006F /* sale_input.png in Resources */,
C14D6F6B1BB8071700210172 /* sales_red.png in Resources */,
C1D5948B1BB2E5DD00D297FE /* arrow-down@2x.png in Resources */,
C1D594971BB2E5DD00D297FE /* navigation-back@2x.png in Resources */,
......@@ -3175,8 +3221,10 @@
C14D6F671BB8071700210172 /* sales_orange.png in Resources */,
C1DED32F1BCEC4B40049BB2D /* business_checked.png in Resources */,
C19BBC2A1BBE894D00831290 /* user_icon@2x.png in Resources */,
C1A06A001BE105140082006F /* VankeAffairsBoard_iPhone.xml in Resources */,
C19ADE351BC6C71F00206213 /* floor-def.jpg in Resources */,
C16507881BB96C2800CB2FC1 /* login_bg.png in Resources */,
C1A06A101BE10B080082006F /* service_apply@2x.png in Resources */,
C19BBC2F1BBE8B5800831290 /* VankeFloorDetailBoard_iPhone.xml in Resources */,
C1D595171BB42A7200D297FE /* spinner@2x.png in Resources */,
C165078D1BB96C2800CB2FC1 /* pwd_icon@2x.png in Resources */,
......@@ -3232,6 +3280,7 @@
C1D595151BB42A7200D297FE /* navigation-forward@2x.png in Resources */,
C19BBC241BBE869500831290 /* FootLoader.xml in Resources */,
C19BBBE31BBE85D000831290 /* VankeLoginBoard_iPhone.xml in Resources */,
C1A06A0F1BE10B080082006F /* service_apply.png in Resources */,
C1DED3341BCEC4B40049BB2D /* home_bg@2x.png in Resources */,
C14D6F6A1BB8071700210172 /* sales_purple@2x.png in Resources */,
C1DED3361BCEC4B40049BB2D /* home@2x.png in Resources */,
......@@ -3472,6 +3521,7 @@
C12804F91BC40D09001ECBAA /* OMGToast.m in Sources */,
C1D5997A1BB44B2100D297FE /* FMDatabaseAdditions.m in Sources */,
C12804E91BC2E2F4001ECBAA /* VankeResponse.m in Sources */,
C1A069FF1BE105140082006F /* VankeAffairsBoard_iPhone.m in Sources */,
C1D598FF1BB44B2000D297FE /* Bee_UITransitionFlip.m in Sources */,
C1D598B51BB44B2000D297FE /* Bee_UIToolbar.m in Sources */,
C1D599061BB44B2000D297FE /* Bee_OnceViewModel.mm in Sources */,
......
......@@ -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