Commit 1ead029c authored by pete谢兆麟's avatar pete谢兆麟

细节修改

parent 02908ca0
......@@ -232,9 +232,7 @@ extension YHInvitationWithGiftsSelectItemView: UITableViewDelegate, UITableViewD
cell.block = {[weak self] index in
if indexPath.section == 0 {
self?.selectOne = index
if index == 3 {
self?.tableView.reloadData()
}
} else {
self?.selectTwo = index
}
......@@ -422,6 +420,14 @@ class YHInvitationWithGiftsSelectItemCell: UITableViewCell {
}
@objc func click(sender: UIButton) {
if selectIndex == sender.tag - 1000 {
sender.isSelected = false
sender.layer.borderWidth = 0
if let block = block {
block(100)
}
return
}
guard let data = dataSource else { return }
for i in 0..<data.count {
let button = centerView.viewWithTag(1000+i) as! UIButton
......@@ -433,6 +439,7 @@ class YHInvitationWithGiftsSelectItemCell: UITableViewCell {
button.layer.borderWidth = 0
}
}
selectIndex = sender.tag - 1000
if let block = block {
block(sender.tag - 1000)
}
......
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