Commit 7a6b095785e9815d5f55f704b2cf9ac9d6a8f03f
1 parent
8131b7a0
搜索tab “剧集”改为“电视剧” , 我的收藏 / 搜多结果 专辑跳转 , 1.1.4.25.04.11.16
Showing
4 changed files
with
63 additions
and
5 deletions
metaCode.xcodeproj/project.pbxproj
| @@ -2936,7 +2936,7 @@ | @@ -2936,7 +2936,7 @@ | ||
| 2936 | CODE_SIGN_ENTITLEMENTS = metaCode/metaCode.entitlements; | 2936 | CODE_SIGN_ENTITLEMENTS = metaCode/metaCode.entitlements; |
| 2937 | CODE_SIGN_IDENTITY = "Apple Development"; | 2937 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 2938 | CODE_SIGN_STYLE = Automatic; | 2938 | CODE_SIGN_STYLE = Automatic; |
| 2939 | - CURRENT_PROJECT_VERSION = 1.1.4.25.02.09.11; | 2939 | + CURRENT_PROJECT_VERSION = 1.1.4.25.04.11.16; |
| 2940 | DEBUG_INFORMATION_FORMAT = dwarf; | 2940 | DEBUG_INFORMATION_FORMAT = dwarf; |
| 2941 | DEVELOPMENT_TEAM = 94X49GG3ZW; | 2941 | DEVELOPMENT_TEAM = 94X49GG3ZW; |
| 2942 | ENABLE_BITCODE = NO; | 2942 | ENABLE_BITCODE = NO; |
| @@ -3192,7 +3192,7 @@ | @@ -3192,7 +3192,7 @@ | ||
| 3192 | CODE_SIGN_ENTITLEMENTS = metaCode/metaCode.entitlements; | 3192 | CODE_SIGN_ENTITLEMENTS = metaCode/metaCode.entitlements; |
| 3193 | CODE_SIGN_IDENTITY = "Apple Development"; | 3193 | CODE_SIGN_IDENTITY = "Apple Development"; |
| 3194 | CODE_SIGN_STYLE = Automatic; | 3194 | CODE_SIGN_STYLE = Automatic; |
| 3195 | - CURRENT_PROJECT_VERSION = 1.1.4.25.02.09.11; | 3195 | + CURRENT_PROJECT_VERSION = 1.1.4.25.04.11.16; |
| 3196 | DEVELOPMENT_TEAM = 94X49GG3ZW; | 3196 | DEVELOPMENT_TEAM = 94X49GG3ZW; |
| 3197 | ENABLE_BITCODE = NO; | 3197 | ENABLE_BITCODE = NO; |
| 3198 | ENABLE_MODULE_VERIFIER = NO; | 3198 | ENABLE_MODULE_VERIFIER = NO; |
metaCode/Classes/Main/HuBiLieHomePage/Controller/CNLiveHomeSearchController.swift
| @@ -147,7 +147,7 @@ class CNLiveHomeSearchController:CNLiveBaseViewController,UISearchBarDelegate, U | @@ -147,7 +147,7 @@ class CNLiveHomeSearchController:CNLiveBaseViewController,UISearchBarDelegate, U | ||
| 147 | expandBtn.setTitleColor(HexColor("#919191"), for: .normal) | 147 | expandBtn.setTitleColor(HexColor("#919191"), for: .normal) |
| 148 | 148 | ||
| 149 | expandBtn.titleLabel?.font = BoldFont_13 | 149 | expandBtn.titleLabel?.font = BoldFont_13 |
| 150 | - expandBtn.setTitle("剧集", for: .normal) | 150 | + expandBtn.setTitle("电视剧", for: .normal) |
| 151 | expandBtn.layer.cornerRadius = 16 | 151 | expandBtn.layer.cornerRadius = 16 |
| 152 | expandBtn.clipsToBounds = true | 152 | expandBtn.clipsToBounds = true |
| 153 | expandBtn.frame = CGRect(x: 0, y: 0, width: 60, height: 32) | 153 | expandBtn.frame = CGRect(x: 0, y: 0, width: 60, height: 32) |
| @@ -197,7 +197,7 @@ class CNLiveHomeSearchController:CNLiveBaseViewController,UISearchBarDelegate, U | @@ -197,7 +197,7 @@ class CNLiveHomeSearchController:CNLiveBaseViewController,UISearchBarDelegate, U | ||
| 197 | resultHeaderView!.addSubview(headerJuJiBtn) | 197 | resultHeaderView!.addSubview(headerJuJiBtn) |
| 198 | headerJuJiBtn.snp.makeConstraints { make in | 198 | headerJuJiBtn.snp.makeConstraints { make in |
| 199 | make.left.equalTo(self.headerDuanJuBtn.snp.right) | 199 | make.left.equalTo(self.headerDuanJuBtn.snp.right) |
| 200 | - make.width.equalTo(60) | 200 | + make.width.equalTo(100) |
| 201 | make.centerY.equalToSuperview() | 201 | make.centerY.equalToSuperview() |
| 202 | make.height.equalTo(32) | 202 | make.height.equalTo(32) |
| 203 | } | 203 | } |
metaCode/Classes/Main/HuBiLieHomePage/Util/CNLiveDownSlideTool.swift
| @@ -190,7 +190,8 @@ class CNLiveDownSlideTool:NSObject{ | @@ -190,7 +190,8 @@ class CNLiveDownSlideTool:NSObject{ | ||
| 190 | } | 190 | } |
| 191 | }else if (model == kCNDownSlideContentsModelModelAlbum_video){ | 191 | }else if (model == kCNDownSlideContentsModelModelAlbum_video){ |
| 192 | //点播-专辑 | 192 | //点播-专辑 |
| 193 | - self.pushVodController(contentId: contentId, navigationVC: navigationViewController().visibleViewController?.navigationController, isAblumVideo: true) | 193 | + self.pushVodController(albumId: contentId, navigationVC: navigationViewController().visibleViewController?.navigationController) |
| 194 | +// self.pushVodController(contentId: contentId, navigationVC: navigationViewController().visibleViewController?.navigationController, isAblumVideo: true) | ||
| 194 | }else if (model == kCNDownSlideContentsModelModelProduct){ | 195 | }else if (model == kCNDownSlideContentsModelModelProduct){ |
| 195 | // let urlString = "https://managemall.cnlive.com/html/mall/1/#/pages/main/detail/detail?"+"id=\(contentId)&uid=\(UserInfoManager.shared.userInfo.uid)&scene=app" | 196 | // let urlString = "https://managemall.cnlive.com/html/mall/1/#/pages/main/detail/detail?"+"id=\(contentId)&uid=\(UserInfoManager.shared.userInfo.uid)&scene=app" |
| 196 | let regURL = URL(string: thirdUrl) | 197 | let regURL = URL(string: thirdUrl) |
| @@ -350,6 +351,54 @@ class CNLiveDownSlideTool:NSObject{ | @@ -350,6 +351,54 @@ class CNLiveDownSlideTool:NSObject{ | ||
| 350 | } | 351 | } |
| 351 | } | 352 | } |
| 352 | 353 | ||
| 354 | + //已经确定专辑 ,只有 albumId 2653 ,其他contentId为nil时 跳转点播页 | ||
| 355 | + class func pushVodController(albumId:String,navigationVC:UINavigationController?){ | ||
| 356 | +//获取专辑详情 | ||
| 357 | +CNLiveDownSlideTool.getVodAlbumMsgApi(contentId: albumId){ result, status in | ||
| 358 | + if status == .success{ | ||
| 359 | + if let vodModel = result as? CNLiveVodAlbumMsgModel{ | ||
| 360 | + //获取专辑列表 | ||
| 361 | + CNLiveHomePageViewModel.requstWithVodAlbumVideoList(aid: albumId){result, status in | ||
| 362 | + if let albumListBaseModel = result as? CNLiveVodAlbumListBaseModel{ | ||
| 363 | + var currVodModel:CNLiveVodAlbumListModel? | ||
| 364 | + for (idx,albumListModel) in albumListBaseModel.list.enumerated(){ | ||
| 365 | + albumListModel.vodAlbumMsgModel = vodModel | ||
| 366 | + if idx == vodModel.episodeLast{ | ||
| 367 | + currVodModel = | ||
| 368 | + albumListModel } | ||
| 369 | + } | ||
| 370 | + //拿最新播放集数的单集pid,再请求play | ||
| 371 | + CNLiveDownSlideTool.getVodPlayApi(contentId: currVodModel?.contentId ?? ""){ result, status in | ||
| 372 | + if status == .success{ | ||
| 373 | + if let vodModel = result as? CNLiveVodPlayModel{ | ||
| 374 | + //获得点播url | ||
| 375 | + //获取301播放地址 | ||
| 376 | + CNLiveHomePageViewModel.shared.getVodVideoURL(contentId: vodModel.contentId) {result,status in //vodModel.contentId result, status in | ||
| 377 | + hiddenLoading() | ||
| 378 | + if status == .success{ | ||
| 379 | + let vc = CNLiveTVPlayerViewController() | ||
| 380 | + let url = result as! String | ||
| 381 | + vc.url = URL(string: url) | ||
| 382 | + vc.vodPlayModel = vodModel//vodModel | ||
| 383 | + vc.contentId = vodModel.contentId | ||
| 384 | + vc.vodAlbumListBaseModel = albumListBaseModel | ||
| 385 | + navigationVC?.pushViewController(vc, animated: pushAnimated) | ||
| 386 | + }else{ | ||
| 387 | + | ||
| 388 | + } | ||
| 389 | + } | ||
| 390 | + } | ||
| 391 | + } | ||
| 392 | + } | ||
| 393 | + | ||
| 394 | + } | ||
| 395 | + } | ||
| 396 | + } | ||
| 397 | + } | ||
| 398 | +} | ||
| 399 | + | ||
| 400 | + } | ||
| 401 | + //单集时请求play接口确定是专辑/单集 有contentId 1350755 跳转点播页 | ||
| 353 | class func pushVodController(contentId:String,navigationVC:UINavigationController?,isAblumVideo:Bool){ | 402 | class func pushVodController(contentId:String,navigationVC:UINavigationController?,isAblumVideo:Bool){ |
| 354 | showLoading(message: "") | 403 | showLoading(message: "") |
| 355 | var tempIsAblumVideo = isAblumVideo | 404 | var tempIsAblumVideo = isAblumVideo |
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoHengTuCell.swift
| @@ -253,6 +253,15 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell { | @@ -253,6 +253,15 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell { | ||
| 253 | CNLiveDownSlideTool.pushWebAndVodVCWithContentsMdl(model: contentMdl.model , contentId: contentMdl.contentId , pid: contentMdl.pid , shareUrl: contentMdl.shareUrl , thirdUrl: contentMdl.thirdUrl , title: contentMdl.title , s_to: contentMdl.s_to ,trailerId: contentMdl.trailerId , controller: nil, slideModel: nil) | 253 | CNLiveDownSlideTool.pushWebAndVodVCWithContentsMdl(model: contentMdl.model , contentId: contentMdl.contentId , pid: contentMdl.pid , shareUrl: contentMdl.shareUrl , thirdUrl: contentMdl.thirdUrl , title: contentMdl.title , s_to: contentMdl.s_to ,trailerId: contentMdl.trailerId , controller: nil, slideModel: nil) |
| 254 | }else if let contentMdl = self.followModel?[i] as? CNLiveHomeFollowModel{ | 254 | }else if let contentMdl = self.followModel?[i] as? CNLiveHomeFollowModel{ |
| 255 | CNLiveDownSlideTool.pushWebAndVodVCWithContentsMdl(model: contentMdl.modelId , contentId: contentMdl.contentId , pid: contentMdl.activeId , shareUrl: contentMdl.shareUrl , thirdUrl: contentMdl.shareUrl , title: contentMdl.title , s_to: "" ,trailerId: "" , controller: nil, slideModel: nil) | 255 | CNLiveDownSlideTool.pushWebAndVodVCWithContentsMdl(model: contentMdl.modelId , contentId: contentMdl.contentId , pid: contentMdl.activeId , shareUrl: contentMdl.shareUrl , thirdUrl: contentMdl.shareUrl , title: contentMdl.title , s_to: "" ,trailerId: "" , controller: nil, slideModel: nil) |
| 256 | + }else if let contentMdl = self.collectionModel?[i] as? CNLiveCollectionListModel{//我的收藏 | ||
| 257 | + if contentMdl.model == kCNDownSlideContentsModelModelAlbum_video{ | ||
| 258 | + //专辑 | ||
| 259 | + CNLiveDownSlideTool.pushVodController(albumId: contentMdl.albumId, navigationVC: navigationViewController()) | ||
| 260 | + }else{ | ||
| 261 | + //点播 | ||
| 262 | + CNLiveDownSlideTool.pushVodController(contentId: contentMdl.contentId, navigationVC: navigationViewController(), isAblumVideo: false) | ||
| 263 | + | ||
| 264 | + } | ||
| 256 | } | 265 | } |
| 257 | 266 | ||
| 258 | } | 267 | } |