重庆迈尖科技有限公司
2018-08-13 4d9a71aa90d096bc7581ea6a1d29c10859e75aac
no message
2个文件已修改
29 ■■■■ 已修改文件
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate 补丁 | 查看 | 原始文档 | blame | 历史
MIduo/界面/优惠券/推荐/RecommendCouponViewController.m 29 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
MIduo.xcworkspace/xcuserdata/mj.xcuserdatad/UserInterfaceState.xcuserstate
Binary files differ
MIduo/½çÃæ/ÓÅ»Ýȯ/ÍÆ¼ö/RecommendCouponViewController.m
@@ -57,15 +57,14 @@
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    if(!_isExpand&&self.lastJudgeContentOffset!=0){
        _TopToLength.constant=0.0f;
    if(!_isExpand && self.lastJudgeContentOffset!=0){
        _TopToLength.constant = 0.0f;
        _searchConstaint.constant = 0.0;
        
        if (IsiPhoneX) {
            _searchConstaint.constant = 20.0;
        }
        self.youhuiquanImageview.hidden = YES;
        //[self.view layoutIfNeeded];
        
    } else {
        self.youhuiquanImageview.hidden = NO;
@@ -150,6 +149,9 @@
    
    if ([self.plist readFile][0]) {
        
        // æœ‰ç¼“存页数直接改成2
        self.page = 2;
        self.GoodsData = [self.plist readFile][0];
        [self.RecommendCouponTableView reloadData];
        
@@ -167,8 +169,7 @@
    [[YTHNetInterface startInterface] getCouponListWithPage:[NSString stringWithFormat:@"%ld",(long)self.page] Withblock:^(BOOL isSuccessful, id result, NSString *error) {
        if (isSuccessful) {
            
            self.adviceTableview.hidden = NO;
            self.youhuiquanImageview.hidden = NO;
            //self.adviceTableview.hidden = NO;
            
            NSDictionary *tempDic=(NSDictionary *)result;
            
@@ -189,11 +190,12 @@
                NSArray *tempArr=[[tempDic objectForKey:@"data"] objectForKey:@"taoBaoCoupons"];
                [self.GoodsData addObjectsFromArray:tempArr];
            }
            [self.RecommendCouponTableView reloadData];
            self.page++;
            
            [self.RecommendCouponTableView.mj_header endRefreshing];
            [self.RecommendCouponTableView.mj_footer endRefreshing];
            [self.RecommendCouponTableView reloadData];
            
        } else {
            
@@ -204,8 +206,7 @@
                
                if (self.GoodsData.count != 0) {
                    
                    self.adviceTableview.hidden = NO;
                    self.youhuiquanImageview.hidden = NO;
                    //self.adviceTableview.hidden = NO;
                    
                    [CustomProgressHUD showNormal:@"网络未连接,请检测网络设置"];
                }
@@ -214,8 +215,7 @@
                
                if (self.GoodsData.count != 0) {
                    
                    self.adviceTableview.hidden = NO;
                    self.youhuiquanImageview.hidden = NO;
                    // self.adviceTableview.hidden = NO;
                    
                    [CustomProgressHUD showNormal:@"网络连接异常,请检测网络设置"];
                }
@@ -315,7 +315,7 @@
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
    SJCouponCollectionViewCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:@"SJCouponCollectionViewCell" forIndexPath:indexPath];
    if (indexPath.row == 0) {
        //        [cell setSelected:YES];
        // [cell setSelected:YES];
    }
    return cell;
}
@@ -447,16 +447,15 @@
    _adviceTableview.estimatedRowHeight = 0;
    _adviceTableview.estimatedSectionFooterHeight = 0;
    _adviceTableview.estimatedSectionHeaderHeight = 0;
    _adviceTableview.hidden = YES;
    self.youhuiquanImageview.hidden = YES;
    _adviceTableview.rowHeight = UITableViewAutomaticDimension;
    
    if (@available(iOS 11.0, *)) {
        _adviceTableview.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        _adviceTableview.contentInsetAdjustmentBehavior= UIScrollViewContentInsetAdjustmentNever;
    } else {
        // Fallback on earlier versions
    }
    
    _adviceTableview.hidden = YES;
    // _adviceTableview.hidden = YES;
    _adviceTableview.separatorStyle = UITableViewCellSeparatorStyleNone;
    return _adviceTableview;
}