Commit 562bd1e8 authored by David黄金龙's avatar David黄金龙

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

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