Commit f01d6ddd authored by pete谢兆麟's avatar pete谢兆麟

UI走查

parent 33c9f14c
...@@ -60,7 +60,7 @@ class YHInvitationWithGiftsViewModel: YHBaseViewModel { ...@@ -60,7 +60,7 @@ class YHInvitationWithGiftsViewModel: YHBaseViewModel {
func postRecord(page: Int, callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) { func postRecord(page: Int, callBackBlock:@escaping (_ success: Bool,_ error:YHErrorModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Share.record let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Share.record
let param: [String: Any] = ["page": 1, let param: [String: Any] = ["page": page,
"pagesize": 20] "pagesize": 20]
let _ = YHNetRequest.postRequest(url: strUrl, params: param) { [weak self] json, code in let _ = YHNetRequest.postRequest(url: strUrl, params: param) { [weak self] json, code in
guard let self = self else { return } guard let self = self else { return }
......
...@@ -54,7 +54,7 @@ extension YHLifeViewController { ...@@ -54,7 +54,7 @@ extension YHLifeViewController {
let label = UILabel(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: self.view.height - 44 - KScreenWidth - 16)) let label = UILabel(frame: CGRect(x: 0, y: 0, width: KScreenWidth, height: self.view.height - 44 - KScreenWidth - 16))
label.text = "商品未上架,好货不怕晚,敬请期待!" label.text = "商品未上架,好货不怕晚,敬请期待!"
label.textColor = UIColor.mainTextColor30 label.textColor = UIColor.mainTextColor30
label.font = UIFont.PFSC_M(ofSize: 14) label.font = UIFont.PFSC_L(ofSize: 14)
label.textAlignment = .center label.textAlignment = .center
self.tableView.tableFooterView = label self.tableView.tableFooterView = label
} else { } else {
...@@ -83,7 +83,7 @@ extension YHLifeViewController { ...@@ -83,7 +83,7 @@ extension YHLifeViewController {
make.top.left.right.equalToSuperview() make.top.left.right.equalToSuperview()
make.height.equalTo(44) make.height.equalTo(44)
} }
headView.frame = CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenWidth + 16) headView.frame = CGRect(x: 0, y: 0, width: KScreenWidth, height: KScreenWidth + 28)
tableView = { tableView = {
let tableView = UITableView(frame: .zero, style: .grouped) let tableView = UITableView(frame: .zero, style: .grouped)
tableView.contentInsetAdjustmentBehavior = .never tableView.contentInsetAdjustmentBehavior = .never
......
...@@ -27,7 +27,7 @@ class YHLifeHeadView: UIView { ...@@ -27,7 +27,7 @@ class YHLifeHeadView: UIView {
imageView.snp.makeConstraints { make in imageView.snp.makeConstraints { make in
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
make.top.equalTo(8) make.top.equalTo(8)
make.bottom.equalTo(-8) make.height.equalTo(KScreenWidth)
} }
} }
......
...@@ -52,7 +52,7 @@ class YHLifeItemTableViewCell: UITableViewCell { ...@@ -52,7 +52,7 @@ class YHLifeItemTableViewCell: UITableViewCell {
contentView.addSubview(centerImageView) contentView.addSubview(centerImageView)
centerImageView.snp.makeConstraints { make in centerImageView.snp.makeConstraints { make in
make.centerY.equalToSuperview() make.centerY.equalToSuperview()
make.left.equalTo(12) make.left.equalTo(20)
make.height.width.equalTo(100) make.height.width.equalTo(100)
} }
...@@ -72,7 +72,7 @@ class YHLifeItemTableViewCell: UITableViewCell { ...@@ -72,7 +72,7 @@ class YHLifeItemTableViewCell: UITableViewCell {
subTitleLabel = { subTitleLabel = {
let view = UILabel() let view = UILabel()
view.font = UIFont.PFSC_M(ofSize: 14) view.font = UIFont.PFSC_L(ofSize: 14)
view.textColor = UIColor.mainTextColor50 view.textColor = UIColor.mainTextColor50
view.numberOfLines = 2 view.numberOfLines = 2
return view return view
......
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