|
@@ -146,8 +146,8 @@ class ProductSlidingLeftRightCollectionViewCell: UICollectionViewCell {
|
|
|
iconImagView.kf.setImage(with: kURLImage(name: productModel?.img ?? "pic_preload"), placeholder: kImage(name: "pic_preload"))
|
|
|
titleLabel.text = productModel?.saleName
|
|
|
detailTitleLabel.text = productModel?.saleName
|
|
|
- sellPriceLabel.text = "¥\(productModel?.price ?? 0)"
|
|
|
- let attributeString = NSMutableAttributedString(string:"¥\(productModel?.originPrice ?? 0)")
|
|
|
+ sellPriceLabel.text = priceConversion(price: productModel?.price ?? 0)
|
|
|
+ let attributeString = NSMutableAttributedString(string:priceConversion(price: productModel?.originPrice ?? 0))
|
|
|
attributeString.changeStrikethrough(atAllStyle: NSUnderlineStyle.single, color: kbbbbbbColor)
|
|
|
markPriceLabel.attributedText = attributeString
|
|
|
}
|
|
@@ -158,8 +158,8 @@ class ProductSlidingLeftRightCollectionViewCell: UICollectionViewCell {
|
|
|
iconImagView.kf.setImage(with: kURLImage(name: productSearchModel?.img ?? "pic_preload"), placeholder: kImage(name: "pic_preload"))
|
|
|
titleLabel.text = productSearchModel?.saleName
|
|
|
detailTitleLabel.text = productSearchModel?.saleName
|
|
|
- sellPriceLabel.text = "¥\(productSearchModel?.price ?? 0)"
|
|
|
- let attributeString = NSMutableAttributedString(string:"¥\(productSearchModel?.originPrice ?? 0)")
|
|
|
+ sellPriceLabel.text = priceConversion(price: productSearchModel?.price ?? 0)
|
|
|
+ let attributeString = NSMutableAttributedString(string:priceConversion(price: productSearchModel?.originPrice ?? 0))
|
|
|
attributeString.changeStrikethrough(atAllStyle: NSUnderlineStyle.single, color: kbbbbbbColor)
|
|
|
markPriceLabel.attributedText = attributeString
|
|
|
if productModel?.totalStock == 0 {
|