Commit 5dce3557 authored by Alex朱枝文's avatar Alex朱枝文

UI走查bug修复

parent 4c8dccf0
...@@ -192,12 +192,12 @@ class YHCommunityViewController: YHBaseViewController { ...@@ -192,12 +192,12 @@ class YHCommunityViewController: YHBaseViewController {
segmentedView.delegate = self segmentedView.delegate = self
// 配置指示器 // 配置指示器
let indicator = JXSegmentedIndicatorLineView() // let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16 // indicator.indicatorWidth = 16
indicator.indicatorHeight = 2 // indicator.indicatorHeight = 2
indicator.indicatorCornerRadius = 0.0 // indicator.indicatorCornerRadius = 0.0
indicator.indicatorColor = UIColor.white // indicator.indicatorColor = UIColor.white
segmentedView.indicators = [indicator] // segmentedView.indicators = [indicator]
segmentedView.defaultSelectedIndex = defaltIndex segmentedView.defaultSelectedIndex = defaltIndex
segmentedView(segmentedView, didSelectedItemAt: defaltIndex) segmentedView(segmentedView, didSelectedItemAt: defaltIndex)
...@@ -359,12 +359,12 @@ extension YHCommunityViewController: JXSegmentedViewDelegate { ...@@ -359,12 +359,12 @@ extension YHCommunityViewController: JXSegmentedViewDelegate {
cleanAllMsgBtn.isHidden = segmentedView.selectedIndex != 0 cleanAllMsgBtn.isHidden = segmentedView.selectedIndex != 0
segmentedDataSource.titleNormalColor = UIColor.yhGreyColor segmentedDataSource.titleNormalColor = UIColor.yhGreyColor
segmentedDataSource.titleSelectedColor = UIColor.mainTextColor segmentedDataSource.titleSelectedColor = UIColor.mainTextColor
let indicator = JXSegmentedIndicatorLineView() // let indicator = JXSegmentedIndicatorLineView()
indicator.indicatorWidth = 16 // indicator.indicatorWidth = 16
indicator.indicatorHeight = 2 // indicator.indicatorHeight = 2
indicator.indicatorCornerRadius = 0.0 // indicator.indicatorCornerRadius = 0.0
indicator.indicatorColor = UIColor.brandMainColor // indicator.indicatorColor = UIColor.brandMainColor
segmentedView.indicators = [indicator] // segmentedView.indicators = [indicator]
// } // }
segmentedView.dataSource = segmentedDataSource segmentedView.dataSource = segmentedDataSource
self.segmentedView.reloadDataWithoutListContainer() self.segmentedView.reloadDataWithoutListContainer()
......
...@@ -180,7 +180,7 @@ private extension YHResourceViewController { ...@@ -180,7 +180,7 @@ private extension YHResourceViewController {
func setupUI() { func setupUI() {
gk_navigationBar.isHidden = true gk_navigationBar.isHidden = true
view.backgroundColor = UIColor.contentBkgColor view.backgroundColor = UIColor.white
// 添加子视图 // 添加子视图
view.addSubview(customSearchView) view.addSubview(customSearchView)
......
...@@ -61,11 +61,11 @@ class YHResourceDetailBaseInfoCell: UITableViewCell { ...@@ -61,11 +61,11 @@ class YHResourceDetailBaseInfoCell: UITableViewCell {
make.right.equalToSuperview().offset(-20) make.right.equalToSuperview().offset(-20)
make.top.equalTo(titleLabel.snp.bottom).offset(16) make.top.equalTo(titleLabel.snp.bottom).offset(16)
} }
let pixelOne = 1.0 / UIScreen.main.scale
dividerView.snp.makeConstraints { make in dividerView.snp.makeConstraints { make in
make.left.right.equalToSuperview().inset(20) make.left.right.equalToSuperview().inset(20)
make.top.equalTo(stackView.snp.bottom).offset(24) make.top.equalTo(stackView.snp.bottom).offset(24)
make.height.equalTo(1) make.height.equalTo(pixelOne)
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
} }
} }
......
...@@ -76,11 +76,11 @@ class YHResourceDetailDemandCell: UITableViewCell { ...@@ -76,11 +76,11 @@ class YHResourceDetailDemandCell: UITableViewCell {
make.right.equalToSuperview().offset(-20) make.right.equalToSuperview().offset(-20)
make.top.equalTo(demandTitleLabel) make.top.equalTo(demandTitleLabel)
} }
let pixelOne = 1.0 / UIScreen.main.scale
dividerView.snp.makeConstraints { make in dividerView.snp.makeConstraints { make in
make.left.right.equalToSuperview().inset(20) make.left.right.equalToSuperview().inset(20)
make.top.equalTo(demandContentLabel.snp.bottom).offset(24) make.top.equalTo(demandContentLabel.snp.bottom).offset(24)
make.height.equalTo(1) make.height.equalTo(pixelOne)
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
} }
} }
......
...@@ -80,10 +80,10 @@ class YHResourceDetailHeaderCell: UITableViewCell { ...@@ -80,10 +80,10 @@ class YHResourceDetailHeaderCell: UITableViewCell {
if !model.companyLogoUrl.isEmpty { if !model.companyLogoUrl.isEmpty {
logoImageView.kf.setImage( logoImageView.kf.setImage(
with: URL(string: model.companyLogoUrl), with: URL(string: model.companyLogoUrl),
placeholder: UIImage(named: "global_default_image") placeholder: UIImage(named: "plan_product_default")
) )
} else { } else {
logoImageView.image = UIImage(named: "global_default_image") logoImageView.image = UIImage(named: "plan_product_default")
} }
// 设置公司名称 // 设置公司名称
......
...@@ -51,8 +51,7 @@ class YHResourceTableViewCell: UITableViewCell { ...@@ -51,8 +51,7 @@ class YHResourceTableViewCell: UITableViewCell {
imageView.layer.cornerRadius = 4 imageView.layer.cornerRadius = 4
imageView.clipsToBounds = true imageView.clipsToBounds = true
imageView.layer.borderColor = UIColor.brandGrayColor3.cgColor imageView.layer.borderColor = UIColor.brandGrayColor3.cgColor
imageView.layer.borderWidth = 1 imageView.layer.borderWidth = 0.5
imageView.backgroundColor = UIColor.lightGray.withAlphaComponent(0.3)
return imageView return imageView
}() }()
...@@ -80,8 +79,8 @@ class YHResourceTableViewCell: UITableViewCell { ...@@ -80,8 +79,8 @@ class YHResourceTableViewCell: UITableViewCell {
// 公司名称 // 公司名称
lazy var companyLabel: UILabel = { lazy var companyLabel: UILabel = {
let label = UILabel() let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor.gray label.textColor = UIColor.brandGrayColor7
label.numberOfLines = 1 label.numberOfLines = 1
return label return label
}() }()
...@@ -89,8 +88,8 @@ class YHResourceTableViewCell: UITableViewCell { ...@@ -89,8 +88,8 @@ class YHResourceTableViewCell: UITableViewCell {
// 行业标签 // 行业标签
lazy var industryLabel: UILabel = { lazy var industryLabel: UILabel = {
let label = UILabel() let label = UILabel()
label.font = UIFont.PFSC_R(ofSize: 14) label.font = UIFont.PFSC_R(ofSize: 12)
label.textColor = UIColor.gray label.textColor = UIColor.brandGrayColor7
label.numberOfLines = 1 label.numberOfLines = 1
return label return label
}() }()
...@@ -173,12 +172,12 @@ extension YHResourceTableViewCell { ...@@ -173,12 +172,12 @@ extension YHResourceTableViewCell {
make.top.equalTo(companyLabel) make.top.equalTo(companyLabel)
make.bottom.equalToSuperview().offset(-32) make.bottom.equalToSuperview().offset(-32)
} }
let pixelOne = 1.0 / UIScreen.main.scale
// 分割线约束 // 分割线约束
separatorLine.snp.makeConstraints { make in separatorLine.snp.makeConstraints { make in
make.bottom.equalToSuperview() make.bottom.equalToSuperview()
make.left.right.equalToSuperview().inset(20) make.left.right.equalToSuperview().inset(20)
make.height.equalTo(0.5) make.height.equalTo(pixelOne)
} }
} }
......
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