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

服务中心UI修改

parent 607e05f1
...@@ -19,13 +19,13 @@ class YHServiceStepAlertView: UIView { ...@@ -19,13 +19,13 @@ class YHServiceStepAlertView: UIView {
if isStepOne { if isStepOne {
orderButton.isSelected = false orderButton.isSelected = false
guideButton.isSelected = true guideButton.isSelected = true
orderButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) orderButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 16)
guideButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) guideButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
} else { } else {
orderButton.isSelected = true orderButton.isSelected = true
guideButton.isSelected = false guideButton.isSelected = false
orderButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) orderButton.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
guideButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) guideButton.titleLabel?.font = UIFont.PFSC_R(ofSize: 16)
} }
} }
...@@ -64,7 +64,7 @@ class YHServiceStepAlertView: UIView { ...@@ -64,7 +64,7 @@ class YHServiceStepAlertView: UIView {
centerView.snp.makeConstraints { make in centerView.snp.makeConstraints { make in
make.left.equalTo(20) make.left.equalTo(20)
make.height.equalTo(120) make.height.equalTo(120)
make.width.equalTo(135) make.width.equalTo(164)
make.top.equalTo(85) make.top.equalTo(85)
} }
...@@ -77,7 +77,7 @@ class YHServiceStepAlertView: UIView { ...@@ -77,7 +77,7 @@ class YHServiceStepAlertView: UIView {
button.setTitleColor(UIColor.brandMainColor, for: .selected) button.setTitleColor(UIColor.brandMainColor, for: .selected)
button.setBackgroundColor(color: UIColor.white, forState: .normal) button.setBackgroundColor(color: UIColor.white, forState: .normal)
button.setBackgroundColor(color: UIColor.brandMainColor8, forState: .selected) button.setBackgroundColor(color: UIColor.brandMainColor8, forState: .selected)
button.titleLabel?.font = UIFont.PFSC_R(ofSize: 14) button.titleLabel?.font = UIFont.PFSC_R(ofSize: 16)
button.addTarget(self, action: #selector(orderButtonClick), for: .touchUpInside) button.addTarget(self, action: #selector(orderButtonClick), for: .touchUpInside)
button.isSelected = false button.isSelected = false
return button return button
...@@ -86,7 +86,7 @@ class YHServiceStepAlertView: UIView { ...@@ -86,7 +86,7 @@ class YHServiceStepAlertView: UIView {
orderButton.snp.makeConstraints { make in orderButton.snp.makeConstraints { make in
make.right.equalTo(0) make.right.equalTo(0)
make.height.equalTo(52) make.height.equalTo(52)
make.width.equalTo(135) make.width.equalTo(164)
make.top.equalTo(8) make.top.equalTo(8)
} }
...@@ -108,11 +108,11 @@ class YHServiceStepAlertView: UIView { ...@@ -108,11 +108,11 @@ class YHServiceStepAlertView: UIView {
guideButton.snp.makeConstraints { make in guideButton.snp.makeConstraints { make in
make.right.equalTo(0) make.right.equalTo(0)
make.height.equalTo(52) make.height.equalTo(52)
make.width.equalTo(135) make.width.equalTo(164)
make.bottom.equalTo(-8) make.bottom.equalTo(-8)
} }
orderButton.iconInRight(with: 32) orderButton.iconInRight(with: 48)
guideButton.iconInRight(with: 32) guideButton.iconInRight(with: 48)
} }
@objc private func handleTap(_ sender: AnyObject?) { @objc private func handleTap(_ sender: AnyObject?) {
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "service_step_select@2x.png", "filename" : "Group 33334425@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "service_step_select@3x.png", "filename" : "Group 33334425@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
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