Commit c2ff708d authored by admin's avatar admin

添加Pod MBProgressHUD 完成口碑巡检任务的下拉效果

parent f28aac0e
...@@ -2,4 +2,5 @@ platform :ios ...@@ -2,4 +2,5 @@ platform :ios
platform:ios, 7.0 platform:ios, 7.0
pod 'AFNetworking', '~> 2.0' pod 'AFNetworking', '~> 2.0'
pod 'SDWebImage' pod 'SDWebImage'
\ No newline at end of file pod 'MBProgressHUD'
\ No newline at end of file
...@@ -20,16 +20,19 @@ PODS: ...@@ -20,16 +20,19 @@ PODS:
- AFNetworking/UIKit (2.5.4): - AFNetworking/UIKit (2.5.4):
- AFNetworking/NSURLConnection - AFNetworking/NSURLConnection
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- MBProgressHUD (0.9.1)
- SDWebImage (3.7.2): - SDWebImage (3.7.2):
- SDWebImage/Core (= 3.7.2) - SDWebImage/Core (= 3.7.2)
- SDWebImage/Core (3.7.2) - SDWebImage/Core (3.7.2)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 2.0) - AFNetworking (~> 2.0)
- MBProgressHUD
- SDWebImage - SDWebImage
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e
MBProgressHUD: c47f2c166c126cf2ce36498d80f33e754d4e93ad
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29 SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
COCOAPODS: 0.38.2 COCOAPODS: 0.38.2
...@@ -20,16 +20,19 @@ PODS: ...@@ -20,16 +20,19 @@ PODS:
- AFNetworking/UIKit (2.5.4): - AFNetworking/UIKit (2.5.4):
- AFNetworking/NSURLConnection - AFNetworking/NSURLConnection
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- MBProgressHUD (0.9.1)
- SDWebImage (3.7.2): - SDWebImage (3.7.2):
- SDWebImage/Core (= 3.7.2) - SDWebImage/Core (= 3.7.2)
- SDWebImage/Core (3.7.2) - SDWebImage/Core (3.7.2)
DEPENDENCIES: DEPENDENCIES:
- AFNetworking (~> 2.0) - AFNetworking (~> 2.0)
- MBProgressHUD
- SDWebImage - SDWebImage
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e
MBProgressHUD: c47f2c166c126cf2ce36498d80f33e754d4e93ad
SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29 SDWebImage: 71b7cdc1d1721d6a82ed62889030225f2c249e29
COCOAPODS: 0.38.2 COCOAPODS: 0.38.2
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
buildForAnalyzing = "YES"> buildForAnalyzing = "YES">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "5CFA329AFEF2880DEAE686EB" BlueprintIdentifier = "05C49BFC6678D02A5BA2AF9E"
BuildableName = "libAFNetworking.a" BuildableName = "libAFNetworking.a"
BlueprintName = "AFNetworking" BlueprintName = "AFNetworking"
ReferencedContainer = "container:Pods.xcodeproj"> ReferencedContainer = "container:Pods.xcodeproj">
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
buildForAnalyzing = "YES"> buildForAnalyzing = "YES">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "8D41FAC9B573099F368E0D7A" BlueprintIdentifier = "2A1A0185E3E06B44EFB3B811"
BuildableName = "libPods.a" BuildableName = "libPods.a"
BlueprintName = "Pods" BlueprintName = "Pods"
ReferencedContainer = "container:Pods.xcodeproj"> ReferencedContainer = "container:Pods.xcodeproj">
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
buildForAnalyzing = "YES"> buildForAnalyzing = "YES">
<BuildableReference <BuildableReference
BuildableIdentifier = "primary" BuildableIdentifier = "primary"
BlueprintIdentifier = "7DCBFB98B427D0C9998F7F92" BlueprintIdentifier = "92F70C8D85FB927B0B2E889F"
BuildableName = "libSDWebImage.a" BuildableName = "libSDWebImage.a"
BlueprintName = "SDWebImage" BlueprintName = "SDWebImage"
ReferencedContainer = "container:Pods.xcodeproj"> ReferencedContainer = "container:Pods.xcodeproj">
......
...@@ -9,6 +9,11 @@ ...@@ -9,6 +9,11 @@
<key>isShown</key> <key>isShown</key>
<false/> <false/>
</dict> </dict>
<key>MBProgressHUD.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
</dict>
<key>Pods.xcscheme</key> <key>Pods.xcscheme</key>
<dict> <dict>
<key>isShown</key> <key>isShown</key>
...@@ -22,17 +27,22 @@ ...@@ -22,17 +27,22 @@
</dict> </dict>
<key>SuppressBuildableAutocreation</key> <key>SuppressBuildableAutocreation</key>
<dict> <dict>
<key>0FA72A0AACF9B5838D64F1C0E8DC1042</key> <key>5352D432641F0656C90741034E32F31E</key>
<dict> <dict>
<key>primary</key> <key>primary</key>
<true/> <true/>
</dict> </dict>
<key>3013081EDFD3D437D305B9125F04822D</key> <key>5FC6A81851E4FEDCC925827D24095F98</key>
<dict> <dict>
<key>primary</key> <key>primary</key>
<true/> <true/>
</dict> </dict>
<key>5352D432641F0656C90741034E32F31E</key> <key>CC9C3BA776D2012790953F771B30655B</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>E9009E5FE25F72AC37C4386F9825CBCA</key>
<dict> <dict>
<key>primary</key> <key>primary</key>
<true/> <true/>
......
#include "AFNetworking.xcconfig" #include "AFNetworking.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/SDWebImage" HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AFNetworking" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_LDFLAGS = ${AFNETWORKING_OTHER_LDFLAGS} OTHER_LDFLAGS = ${AFNETWORKING_OTHER_LDFLAGS}
PODS_ROOT = ${SRCROOT} PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES SKIP_INSTALL = YES
\ No newline at end of file
...@@ -24,6 +24,28 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN ...@@ -24,6 +24,28 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE. THE SOFTWARE.
## MBProgressHUD
Copyright (c) 2009-2015 Matej Bukovinski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## SDWebImage ## SDWebImage
Copyright (c) 2009 Olivier Poitrey <rs@dailymotion.com> Copyright (c) 2009 Olivier Poitrey <rs@dailymotion.com>
......
...@@ -39,6 +39,32 @@ THE SOFTWARE. ...@@ -39,6 +39,32 @@ THE SOFTWARE.
<key>Type</key> <key>Type</key>
<string>PSGroupSpecifier</string> <string>PSGroupSpecifier</string>
</dict> </dict>
<dict>
<key>FooterText</key>
<string>Copyright (c) 2009-2015 Matej Bukovinski
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.</string>
<key>Title</key>
<string>MBProgressHUD</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict> <dict>
<key>FooterText</key> <key>FooterText</key>
<string>Copyright (c) 2009 Olivier Poitrey &lt;rs@dailymotion.com&gt; <string>Copyright (c) 2009 Olivier Poitrey &lt;rs@dailymotion.com&gt;
......
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/SDWebImage" HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AFNetworking" -isystem "${PODS_ROOT}/Headers/Public/SDWebImage" OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AFNetworking" -isystem "${PODS_ROOT}/Headers/Public/MBProgressHUD" -isystem "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_LDFLAGS = $(inherited) -ObjC -l"AFNetworking" -l"SDWebImage" -framework "CoreGraphics" -framework "ImageIO" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" OTHER_LDFLAGS = $(inherited) -ObjC -l"AFNetworking" -l"MBProgressHUD" -l"SDWebImage" -framework "CoreGraphics" -framework "ImageIO" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration"
PODS_ROOT = ${SRCROOT}/Pods PODS_ROOT = ${SRCROOT}/Pods
\ No newline at end of file
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/SDWebImage" HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AFNetworking" -isystem "${PODS_ROOT}/Headers/Public/SDWebImage" OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AFNetworking" -isystem "${PODS_ROOT}/Headers/Public/MBProgressHUD" -isystem "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_LDFLAGS = $(inherited) -ObjC -l"AFNetworking" -l"SDWebImage" -framework "CoreGraphics" -framework "ImageIO" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration" OTHER_LDFLAGS = $(inherited) -ObjC -l"AFNetworking" -l"MBProgressHUD" -l"SDWebImage" -framework "CoreGraphics" -framework "ImageIO" -framework "MobileCoreServices" -framework "Security" -framework "SystemConfiguration"
PODS_ROOT = ${SRCROOT}/Pods PODS_ROOT = ${SRCROOT}/Pods
\ No newline at end of file
#include "SDWebImage.xcconfig" #include "SDWebImage.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SDWebImage" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/SDWebImage" HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/SDWebImage" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AFNetworking" "${PODS_ROOT}/Headers/Public/MBProgressHUD" "${PODS_ROOT}/Headers/Public/SDWebImage"
OTHER_LDFLAGS = ${SDWEBIMAGE_OTHER_LDFLAGS} OTHER_LDFLAGS = ${SDWEBIMAGE_OTHER_LDFLAGS}
PODS_ROOT = ${SRCROOT} PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES SKIP_INSTALL = YES
\ No newline at end of file
This diff is collapsed.
{ {
"images" : [ "images" : [
{ {
"idiom" : "iphone", "size" : "40x40",
"size" : "29x29", "idiom" : "ipad",
"filename" : "Icon-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-40@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "60x60",
"idiom" : "iphone", "idiom" : "iphone",
"size" : "29x29", "filename" : "Icon-60@2x.png",
"scale" : "3x" "scale" : "2x"
}, },
{ {
"idiom" : "iphone", "size" : "72x72",
"size" : "40x40", "idiom" : "ipad",
"filename" : "Icon-72.png",
"scale" : "1x"
},
{
"size" : "72x72",
"idiom" : "ipad",
"filename" : "Icon-72@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "iphone", "size" : "76x76",
"size" : "40x40", "idiom" : "ipad",
"scale" : "3x" "filename" : "Icon-76.png",
"scale" : "1x"
}, },
{ {
"idiom" : "iphone", "size" : "76x76",
"size" : "60x60", "idiom" : "ipad",
"filename" : "Icon-76@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "iphone", "size" : "50x50",
"size" : "60x60", "idiom" : "ipad",
"scale" : "3x" "filename" : "Icon-Small-50.png",
"scale" : "1x"
}, },
{ {
"size" : "50x50",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "Icon-Small-50@2x.png",
"scale" : "2x"
},
{
"size" : "29x29", "size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-Small.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "ipad",
"size" : "29x29", "size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-Small@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "ipad", "size" : "57x57",
"size" : "40x40", "idiom" : "iphone",
"filename" : "Icon.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"idiom" : "ipad", "size" : "57x57",
"idiom" : "iphone",
"filename" : "Icon@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-Small@3x.png",
"scale" : "3x"
},
{
"size" : "40x40", "size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-60@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-40@2x.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "29x29",
"idiom" : "ipad", "idiom" : "ipad",
"size" : "76x76", "filename" : "Icon-Small.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"size" : "29x29",
"idiom" : "ipad", "idiom" : "ipad",
"size" : "76x76", "filename" : "Icon-Small@2x.png",
"scale" : "2x" "scale" : "2x"
} }
], ],
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "arrow_down@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "arrow_down@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "search_icon@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "search_icon@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "736h",
"filename" : "launch_bg_6plus-1.png",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "736h",
"filename" : "launch_bg_6plus.png",
"minimum-system-version" : "8.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "667h",
"filename" : "launch_bg_6.png",
"minimum-system-version" : "8.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "launch_bg_6-1.png",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "retina4",
"filename" : "launch_bg_6plus-2.png",
"minimum-system-version" : "7.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "launch_bg_4.png",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "launch_bg_5.png",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"filename" : "launch_bg_6-2.png",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#import "AppDelegate.h" #import "AppDelegate.h"
#import "LoginViewController.h" #import "LoginViewController.h"
#import "RootTabBarController.h"
@interface AppDelegate () @interface AppDelegate ()
...@@ -20,14 +21,12 @@ ...@@ -20,14 +21,12 @@
{ {
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
_window.backgroundColor = [UIColor whiteColor]; _window.backgroundColor = [UIColor whiteColor];
[_window makeKeyAndVisible];
// 设置根控制器 // 设置根控制器
LoginViewController *loginVC = [[LoginViewController alloc] init]; LoginViewController *loginVC = [[LoginViewController alloc] init];
self.window.rootViewController = loginVC; self.window.rootViewController = loginVC;
[_window makeKeyAndVisible];
return YES; return YES;
} }
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
#import "ChartViewController.h" #import "ChartViewController.h"
#import "MineViewController.h" #import "MineViewController.h"
#import <AFNetworking.h>
#import "CommonFunc.h"
@interface RootTabBarController () @interface RootTabBarController ()
@end @end
...@@ -21,7 +24,7 @@ ...@@ -21,7 +24,7 @@
- (void)viewDidLoad - (void)viewDidLoad
{ {
[self setupTabbar]; [self setupTabbar];
self.delegate = self; self.delegate = self;
} }
...@@ -39,6 +42,7 @@ ...@@ -39,6 +42,7 @@
} }
// //
- (void)setupTabbar - (void)setupTabbar
{ {
...@@ -56,12 +60,6 @@ ...@@ -56,12 +60,6 @@
MineViewController *mine = [[MineViewController alloc] init]; MineViewController *mine = [[MineViewController alloc] init];
UINavigationController *mineNav = [self setUpOneChildViewController:mine title:@"我的" imageName:@"aboutme_unchecked" selImageName:@"aboutme_checke"]; UINavigationController *mineNav = [self setUpOneChildViewController:mine title:@"我的" imageName:@"aboutme_unchecked" selImageName:@"aboutme_checke"];
//
// mine.tabBarItem.title= @"我的";
// mine.tabBarItem.image = [UIImage imageNamed:@"aboutme_unchecked"];
// mine.tabBarItem.selectedImage = [[UIImage imageNamed:@"aboutme_checke"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
// mine.tabBarItem.tag = 30001;
//
[[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#define kScreenHeight [UIScreen mainScreen].bounds.size.height #define kScreenHeight [UIScreen mainScreen].bounds.size.height
// ----- Login ----- // ----- Login -----
// #dddddd // #dddddd
#define kUsernameBorderColor [[UIColor colorWithRed:221 / 255.0 green:221 / 255.0 blue:221 / 255.0 alpha:1.0] CGColor] #define kUsernameBorderColor [[UIColor colorWithRed:221 / 255.0 green:221 / 255.0 blue:221 / 255.0 alpha:1.0] CGColor]
...@@ -124,6 +125,8 @@ ...@@ -124,6 +125,8 @@
#define kCommentViewHeight 335 #define kCommentViewHeight 335
#define kTaxisViewHeight 150
#import "UIView+Extension.h" #import "UIView+Extension.h"
#endif /* Constant_h */ #endif /* Constant_h */
...@@ -18,7 +18,17 @@ ...@@ -18,7 +18,17 @@
// QuestionList // QuestionList
#define kQuestionListURL @"redstar-server/rest/question/query" #define kQuestionListURL @"redstar-server/rest/question/query"
// InspectList // InspectList获取口碑列表
#define kInspectListURL @"redstar-server/rest/praise/query" #define kInspectListURL @"redstar-server/rest/praise/query"
// 口碑巡检明细
#define kInspectDetailURL @"redstar-server/rest/praise/get/"
// 口碑排名列表
#define kRankingListURL @"redstar-server/rest/praise/ranking"
// 提交问题
// http://.../redstar-server/rest/question/submit?time={time}&operId={operId}&operName={operName}
#define kAddQuestionURL @""
#endif /* Url_h */ #endif /* Url_h */
//
// SearchToolBar.h
// redstar
//
// Created by admin on 15/11/10.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SearchToolBar : UIView
@property (nonatomic, strong) UITextField *searchTextFiled; // 搜索框
@property (nonatomic, strong) UIButton *queryButton; // 快速查询按钮
@end
//
// SearchToolBar.m
// redstar
//
// Created by admin on 15/11/10.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "SearchToolBar.h"
@implementation SearchToolBar
#pragma mark - init Methods
- (instancetype)init
{
self = [super init];
if (self) {
[self setup];
}
return self;
}
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self setup];
}
return self;
}
#pragma mark - Private Methods
- (void)setup
{
self.layer.borderColor = kPasswordBorderColor;
self.layer.borderWidth = 1.0;
self.searchTextFiled.placeholder = @"请输入问题关键字";
[self.queryButton setTitle:@"快速查询" forState:UIControlStateNormal];
}
#pragma mark - Lazy Loading
- (UITextField *)searchTextFiled
{
if (!_searchTextFiled) {
_searchTextFiled = [[UITextField alloc] init];
_searchTextFiled.font = [UIFont systemFontOfSize:14.0];
_searchTextFiled.backgroundColor = [UIColor whiteColor];
_searchTextFiled.translatesAutoresizingMaskIntoConstraints = NO;
_searchTextFiled.layer.cornerRadius = 4.0;
_searchTextFiled.layer.borderWidth = 1.0;
_searchTextFiled.layer.borderColor = kPasswordBorderColor;
UIImageView *imageV = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"search_icon"]];
imageV.width += 20;
imageV.contentMode = UIViewContentModeCenter;
_searchTextFiled.leftView = imageV;
_searchTextFiled.leftViewMode = UITextFieldViewModeAlways;
[self addSubview:_searchTextFiled];
// 顶端
NSLayoutConstraint *titleTop = [NSLayoutConstraint constraintWithItem:_searchTextFiled attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:8];
[self addConstraint:titleTop];
// 左边
NSLayoutConstraint *titleLeft = [NSLayoutConstraint constraintWithItem:_searchTextFiled attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:20];
[self addConstraint:titleLeft];
// 右边
NSLayoutConstraint *titleRight = [NSLayoutConstraint constraintWithItem:_searchTextFiled attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.queryButton attribute:NSLayoutAttributeLeft multiplier:1.0 constant:-10];
[self addConstraint:titleRight];
// 高度
NSLayoutConstraint *titleBottom = [NSLayoutConstraint constraintWithItem:_searchTextFiled attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:-8];
[self addConstraint:titleBottom];
}
return _searchTextFiled;
}
- (UIButton *)queryButton
{
if (!_queryButton) {
_queryButton = [[UIButton alloc] init];
_queryButton.titleLabel.font = [UIFont systemFontOfSize:15.0];
_queryButton.layer.cornerRadius = 4.0;
_queryButton.backgroundColor = kNavigationBarColor;
_queryButton.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_queryButton];
// 顶端
NSLayoutConstraint *titleTop = [NSLayoutConstraint constraintWithItem:_queryButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:9];
[self addConstraint:titleTop];
// 右边
NSLayoutConstraint *titleRight = [NSLayoutConstraint constraintWithItem:_queryButton attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:-20];
[self addConstraint:titleRight];
// 高度
NSLayoutConstraint *titleBottom = [NSLayoutConstraint constraintWithItem:_queryButton attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:-9];
[self addConstraint:titleBottom];
// 宽度
NSLayoutConstraint *titleWidth = [NSLayoutConstraint constraintWithItem:_queryButton attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:80];
[self addConstraint:titleWidth];
}
return _queryButton;
}
@end
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
#import "CheckPicViewController.h" #import "CheckPicViewController.h"
#import "HttpClient.h"
#define kInspectSettleCell @"InspectSettleCell" #define kInspectSettleCell @"InspectSettleCell"
@interface InspectSettleViewController () <UITableViewDelegate, UITableViewDataSource, TakePhotoDelegate> @interface InspectSettleViewController () <UITableViewDelegate, UITableViewDataSource, TakePhotoDelegate>
...@@ -27,7 +29,7 @@ ...@@ -27,7 +29,7 @@
UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)]; UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)];
[customLab setTextColor:[UIColor whiteColor]]; [customLab setTextColor:[UIColor whiteColor]];
[customLab setText:@"口碑巡检任务"]; [customLab setText:@"已上报"];
customLab.font = [UIFont boldSystemFontOfSize:19]; customLab.font = [UIFont boldSystemFontOfSize:19];
self.navigationItem.titleView = customLab; self.navigationItem.titleView = customLab;
...@@ -36,6 +38,9 @@ ...@@ -36,6 +38,9 @@
self.footerView.takePhotoView.delegate = self; self.footerView.takePhotoView.delegate = self;
[self.footerView.takePhotoView.btn addTarget:self action:@selector(addNew:) forControlEvents:UIControlEventTouchUpInside]; [self.footerView.takePhotoView.btn addTarget:self action:@selector(addNew:) forControlEvents:UIControlEventTouchUpInside];
// 口碑巡检明细
[self requestRankingDetail];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
...@@ -43,6 +48,20 @@ ...@@ -43,6 +48,20 @@
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
} }
#pragma mark - private Methods
- (void) requestRankingDetail
{
NSString *url = [NSString stringWithFormat:@"%@%@%@/%@",kRedStarURL, kInspectDetailURL,@"5a74170150dba4ed0150dbad2e4d0001", @"2c9183fe50db19f90150db211d650081"];
HttpClient *httpClient = [[HttpClient alloc] initWithUrl:url];
[httpClient getPraiseDetailWithParameters:nil completion:^(id response, NSError *error) {
NSLog(@"PraiseDetail = %@", response);
}];
// NSDictionary *paramr = @{@"uuid":@"5a74170150dba4ed0150dbad2e4d0001",
// @"storeUuid":@"2c9183fe50db19f90150db211d650081"};
}
#pragma mark - TakePhoto Delegate #pragma mark - TakePhoto Delegate
- (void)takePhotoShowPicture:(UIButton *)btn - (void)takePhotoShowPicture:(UIButton *)btn
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
return CGRectMake(w / 2 + 3, 15, 13, 15); return CGRectMake(w / 2 + 3, 15, 13, 15);
} }
- (void)setHighlighted:(BOOL)highlighted {
}
@end @end
...@@ -65,26 +65,28 @@ ...@@ -65,26 +65,28 @@
} }
#pragma mark - Private #pragma mark - Private
- (void)taxiBtnCilck:(UIButton *)sender - (void)taxisBtnCilck:(UIButton *)sender
{ {
NSLog(@"拍讯");
} }
- (void)requestInspectList - (void)requestInspectList
{ {
// NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kInspectListURL];
// HttpClient *httpCilent = [[HttpClient alloc] initWithUrl:url]; NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kInspectListURL];
// NSDictionary *parameters = @{@"userUuid":@"", HttpClient *httpCilent = [[HttpClient alloc] initWithUrl:url];
// @"state":@"", NSDictionary *parameters = @{@"userUuid":@"",
// @"beginDateFrom":, @"state":@"published",
// @"endDateTo":@"", @"beginDateFrom":@"",
// @"nameLike":@"", @"endDateTo":@"",
// @"queryOrders":@"", @"nameLike":@"",
// @"pageNumber":@"", @"queryOrders":@[],
// @"pageSize":@""}; @"pageNumber":@(1),
// [httpCilent getInspectListWithParameters:parameters completion:^(id response, NSError *error) { @"pageSize":@(10)
// };
// }]; [httpCilent getInspectListWithParameters:parameters completion:^(id response, NSError *error) {
NSLog(@"respone = %@", response);
}];
} }
#pragma mark - UITableView Delegate/DataSource #pragma mark - UITableView Delegate/DataSource
...@@ -181,7 +183,7 @@ ...@@ -181,7 +183,7 @@
[taxiButton setImage:[UIImage imageNamed:@"sort_icon"] forState:UIControlStateNormal]; [taxiButton setImage:[UIImage imageNamed:@"sort_icon"] forState:UIControlStateNormal];
taxiButton.titleLabel.font = [UIFont systemFontOfSize:14.0]; taxiButton.titleLabel.font = [UIFont systemFontOfSize:14.0];
[taxiButton setTitle:@"排序" forState:UIControlStateNormal]; [taxiButton setTitle:@"排序" forState:UIControlStateNormal];
[taxiButton addTarget:self action:@selector(taxiBtnCilck:) forControlEvents:UIControlEventTouchUpInside]; [taxiButton addTarget:self action:@selector(taxisBtnCilck:) forControlEvents:UIControlEventTouchUpInside];
[sectionView addSubview:taxiButton]; [sectionView addSubview:taxiButton];
MenuButton *screenButton = [[MenuButton alloc] init]; MenuButton *screenButton = [[MenuButton alloc] init];
......
// //
// InspectTaskSortCell.h // InspectSortTableCell.h
// redstar // redstar
// //
// Created by admin on 15/11/3. // Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved. // Copyright © 2015年 ZWF. All rights reserved.
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "TaskModel.h"
@interface InspectTaskSortCell : UITableViewCell @interface InspectSortTableCell : UITableViewCell
@property (nonatomic, strong) UILabel *titleLabel; @property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UILabel *alreadyLabel; @property (nonatomic, strong) UILabel *stateLabel;
@property (nonatomic, strong) UILabel *allLabel;
@property (nonatomic, strong) UIImageView *arrowImageView; @property (nonatomic, strong) TaskModel *task;
@end @end
//
// InspectSortTableCell.m
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "InspectSortTableCell.h"
@implementation InspectSortTableCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
[self setup];
}
return self;
}
#pragma mark - Private Methods
- (void)setup
{
}
- (void)setTask:(TaskModel *)task
{
_task = task;
if ([task.state isEqualToString:@"已上报"]) {
self.stateLabel.textColor = kNavigationBarColor;
} else {
self.stateLabel.textColor = [UIColor orangeColor];
}
self.stateLabel.text = task.state;
}
#pragma mark - lazy loading
- (UILabel *)titleLabel
{
if (!_titleLabel) {
_titleLabel = [[UILabel alloc] init];
_titleLabel.translatesAutoresizingMaskIntoConstraints = NO;
_titleLabel.textColor = kLightBlack;
_titleLabel.font = [UIFont systemFontOfSize:15.0];
[self.contentView addSubview:_titleLabel];
NSLayoutConstraint *tableTop = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self.contentView addConstraint:tableTop];
NSLayoutConstraint *tableLeft = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeLeft multiplier:1.0 constant:40];
[self.contentView addConstraint:tableLeft];
NSLayoutConstraint *tableRight = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.stateLabel attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self.contentView addConstraint:tableRight];
NSLayoutConstraint *tableBottom = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self.contentView addConstraint:tableBottom];
}
return _titleLabel;
}
- (UILabel *)stateLabel
{
if (!_stateLabel) {
_stateLabel = [[UILabel alloc] init];
_stateLabel.font = [UIFont systemFontOfSize:15.0];
_stateLabel.translatesAutoresizingMaskIntoConstraints = NO;
[self.contentView addSubview:_stateLabel];
NSLayoutConstraint *tableTop = [NSLayoutConstraint constraintWithItem:_stateLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self.contentView addConstraint:tableTop];
NSLayoutConstraint *tableWidth = [NSLayoutConstraint constraintWithItem:_stateLabel attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:50];
[self.contentView addConstraint:tableWidth];
NSLayoutConstraint *tableRight = [NSLayoutConstraint constraintWithItem:_stateLabel attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self.contentView addConstraint:tableRight];
NSLayoutConstraint *tableBottom = [NSLayoutConstraint constraintWithItem:_stateLabel attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self.contentView addConstraint:tableBottom];
}
return _stateLabel;
}
- (void)awakeFromNib {
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end
//
// InspectTaskSortCell.m
// redstar
//
// Created by admin on 15/11/3.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "InspectTaskSortCell.h"
@implementation InspectTaskSortCell
#pragma mark - System Methods
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
[self setup];
}
return self;
}
#pragma mark Private Methods
- (void)setup {
self.arrowImageView.backgroundColor = [UIColor orangeColor];
}
- (UILabel *)titleLabel
{
if (!_titleLabel) {
_titleLabel = [[UILabel alloc] init];
_titleLabel.translatesAutoresizingMaskIntoConstraints = NO;
_titleLabel.font = [UIFont systemFontOfSize:17.0];
_titleLabel.textColor = kLightBlack;
[self.contentView addSubview:_titleLabel];
NSLayoutConstraint *overDateTop = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateTop];
NSLayoutConstraint *overDateLeft = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeLeft multiplier:1.0 constant:20];
[self.contentView addConstraint:overDateLeft];
NSLayoutConstraint *overDateRight = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.alreadyLabel attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateRight];
NSLayoutConstraint *overDateBottom = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateBottom];
NSLayoutConstraint *overDateWidth = [NSLayoutConstraint constraintWithItem:_titleLabel attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:85];
[self.contentView addConstraint:overDateWidth];
}
return _titleLabel;
}
- (UILabel *)alreadyLabel
{
if (!_alreadyLabel) {
_alreadyLabel = [[UILabel alloc] init];
_alreadyLabel.translatesAutoresizingMaskIntoConstraints = NO;
_alreadyLabel.font = [UIFont systemFontOfSize:17.0];
_alreadyLabel.textColor = kLightBlack;
_alreadyLabel.textAlignment = NSTextAlignmentRight;
[self.contentView addSubview:_alreadyLabel];
NSLayoutConstraint *overDateTop = [NSLayoutConstraint constraintWithItem:_alreadyLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateTop];
NSLayoutConstraint *overDateWidth = [NSLayoutConstraint constraintWithItem:_alreadyLabel attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:32];
[self.contentView addConstraint:overDateWidth];
NSLayoutConstraint *overDateRight = [NSLayoutConstraint constraintWithItem:_alreadyLabel attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.allLabel attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateRight];
NSLayoutConstraint *overDateBottom = [NSLayoutConstraint constraintWithItem:_alreadyLabel attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateBottom];
}
return _alreadyLabel;
}
- (UILabel *)allLabel
{
if (!_allLabel) {
_allLabel = [[UILabel alloc] init];
_allLabel.translatesAutoresizingMaskIntoConstraints = NO;
_allLabel.font = [UIFont systemFontOfSize:17.0];
_allLabel.textColor = kLightBlack;
[self.contentView addSubview:_allLabel];
NSLayoutConstraint *overDateTop = [NSLayoutConstraint constraintWithItem:_allLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateTop];
NSLayoutConstraint *overDateWidth = [NSLayoutConstraint constraintWithItem:_allLabel attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:32];
[self.contentView addConstraint:overDateWidth];
//
NSLayoutConstraint *overDateBottom = [NSLayoutConstraint constraintWithItem:_allLabel attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self.contentView addConstraint:overDateBottom];
}
return _allLabel;
}
- (UIImageView *)arrowImageView
{
if (!_arrowImageView) {
_arrowImageView = [[UIImageView alloc] init];
_arrowImageView.translatesAutoresizingMaskIntoConstraints = NO;
[self.contentView addSubview:_arrowImageView];
NSLayoutConstraint *overDateTop = [NSLayoutConstraint constraintWithItem:_arrowImageView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:17];
[self.contentView addConstraint:overDateTop];
NSLayoutConstraint *overDateWidth = [NSLayoutConstraint constraintWithItem:_arrowImageView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:15];
[self.contentView addConstraint:overDateWidth];
//
NSLayoutConstraint *overDateRight = [NSLayoutConstraint constraintWithItem:_arrowImageView attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self.contentView attribute:NSLayoutAttributeRight multiplier:1.0 constant:-20];
[self.contentView addConstraint:overDateRight];
NSLayoutConstraint *overDateheight = [NSLayoutConstraint constraintWithItem:_arrowImageView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:15];
[self.contentView addConstraint:overDateheight];
}
return _arrowImageView;
}
@end
//
// TaskGroup.h
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TaskGroup : NSObject
@property (nonatomic, strong) NSArray *classfiy;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign, getter = isOpened) BOOL opened;
+ (instancetype)taskGroupWithDict:(NSDictionary *)dict;
- (instancetype)initWithDict:(NSDictionary *)dict;
@end
//
// TaskGroup.m
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "TaskGroup.h"
#import "TaskModel.h"
@implementation TaskGroup
+ (instancetype)taskGroupWithDict:(NSDictionary *)dict
{
return [[self alloc] initWithDict:dict];
}
- (instancetype)initWithDict:(NSDictionary *)dict
{
if (self = [super init]) {
[self setValuesForKeysWithDictionary:dict];
NSMutableArray *tempArray = [NSMutableArray array];
for (NSDictionary *dict in _classfiy) {
TaskModel *friend = [TaskModel taskModelWithDict:dict];
[tempArray addObject:friend];
}
_classfiy = tempArray;
}
return self;
}
@end
//
// TaskModel.h
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface TaskModel : NSObject
@property (nonatomic, copy) NSString *intro;
@property (nonatomic, copy) NSString *state;
+ (instancetype)taskModelWithDict:(NSDictionary *)dict;
- (instancetype)initWithDict:(NSDictionary *)dict;
@end
//
// TaskModel.m
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "TaskModel.h"
@implementation TaskModel
+ (instancetype)taskModelWithDict:(NSDictionary *)dict
{
return [[self alloc] initWithDict:dict];
}
- (instancetype)initWithDict:(NSDictionary *)dict
{
if (self = [super init]) {
[self setValuesForKeysWithDictionary:dict];
}
return self;
}
@end
//
// InspectDetailHeaderView.h
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "InspectDetailView.h"
@interface InspectDetailHeaderView : UIView
@property (nonatomic,strong) InspectDetailView *detailView;
@end
//
// InspectDetailHeaderView.m
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "InspectDetailHeaderView.h"
@implementation InspectDetailHeaderView
- (instancetype)init
{
self = [super init];
if (self) {
[self setup];
}
return self;
}
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self setup];
}
return self;
}
#pragma mark - Private Methods
- (void)setup
{
UILabel *titleLabel = [[UILabel alloc] init];
titleLabel.translatesAutoresizingMaskIntoConstraints = NO;
titleLabel.textAlignment = NSTextAlignmentCenter;
titleLabel.textColor = kAnnounceTextColor;
titleLabel.backgroundColor = kSectionBackGroundColor;
titleLabel.font = [UIFont systemFontOfSize:17.0];
titleLabel.text = @"2015年10月口碑巡检";
[self addSubview:titleLabel];
NSLayoutConstraint *titleLabelTop = [NSLayoutConstraint constraintWithItem:titleLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self addConstraint:titleLabelTop];
NSLayoutConstraint *titleLabelLeft = [NSLayoutConstraint constraintWithItem:titleLabel attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:titleLabelLeft];
NSLayoutConstraint *titleLabelWidth = [NSLayoutConstraint constraintWithItem:titleLabel attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:titleLabelWidth];
NSLayoutConstraint *titleLabelHeight = [NSLayoutConstraint constraintWithItem:titleLabel attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:45];
[self addConstraint:titleLabelHeight];
self.detailView.backgroundColor = [UIColor whiteColor];
UIView *lineView = [[UIView alloc] init];
lineView.translatesAutoresizingMaskIntoConstraints = NO;
lineView.backgroundColor = kSeparateLineColor;
[self addSubview:lineView];
NSLayoutConstraint *upLineBottom = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:upLineBottom];
NSLayoutConstraint *upLineLeft = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:upLineLeft];
NSLayoutConstraint *upLineRight = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:upLineRight];
NSLayoutConstraint *upLineHeight = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:1];
[self addConstraint:upLineHeight];
UILabel *classifyLabel = [[UILabel alloc] init];
classifyLabel.translatesAutoresizingMaskIntoConstraints = NO;
classifyLabel.textColor = kAnnounceTextColor;
classifyLabel.backgroundColor = kSectionBackGroundColor;
classifyLabel.font = [UIFont systemFontOfSize:15.0];
classifyLabel.text = @"分类项目";
[self addSubview:classifyLabel];
NSLayoutConstraint *classifyTop = [NSLayoutConstraint constraintWithItem:classifyLabel attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:245];
[self addConstraint:classifyTop];
NSLayoutConstraint *classifyLeft = [NSLayoutConstraint constraintWithItem:classifyLabel attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:20];
[self addConstraint:classifyLeft];
NSLayoutConstraint *classifyWidth = [NSLayoutConstraint constraintWithItem:classifyLabel attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:classifyWidth];
NSLayoutConstraint *classifyHeight = [NSLayoutConstraint constraintWithItem:classifyLabel attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:39];
[self addConstraint:classifyHeight];
}
- (InspectDetailView *)detailView
{
if (!_detailView) {
_detailView = [[InspectDetailView alloc] init];
_detailView.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_detailView];
NSLayoutConstraint *titleLabelTop = [NSLayoutConstraint constraintWithItem:_detailView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:45];
[self addConstraint:titleLabelTop];
NSLayoutConstraint *titleLabelLeft = [NSLayoutConstraint constraintWithItem:_detailView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:titleLabelLeft];
NSLayoutConstraint *titleLabelWidth = [NSLayoutConstraint constraintWithItem:_detailView attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:titleLabelWidth];
NSLayoutConstraint *titleLabelHeight = [NSLayoutConstraint constraintWithItem:_detailView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:200];
[self addConstraint:titleLabelHeight];
}
return _detailView;
}
@end
// //
// InspectTaskDetailCell.h // InspectDetailView.h
// redstar // redstar
// //
// Created by admin on 15/11/3. // Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved. // Copyright © 2015年 ZWF. All rights reserved.
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "InspectListCell.h" #import "InspectListCell.h"
@interface InspectDetailView : UIView
@interface InspectTaskDetailCell : UITableViewCell
@property (nonatomic, strong) UILabel *shopnameLabel; // 商店名称 @property (nonatomic, strong) UILabel *shopnameLabel; // 商店名称
@property (nonatomic, strong) UILabel *startDateLabel; // 起始时间 @property (nonatomic, strong) UILabel *startDateLabel; // 起始时间
@property (nonatomic, strong) UILabel *overDateLabel; // 截止时间 @property (nonatomic, strong) UILabel *overDateLabel; // 截止时间
...@@ -29,5 +27,4 @@ ...@@ -29,5 +27,4 @@
@property (nonatomic, strong) UIImageView *arrowImageView; @property (nonatomic, strong) UIImageView *arrowImageView;
@property (nonatomic, strong) UILabel *dayLabel; // 剩余天数 @property (nonatomic, strong) UILabel *dayLabel; // 剩余天数
@end @end
//
// InspectHeaderView.h
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
@class TaskGroup;
@protocol InspectHeaderDelegate <NSObject>
@optional
- (void)clickHeadView;
@end
@interface InspectHeaderView : UITableViewHeaderFooterView
@property (nonatomic, strong) TaskGroup *taskGroup;
@property (nonatomic, weak) id<InspectHeaderDelegate> delegate;
+ (instancetype)headViewWithTableView:(UITableView *)tableView;
@end
//
// InspectHeaderView.m
// redstar
//
// Created by admin on 15/11/12.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "InspectHeaderView.h"
#import "TaskGroup.h"
@interface InspectHeaderView ()
{
UIButton *_bgButton;
UIImageView *_arrowImageView;
UIView *_lineView;
}
@end
@implementation InspectHeaderView
+ (instancetype)headViewWithTableView:(UITableView *)tableView
{
static NSString *headIdentifier = @"header";
InspectHeaderView *headView = (InspectHeaderView *)[tableView dequeueReusableCellWithIdentifier:headIdentifier];
if (headView == nil) {
headView = [[InspectHeaderView alloc] initWithReuseIdentifier:headIdentifier];
}
return headView;
}
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
UIButton *bgButton = [UIButton buttonWithType:UIButtonTypeCustom];
bgButton.backgroundColor = [UIColor whiteColor];
bgButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
bgButton.contentEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 10);
bgButton.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
[bgButton addTarget:self action:@selector(headBtnClick) forControlEvents:UIControlEventTouchUpInside];
[self addSubview:bgButton];
_bgButton = bgButton;
UIImageView *arrowIMView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"arrow_down"]];
[self addSubview:arrowIMView];
_arrowImageView = arrowIMView;
UIView *lineView = [[UIView alloc] init];
lineView.backgroundColor = kSeparateLineColor;
[self addSubview:lineView];
_lineView = lineView;
}
return self;
}
- (void)headBtnClick
{
_taskGroup.opened = !_taskGroup.isOpened;
if ([_delegate respondsToSelector:@selector(clickHeadView)]) {
[_delegate clickHeadView];
}
}
- (void)setTaskGroup:(TaskGroup *)taskGroup
{
_taskGroup = taskGroup;
NSString *nameStr = [NSString stringWithFormat:@"模块 -- %@(10/%lu)", taskGroup.name, (unsigned long)taskGroup.classfiy.count];
NSMutableAttributedString *nameAttr = [[NSMutableAttributedString alloc] initWithString:nameStr];
[nameAttr addAttributes:@{NSForegroundColorAttributeName:kLightBlack,NSFontAttributeName:[UIFont systemFontOfSize:17.0f]} range:NSMakeRange(0,nameStr.length)];
[_bgButton setAttributedTitle:nameAttr forState:UIControlStateNormal];
}
- (void)didMoveToSuperview
{
_arrowImageView.transform = _taskGroup.isOpened ? CGAffineTransformMakeRotation(M_PI) : CGAffineTransformMakeRotation(0);
_lineView.hidden = _taskGroup.isOpened ? YES : NO;
}
- (void)layoutSubviews
{
[super layoutSubviews];
_bgButton.frame = self.bounds;
_arrowImageView.frame = CGRectMake(self.frame.size.width - 33, (self.frame.size.height - 8) / 2, 13, 8);
_lineView.frame = CGRectMake(0, self.frame.size.height - 1, self.frame.size.width, 1);
}
@end
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
#import "RankingListCell.h" #import "RankingListCell.h"
#import "RankDetailViewController.h" #import "RankDetailViewController.h"
#import "HttpClient.h"
#define kRankingCell @"RankingTableViewCell" #define kRankingCell @"RankingTableViewCell"
@interface RankingListViewController () <UITableViewDataSource, UITableViewDelegate> @interface RankingListViewController () <UITableViewDataSource, UITableViewDelegate>
...@@ -40,6 +42,8 @@ ...@@ -40,6 +42,8 @@
self.selectedIndexes = [[NSMutableDictionary alloc] init]; self.selectedIndexes = [[NSMutableDictionary alloc] init];
[self addTableViews]; [self addTableViews];
[self requestRankingList];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
...@@ -55,7 +59,25 @@ ...@@ -55,7 +59,25 @@
} }
#pragma mark - Private Methods #pragma mark - Private Methods
- (void)requestRankingList
{
NSString *url = [NSString stringWithFormat:@"%@%@", kRedStarURL, kRankingListURL];
HttpClient *httpCilent = [[HttpClient alloc] initWithUrl:url];
NSDictionary *parameters = @{@"beginDateFrom":@"",
@"endDateTo":@"",
@"queryOrders":@[],
@"pageNumber":@(1),
@"pageSize":@(10)
};
[httpCilent getRankingListWithParameters:parameters completion:^(id response, NSError *error) {
NSLog(@"response = %@", response);
}];
}
- (void)addTableViews - (void)addTableViews
{ {
......
...@@ -103,7 +103,6 @@ ...@@ -103,7 +103,6 @@
- (void)standardClick:(UIButton *)sender - (void)standardClick:(UIButton *)sender
{ {
} }
// 图说口碑 // 图说口碑
...@@ -116,7 +115,10 @@ ...@@ -116,7 +115,10 @@
- (void)caseClick:(UIButton *)sender - (void)caseClick:(UIButton *)sender
{ {
RankingListViewController *rankListVC = [[RankingListViewController alloc] init];
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:rankListVC animated:YES];
} }
......
...@@ -8,6 +8,12 @@ ...@@ -8,6 +8,12 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@interface LoginViewController : UIViewController @protocol LoginViewControllerDelegate <NSObject>
- (void)login;
@end @end
@interface LoginViewController : UIViewController
@property (nonatomic, strong) id<LoginViewControllerDelegate> delegate;
@end
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
#import <AFNetworking.h> #import <AFNetworking.h>
#import "CommonFunc.h" #import "CommonFunc.h"
#import "HttpClient.h"
#import <MBProgressHUD.h>
#define kUsernameTableViewCell @"usernameTableViewCell" #define kUsernameTableViewCell @"usernameTableViewCell"
...@@ -45,6 +48,8 @@ ...@@ -45,6 +48,8 @@
// 初始化数组 // 初始化数组
self.allUserDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"thoradmin", @"admin", nil]; self.allUserDict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"thoradmin", @"admin", nil];
[self requestLogin];
} }
- (void)loadView - (void)loadView
...@@ -52,12 +57,41 @@ ...@@ -52,12 +57,41 @@
self.view = self.loginView; self.view = self.loginView;
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
} }
#pragma mark - Private Methods #pragma mark - Private Methods
- (void)requestLogin
{
// 获取上次登陆信息
if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"loginMessage"] isEqualToString:@"ok"]) {
NSString *username = [[NSUserDefaults standardUserDefaults] objectForKey:@"username"];
NSString *password = [[NSUserDefaults standardUserDefaults] objectForKey:@"password"];
HttpClient *httpClient = [[HttpClient alloc] initWithLogin];
[httpClient loginWithUsername:username password:password completion:^(id response, NSError *error) {
if ([response[@"message"] isEqualToString:@"ok"]) {
// 保存登陆信息
NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
[userDefault setObject:username forKey:@"username"];
[userDefault setObject:password forKey:@"password"];
[userDefault setObject:response[@"message"] forKey:@"loginMessage"];
[userDefault setObject:(NSDictionary *)response[@"data"] forKey:@"loginData"];
self.rootTBC = [[RootTabBarController alloc] init];
[self presentViewController:_rootTBC animated:YES completion:nil];
} else {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:[NSString stringWithFormat:@"%@", response[@"message"]] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
[alertView show];
}
}];
}
}
- (void)addAllClick - (void)addAllClick
{ {
...@@ -73,34 +107,31 @@ ...@@ -73,34 +107,31 @@
*/ */
- (void)loginButtonClick:(UIButton *)sender - (void)loginButtonClick:(UIButton *)sender
{ {
self.rootTBC = [[RootTabBarController alloc] init]; if (self.loginView.usernameTextFiled.text.length == 0 || self.loginView.passwordTextFiled.text.length == 0) {
[self presentViewController:_rootTBC animated:YES completion:nil]; UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:@"账号、密码不能为空" delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
[alertView show];
return;
}
// AFHTTPSessionManager *session = [AFHTTPSessionManager manager]; HttpClient *httpClient = [[HttpClient alloc] initWithLogin];
// session.requestSerializer = [AFJSONRequestSerializer serializer]; [httpClient loginWithUsername:self.loginView.usernameTextFiled.text password:self.loginView.passwordTextFiled.text completion:^(id response, NSError *error) {
// [session.requestSerializer setValue:@"application/json;charset=utf-8" forHTTPHeaderField:@"Content-Type"]; if ([response[@"message"] isEqualToString:@"ok"]) {
// NSString *urlStr = [NSString stringWithFormat:@"%@%@%@", kRedStarURL, kLoginURL, self.loginView.usernameTextFiled.text];
// NSString *password = self.loginView.passwordTextFiled.text; // 保存登陆信息
// NSString *passwordMD5 = [CommonFunc md5:password]; [[NSUserDefaults standardUserDefaults] setObject:self.loginView.usernameTextFiled.text forKey:@"username"];
// NSDictionary *parameters = @{@"authenticode":@"211534962",@"password":passwordMD5}; [[NSUserDefaults standardUserDefaults] setObject:self.loginView.passwordTextFiled.text forKey:@"password"];
// [session POST:urlStr parameters:parameters success:^(NSURLSessionDataTask *task, id responseObject) { [[NSUserDefaults standardUserDefaults] setObject:response[@"message"] forKey:@"loginMessage"];
// if ([responseObject[@"message"] isEqualToString:@"ok"]) { [[NSUserDefaults standardUserDefaults] setObject:response[@"data"] forKey:@"loginData"];
//
// NSLog(@"response = %@", responseObject); // 进入RootTabBar
// self.rootTBC = [[RootTabBarController alloc] init];
// NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults]; [self presentViewController:_rootTBC animated:YES completion:nil];
// [userDefault setObject:self.loginView.usernameTextFiled.text forKey:@"username"];
// [userDefault setObject:self.loginView.passwordTextFiled.text forKey:@"password"]; } else {
// self.rootTBC = [[RootTabBarController alloc] init]; UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:[NSString stringWithFormat:@"%@", response[@"message"]] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
// [self presentViewController:_rootTBC animated:YES completion:nil]; [alertView show];
// } else { }
// UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"提示" message:[NSString stringWithFormat:@"%@", responseObject[@"message"]] delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; }];
// [alertView show];
// }
// } failure:^(NSURLSessionDataTask *task, NSError *error) {
// NSLog(@"error = %@", error);
// }];
} }
...@@ -153,8 +184,12 @@ ...@@ -153,8 +184,12 @@
if ([self.loginView.usernameTextFiled isFirstResponder]) { if ([self.loginView.usernameTextFiled isFirstResponder]) {
// 创建下拉菜单 // 创建下拉菜单
self.menu = [CustomDropMenuView defaultMenuView]; self.menu = [CustomDropMenuView defaultMenuView];
_menu.showTop = 260;
_menu.showLeft = 20;
_menu.showRight = -20;
_menu.showHeight = 40 * _allUserDict.count;
_menu.delegate = self; _menu.delegate = self;
_menu.count = _allUserDict.count;
_menu.content = self.dropTableView; _menu.content = self.dropTableView;
// 显示 // 显示
......
...@@ -41,6 +41,11 @@ ...@@ -41,6 +41,11 @@
* 内容控制器 * 内容控制器
*/ */
@property (nonatomic, strong) UIViewController *contentController; @property (nonatomic, strong) UIViewController *contentController;
@property (nonatomic, assign) NSInteger count;
@property (nonatomic, assign) CGFloat showTop;
@property (nonatomic, assign) CGFloat showLeft;
@property (nonatomic, assign) CGFloat showRight;
@property (nonatomic, assign) CGFloat showHeight;
@end @end
...@@ -121,19 +121,19 @@ ...@@ -121,19 +121,19 @@
// 顶端 // 顶端
NSLayoutConstraint *showTop = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:260]; NSLayoutConstraint *showTop = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:self.showTop];
[self addConstraint:showTop]; [self addConstraint:showTop];
// 左边 // 左边
NSLayoutConstraint *showViewLeft = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:20]; NSLayoutConstraint *showViewLeft = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:self.showLeft];
[self addConstraint:showViewLeft]; [self addConstraint:showViewLeft];
// 右边 // 右边
NSLayoutConstraint *showViewRight = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:-20]; NSLayoutConstraint *showViewRight = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:self.showRight];
[self addConstraint:showViewRight]; [self addConstraint:showViewRight];
// 高度 // 高度
NSLayoutConstraint *showViewHeight = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:40 * _count]; NSLayoutConstraint *showViewHeight = [NSLayoutConstraint constraintWithItem:showView attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:self.showHeight];
[showView addConstraint:showViewHeight]; [showView addConstraint:showViewHeight];
self.showView = showView; self.showView = showView;
......
...@@ -16,10 +16,23 @@ typedef void (^completionBlock) (id response, NSError *error); ...@@ -16,10 +16,23 @@ typedef void (^completionBlock) (id response, NSError *error);
// 初始化 // 初始化
- (id)initWithUrl:(NSString *)url; - (id)initWithUrl:(NSString *)url;
// 登陆初始化
- (id)initWithLogin;
// 登陆
- (void)loginWithUsername:(NSString *)username password:(NSString *)password completion:(completionBlock)completion;
// 获取问题列表 // 获取问题列表
- (void)getQuestionListWithParameters:(id)parameters completion:(completionBlock)completion; - (void)getQuestionListWithParameters:(id)parameters completion:(completionBlock)completion;
// 获取巡检列表 // 获取巡检列表
- (void)getInspectListWithParameters:(id)parameters completion:(completionBlock)completion; - (void)getInspectListWithParameters:(id)parameters completion:(completionBlock)completion;
// 获取巡检排名
- (void)getRankingListWithParameters:(id)parameters completion:(completionBlock)completion;
// 获取口碑巡检明细
- (void)getPraiseDetailWithParameters:(id)parameters completion:(completionBlock)completion;
@end @end
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
// //
#import "HttpClient.h" #import "HttpClient.h"
#import "CommonFunc.h"
@interface HttpClient () @interface HttpClient ()
{ {
...@@ -34,6 +35,22 @@ ...@@ -34,6 +35,22 @@
return self; return self;
} }
// 登陆初始化
- (id)initWithLogin
{
self = [super init];
if (self) {
_manager = [AFHTTPSessionManager manager];
_manager.requestSerializer = [AFJSONRequestSerializer serializer];
_manager.responseSerializer = [AFJSONResponseSerializer serializer];
// 设置请求头
[_manager.requestSerializer setValue:@"application/json;charset=utf-8" forHTTPHeaderField:@"Content-Type"];
}
return self;
}
- (void)postParameters:(id)parameters completion:(completionBlock)completion - (void)postParameters:(id)parameters completion:(completionBlock)completion
{ {
NSString *url = _url; NSString *url = _url;
...@@ -65,6 +82,32 @@ ...@@ -65,6 +82,32 @@
}]; }];
} }
// 登陆
- (void)loginWithUsername:(NSString *)username password:(NSString *)password completion:(completionBlock)completion
{
// url
NSString *url = [NSString stringWithFormat:@"%@%@%@", kRedStarURL, kLoginURL, username];
// password
NSString *passwordMD5 = [CommonFunc md5:password];
// 参数
// NSDictionary *dataDict = [[NSUserDefaults standardUserDefaults] objectForKey:@"loginData"];
// NSString *authenticode = dataDict[@"authenticode"];
NSDictionary *parameters = @{@"authenticode":@"211534962",
@"password":passwordMD5
};
[_manager POST:url parameters:parameters success:^(NSURLSessionDataTask *task, id responseObject) {
if (completion) {
NSError *error = nil;
completion(responseObject, error);
}
} failure:^(NSURLSessionDataTask *task, NSError *error) {
if (completion) {
completion(nil,error);
}
}];
}
// 获取问题列表 // 获取问题列表
- (void)getQuestionListWithParameters:(id)parameters completion:(completionBlock)completion - (void)getQuestionListWithParameters:(id)parameters completion:(completionBlock)completion
{ {
...@@ -85,4 +128,24 @@ ...@@ -85,4 +128,24 @@
}]; }];
} }
// 获取巡检列表
- (void)getRankingListWithParameters:(id)parameters completion:(completionBlock)completion
{
[self postParameters:parameters completion:^(id response, NSError *error) {
if (completion) {
completion (response, error);
}
}];
}
// 获取口碑巡检明细
- (void)getPraiseDetailWithParameters:(id)parameters completion:(completionBlock)completion
{
[self getParameters:parameters completion:^(id response, NSError *error) {
if (completion) {
completion (response, error);
}
}];
}
@end @end
//
// MenuView.h
// redstar
//
// Created by admin on 15/11/10.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "MenuButton.h"
@interface MenuView : UIView
@property (nonatomic, strong) MenuButton *taxiButton;
@property (nonatomic, strong) MenuButton *screenButton;
@end
//
// MenuView.m
// redstar
//
// Created by admin on 15/11/10.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "MenuView.h"
@implementation MenuView
- (instancetype)init
{
self = [super init];
if (self) {
[self setup];
}
return self;
}
- (void)setup
{
[self.taxiButton setImage:[UIImage imageNamed:@"sort_icon"] forState:UIControlStateNormal];
[self.screenButton setImage:[UIImage imageNamed:@"filter_icon"] forState:UIControlStateNormal];
UIView *lineView = [[UIView alloc] init];
lineView.translatesAutoresizingMaskIntoConstraints = NO;
lineView.backgroundColor = kSeparateLineColor;
[self addSubview:lineView];
NSLayoutConstraint *lineTop = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self addConstraint:lineTop];
NSLayoutConstraint *lineLeft = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeCenterX multiplier:1.0 constant:-0.5];
[self addConstraint:lineLeft];
NSLayoutConstraint *lineWidth = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:1];
[self addConstraint:lineWidth];
NSLayoutConstraint *lineBottom = [NSLayoutConstraint constraintWithItem:lineView attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:lineBottom];
}
- (MenuButton *)taxiButton
{
if (!_taxiButton) {
_taxiButton = [[MenuButton alloc] init];
_taxiButton.tag = 4001;
_taxiButton.translatesAutoresizingMaskIntoConstraints = NO;
[_taxiButton setTitleColor:kInspectSectionButtonTextColor forState:UIControlStateNormal];
[_taxiButton setTitleColor:[UIColor orangeColor] forState:UIControlStateHighlighted];
_taxiButton.titleLabel.font = [UIFont systemFontOfSize:14.0];
[_taxiButton setTitle:@"排序" forState:UIControlStateNormal];
[self addSubview:_taxiButton];
// taxiButton布局
NSLayoutConstraint *taxiButtonTop = [NSLayoutConstraint constraintWithItem:_taxiButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self addConstraint:taxiButtonTop];
NSLayoutConstraint *taxiButtonLeft = [NSLayoutConstraint constraintWithItem:_taxiButton attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:taxiButtonLeft];
NSLayoutConstraint *taxiButtonWidth = [NSLayoutConstraint constraintWithItem:_taxiButton attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:self.screenButton attribute:NSLayoutAttributeWidth multiplier:1.0 constant:0];
[self addConstraint:taxiButtonWidth];
NSLayoutConstraint *taxiButtonBottom = [NSLayoutConstraint constraintWithItem:_taxiButton attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:taxiButtonBottom];
}
return _taxiButton;
}
- (MenuButton *)screenButton
{
if (!_screenButton) {
_screenButton = [[MenuButton alloc] init];
_screenButton.tag = 4002;
_screenButton.translatesAutoresizingMaskIntoConstraints = NO;
_screenButton.titleLabel.font = [UIFont systemFontOfSize:14.0];
[_screenButton setTitleColor:kInspectSectionButtonTextColor forState:UIControlStateNormal];
[_screenButton setTitleColor:[UIColor orangeColor] forState:UIControlStateHighlighted];
[_screenButton setTitle:@"筛选" forState:UIControlStateNormal];
[self addSubview:_screenButton];
// screenButton布局
NSLayoutConstraint *screenButtonTop = [NSLayoutConstraint constraintWithItem:_screenButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self addConstraint:screenButtonTop];
NSLayoutConstraint *screenButtonRight = [NSLayoutConstraint constraintWithItem:_screenButton attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:screenButtonRight];
NSLayoutConstraint *screenButtonLeft = [NSLayoutConstraint constraintWithItem:_screenButton attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:_taxiButton attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:screenButtonLeft];
NSLayoutConstraint *screenButtonBottom = [NSLayoutConstraint constraintWithItem:_screenButton attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:screenButtonBottom];
}
return _screenButton;
}
@end
// //
// TaxisViewController.h // ScreenView.h
// redstar // redstar
// //
// Created by admin on 15/11/7. // Created by admin on 15/11/11.
// Copyright © 2015年 ZWF. All rights reserved. // Copyright © 2015年 ZWF. All rights reserved.
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@interface TaxisViewController : UIViewController @interface ScreenView : UIView
@property (nonatomic, strong) UITableView *taxisTableView;
@end @end
//
// ScreenView.m
// redstar
//
// Created by admin on 15/11/11.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "ScreenView.h"
@implementation ScreenView
- (instancetype)init
{
self = [super init];
if (self) {
[self setup];
}
return self;
}
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self setup];
}
return self;
}
- (void)setup
{
self.backgroundColor = [UIColor greenColor];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
}
*/
@end
//
// TaxisView.h
// redstar
//
// Created by admin on 15/11/10.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface TaxisView : UIView
@property (nonatomic, strong) UIButton *defaultBtn; // 默认的
@property (nonatomic, strong) UIButton *sequenceBtn; // 顺序
@property (nonatomic, strong) UIButton *changeoverBtn; // 逆序
@end
//
// TaxisView.m
// redstar
//
// Created by admin on 15/11/10.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "TaxisView.h"
@implementation TaxisView
- (instancetype)init
{
self = [super init];
if (self) {
[self setup];
}
return self;
}
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
[self setup];
}
return self;
}
- (void)setup
{
[self.defaultBtn setTitle:@"默认排序" forState:UIControlStateNormal];
self.defaultBtn.backgroundColor = [UIColor orangeColor];
[self.sequenceBtn setTitle:@"时间顺序排序" forState:UIControlStateNormal];
self.sequenceBtn.backgroundColor = [UIColor orangeColor];
[self.changeoverBtn setTitle:@"时间逆序排序" forState:UIControlStateNormal];
self.changeoverBtn.backgroundColor = [UIColor orangeColor];
}
#pragma mark - Lazy loading
- (UIButton *)defaultBtn
{
if (!_defaultBtn) {
_defaultBtn = [[UIButton alloc] init];
_defaultBtn.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_defaultBtn];
// 顶端
NSLayoutConstraint *titleTop = [NSLayoutConstraint constraintWithItem:_defaultBtn attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeTop multiplier:1.0 constant:0];
[self addConstraint:titleTop];
// 左边
NSLayoutConstraint *titleLeft = [NSLayoutConstraint constraintWithItem:_defaultBtn attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:titleLeft];
// 右边
NSLayoutConstraint *titleRight = [NSLayoutConstraint constraintWithItem:_defaultBtn attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:titleRight];
// 右边
NSLayoutConstraint *titleHeight = [NSLayoutConstraint constraintWithItem:_defaultBtn attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:self.sequenceBtn attribute:NSLayoutAttributeHeight multiplier:1.0 constant:0];
[self addConstraint:titleHeight];
}
return _defaultBtn;
}
- (UIButton *)sequenceBtn
{
if (!_sequenceBtn) {
_sequenceBtn = [[UIButton alloc] init];
_sequenceBtn.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_sequenceBtn];
// 顶端
NSLayoutConstraint *titleTop = [NSLayoutConstraint constraintWithItem:_sequenceBtn attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:_defaultBtn attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:titleTop];
// 左边
NSLayoutConstraint *titleLeft = [NSLayoutConstraint constraintWithItem:_sequenceBtn attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:titleLeft];
// 右边
NSLayoutConstraint *titleRight = [NSLayoutConstraint constraintWithItem:_sequenceBtn attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:titleRight];
// 右边
NSLayoutConstraint *titleHeight = [NSLayoutConstraint constraintWithItem:_sequenceBtn attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:self.changeoverBtn attribute:NSLayoutAttributeHeight multiplier:1.0 constant:0];
[self addConstraint:titleHeight];
}
return _sequenceBtn;
}
- (UIButton *)changeoverBtn
{
if (!_changeoverBtn) {
_changeoverBtn = [[UIButton alloc] init];
_changeoverBtn.translatesAutoresizingMaskIntoConstraints = NO;
[self addSubview:_changeoverBtn];
// 顶端
NSLayoutConstraint *titleTop = [NSLayoutConstraint constraintWithItem:_changeoverBtn attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:_sequenceBtn attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:titleTop];
// 左边
NSLayoutConstraint *titleLeft = [NSLayoutConstraint constraintWithItem:_changeoverBtn attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeLeft multiplier:1.0 constant:0];
[self addConstraint:titleLeft];
// 右边
NSLayoutConstraint *titleRight = [NSLayoutConstraint constraintWithItem:_changeoverBtn attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeRight multiplier:1.0 constant:0];
[self addConstraint:titleRight];
// 右边
NSLayoutConstraint *titleBottom = [NSLayoutConstraint constraintWithItem:_changeoverBtn attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self attribute:NSLayoutAttributeBottom multiplier:1.0 constant:0];
[self addConstraint:titleBottom];
}
return _changeoverBtn;
}
@end
//
// TaxisViewController.m
// redstar
//
// Created by admin on 15/11/7.
// Copyright © 2015年 ZWF. All rights reserved.
//
#import "TaxisViewController.h"
@interface TaxisViewController ()
@end
@implementation TaxisViewController
- (void)viewDidLoad
{
[super viewDidLoad];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
#pragma mark - Lazy loading
- (UITableView *)taxisTableView
{
if (_taxisTableView) {
_taxisTableView = [[UITableView alloc] init];
}
return _taxisTableView;
}
@end
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>classfiy</key>
<array>
<dict>
<key>intro</key>
<string>大堂宣传条幅</string>
<key>state</key>
<string>已上报</string>
</dict>
<dict>
<key>intro</key>
<string>第二层中庭地面</string>
<key>state</key>
<string>已上报</string>
</dict>
<dict>
<key>intro</key>
<string>广场吊旗</string>
<key>state</key>
<string>未上报</string>
</dict>
<dict>
<key>intro</key>
<string>大堂第一走道楼梯</string>
<key>state</key>
<string>未上报</string>
</dict>
</array>
<key>name</key>
<string>环境</string>
</dict>
<dict>
<key>classfiy</key>
<array>
<dict>
<key>intro</key>
<string>快递送达</string>
<key>state</key>
<string>已上报</string>
</dict>
<dict>
<key>intro</key>
<string>接待人员仪表</string>
<key>state</key>
<string>未上报</string>
</dict>
<dict>
<key>intro</key>
<string>服务态度</string>
<key>state</key>
<string>未上报</string>
</dict>
<dict>
<key>intro</key>
<string>介绍产品详情</string>
<key>state</key>
<string>已上报</string>
</dict>
<dict>
<key>intro</key>
<string>售后服务</string>
<key>state</key>
<string>未上报</string>
</dict>
</array>
<key>name</key>
<string>服务</string>
</dict>
</array>
</plist>
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