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,13 +131,13 @@ class CNDownSlideSingleCourseCell: UITableViewCell { | ||
| 131 | bgBackView.addSubview(imageView) | 131 | bgBackView.addSubview(imageView) |
| 132 | 132 | ||
| 133 | let titleLbl = UILabel(frame: CGRect(x: imageView.right+DownSlideRecommendLeftGap, y: imageView.top, width: DownSlideSingleCourseW-90-imageView.right, height: 21)) | 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 | titleLbl.font = Font_15 | 135 | titleLbl.font = Font_15 |
| 136 | titleLbl.textColor = HexColor("#333333") | 136 | titleLbl.textColor = HexColor("#333333") |
| 137 | bgBackView.addSubview(titleLbl) | 137 | bgBackView.addSubview(titleLbl) |
| 138 | 138 | ||
| 139 | let subTitleLbl = UILabel(frame: CGRect(x: titleLbl.left, y:titleLbl.bottom+3 , width: titleLbl.width, height: 17)) | 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 | subTitleLbl.font = Font_12 | 141 | subTitleLbl.font = Font_12 |
| 142 | subTitleLbl.textColor = HexColor("#999999") | 142 | subTitleLbl.textColor = HexColor("#999999") |
| 143 | bgBackView.addSubview(subTitleLbl) | 143 | bgBackView.addSubview(subTitleLbl) |
| @@ -181,13 +181,13 @@ class CNDownSlideSingleCourseCell: UITableViewCell { | @@ -181,13 +181,13 @@ class CNDownSlideSingleCourseCell: UITableViewCell { | ||
| 181 | bgImageView.kf.setImage(with: URL(string: model.contents[0].poster ?? "")) | 181 | bgImageView.kf.setImage(with: URL(string: model.contents[0].poster ?? "")) |
| 182 | 182 | ||
| 183 | let titleLbl = UILabel(frame: CGRect(x: DownSlideRecommendLeftGap, y: DownSlideRecommendLeftGap, width: DownSlideSingleCourseW-DownSlideRecommendLeftGap*2, height: 30)) | 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 | titleLbl.font = BoldFont_21 | 185 | titleLbl.font = BoldFont_21 |
| 186 | titleLbl.textColor = HexColor("#FFFFFF") | 186 | titleLbl.textColor = HexColor("#FFFFFF") |
| 187 | bgImageView.addSubview(titleLbl) | 187 | bgImageView.addSubview(titleLbl) |
| 188 | 188 | ||
| 189 | let subTitleLbl = UILabel(frame: CGRect(x: DownSlideRecommendLeftGap, y:titleLbl.bottom , width: DownSlideSingleCourseW-DownSlideRecommendLeftGap*2, height: 30)) | 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 | subTitleLbl.font = Font_12 | 191 | subTitleLbl.font = Font_12 |
| 192 | subTitleLbl.textColor = HexColor("#FFFFFF") | 192 | subTitleLbl.textColor = HexColor("#FFFFFF") |
| 193 | bgImageView.addSubview(subTitleLbl) | 193 | bgImageView.addSubview(subTitleLbl) |
metaCode/Classes/Main/HomePage/View/VerticalViews/DownSlide/CNUpSlideDetailScrollView.swift
| @@ -76,13 +76,13 @@ class CNUpSlideDetailScrollView: UIScrollView { | @@ -76,13 +76,13 @@ class CNUpSlideDetailScrollView: UIScrollView { | ||
| 76 | bgBackView.addSubview(imageView) | 76 | bgBackView.addSubview(imageView) |
| 77 | 77 | ||
| 78 | let titleLbl = UILabel(frame: CGRect(x: imageView.right+DownSlideRecommendLeftGap, y: imageView.top, width: DownSlideSingleCourseW-90-imageView.right, height: 21)) | 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 | titleLbl.font = Font_15 | 80 | titleLbl.font = Font_15 |
| 81 | titleLbl.textColor = HexColor("#333333") | 81 | titleLbl.textColor = HexColor("#333333") |
| 82 | bgBackView.addSubview(titleLbl) | 82 | bgBackView.addSubview(titleLbl) |
| 83 | 83 | ||
| 84 | let subTitleLbl = UILabel(frame: CGRect(x: titleLbl.left, y:titleLbl.bottom+3 , width: titleLbl.width, height: 17)) | 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 | subTitleLbl.font = Font_12 | 86 | subTitleLbl.font = Font_12 |
| 87 | subTitleLbl.textColor = HexColor("#999999") | 87 | subTitleLbl.textColor = HexColor("#999999") |
| 88 | bgBackView.addSubview(subTitleLbl) | 88 | bgBackView.addSubview(subTitleLbl) |
| @@ -102,13 +102,13 @@ class CNUpSlideDetailScrollView: UIScrollView { | @@ -102,13 +102,13 @@ class CNUpSlideDetailScrollView: UIScrollView { | ||
| 102 | //单图课程 | 102 | //单图课程 |
| 103 | 103 | ||
| 104 | let topTitleLbl = UILabel(frame: CGRect(x: 0, y: KStatusBarHeight+DownSlideRecommendLeftGap, width:bgBackView.width - 50 , height: 30)) | 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 | topTitleLbl.font = BoldFont_21 | 106 | topTitleLbl.font = BoldFont_21 |
| 107 | topTitleLbl.textColor = HexColor("#FFFFFF") | 107 | topTitleLbl.textColor = HexColor("#FFFFFF") |
| 108 | imageView.addSubview(topTitleLbl) | 108 | imageView.addSubview(topTitleLbl) |
| 109 | 109 | ||
| 110 | let topSubTitleLbl = UILabel(frame: CGRect(x: topTitleLbl.left, y:topTitleLbl.bottom , width: topTitleLbl.width, height: 30)) | 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 | topSubTitleLbl.font = Font_12 | 112 | topSubTitleLbl.font = Font_12 |
| 113 | topSubTitleLbl.textColor = HexColor("#FFFFFF") | 113 | topSubTitleLbl.textColor = HexColor("#FFFFFF") |
| 114 | imageView.addSubview(topSubTitleLbl) | 114 | imageView.addSubview(topSubTitleLbl) |
| @@ -131,13 +131,13 @@ class CNUpSlideDetailScrollView: UIScrollView { | @@ -131,13 +131,13 @@ class CNUpSlideDetailScrollView: UIScrollView { | ||
| 131 | bgBackView.addSubview(imgView) | 131 | bgBackView.addSubview(imgView) |
| 132 | 132 | ||
| 133 | let titleLbl = UILabel(frame: CGRect(x: imgView.right+DownSlideRecommendLeftGap, y: imgView.top, width: DownSlideSingleCourseW-90-imgView.right, height: 21)) | 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 | titleLbl.font = Font_15 | 135 | titleLbl.font = Font_15 |
| 136 | titleLbl.textColor = HexColor("#333333") | 136 | titleLbl.textColor = HexColor("#333333") |
| 137 | bgBackView.addSubview(titleLbl) | 137 | bgBackView.addSubview(titleLbl) |
| 138 | 138 | ||
| 139 | let subTitleLbl = UILabel(frame: CGRect(x: titleLbl.left, y:titleLbl.bottom+3 , width: titleLbl.width, height: 17)) | 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 | subTitleLbl.font = Font_12 | 141 | subTitleLbl.font = Font_12 |
| 142 | subTitleLbl.textColor = HexColor("#999999") | 142 | subTitleLbl.textColor = HexColor("#999999") |
| 143 | bgBackView.addSubview(subTitleLbl) | 143 | bgBackView.addSubview(subTitleLbl) |