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

增加主页学习中心权限

parent 684e3bbb
......@@ -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;
......
......@@ -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;
......
......@@ -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];
......
......@@ -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;
......
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