bug fixed
This commit is contained in:
@@ -1644,8 +1644,8 @@ class VMLDContainerView : DDView , JXCategoryListContentViewDelegate {
|
|||||||
incidentLabel = DDLabel.dd_init(withText: "", font: .regularFont(auto(12)), textColor: .hex("000000").alpha(0.7))
|
incidentLabel = DDLabel.dd_init(withText: "", font: .regularFont(auto(12)), textColor: .hex("000000").alpha(0.7))
|
||||||
destIcon = UIImageView(image: UIImage(named: "vehichleMonitoring_terminal_16"))
|
destIcon = UIImageView(image: UIImage(named: "vehichleMonitoring_terminal_16"))
|
||||||
destLabel = DDLabel.dd_init(withText: "", font: .regularFont(auto(12)), textColor: .hex("000000").alpha(0.7))
|
destLabel = DDLabel.dd_init(withText: "", font: .regularFont(auto(12)), textColor: .hex("000000").alpha(0.7))
|
||||||
contractImageView = DDImageView(image: UIImage(named: "vehichleMonitoring_contract_16"))
|
contractImageView = DDImageView()
|
||||||
contractTitle = DDLabel.dd_init(withText: "合同:", font: .regularFont(12), textColor: .hex("11142F"))
|
contractTitle = DDLabel.dd_init(withText: "", font: .regularFont(12), textColor: .hex("11142F"))
|
||||||
contractContent = DDLabel.dd_init(withText: "", font: .regularFont(12), textColor: .hex("11142F"))
|
contractContent = DDLabel.dd_init(withText: "", font: .regularFont(12), textColor: .hex("11142F"))
|
||||||
distanceFromPointLabel = DDLabel()
|
distanceFromPointLabel = DDLabel()
|
||||||
remainTimeLabel = DDLabel()
|
remainTimeLabel = DDLabel()
|
||||||
@@ -1772,7 +1772,15 @@ class VMLDContainerView : DDView , JXCategoryListContentViewDelegate {
|
|||||||
stateLabel.text = taskModel.taskStatusString
|
stateLabel.text = taskModel.taskStatusString
|
||||||
incidentLabel.text = taskModel.vehiclePointAddress
|
incidentLabel.text = taskModel.vehiclePointAddress
|
||||||
destLabel.text = taskModel.destinationAddress
|
destLabel.text = taskModel.destinationAddress
|
||||||
contractContent.text = taskModel.contractName
|
if let contractName = taskModel.contractName {
|
||||||
|
contractContent.text = contractName
|
||||||
|
contractTitle.text = "合同:"
|
||||||
|
contractImageView.image = UIImage(named: "vehichleMonitoring_contract_16")
|
||||||
|
}else{
|
||||||
|
contractContent.text = nil
|
||||||
|
contractTitle.text = nil
|
||||||
|
contractImageView.image = nil
|
||||||
|
}
|
||||||
var point = ""
|
var point = ""
|
||||||
var leftTime : Int? = nil
|
var leftTime : Int? = nil
|
||||||
if let leftTimeB = taskModel.leftTimeB {
|
if let leftTimeB = taskModel.leftTimeB {
|
||||||
|
|||||||
Reference in New Issue
Block a user