Commit 1ec4e3ec authored by 刘俊宏's avatar 刘俊宏

订单列表

parent e574ebf6
...@@ -135,30 +135,31 @@ class CGDListCell: UITableViewCell { ...@@ -135,30 +135,31 @@ class CGDListCell: UITableViewCell {
rightBtn.layer.borderColor = UIColor.init(named: "按钮渐变色上")?.cgColor rightBtn.layer.borderColor = UIColor.init(named: "按钮渐变色上")?.cgColor
rightBtn.setTitleColor(UIColor.init(named: "按钮渐变色上"), for: .normal) rightBtn.setTitleColor(UIColor.init(named: "按钮渐变色上"), for: .normal)
rightBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13) rightBtn.titleLabel?.font = UIFont.systemFont(ofSize: 13)
rightBtn.layer.cornerRadius = 2 rightBtn.layer.cornerRadius = 3
if str == "查看详情"{ rightBtn.setTitle(str, for: .normal)
rightBtn.setTitle("查看详情", for: .normal)
}else if str == "确认订单"{
rightBtn.setTitle("确认订单", for: .normal)
rightBtn.setTitleColor(UIColor.white, for: .normal)
rightBtn.backgroundColor = UIColor.init(named: "按钮渐变色上")
rightBtn.layer.borderColor = UIColor.init(named: "按钮渐变色上")?.cgColor
}else if str == "取消订单"{
rightBtn.setTitle("取消订单", for: .normal)
}else if str == "付款码"{
rightBtn.setTitle("付款码", for: .normal)
}
btnBgView.addSubview(rightBtn) btnBgView.addSubview(rightBtn)
if tempBtn == nil { if tempBtn == nil {
rightBtn.snp.makeConstraints { (make) in rightBtn.snp.makeConstraints { (make) in
make.width.equalTo(82*glscale) if str.count > 4 {
make.width.equalTo(110*glscale)
}else{
make.width.equalTo(80*glscale)
}
make.height.equalTo(30) make.height.equalTo(30)
make.right.equalTo(0) make.right.equalTo(0)
make.top.equalTo(0) make.top.equalTo(0)
} }
rightBtn.setTitleColor(UIColor.white, for: .normal)
rightBtn.backgroundColor = UIColor.init(named: "按钮渐变色上")
rightBtn.layer.borderColor = UIColor.init(named: "按钮渐变色上")?.cgColor
}else{ }else{
rightBtn.snp.makeConstraints { (make) in rightBtn.snp.makeConstraints { (make) in
make.width.equalTo(82*glscale) if str.count > 4 {
make.width.equalTo(110*glscale)
}else{
make.width.equalTo(80*glscale)
}
make.height.equalTo(30) make.height.equalTo(30)
make.right.equalTo(tempBtn!.snp_left).offset(-15) make.right.equalTo(tempBtn!.snp_left).offset(-15)
make.top.equalTo(0) make.top.equalTo(0)
......
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