Commit b294026b authored by 曹云霄's avatar 曹云霄

增加主页学习中心权限

parent 684e3bbb
...@@ -207,6 +207,9 @@ ...@@ -207,6 +207,9 @@
break; break;
case StudyGuides: case StudyGuides:
{ {
if ([[Shoppersmanager manager].Shoppers.employee.userKey rangeOfString:@"学习人员"].location == NSNotFound) {
[XBLoadingView showHUDViewWithText:@"没有学习中心权限,无法进入"];return;
}
[SHARED_APPDELEGATE.tabBarController setSelectedIndex:12]; [SHARED_APPDELEGATE.tabBarController setSelectedIndex:12];
} }
break; break;
......
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{ MjRefreshHeaderCustom *headerRefresh = [MjRefreshHeaderCustom headerWithRefreshingBlock:^{
[weakSelf.customerOrderTableView.mj_footer resetNoMoreData]; [weakSelf.customerOrderTableView.mj_footer resetNoMoreData];
weakSelf.model.dp.page = ZERO; weakSelf.model.dp.page = ONE;
[weakSelf getGuideAllcustomerOrder:YES withOrderBill:weakSelf.model]; [weakSelf getGuideAllcustomerOrder:YES withOrderBill:weakSelf.model];
}]; }];
headerRefresh.stateLabel.hidden = YES; headerRefresh.stateLabel.hidden = YES;
...@@ -148,7 +148,6 @@ ...@@ -148,7 +148,6 @@
{ {
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
WS(weakSelf); WS(weakSelf);
NSLog(@"%@",[[allOrder toDictionary] JSONString]);
[HTTP networkRequestWithURL:SERVERREQUESTURL(QUERYORDER) withRequestType:ZERO withParameter:allOrder withReturnValueBlock:^(id returnValue) { [HTTP networkRequestWithURL:SERVERREQUESTURL(QUERYORDER) withRequestType:ZERO withParameter:allOrder withReturnValueBlock:^(id returnValue) {
weakSelf.customerOrderTableView.emptyDataSetSource = weakSelf; weakSelf.customerOrderTableView.emptyDataSetSource = weakSelf;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
- (void)uiConfigAction - (void)uiConfigAction
{ {
self.resellerTableView.tableFooterView = [UIView new]; 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 = [[UIBarButtonItem alloc] initWithTitle:@"完成" style:UIBarButtonItemStyleDone target:self action:@selector(modifyResellerInformation)];
self.navigationItem.rightBarButtonItem.enabled = [Shoppersmanager manager].Shoppers.validate; self.navigationItem.rightBarButtonItem.enabled = [Shoppersmanager manager].Shoppers.validate;
} }
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
- (void)modifyResellerInformation - (void)modifyResellerInformation
{ {
ResellerTableViewCell *cell = [self.resellerTableView cellForRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]]; 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}; NSDictionary *dict = @{@"mfcode":cell.resellerTextField.text};
[XBLoadingView showHUDViewWithDefault]; [XBLoadingView showHUDViewWithDefault];
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
XBLoadingView *hud = [XBLoadingView showHUDAddedTo:[self hudShowWindow] animated:YES]; XBLoadingView *hud = [XBLoadingView showHUDAddedTo:[self hudShowWindow] animated:YES];
hud.labelText = text; hud.labelText = text;
hud.margin = 20.f; hud.margin = 20.f;
hud.color = [[UIColor blackColor] colorWithAlphaComponent:0.5]; hud.color = [[UIColor blackColor] colorWithAlphaComponent:0.4];
hud.animationType = MBProgressHUDAnimationZoom; hud.animationType = MBProgressHUDAnimationZoom;
hud.mode = MBProgressHUDModeText; hud.mode = MBProgressHUDModeText;
hud.removeFromSuperViewOnHide = YES; hud.removeFromSuperViewOnHide = YES;
......
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