Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
红
红星美凯龙管理在线APP IOS
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
张杰
红星美凯龙管理在线APP IOS
Commits
3e71de06
Commit
3e71de06
authored
Jan 26, 2016
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复口碑标准
parent
5ff24842
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Breakpoints_v2.xcbkptlist
...ta/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+1
-1
Url.h
redstar/Classes/Macro/Url.h
+2
-2
SOPViewController.m
...n/Standar/SOPCategarys/ViewController/SOPViewController.m
+15
-6
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
3e71de06
No preview for this file type
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
3e71de06
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<BreakpointProxy
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.ExceptionBreakpoint"
>
BreakpointExtensionID =
"Xcode.Breakpoint.ExceptionBreakpoint"
>
<BreakpointContent
<BreakpointContent
shouldBeEnabled =
"
Yes
"
shouldBeEnabled =
"
No
"
ignoreCount =
"0"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
continueAfterRunningActions =
"No"
scope =
"0"
scope =
"0"
...
...
redstar/Classes/Macro/Url.h
View file @
3e71de06
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
#define Url_h
#define Url_h
// url 测试环境
// url 测试环境
#define kRedStarURL @"http://218.244.151.129:7580/"
//
#define kRedStarURL @"http://218.244.151.129:7580/"
// 正式环境
// 正式环境
// #define kRedStarURL @"http://219.235.234.225:7580/"
// #define kRedStarURL @"http://219.235.234.225:7580/"
// 最新正式环境
// 最新正式环境
//
#define kRedStarURL @"http://219.235.234.212:7580/"
#define kRedStarURL @"http://219.235.234.212:7580/"
// 检查更新
// 检查更新
#define kCheckUpdateURL @"redstar-server/rest/ipapk?type=ipa"
#define kCheckUpdateURL @"redstar-server/rest/ipapk?type=ipa"
...
...
redstar/Classes/Module/Function/Standar/SOPCategarys/ViewController/SOPViewController.m
View file @
3e71de06
...
@@ -158,6 +158,7 @@
...
@@ -158,6 +158,7 @@
-
(
void
)
queryClick
:
(
UIButton
*
)
sender
-
(
void
)
queryClick
:
(
UIButton
*
)
sender
{
{
self
.
attachmentArray
=
[
NSMutableArray
array
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
kGetAttachmentsURL
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
kRedStarURL
,
kGetAttachmentsURL
];
HttpClient
*
http
=
[[
HttpClient
alloc
]
initWithUrl
:
url
];
HttpClient
*
http
=
[[
HttpClient
alloc
]
initWithUrl
:
url
];
...
@@ -166,14 +167,17 @@
...
@@ -166,14 +167,17 @@
NSDictionary
*
parameters
=
@{
@"type"
:
@"sop"
,
NSDictionary
*
parameters
=
@{
@"type"
:
@"sop"
,
@"encode"
:
encode
@"encode"
:
encode
};
};
NSLog
(
@"paaaaa == %@"
,
parameters
);
[
http
getAttachmentsWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
[
http
getAttachmentsWithParameters
:
parameters
completion
:
^
(
id
response
,
NSError
*
error
)
{
NSArray
*
dataArray
=
response
[
@"data"
];
NSArray
*
dataArray
=
response
[
@"data"
];
NSLog
(
@"sssss === %@"
,
response
);
NSMutableArray
*
tempArray
=
[
NSMutableArray
array
];
for
(
NSDictionary
*
attaDict
in
dataArray
)
{
for
(
NSDictionary
*
attaDict
in
dataArray
)
{
AttachmentModel
*
atta
=
[[
AttachmentModel
alloc
]
init
];
AttachmentModel
*
atta
=
[[
AttachmentModel
alloc
]
init
];
[
atta
setValuesForKeysWithDictionary
:
attaDict
];
[
atta
setValuesForKeysWithDictionary
:
attaDict
];
[
_attachment
Array
addObject
:
atta
];
[
temp
Array
addObject
:
atta
];
}
}
_attachmentArray
=
tempArray
;
if
(
_attachmentArray
.
count
==
0
)
{
if
(
_attachmentArray
.
count
==
0
)
{
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"提示"
message
:
@"暂无附件!"
delegate
:
self
cancelButtonTitle
:
nil
otherButtonTitles
:
@"确定"
,
nil
];
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"提示"
message
:
@"暂无附件!"
delegate
:
self
cancelButtonTitle
:
nil
otherButtonTitles
:
@"确定"
,
nil
];
...
@@ -189,6 +193,11 @@
...
@@ -189,6 +193,11 @@
[
_bgView
addGestureRecognizer
:
tapGR
];
[
_bgView
addGestureRecognizer
:
tapGR
];
}
}
CGRect
toFrame
=
CGRectMake
(
0
,
0
,
kScreenWidth
-
50
,
tableH
+
40
);
CGRect
toFrame
=
CGRectMake
(
0
,
0
,
kScreenWidth
-
50
,
tableH
+
40
);
if
(
_tableView
)
{
[
_tableView
removeFromSuperview
];
_tableView
=
nil
;
}
if
(
!
_tableView
)
{
if
(
!
_tableView
)
{
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
toFrame
style
:
UITableViewStyleGrouped
];
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
toFrame
style
:
UITableViewStyleGrouped
];
...
@@ -207,11 +216,12 @@
...
@@ -207,11 +216,12 @@
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
_bgView
.
alpha
=
0
.
6
;
_bgView
.
alpha
=
0
.
6
;
_tableView
.
alpha
=
1
.
0
;
_tableView
.
alpha
=
1
.
0
;
[
self
.
tableView
reloadData
];
}];
}];
}];
}];
_row
=
0
;
//
_row = 0;
}
}
-
(
void
)
closeRedView
-
(
void
)
closeRedView
...
@@ -233,7 +243,6 @@
...
@@ -233,7 +243,6 @@
NSArray
*
paths
=
NSSearchPathForDirectoriesInDomains
(
NSDocumentDirectory
,
NSUserDomainMask
,
YES
);
NSArray
*
paths
=
NSSearchPathForDirectoriesInDomains
(
NSDocumentDirectory
,
NSUserDomainMask
,
YES
);
NSString
*
path
=
paths
.
lastObject
;
NSString
*
path
=
paths
.
lastObject
;
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
path
,
atta
.
fileName
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@/%@"
,
path
,
atta
.
fileName
];
NSFileManager
*
fileManager
=
[
NSFileManager
defaultManager
];
NSFileManager
*
fileManager
=
[
NSFileManager
defaultManager
];
if
([
fileManager
fileExistsAtPath
:
url
])
{
if
([
fileManager
fileExistsAtPath
:
url
])
{
...
@@ -290,7 +299,7 @@
...
@@ -290,7 +299,7 @@
}
}
//下载附件
//下载附件
aUrl
=
[
aUrl
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
aUrl
=
[
aUrl
stringByAddingPercentEscapesUsingEncoding
:
NSUTF8StringEncoding
];
NSLog
(
@"uri ==%@"
,
aUrl
);
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:
aUrl
];
NSURL
*
url
=
[[
NSURL
alloc
]
initWithString
:
aUrl
];
...
@@ -527,7 +536,7 @@
...
@@ -527,7 +536,7 @@
view
.
tag
=
SELECTED_VIEW_CONTROLLER_TAG
;
view
.
tag
=
SELECTED_VIEW_CONTROLLER_TAG
;
[
self
.
view
insertSubview
:
view
belowSubview
:
_groupTabBar
];
[
self
.
view
insertSubview
:
view
belowSubview
:
_groupTabBar
];
_row
=
0
;
}
}
#pragma mark - lazy loading
#pragma mark - lazy loading
...
...
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