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

UI走查bug修复

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