Commit f671aae1 authored by David黄金龙's avatar David黄金龙

调整 资讯详情的展示

parent 6fcaec2b
......@@ -100,16 +100,15 @@ extension YHJsApi {
let isFullScreen : Int = jsonObject["isFullScreen"] as? Int ?? 1
let navTitle : String = jsonObject["navTitle"] as? String ?? ""
if !url.isEmpty {
if isInformationUrl == 1 {
//资讯详情
let vc = YHHomeWebViewController()
vc.url = url
vc.gk_navTitle = navTitle
// vc.id = model.id
self.delegate?.navigationController?.pushViewController(vc)
} else {
//普通界面
if isInformationUrl == 1 {
//资讯详情
let vc = YHHomeWebViewController()
vc.id = id
vc.url = YHBaseUrlManager.shared.curH5URL() + "articleDetail.html" + "?id=\(id)"
self.delegate?.navigationController?.pushViewController(vc)
} else {
//普通界面
if !url.isEmpty {
let vc = YHH5WebViewVC()
vc.url = url
vc.isFullScreenFlag = isFullScreen == 1 ? true : false
......
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