• 曹云霄's avatar
    1、把按照类型筛选放到第一个位置,更风格对掉下。 · 653bf2df
    曹云霄 authored
    2、 红包促销拒绝的原因未能显示(在红包展示信息的时候要包含客户姓名及订单总金额)
    3、在客户界面的搜索框里,输入客户的手机号或则姓名 要支持模糊查询
    4、Ipad端我的红包—更多 点进去之后 显示订单号、时间;增加显示2个字段,客户姓名和订单总额
    5、Ipad闯关区—进入之后显示里去掉 结束时间显示
    6、邀请人显示 可以点击筛选本门店的设计师,弹框出来可以按照设计师的姓名或则电话号码进行模糊查询,选中后显示在界面上的是设计师的手机号码,ipad客户模块UI重新排版,具体参考邮件psd文件,后台会新建一个接口,获取当前门店下的设计师,根据选择的客户,获取到客户所关联的设计师
    653bf2df
DiscussModuleViewController.m 3 KB
//
//  DiscussModuleViewController.m
//  Lighting
//
//  Created by 曹云霄 on 2017/3/15.
//  Copyright © 2017年 上海勾芒科技有限公司. All rights reserved.
//

#import "DiscussModuleViewController.h"
#import "DiscussModuleCollectionViewCell.h"
#import "ForumItemListViewController.h"

@interface DiscussModuleViewController ()<UICollectionViewDelegate,UICollectionViewDataSource>

@property (nonatomic,strong) ForumTypeResponse *result;
@end

@implementation DiscussModuleViewController

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    [self getClassificationList];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self uiConfigAction];
}

#pragma mark - 获取分类帖子列表
- (void)getClassificationList
{
    [XBLoadingView showHUDViewWithDefaultWithView:self.view];
    WS(weakSelf);
    [HTTP networkWithDictionaryRequestWithURL:[NSString stringWithFormat:SERVERREQUESTURL(DEFAULTFORUM_CATEGORY),[Shoppersmanager manager].shoppers.employee.fid] withRequestType:GET withParameter:nil withReturnValueBlock:^(id returnValue) {
        
        [XBLoadingView hideHUDViewWithDefaultWithView:self.view];
        if (RESULT(returnValue)) {
            weakSelf.result = [[ForumTypeResponse alloc] initWithDictionary:RESPONSE(returnValue) error:nil];
            [weakSelf.moduleCollectionView reloadData];
        }else {
            [XBLoadingView showHUDViewWithText:MESSAGE(returnValue)];
        }
        [weakSelf.moduleCollectionView reloadData];
    } withFailureBlock:^(NSError *error) {
        [XBLoadingView showHUDViewWithText:error.localizedDescription];
    }];
}


#pragma mark -UI
- (void)uiConfigAction
{
    self.moduleFlowLayout.itemSize = CGSizeMake((ScreenWidth-60)/3.0, (ScreenWidth-60)/3.0*0.4);
    self.moduleFlowLayout.minimumInteritemSpacing = 10;
    self.moduleFlowLayout.minimumLineSpacing = 10;
}


#pragma mark -<UICollectionViewDelegate,UICollectionViewDataSource>
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
    return self.result.list.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
{
    DiscussModuleCollectionViewCell *moduleCell = [collectionView dequeueReusableCellWithReuseIdentifier:@"DiscussModuleCollectionViewCell" forIndexPath:indexPath];
    TOForumCategoryEntity *entity = self.result.list[indexPath.item];
    [moduleCell refreshCell:entity];
    return moduleCell;
}


- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
    ForumItemListViewController *itemListVc = [ForumItemListViewController viewControllerWithStoryBoardType:STORYBOARD_TYPE_LEARNINGCENTER];
    TOForumCategoryEntity *category = self.result.list[indexPath.row];
    category.typeId = self.result.forumType.fid;
    itemListVc.category = category;
    itemListVc.isPosting = [category.name isEqualToString:@"欧普问问"]?2:1;
    [self pushViewController:itemListVc animated:YES];
}




@end