Commit 0e91e749ac9f53c7e1d7a4646a90afcf44f6750d

Authored by “张旭”
1 parent ec409e98

首页背景图显示不全的问题

metaCode/Classes/Main/HuBiLieHomePage/Controller/CNLiveTVHomeViewController.swift
@@ -38,14 +38,14 @@ class CNLiveTVHomeViewController:CNLiveBaseViewController, UITableViewDataSource @@ -38,14 +38,14 @@ class CNLiveTVHomeViewController:CNLiveBaseViewController, UITableViewDataSource
38 tableView.register(CNLiveHomeTwoShopCell.self, forCellReuseIdentifier: kCNLiveHomeTwoShopCellIdentifier) 38 tableView.register(CNLiveHomeTwoShopCell.self, forCellReuseIdentifier: kCNLiveHomeTwoShopCellIdentifier)
39 tableView.register(CNLiveHomeShopCategoryCell.self, forCellReuseIdentifier: kCNLiveHomeShopCategoryCellIdentifier) 39 tableView.register(CNLiveHomeShopCategoryCell.self, forCellReuseIdentifier: kCNLiveHomeShopCategoryCellIdentifier)
40 40
41 - tableView.backgroundColor = .white 41 + tableView.backgroundColor = .clear
42 return tableView 42 return tableView
43 }() 43 }()
44 44
45 45
46 lazy var iconBgImgView :UIImageView = { 46 lazy var iconBgImgView :UIImageView = {
47 let iconImgView = UIImageView(frame: CGRect(x: 0, y: 0, width: KSreenWidth, height: 295*KSreenWidth/375)) 47 let iconImgView = UIImageView(frame: CGRect(x: 0, y: 0, width: KSreenWidth, height: 295*KSreenWidth/375))
48 - iconImgView.image = UIImage(named: "yingshibg.jpg") 48 + iconImgView.image = UIImage(named: "yingshibg")
49 iconImgView.contentMode = .scaleAspectFill 49 iconImgView.contentMode = .scaleAspectFill
50 return iconImgView 50 return iconImgView
51 }() 51 }()
metaCode/Classes/Main/HuBiLieHomePage/Util/CNLivePlayerTool.swift
@@ -29,11 +29,9 @@ class CNLivePlayerTool:NSObject{ @@ -29,11 +29,9 @@ class CNLivePlayerTool:NSObject{
29 isPaid = true 29 isPaid = true
30 }else{ 30 }else{
31 //免费 31 //免费
32 -  
33 } 32 }
34 }else{ 33 }else{
35 //免费 34 //免费
36 -  
37 } 35 }
38 } 36 }
39 return isPaid 37 return isPaid
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeADCell.swift
@@ -139,7 +139,8 @@ class CNLiveHomeADCell: UITableViewCell ,FSPagerViewDataSource,FSPagerViewDelega @@ -139,7 +139,8 @@ class CNLiveHomeADCell: UITableViewCell ,FSPagerViewDataSource,FSPagerViewDelega
139 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { 139 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
140 super.init(style: style, reuseIdentifier: reuseIdentifier) 140 super.init(style: style, reuseIdentifier: reuseIdentifier)
141 self.selectionStyle = .none 141 self.selectionStyle = .none
142 - contentView.backgroundColor = .white 142 + contentView.backgroundColor = .clear
  143 + self.backgroundColor = .clear
143 contentView.clipsToBounds = true 144 contentView.clipsToBounds = true
144 145
145 self.contentView.addSubview(self.viewPager) 146 self.contentView.addSubview(self.viewPager)
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeFollowCell.swift
@@ -75,7 +75,8 @@ class CNLiveHomeFollowCell:UITableViewCell{ @@ -75,7 +75,8 @@ class CNLiveHomeFollowCell:UITableViewCell{
75 } 75 }
76 76
77 private func setupUI() { 77 private func setupUI() {
78 - contentView.backgroundColor = .white 78 + contentView.backgroundColor = .clear
  79 + self.backgroundColor = .clear
79 self.contentView.addSubview(self.followImgView) 80 self.contentView.addSubview(self.followImgView)
80 81
81 self.contentView.clipsToBounds = true 82 self.contentView.clipsToBounds = true
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeLanmuCell.swift
@@ -40,7 +40,8 @@ class CNLiveHomeLanmuCell:UITableViewCell{ @@ -40,7 +40,8 @@ class CNLiveHomeLanmuCell:UITableViewCell{
40 } 40 }
41 41
42 private func setupUI() { 42 private func setupUI() {
43 - contentView.backgroundColor = .white 43 + contentView.backgroundColor = .clear
  44 + self.backgroundColor = .clear
44 self.contentView.clipsToBounds = true 45 self.contentView.clipsToBounds = true
45 } 46 }
46 47
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeOneBigTwoSmallCell.swift
@@ -279,7 +279,8 @@ class CNLiveHomeOneBigTwoSmallCell:UITableViewCell{ @@ -279,7 +279,8 @@ class CNLiveHomeOneBigTwoSmallCell:UITableViewCell{
279 } 279 }
280 280
281 private func setupUI() { 281 private func setupUI() {
282 - contentView.backgroundColor = .white 282 + contentView.backgroundColor = .clear
  283 + self.backgroundColor = .clear
283 284
284 self.contentView.addSubview(self.titleLabel) 285 self.contentView.addSubview(self.titleLabel)
285 self.contentView.addSubview(self.detailBtn) 286 self.contentView.addSubview(self.detailBtn)
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeShopCategoryCell.swift
@@ -36,7 +36,8 @@ class CNLiveHomeShopCategoryCell:UITableViewCell{ @@ -36,7 +36,8 @@ class CNLiveHomeShopCategoryCell:UITableViewCell{
36 } 36 }
37 37
38 private func setupUI() { 38 private func setupUI() {
39 - contentView.backgroundColor = .white 39 + contentView.backgroundColor = .clear
  40 + self.backgroundColor = .clear
40 self.contentView.clipsToBounds = true 41 self.contentView.clipsToBounds = true
41 } 42 }
42 43
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoDuanjuCell.swift
@@ -58,7 +58,8 @@ class CNLiveHomeTwoDuanjuCell:UITableViewCell{ @@ -58,7 +58,8 @@ class CNLiveHomeTwoDuanjuCell:UITableViewCell{
58 } 58 }
59 59
60 private func setupUI() { 60 private func setupUI() {
61 - contentView.backgroundColor = .white 61 + contentView.backgroundColor = .clear
  62 + self.backgroundColor = .clear
62 self.contentView.addSubview(self.titleLabel) 63 self.contentView.addSubview(self.titleLabel)
63 self.contentView.addSubview(self.detailBtn) 64 self.contentView.addSubview(self.detailBtn)
64 65
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoHengTuCell.swift
@@ -57,7 +57,8 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell { @@ -57,7 +57,8 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell {
57 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { 57 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
58 super.init(style: style, reuseIdentifier: reuseIdentifier) 58 super.init(style: style, reuseIdentifier: reuseIdentifier)
59 self.selectionStyle = .none 59 self.selectionStyle = .none
60 - contentView.backgroundColor = .white 60 + contentView.backgroundColor = .clear
  61 + self.backgroundColor = .clear
61 contentView.clipsToBounds = true 62 contentView.clipsToBounds = true
62 } 63 }
63 64
@@ -87,6 +88,7 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell { @@ -87,6 +88,7 @@ class CNLiveHomeTwoHengTuCell: UITableViewCell {
87 payIconView.image = UIImage(named: "home_player_pay") 88 payIconView.image = UIImage(named: "home_player_pay")
88 payIconView.frame = CGRect(x: 0, y: 0, width: 26, height: 15) 89 payIconView.frame = CGRect(x: 0, y: 0, width: 26, height: 15)
89 imageView.addSubview(payIconView) 90 imageView.addSubview(payIconView)
  91 + payIconView.isHidden = true
90 92
91 let grayBgView = UIView(frame: CGRect(x: imageView.left, y: imageView.bottom, width: imageView.width, height: grayH)) 93 let grayBgView = UIView(frame: CGRect(x: imageView.left, y: imageView.bottom, width: imageView.width, height: grayH))
92 grayBgView.backgroundColor = HexColor("#FAFAFA") 94 grayBgView.backgroundColor = HexColor("#FAFAFA")
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeTwoShopCell.swift
@@ -46,7 +46,8 @@ class CNLiveHomeTwoShopCell: UITableViewCell { @@ -46,7 +46,8 @@ class CNLiveHomeTwoShopCell: UITableViewCell {
46 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { 46 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
47 super.init(style: style, reuseIdentifier: reuseIdentifier) 47 super.init(style: style, reuseIdentifier: reuseIdentifier)
48 self.selectionStyle = .none 48 self.selectionStyle = .none
49 - contentView.backgroundColor = .white 49 + contentView.backgroundColor = .clear
  50 + self.backgroundColor = .clear
50 contentView.clipsToBounds = true 51 contentView.clipsToBounds = true
51 contentView.addSubview(self.titleLabel) 52 contentView.addSubview(self.titleLabel)
52 contentView.addSubview(self.detailBtn) 53 contentView.addSubview(self.detailBtn)
metaCode/Classes/Main/HuBiLieHomePage/View/Home/Home/CNLiveHomeYingshiBannerCell.swift
@@ -68,7 +68,8 @@ class CNLiveHomeYingshiBannerCell: UITableViewCell ,FSPagerViewDataSource,FSPage @@ -68,7 +68,8 @@ class CNLiveHomeYingshiBannerCell: UITableViewCell ,FSPagerViewDataSource,FSPage
68 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { 68 override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
69 super.init(style: style, reuseIdentifier: reuseIdentifier) 69 super.init(style: style, reuseIdentifier: reuseIdentifier)
70 self.selectionStyle = .none 70 self.selectionStyle = .none
71 - contentView.backgroundColor = .white 71 + contentView.backgroundColor = .clear
  72 + self.backgroundColor = .clear
72 contentView.clipsToBounds = true 73 contentView.clipsToBounds = true
73 74
74 self.contentView.addSubview(self.viewPager) 75 self.contentView.addSubview(self.viewPager)