Commit 292298db authored by Steven杜宇's avatar Steven杜宇

// URL包含中文处理

parent 69015503
......@@ -126,13 +126,13 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
switch model.skip_type {
case 1: //跳转H5
let vc = YHHomeWebViewController()
vc.url = model.skip_url
vc.url = model.skip_url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
self.parentViewController?.navigationController?.pushViewController(vc)
case 2: //跳转APP内Tab
goAppTab(tabBarName:model.skip_url)
case 3://3-跳转资讯页
let vc = YHHomeWebViewController()
vc.url = model.skip_url
vc.url = model.skip_url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
self.parentViewController?.navigationController?.pushViewController(vc)
case 0://0 不需要跳转
printLog("0 不需要跳转")
......
......@@ -123,13 +123,13 @@ extension YHServiceBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
switch model.skip_type {
case 1: //跳转H5
let vc = YHHomeWebViewController()
vc.url = model.skip_url
vc.url = model.skip_url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
self.parentViewController?.navigationController?.pushViewController(vc)
case 2: //跳转APP内Tab
goAppTab(tabBarName:model.skip_url)
case 3://3-跳转资讯页
let vc = YHHomeWebViewController()
vc.url = model.skip_url
vc.url = model.skip_url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)!
self.parentViewController?.navigationController?.pushViewController(vc)
case 0://0 不需要跳转
printLog("0 不需要跳转")
......
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