Commit 22c779a4 authored by Steven杜宇's avatar Steven杜宇

// 首页URL添加token

parent 1f0551ff
......@@ -135,8 +135,14 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
if model.skip_url.isEmpty == false {
switch model.skip_type {
case 1: //跳转H5
var token = ""
if let myToken = YHLoginManager.shared.userModel?.token {
token = myToken
}
let url = model.skip_url + "&param=" + token
printLog("url: \(url)")
let vc = YHHomeWebViewController()
vc.url = model.skip_url
vc.url = url
self.parentViewController?.navigationController?.pushViewController(vc)
case 2: //跳转APP内Tab
goAppTab(tabBarName:model.skip_url)
......
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