| | |
| | | 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") |
| | | } |
| | | } |
| | | } |