无故事王国
2023-10-25 5c244d5766b17c33da14b134fb6d20556a4c2d1d
WanPai/Root/Course/TCell/CourseChargeTCell.swift
@@ -14,13 +14,12 @@
        didSet{
            label_typeName.text = courseRecordModel.purchaseType
            label_datetime.text = courseRecordModel.purchaseTime
         label_price.text = courseRecordModel.purchaseAmount
            if courseRecordModel.purchaseAmount > 0{
                label_price.text = "+\(courseRecordModel.purchaseAmount.jq_formatFloat)"
                label_price.textColor = UIColor(hexStr: "#6CC366")
         if courseRecordModel.purchaseAmount.contains("-"){
            label_price.textColor = UIColor(hexStr: "#E32910")
            }else{
                label_price.text = "-\(courseRecordModel.purchaseAmount.jq_formatFloat)"
                label_price.textColor = UIColor(hexStr: "#E32910")
            label_price.textColor = UIColor(hexStr: "#6CC366")
            }
        }
    }