浏览代码

用户协议/隐私政策 webview 问题解决

openlockPPP 1 年之前
父节点
当前提交
84d38ff94e

+ 1 - 1
JiaPeiManage/Sources/Constants/NYImage.swift

@@ -53,7 +53,7 @@ struct NYImage {
         static let smallWindow = UIImage(named: "home_smallWindow")
         static let noInterest = UIImage(named: "home_noInterest")
         static let online = UIImage(named: "home_online")
-        static let back = UIImage(named: "home_back")
+        static let back = UIImage(named: "back-white")
         static let more = UIImage(named: "home_more")
         static let countryRcmd = UIImage(named: "home_countryRcmd")
         static let dramaRcmd = UIImage(named: "home_dramaRcmd")

+ 6 - 2
JiaPeiManage/Sources/Main/NYWebViewController.swift

@@ -34,12 +34,16 @@ final class NYWebViewController: BaseViewController {
         webView.snp.makeConstraints { (make) in
            make.edges.equalToSuperview()
         }
-        
+//        webView.snp.makeConstraints { (make) in
+//            make.top.equalTo(self.view).offset(88.f)
+//            make.left.right.bottom.equalTo(self.view)
+//        }
     }
     
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
-        self.navigationController?.setNavigationBarHidden(false, animated: true)
+        navigationController?.navigationBar.isHidden = false
+//        self.navigationController?.setNavigationBarHidden(false, animated: true)
     }
     
     override func viewDidLoad() {

+ 5 - 1
JiaPeiManage/Sources/Modulars/Statistics/Controllers/StatisticsPageController.swift

@@ -368,7 +368,11 @@ final class StatisticsPageController: BaseGroupTableViewController {
         tableView.separatorStyle = .none //去除分割线
         tableView.register(UINib(nibName: "StatisticsPageCell", bundle: nil), forCellReuseIdentifier: cellIdentifier)
         tableView.rowHeight = 44.f
-        tableView.contentInset = UIEdgeInsets(top: -25, left: 0, bottom: -25, right: 0)
+        if(isIphoneX){
+            tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
+        }else {
+            tableView.contentInset = UIEdgeInsets(top: -25, left: 0, bottom: -25, right: 0)
+        }
         setupRefreshHeader(tableView) {[unowned self] in
             self.getStatisticsList(isLoading: false)
         }