Commit c71a49ec authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'xiezhaolin' into develop

parents 41767df0 f330846e
...@@ -79,11 +79,15 @@ extension YHServiceTableFootView: UICollectionViewDelegate, UICollectionViewData ...@@ -79,11 +79,15 @@ extension YHServiceTableFootView: UICollectionViewDelegate, UICollectionViewData
} }
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
let model = items[indexPath.row] guard let model = items[indexPath.row] else { return }
let vc = YHHomeWebViewController() if model.type == 2 {
vc.url = "https://test-hkdiy-h5.galaxy-immi.com/articleDetail.html?id=\(model?.id ?? 0)" let vc = YHHomeWebViewController()
vc.id = model?.id ?? 0 vc.url = YHConfigManager.shared.h5Url + "?id=\(model.id)"
UIViewController.current?.navigationController?.pushViewController(vc) vc.id = model.id
UIViewController.current?.navigationController?.pushViewController(vc)
} else if model.type == 1 {
printLog("直接播放视频")
}
} }
} }
......
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