bug fixed

This commit is contained in:
ddisfriend
2025-10-17 15:23:05 +08:00
parent f81235c1ad
commit 3f4b032116

View File

@@ -1644,8 +1644,8 @@ class VMLDContainerView : DDView , JXCategoryListContentViewDelegate {
incidentLabel = DDLabel.dd_init(withText: "", font: .regularFont(auto(12)), textColor: .hex("000000").alpha(0.7))
destIcon = UIImageView(image: UIImage(named: "vehichleMonitoring_terminal_16"))
destLabel = DDLabel.dd_init(withText: "", font: .regularFont(auto(12)), textColor: .hex("000000").alpha(0.7))
contractImageView = DDImageView(image: UIImage(named: "vehichleMonitoring_contract_16"))
contractTitle = DDLabel.dd_init(withText: "合同:", font: .regularFont(12), textColor: .hex("11142F"))
contractImageView = DDImageView()
contractTitle = DDLabel.dd_init(withText: "", font: .regularFont(12), textColor: .hex("11142F"))
contractContent = DDLabel.dd_init(withText: "", font: .regularFont(12), textColor: .hex("11142F"))
distanceFromPointLabel = DDLabel()
remainTimeLabel = DDLabel()
@@ -1772,7 +1772,15 @@ class VMLDContainerView : DDView , JXCategoryListContentViewDelegate {
stateLabel.text = taskModel.taskStatusString
incidentLabel.text = taskModel.vehiclePointAddress
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 leftTime : Int? = nil
if let leftTimeB = taskModel.leftTimeB {