Commit a538f4ed7dd095e9114abf423681b9cd49cf466f

Authored by “张旭”
1 parent 87740d33

自动跳转ai对话详情页

metaCode/Classes/Common/Base/CNLiveBaseTabBarViewController.swift
@@ -69,7 +69,7 @@ class CNLiveBaseTabBarViewController: UITabBarController @@ -69,7 +69,7 @@ class CNLiveBaseTabBarViewController: UITabBarController
69 CNLiveBaseNavigationController(rootViewController: authVC), 69 CNLiveBaseNavigationController(rootViewController: authVC),
70 CNLiveBaseNavigationController(rootViewController: mineVC) 70 CNLiveBaseNavigationController(rootViewController: mineVC)
71 ] 71 ]
72 - self.selectedIndex = 1 72 +// self.selectedIndex = 1
73 } 73 }
74 74
75 // MARK: - Tabar 背景图 75 // MARK: - Tabar 背景图
metaCode/Classes/Main/HomePage/Controller/WebController/CNHomeWebViewController.swift
@@ -27,7 +27,7 @@ class CNHomeWebViewController:CNLiveBaseViewController ,WKNavigationDelegate{ @@ -27,7 +27,7 @@ class CNHomeWebViewController:CNLiveBaseViewController ,WKNavigationDelegate{
27 configuration.preferences.minimumFontSize = 0.0 27 configuration.preferences.minimumFontSize = 0.0
28 configuration.preferences = preferences 28 configuration.preferences = preferences
29 configuration.userContentController = WKUserContentController() 29 configuration.userContentController = WKUserContentController()
30 - let webView = CNWebView(frame: CGRectMake(0, KNavigationHeight, Width, Height-KNavigationHeight), configuration: configuration, url: _url) 30 + let webView = CNWebView(frame: CGRectMake(0, KNavigationHeight, Width, Height-KNavigationHeight-KTabBarHeight), configuration: configuration, url: _url)
31 webView.cnWebView.scrollView.showsVerticalScrollIndicator = false 31 webView.cnWebView.scrollView.showsVerticalScrollIndicator = false
32 webView.cnWebView.scrollView.showsHorizontalScrollIndicator = false 32 webView.cnWebView.scrollView.showsHorizontalScrollIndicator = false
33 webView.isCNWebController = true 33 webView.isCNWebController = true
@@ -109,6 +109,10 @@ class CNHomeWebViewController:CNLiveBaseViewController ,WKNavigationDelegate{ @@ -109,6 +109,10 @@ class CNHomeWebViewController:CNLiveBaseViewController ,WKNavigationDelegate{
109 make.top.equalTo(get_system_nav_height()) 109 make.top.equalTo(get_system_nav_height())
110 make.left.right.bottom.equalToSuperview() 110 make.left.right.bottom.equalToSuperview()
111 } 111 }
  112 +
  113 + let webVC = CNWebViewController()
  114 + webVC.url = URL(string: "https://wjjh5.cnlive.com/chatgpt/#/pages/index/index?id=1836691195091464194")
  115 + navigationViewController().pushViewController(webVC, animated: true)
112 } 116 }
113 117
114 func h5StopVideoPlayer(){ 118 func h5StopVideoPlayer(){