杨锴
2024-11-05 0fb7413df54760ac6bd15b90b738e0706de1629e
XQMuse/Root/Home/VC/SearchVC.swift
@@ -106,11 +106,6 @@
                        }).disposed(by: disposeBag)
            }
            override func viewDidDisappear(_ animated: Bool) {
                        super.viewDidDisappear(animated)
        SearchCache.writeToPath(serchType)
            }
            override func setUI() {
                        super.setUI()
                        view.backgroundColor = UIColor(hexString: "f6f6f6")
@@ -129,7 +124,8 @@
                        tableView.delegate = self
                        tableView.dataSource = self
                        tableView.separatorStyle = .none
                        tableView.isScrollEnabled = false
        tableView.showsVerticalScrollIndicator = false
        tableView.showsHorizontalScrollIndicator = false
                        tableView.backgroundColor = .clear
                        tableView.register(UINib(nibName: "SearchHotTCell", bundle: nil), forCellReuseIdentifier: "_SearchHotTCell")
@@ -169,8 +165,13 @@
                        tf_search.resignFirstResponder()
                        SearchCache.writeToList(tf_search.text!)
        SearchCache.writeToPath(serchType)
        let vc = SearchContentVC(content: tf_search.text!, type: serchType)
                        jq_push(vc: vc)
        cacheSearchCollectionView.reloadData()
        tf_search.text = ""
            }
}