Commit 83bb5d7a authored by Steven杜宇's avatar Steven杜宇

无网图片展示逻辑

parent 776a9910
......@@ -154,6 +154,12 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
make.height.equalTo(59 + k_Height_safeAreaInsetsBottom())
}
view.addSubview(self.noNetWorkTipsView)
self.noNetWorkTipsView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.top.equalToSuperview().offset(k_Height_NavigationtBarAndStatuBar)
}
if id == 0 {
if self.url.contains("?id=") {
let list = self.url.components(separatedBy: "?id=")
......@@ -161,6 +167,7 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
if let iddd = list[1].int {
id = iddd
getData()
updateNetWorkStatusUI(needReload: false)
return
}
}
......@@ -194,11 +201,6 @@ class YHHomeWebViewController: YHBaseViewController, WKUIDelegate, WKNavigationD
gk_navTitle = ""
}
view.addSubview(self.noNetWorkTipsView)
self.noNetWorkTipsView.snp.makeConstraints { make in
make.left.right.bottom.equalToSuperview()
make.top.equalToSuperview().offset(k_Height_NavigationtBarAndStatuBar)
}
getData()
updateNetWorkStatusUI(needReload: 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