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

服务中心需求修改

parent 22485f1c
...@@ -138,7 +138,7 @@ extension YHOrderDetailViewController: UITableViewDelegate, UITableViewDataSourc ...@@ -138,7 +138,7 @@ extension YHOrderDetailViewController: UITableViewDelegate, UITableViewDataSourc
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 255 return 295
} }
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
...@@ -173,6 +173,8 @@ class YHOrderDetailTableViewCell: UITableViewCell { ...@@ -173,6 +173,8 @@ class YHOrderDetailTableViewCell: UITableViewCell {
var phoneCopyButton: UIButton! var phoneCopyButton: UIButton!
var nameLabel: UILabel! var nameLabel: UILabel!
var nameValueLabel: UILabel! var nameValueLabel: UILabel!
var serviceLabel: UILabel!
var serviceValueLabel: UILabel!
var showDetailButton: UIButton! var showDetailButton: UIButton!
var otherTypeView: UIImageView! var otherTypeView: UIImageView!
...@@ -414,11 +416,40 @@ class YHOrderDetailTableViewCell: UITableViewCell { ...@@ -414,11 +416,40 @@ class YHOrderDetailTableViewCell: UITableViewCell {
}() }()
centerView.addSubview(bottomLineView) centerView.addSubview(bottomLineView)
bottomLineView.snp.makeConstraints { make in bottomLineView.snp.makeConstraints { make in
make.top.equalTo(187) make.top.equalTo(227)
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
make.height.equalTo(0.5) make.height.equalTo(0.5)
} }
serviceLabel = {
let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 14)
label.textColor = UIColor.mainTextColor.withAlphaComponent(0.5)
label.text = "服务内容"
return label
}()
centerView.addSubview(serviceLabel)
serviceLabel.snp.makeConstraints { make in
make.top.equalTo(188.5)
make.left.equalTo(16)
make.height.equalTo(20)
}
serviceValueLabel = {
let label = UILabel()
label.font = UIFont.PFSC_M(ofSize: 14)
label.textColor = UIColor.mainTextColor
// label.text = model.orderSn
label.textAlignment = .right
return label
}()
centerView.addSubview(serviceValueLabel)
serviceValueLabel.snp.makeConstraints { make in
make.top.equalTo(188.5)
make.right.equalTo(-16)
make.left.equalTo(serviceLabel.snp.right).offset(20)
}
showDetailButton = { showDetailButton = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.setImage(UIImage(named: "service_right_icon"), for: .normal) button.setImage(UIImage(named: "service_right_icon"), for: .normal)
...@@ -464,5 +495,6 @@ class YHOrderDetailTableViewCell: UITableViewCell { ...@@ -464,5 +495,6 @@ class YHOrderDetailTableViewCell: UITableViewCell {
orderNumLabel.text = model.orderSn orderNumLabel.text = model.orderSn
phoneNumLabel.text = model.mobile phoneNumLabel.text = model.mobile
nameValueLabel.text = model.username nameValueLabel.text = model.username
serviceValueLabel.text = model.service_name
} }
} }
...@@ -17,4 +17,5 @@ struct YHContactItemModel : SmartCodable { ...@@ -17,4 +17,5 @@ struct YHContactItemModel : SmartCodable {
var createTime : String = "" var createTime : String = ""
var type : String = "" var type : String = ""
var mobile: String = "" var mobile: String = ""
var service_name: String = ""
} }
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