Commit fe5a9a84 authored by pete谢兆麟's avatar pete谢兆麟

去除UAT代码

parent 7a27f734
......@@ -39,26 +39,22 @@ class YHOrderDetailViewController: YHBaseViewController {
viewModel.getWhitelist {[weak self] success, error in
guard let self = self else { return }
if success {
if YHUatHelper.shared.getUatModuleStatusBy(module: YHUatModules(rawValue: 7)) == 1 {
let searchButton = {
let button = UIButton(type: .custom)
button.frame = CGRect(x: 0, y: 0, width: 81, height: 21)
button.setImage(UIImage(named: "service_detail_search"), for: .normal)
button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("订单搜索", for: .normal)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .right
button.addTarget(self, action: #selector(self.searchButtonClick), for: .touchUpInside)
button.isSelected = false
button.iconInLeft(spacing: 4)
return button
}()
let rightButtonItem = UIBarButtonItem(customView: searchButton)
gk_navRightBarButtonItem = rightButtonItem
gk_navItemRightSpace = 16
}
let searchButton = {
let button = UIButton(type: .custom)
button.frame = CGRect(x: 0, y: 0, width: 81, height: 21)
button.setImage(UIImage(named: "service_detail_search"), for: .normal)
button.setTitleColor(UIColor.mainTextColor, for: .normal)
button.setTitle("订单搜索", for: .normal)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .right
button.addTarget(self, action: #selector(self.searchButtonClick), for: .touchUpInside)
button.isSelected = false
button.iconInLeft(spacing: 4)
return button
}()
let rightButtonItem = UIBarButtonItem(customView: searchButton)
gk_navRightBarButtonItem = rightButtonItem
gk_navItemRightSpace = 16
}
}
}
......
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