Commit 4351a1a6 authored by lujunye's avatar lujunye

补充出库批次界面信息

parent 271433da
......@@ -34,6 +34,7 @@ class CKGmCell: UITableViewCell {
// Initialization code
}
let scrollView = UIScrollView()
let remind_lbl = UILabel()
override func layoutIfNeeded() {
let colorName = "#F3F4F8"
scrollView.bounces = true
......@@ -153,6 +154,12 @@ class CKGmCell: UITableViewCell {
scrollView.contentSize = CGSize(width: 495.0, height: 38.5 + 30.0 * CGFloat(dataArr!.count))
scrollView.isScrollEnabled = true
super.layoutIfNeeded()
remind_lbl.frame = CGRect(x: scrollView.frame.minX, y: scrollView.frame.maxY+7, width: 200, height: 15)
remind_lbl.text = "*滑动查看更多信息"
self.contentView.addSubview(remind_lbl)
remind_lbl.font = UIFont.systemFont(ofSize: 11)
remind_lbl.textColor = UIColor(named:"#F57575")
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
......
......@@ -320,8 +320,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
if arr!.count > 0 {
cell.dataArr = arr
cell.scrollView.isHidden = false
cell.remind_lbl.isHidden = false
}else{
cell.scrollView.isHidden = true
cell.remind_lbl.isHidden = true
}
return cell
}
......@@ -380,11 +382,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
if isGm {
let arr = piCiArr![indexPath.row]
if arr.count > 0 {
return CGFloat(140 + arr.count * 30 + 40)
return CGFloat(140 + arr.count * 30 + 60)
}else{
return 140
}
}
return 139
}
......
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