Commit 524b8a45 authored by pete谢兆麟's avatar pete谢兆麟

逻辑修改

parent b56a3902
...@@ -189,6 +189,7 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -189,6 +189,7 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource {
cell.titleLabel.text = "投资联系提升" cell.titleLabel.text = "投资联系提升"
} }
cell.dataSource = dataSource cell.dataSource = dataSource
cell.index = indexPath.row
cell.actionHandler = { product in cell.actionHandler = { product in
self.viewModel.makePlanModel.toggleAddCartStatus(for: product) self.viewModel.makePlanModel.toggleAddCartStatus(for: product)
self.updataPrice() self.updataPrice()
...@@ -210,7 +211,11 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -210,7 +211,11 @@ extension YHMakePlanViewController: UITableViewDelegate, UITableViewDataSource {
count = viewModel.makePlanModel.invest.count count = viewModel.makePlanModel.invest.count
} }
if count == 0 { if count == 0 {
return 168 + 32 if indexPath.row == 0 {
return 168 + 32
} else {
return 188 + 32
}
} }
return CGFloat(36 + 16 + 118 * count) return CGFloat(36 + 16 + 118 * count)
} }
......
...@@ -14,7 +14,19 @@ class YHMakePlanCell: UITableViewCell { ...@@ -14,7 +14,19 @@ class YHMakePlanCell: UITableViewCell {
var titleLabel: UILabel! var titleLabel: UILabel!
var mainItemView: UIView! var mainItemView: UIView!
var country: String = "" var country: String = ""
var index: Int = 0 {
didSet {
if index == 0 {
noDataView.tipsLabel.text = "您已满足续签至永居服务~"
} else if index == 1 {
noDataView.tipsLabel.text = "暂未推荐香港工作相关产品,详情请咨询您的专属顾问"
} else if index == 2 {
noDataView.tipsLabel.text = "暂未推荐香港工作相关产品,详情请咨询您的专属顾问"
} else if index == 3 {
noDataView.tipsLabel.text = "暂未推荐投资相关产品,详情请咨询您的专属顾问"
}
}
}
lazy var noDataView: YHEmptyDataView = { lazy var noDataView: YHEmptyDataView = {
let view = YHEmptyDataView.createView("您已满足续签至永居服务~", kNoPlanBgName) let view = YHEmptyDataView.createView("您已满足续签至永居服务~", kNoPlanBgName)
view.frame = CGRect(x: 0, y: 36, width: KScreenWidth - 32, height: 116) view.frame = CGRect(x: 0, y: 36, width: KScreenWidth - 32, height: 116)
...@@ -27,9 +39,10 @@ class YHMakePlanCell: UITableViewCell { ...@@ -27,9 +39,10 @@ class YHMakePlanCell: UITableViewCell {
} }
view.tipsLabel.snp.remakeConstraints { make in view.tipsLabel.snp.remakeConstraints { make in
make.top.equalTo(view.emptyBgImgV.snp.bottom) make.top.equalTo(view.emptyBgImgV.snp.bottom)
make.height.equalTo(20) make.left.equalTo(20)
make.centerX.equalTo(view) make.right.equalTo(-20)
} }
view.tipsLabel.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