Commit 799e36b9 authored by David黄金龙's avatar David黄金龙

修改 2处bug

parent 7bcd9541
......@@ -102,6 +102,8 @@ enum YHActivityStatus: Int {
return UIColor.mainTextColor30
case .canceled:
return UIColor.mainTextColor30
case .soldout:
return UIColor.mainTextColor30
default:
return UIColor.clear
}
......@@ -273,11 +275,12 @@ extension YHActivityListViewController: UITableViewDelegate, UITableViewDataSour
let vc = YHActivityTravelViewController()
vc.travelId = model.checkId
navigationController?.pushViewController(vc)
return
} else if model.status.int == 5 {
YHHUD.flash(message: "活动已下架")
}
YHHUD.flash(message: "已下架")
return
}
}
let vc = YHActivityDetailViewController()
vc.activityId = String(model.id)
......
......@@ -123,7 +123,7 @@ extension YHActivityTravelCell {
statusLable.text = "活动结束"
} else if model.status.int == 5 {
cancelButton.isHidden = true
statusLable.text = "活动已下架"
statusLable.text = "已下架"
}
else {
cancelButton.isHidden = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment