Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
total
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
total
Commits
58bceca3
Commit
58bceca3
authored
Nov 14, 2016
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项说明:
parent
e8accc1b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
51 deletions
+44
-51
project.pbxproj
total.xcodeproj/project.pbxproj
+6
-6
Main.storyboard
total/Base.lproj/Main.storyboard
+3
-3
BusinessStoryBoard.storyboard
total/GTOApp/Business/BusinessStoryBoard.storyboard
+3
-3
GTOHomeViewController.m
total/GTOApp/Home/GTOHomeViewController.m
+27
-34
Info.plist
total/Info.plist
+1
-1
GTOAppMacro.h
total/Macro/GTOAppMacro.h
+4
-4
No files found.
total.xcodeproj/project.pbxproj
View file @
58bceca3
...
...
@@ -3123,8 +3123,8 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -3140,7 +3140,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
c2d977b5-adac-45f6-bfbb-3a53616b54d7
"
;
PROVISIONING_PROFILE
=
"
f96494cb-c220-43ce-8034-75e000c2193f
"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
TARGETED_DEVICE_FAMILY
=
1
;
...
...
@@ -3154,8 +3154,8 @@
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
eveloper: 云霄 曹 (WM8ZU7YY98)
"
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone D
istribution: Shanghai Gomore Information Technology Co.,Ltd
"
;
ENABLE_BITCODE
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -3171,7 +3171,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER
=
com.gomoe.total
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
"
c2d977b5-adac-45f6-bfbb-3a53616b54d7
"
;
PROVISIONING_PROFILE
=
"
f96494cb-c220-43ce-8034-75e000c2193f
"
;
SWIFT_OBJC_BRIDGING_HEADER
=
"total/total-Bridging-Header.h"
;
TARGETED_DEVICE_FAMILY
=
1
;
USER_HEADER_SEARCH_PATHS
=
"$(PODS_ROOT)/**"
;
...
...
total/Base.lproj/Main.storyboard
View file @
58bceca3
<?xml version="1.0" encoding="UTF-8"
standalone="no"
?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"
9531"
systemVersion=
"15G31
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
initialViewController=
"vXZ-lx-hvc"
>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"
10117"
systemVersion=
"16B2555
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
initialViewController=
"vXZ-lx-hvc"
>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"
9529
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"
10085
"
/>
</dependencies>
<scenes>
<!--View Controller-->
...
...
total/GTOApp/Business/BusinessStoryBoard.storyboard
View file @
58bceca3
<?xml version="1.0" encoding="UTF-8"
standalone="no"
?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"10117"
systemVersion=
"1
5G31
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"10117"
systemVersion=
"1
6B2555
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
>
<dependencies>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"10085"
/>
...
...
@@ -985,7 +985,7 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"公斤"
textAlignment=
"right"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
id=
"ptr-mW-VA4"
>
<rect
key=
"frame"
x=
"341"
y=
"11"
width=
"2
6
"
height=
"21"
/>
<rect
key=
"frame"
x=
"341"
y=
"11"
width=
"2
8
"
height=
"21"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMinX=
"YES"
flexibleMaxY=
"YES"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
red=
"0.0"
green=
"0.0"
blue=
"0.0"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
...
...
total/GTOApp/Home/GTOHomeViewController.m
View file @
58bceca3
...
...
@@ -58,13 +58,10 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
[
strongSelf
startLocation
];
});
[
self
httpGetAfficheData
];
[
self
httpGetAfficheData
];
}
-
(
void
)
httpGetAfficheData
{
if
(
!
self
.
m_dataMudict
)
{
self
.
m_dataMudict
=
[
NSMutableDictionary
dictionary
];
//[@{}mutableCopy];
...
...
@@ -78,18 +75,18 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
NSArray
*
arr
=
dictData
[
@"records"
];
[
self
.
m_dataMudict
setObject
:
@
(
arr
.
count
)
forKey
:
@
(
kAffiche
)];
[
_c_tableV
reloadData
];
//
if (userU.hasLicencePermission) {
//
[self httpGetLicenceData];
//
return ;
//
}
//
if (userU.hasProjectPatrolPermission) {
//
[self httpGetPatrolDataWithCategory:@"project"];
//
return ;
//
}
//
if (userU.hasHSEPatrolPermission) {
//
[self httpGetPatrolDataWithCategory:@"HSE"];
//
return ;
//
}
if
(
userU
.
hasLicencePermission
)
{
[
self
httpGetLicenceData
];
return
;
}
if
(
userU
.
hasProjectPatrolPermission
)
{
[
self
httpGetPatrolDataWithCategory
:
@"project"
];
return
;
}
if
(
userU
.
hasHSEPatrolPermission
)
{
[
self
httpGetPatrolDataWithCategory
:
@"HSE"
];
return
;
}
}
};
void
(
^
fail
)(
id
)
=
^
(
id
data
)
{
...
...
@@ -102,10 +99,9 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
pageSize
:
200
success
:
succ
failure
:
fail
];
}
}
-
(
void
)
httpGetLicenceData
{
if
(
!
self
.
m_dataMudict
)
{
self
.
m_dataMudict
=
[
NSMutableDictionary
dictionary
];
//[@{}mutableCopy];
...
...
@@ -113,7 +109,7 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
ICRUserUtil
*
userU
=
[
ICRUserUtil
sharedInstance
];
// __weak typeof(self)weakSelf = self;
void
(
^
succ
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
//
[IBTLoadingView hideHUDWithText:nil];
// __strong __typeof(weakSelf)strongSelf = weakSelf;
NSInteger
success
=
[
data
[
@"success"
]
integerValue
];
// NSString *message = data[@"message"] ;
...
...
@@ -123,23 +119,20 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
// NSIndexSet *indexSet = [[NSIndexSet alloc]initWithIndex:2];
// [_c_tableV reloadSections:indexSet withRowAnimation:UITableViewRowAnimationAutomatic];
[
self
.
c_tableV
reloadData
];
//
if (userU.hasProjectPatrolPermission) {
//
[self httpGetPatrolDataWithCategory:@"project"];
if
(
userU
.
hasProjectPatrolPermission
)
{
[
self
httpGetPatrolDataWithCategory
:
@"project"
];
// return ;
//
}
//
if (userU.hasHSEPatrolPermission) {
//
[self httpGetPatrolDataWithCategory:@"HSE"];
}
if
(
userU
.
hasHSEPatrolPermission
)
{
[
self
httpGetPatrolDataWithCategory
:
@"HSE"
];
// return ;
//
}
}
}
};
void
(
^
fail
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
//
[IBTLoadingView hideHUDWithText:nil];
[
IBTLoadingView
showTips
:
data
];
};
NSDictionary
*
dict
=
@{
@"userUuid"
:
userU
.
f_user_uuid
,
@"billNumberLike"
:
[
NSNull
null
],
...
...
@@ -153,13 +146,13 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
ICRHTTPController
*
httpC
=
[
ICRHTTPController
sharedController
];
[
httpC
getLicenceListWithData
:
dict
success
:
succ
failure
:
fail
];
}
-
(
void
)
httpGetPatrolDataWithCategory
:
(
NSString
*
)
category
{
if
(
!
self
.
m_dataMudict
)
{
self
.
m_dataMudict
=
[
NSMutableDictionary
dictionary
];
//[@{}mutableCopy];
}
void
(
^
succ
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
//
[IBTLoadingView hideHUDWithText:nil];
NSInteger
success
=
[
data
[
@"success"
]
integerValue
];
// NSString *message = data[@"message"] ;
if
(
success
==
1
)
{
...
...
@@ -178,10 +171,10 @@ static NSString *cellIDPatrol = @"cellIDPatrol";
}
};
void
(
^
fail
)(
id
)
=
^
(
id
data
)
{
[
IBTLoadingView
hideHUDWithText
:
nil
];
//
[IBTLoadingView hideHUDWithText:nil];
[
IBTLoadingView
showTips
:
data
];
};
[
IBTLoadingView
showProgressLabel
:
@"正在加载..."
];
//
[IBTLoadingView showProgressLabel:@"正在加载..."];
ICRHTTPController
*
httpCtrl
=
[
ICRHTTPController
sharedController
];
//@"2015-10-16 21:46:03"
[
httpCtrl
getMyPatrolWithCategory
:
category
startTime
:[[
NSDate
date
]
httpParameterString
]
...
...
total/Info.plist
View file @
58bceca3
...
...
@@ -15,7 +15,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.2.
2
<
/string
>
<
string
>
1.2.
3
<
/string
>
<
k
e
y
>
CFBundleSignature
<
/k
e
y
>
<
string
>
????
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
total/Macro/GTOAppMacro.h
View file @
58bceca3
...
...
@@ -79,8 +79,8 @@
//#define HTTP_LOCAL_BASE_URL @"http://218.244.151.129:7580"
////正式环境
//
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:7080/total-server/rest"
//
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:7080/total-server/rest"
#define HTTP_LOCAL_BASE_URL @"http://139.196.39.77:7080"
//
//测试环境
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8180/total-server/rest"
...
...
@@ -91,8 +91,8 @@
//#define HTTP_REST_API_BASE_URL @"http://139.196.39.77:8080/total-server/rest"
//开发环境
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
//
#define HTTP_LOCAL_BASE_URL @"http://139.196.195.30:8093"
//
#define HTTP_REST_API_BASE_URL @"http://139.196.195.30:8093/total-server/rest"
//豪杰/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment