Commit 77069248 authored by David黄金龙's avatar David黄金龙

处理 已下架的 UI 展示

parent 3908501e
......@@ -16,7 +16,7 @@ class YHActivityModel: YHBaseModel {
var beginTime : String = "" //开始时间戳
var endTime : String = "" //结束时间戳
var place : String = "" //活动地点
var status : String = "" //活动的状态 1:立即报名 2:已报名 3:活动结束 4:已取消报名
var status : String = "" //活动的状态 1:立即报名 2:已报名 3:活动结束 4:已取消报名 5:已下架
var checkId : String = "" //活动行程ID 仅当活动状态为2(已报名)时才大于0
private var beginTimeForUI : String = ""
......
......@@ -73,15 +73,12 @@ extension YHActivityDetailCell {
}
contentView.removeSubviews()
contentView.addSubview(topImgV)
contentView.addSubview(acitivityTitle)
contentView.addSubview(acitivityDetail)
contentView.addSubview(acitivityTips)
contentView.addSubview(fakeView)
topImgV.snp.makeConstraints { make in
make.top.left.right.equalToSuperview()
......@@ -147,6 +144,10 @@ extension YHActivityDetailCell {
make.height.equalTo(1)
make.bottom.equalToSuperview().offset(-42)
}
}
func setupUI() {
......
......@@ -124,6 +124,13 @@ extension YHActivityListCell {
}
if model.status.int == 5 {
contentView.alpha = 0.4
} else {
contentView.alpha = 1.0
}
nameLabel.text = model.name
if let url = URL(string: model.cover) {
......
......@@ -72,6 +72,8 @@ extension UIColor {
//页面背景
static let pageBkgColor : UIColor = UIColor(hexString: "#F8F8F8")!
static let pageBkgColor40: UIColor = UIColor(hexString: "#94A3B8",transparency: 0.4)!
//内容背景色
static let contentBkgColor : UIColor = UIColor(hexString: "#F8F9FB")!
......
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