Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-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
张杰
Opple-iOS
Commits
b294026b
Commit
b294026b
authored
Mar 07, 2017
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加主页学习中心权限
parent
684e3bbb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
4 deletions
+9
-4
HomeViewController.m
Class/Home/Controllers/HomeViewController.m
+3
-0
CustomerOrderViewController.m
...VC/CustomerOrder/controller/CustomerOrderViewController.m
+1
-2
ResellerViewController.m
Class/Reseller/Controller/ResellerViewController.m
+4
-1
XBLoadingView.m
Tools/LoadingView/XBLoadingView.m
+1
-1
No files found.
Class/Home/Controllers/HomeViewController.m
View file @
b294026b
...
...
@@ -207,6 +207,9 @@
break
;
case
StudyGuides
:
{
if
([[
Shoppersmanager
manager
].
Shoppers
.
employee
.
userKey
rangeOfString
:
@"学习人员"
].
location
==
NSNotFound
)
{
[
XBLoadingView
showHUDViewWithText
:
@"没有学习中心权限,无法进入"
];
return
;
}
[
SHARED_APPDELEGATE
.
tabBarController
setSelectedIndex
:
12
];
}
break
;
...
...
Class/RIghtVC/CustomerManagementVC/CustomerOrder/controller/CustomerOrderViewController.m
View file @
b294026b
...
...
@@ -122,7 +122,7 @@
MjRefreshHeaderCustom
*
headerRefresh
=
[
MjRefreshHeaderCustom
headerWithRefreshingBlock
:
^
{
[
weakSelf
.
customerOrderTableView
.
mj_footer
resetNoMoreData
];
weakSelf
.
model
.
dp
.
page
=
ZERO
;
weakSelf
.
model
.
dp
.
page
=
ONE
;
[
weakSelf
getGuideAllcustomerOrder
:
YES
withOrderBill
:
weakSelf
.
model
];
}];
headerRefresh
.
stateLabel
.
hidden
=
YES
;
...
...
@@ -148,7 +148,6 @@
{
[
XBLoadingView
showHUDViewWithDefault
];
WS
(
weakSelf
);
NSLog
(
@"%@"
,[[
allOrder
toDictionary
]
JSONString
]);
[
HTTP
networkRequestWithURL
:
SERVERREQUESTURL
(
QUERYORDER
)
withRequestType
:
ZERO
withParameter
:
allOrder
withReturnValueBlock
:^
(
id
returnValue
)
{
weakSelf
.
customerOrderTableView
.
emptyDataSetSource
=
weakSelf
;
...
...
Class/Reseller/Controller/ResellerViewController.m
View file @
b294026b
...
...
@@ -26,7 +26,7 @@
-
(
void
)
uiConfigAction
{
self
.
resellerTableView
.
tableFooterView
=
[
UIView
new
];
self
.
title
=
@"
门店资料
"
;
self
.
title
=
@"
欧普到家门店编号
"
;
self
.
navigationItem
.
rightBarButtonItem
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:
@"完成"
style
:
UIBarButtonItemStyleDone
target
:
self
action
:
@selector
(
modifyResellerInformation
)];
self
.
navigationItem
.
rightBarButtonItem
.
enabled
=
[
Shoppersmanager
manager
].
Shoppers
.
validate
;
}
...
...
@@ -35,6 +35,9 @@
-
(
void
)
modifyResellerInformation
{
ResellerTableViewCell
*
cell
=
[
self
.
resellerTableView
cellForRowAtIndexPath
:[
NSIndexPath
indexPathForRow
:
0
inSection
:
0
]];
if
([
cell
.
resellerTextField
.
text
isEqualToString
:
@"无"
])
{
[
self
saveResellerInformation
:
cell
.
resellerTextField
.
text
];
return
;
}
//验证
NSDictionary
*
dict
=
@{
@"mfcode"
:
cell
.
resellerTextField
.
text
};
[
XBLoadingView
showHUDViewWithDefault
];
...
...
Tools/LoadingView/XBLoadingView.m
View file @
b294026b
...
...
@@ -63,7 +63,7 @@
XBLoadingView
*
hud
=
[
XBLoadingView
showHUDAddedTo
:[
self
hudShowWindow
]
animated
:
YES
];
hud
.
labelText
=
text
;
hud
.
margin
=
20
.
f
;
hud
.
color
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
.
5
];
hud
.
color
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
.
4
];
hud
.
animationType
=
MBProgressHUDAnimationZoom
;
hud
.
mode
=
MBProgressHUDModeText
;
hud
.
removeFromSuperViewOnHide
=
YES
;
...
...
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