Commit df7c09b2 authored by Steven杜宇's avatar Steven杜宇
parents ef323993 b469b304
...@@ -286,8 +286,8 @@ class YHSelectLookTableViewCell: UITableViewCell { ...@@ -286,8 +286,8 @@ class YHSelectLookTableViewCell: UITableViewCell {
flagLabel.isHidden = false flagLabel.isHidden = false
} }
let a: ASAttributedString = .init("¥", .font(UIFont(name: "D-DIN-PRO-Bold", size: 14) ?? UIFont()), .foreground(UIColor.mainTextColor)) let a: ASAttributedString = .init("¥", .font(UIFont(name: "D-DIN-PRO-Bold", size: 14) ?? UIFont()), .foreground(UIColor.mainTextColor))
let b: ASAttributedString = .init("\(dataSource.linePrice) ", .font(UIFont(name: "D-DIN-PRO-Bold", size: 20) ?? UIFont()), .foreground(UIColor.mainTextColor)) let b: ASAttributedString = .init("\(dataSource.linePrice.formattedPrice()) ", .font(UIFont(name: "D-DIN-PRO-Bold", size: 20) ?? UIFont()), .foreground(UIColor.mainTextColor))
let c: ASAttributedString = .init(\(dataSource.price)", .font(UIFont(name: "D-DIN-PRO-Bold", size: 14) ?? UIFont()), .foreground(UIColor(hex: 0x8993a2)), .strikethrough(.single)) let c: ASAttributedString = .init(\(dataSource.price.formattedPrice())", .font(UIFont(name: "D-DIN-PRO-Bold", size: 14) ?? UIFont()), .foreground(UIColor(hex: 0x8993a2)), .strikethrough(.single))
if dataSource.linePrice == dataSource.price { if dataSource.linePrice == dataSource.price {
self.subTitleLabel.attributed.text = a + b self.subTitleLabel.attributed.text = a + b
} else { } else {
......
...@@ -294,8 +294,8 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -294,8 +294,8 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
contentView.addSubview(centerView) contentView.addSubview(centerView)
centerView.snp.makeConstraints { make in centerView.snp.makeConstraints { make in
make.left.equalTo(16) make.left.equalTo(18)
make.right.equalTo(-16) make.right.equalTo(-18)
make.top.equalTo(7) make.top.equalTo(7)
make.bottom.equalTo(-7) make.bottom.equalTo(-7)
} }
...@@ -309,10 +309,9 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -309,10 +309,9 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
centerView.addSubview(titleLabel) centerView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
make.left.equalTo(18) make.left.right.equalToSuperview()
make.top.equalTo(16) make.top.equalTo(16)
make.height.equalTo(20) make.height.equalTo(20)
make.right.equalTo(-18)
} }
mainItemView = { mainItemView = {
...@@ -323,10 +322,8 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -323,10 +322,8 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
centerView.addSubview(mainItemView) centerView.addSubview(mainItemView)
mainItemView.snp.makeConstraints { make in mainItemView.snp.makeConstraints { make in
make.bottom.equalToSuperview() make.left.right.bottom.equalToSuperview()
make.top.equalTo(36) make.top.equalTo(36)
make.left.equalTo(18)
make.right.equalTo(-18)
} }
lineView = { lineView = {
...@@ -336,10 +333,8 @@ class YHMakePlanLabelCell: UITableViewCell { ...@@ -336,10 +333,8 @@ class YHMakePlanLabelCell: UITableViewCell {
}() }()
centerView.addSubview(lineView) centerView.addSubview(lineView)
lineView.snp.makeConstraints { make in lineView.snp.makeConstraints { make in
make.left.equalTo(18) make.left.right.bottom.equalToSuperview()
make.bottom.equalToSuperview()
make.height.equalTo(1) make.height.equalTo(1)
make.right.equalTo(-18)
} }
} }
......
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