Commit 66434a3405765a04424e5d8f55392a3fb7273b52
1 parent
ffb2d222
删除副标题 默认值
Showing
2 changed files
with
10 additions
and
10 deletions
metaCode/Classes/Main/HomePage/View/VerticalViews/DownSlide/CNDownSlideSingleCourseCell.swift
| ... | ... | @@ -131,13 +131,13 @@ class CNDownSlideSingleCourseCell: UITableViewCell { |
| 131 | 131 | bgBackView.addSubview(imageView) |
| 132 | 132 | |
| 133 | 133 | let titleLbl = UILabel(frame: CGRect(x: imageView.right+DownSlideRecommendLeftGap, y: imageView.top, width: DownSlideSingleCourseW-90-imageView.right, height: 21)) |
| 134 | - titleLbl.text = contentMdl.title ?? "婴儿课程" | |
| 134 | + titleLbl.text = contentMdl.title ?? "" | |
| 135 | 135 | titleLbl.font = Font_15 |
| 136 | 136 | titleLbl.textColor = HexColor("#333333") |
| 137 | 137 | bgBackView.addSubview(titleLbl) |
| 138 | 138 | |
| 139 | 139 | let subTitleLbl = UILabel(frame: CGRect(x: titleLbl.left, y:titleLbl.bottom+3 , width: titleLbl.width, height: 17)) |
| 140 | - subTitleLbl.text = contentMdl.subTitle ?? "适应3-6岁" | |
| 140 | + subTitleLbl.text = contentMdl.subTitle ?? "" | |
| 141 | 141 | subTitleLbl.font = Font_12 |
| 142 | 142 | subTitleLbl.textColor = HexColor("#999999") |
| 143 | 143 | bgBackView.addSubview(subTitleLbl) |
| ... | ... | @@ -181,13 +181,13 @@ class CNDownSlideSingleCourseCell: UITableViewCell { |
| 181 | 181 | bgImageView.kf.setImage(with: URL(string: model.contents[0].poster ?? "")) |
| 182 | 182 | |
| 183 | 183 | let titleLbl = UILabel(frame: CGRect(x: DownSlideRecommendLeftGap, y: DownSlideRecommendLeftGap, width: DownSlideSingleCourseW-DownSlideRecommendLeftGap*2, height: 30)) |
| 184 | - titleLbl.text = model.contents[0].title ?? "婴儿课程" | |
| 184 | + titleLbl.text = model.contents[0].title ?? "" | |
| 185 | 185 | titleLbl.font = BoldFont_21 |
| 186 | 186 | titleLbl.textColor = HexColor("#FFFFFF") |
| 187 | 187 | bgImageView.addSubview(titleLbl) |
| 188 | 188 | |
| 189 | 189 | let subTitleLbl = UILabel(frame: CGRect(x: DownSlideRecommendLeftGap, y:titleLbl.bottom , width: DownSlideSingleCourseW-DownSlideRecommendLeftGap*2, height: 30)) |
| 190 | - subTitleLbl.text = model.contents[0].subTitle ?? "适应3-6岁" | |
| 190 | + subTitleLbl.text = model.contents[0].subTitle ?? "" | |
| 191 | 191 | subTitleLbl.font = Font_12 |
| 192 | 192 | subTitleLbl.textColor = HexColor("#FFFFFF") |
| 193 | 193 | bgImageView.addSubview(subTitleLbl) | ... | ... |
metaCode/Classes/Main/HomePage/View/VerticalViews/DownSlide/CNUpSlideDetailScrollView.swift
| ... | ... | @@ -76,13 +76,13 @@ class CNUpSlideDetailScrollView: UIScrollView { |
| 76 | 76 | bgBackView.addSubview(imageView) |
| 77 | 77 | |
| 78 | 78 | let titleLbl = UILabel(frame: CGRect(x: imageView.right+DownSlideRecommendLeftGap, y: imageView.top, width: DownSlideSingleCourseW-90-imageView.right, height: 21)) |
| 79 | - titleLbl.text = contentMdl.title ?? "婴儿课程" | |
| 79 | + titleLbl.text = contentMdl.title ?? "" | |
| 80 | 80 | titleLbl.font = Font_15 |
| 81 | 81 | titleLbl.textColor = HexColor("#333333") |
| 82 | 82 | bgBackView.addSubview(titleLbl) |
| 83 | 83 | |
| 84 | 84 | let subTitleLbl = UILabel(frame: CGRect(x: titleLbl.left, y:titleLbl.bottom+3 , width: titleLbl.width, height: 17)) |
| 85 | - subTitleLbl.text = contentMdl.subTitle ?? "适应3-6岁" | |
| 85 | + subTitleLbl.text = contentMdl.subTitle ?? "" | |
| 86 | 86 | subTitleLbl.font = Font_12 |
| 87 | 87 | subTitleLbl.textColor = HexColor("#999999") |
| 88 | 88 | bgBackView.addSubview(subTitleLbl) |
| ... | ... | @@ -102,13 +102,13 @@ class CNUpSlideDetailScrollView: UIScrollView { |
| 102 | 102 | //单图课程 |
| 103 | 103 | |
| 104 | 104 | let topTitleLbl = UILabel(frame: CGRect(x: 0, y: KStatusBarHeight+DownSlideRecommendLeftGap, width:bgBackView.width - 50 , height: 30)) |
| 105 | - topTitleLbl.text = model.contents[0].title ?? "婴儿课程" | |
| 105 | + topTitleLbl.text = model.contents[0].title ?? "" | |
| 106 | 106 | topTitleLbl.font = BoldFont_21 |
| 107 | 107 | topTitleLbl.textColor = HexColor("#FFFFFF") |
| 108 | 108 | imageView.addSubview(topTitleLbl) |
| 109 | 109 | |
| 110 | 110 | let topSubTitleLbl = UILabel(frame: CGRect(x: topTitleLbl.left, y:topTitleLbl.bottom , width: topTitleLbl.width, height: 30)) |
| 111 | - topSubTitleLbl.text = model.contents[0].subTitle ?? "适应3-6岁" | |
| 111 | + topSubTitleLbl.text = model.contents[0].subTitle ?? "" | |
| 112 | 112 | topSubTitleLbl.font = Font_12 |
| 113 | 113 | topSubTitleLbl.textColor = HexColor("#FFFFFF") |
| 114 | 114 | imageView.addSubview(topSubTitleLbl) |
| ... | ... | @@ -131,13 +131,13 @@ class CNUpSlideDetailScrollView: UIScrollView { |
| 131 | 131 | bgBackView.addSubview(imgView) |
| 132 | 132 | |
| 133 | 133 | let titleLbl = UILabel(frame: CGRect(x: imgView.right+DownSlideRecommendLeftGap, y: imgView.top, width: DownSlideSingleCourseW-90-imgView.right, height: 21)) |
| 134 | - titleLbl.text = contentMdl.title ?? "婴儿课程" | |
| 134 | + titleLbl.text = contentMdl.title ?? "" | |
| 135 | 135 | titleLbl.font = Font_15 |
| 136 | 136 | titleLbl.textColor = HexColor("#333333") |
| 137 | 137 | bgBackView.addSubview(titleLbl) |
| 138 | 138 | |
| 139 | 139 | let subTitleLbl = UILabel(frame: CGRect(x: titleLbl.left, y:titleLbl.bottom+3 , width: titleLbl.width, height: 17)) |
| 140 | - subTitleLbl.text = contentMdl.subTitle ?? "适应3-6岁" | |
| 140 | + subTitleLbl.text = contentMdl.subTitle ?? "" | |
| 141 | 141 | subTitleLbl.font = Font_12 |
| 142 | 142 | subTitleLbl.textColor = HexColor("#999999") |
| 143 | 143 | bgBackView.addSubview(subTitleLbl) | ... | ... |