Commit b096ad32 authored by lujunye's avatar lujunye

货拉拉界面合并

parent 17c75f24
...@@ -271,7 +271,7 @@ ...@@ -271,7 +271,7 @@
</label> </label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" estimatedSectionHeaderHeight="-1" sectionFooterHeight="18" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="IhS-vZ-6YK"> <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" estimatedSectionHeaderHeight="-1" sectionFooterHeight="18" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="IhS-vZ-6YK">
<rect key="frame" x="0.0" y="44" width="414" height="714"/> <rect key="frame" x="0.0" y="44" width="414" height="714"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" name="app底色"/>
<connections> <connections>
<outlet property="dataSource" destination="-1" id="VHp-ja-2wO"/> <outlet property="dataSource" destination="-1" id="VHp-ja-2wO"/>
<outlet property="delegate" destination="-1" id="atq-MI-T7V"/> <outlet property="delegate" destination="-1" id="atq-MI-T7V"/>
......
...@@ -488,8 +488,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -488,8 +488,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
// HUD.flash(.label("敬请期待"),delay: 1.2) // HUD.flash(.label("敬请期待"),delay: 1.2)
// return // return
// let vc = XiaYunDanViewController() let vc = XiaYunDanViewController()
let vc = ShouZhiTongJiViewController() // let vc = ShouZhiTongJiViewController()
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
return return
case 76: //收支详情 case 76: //收支详情
......
...@@ -40,7 +40,11 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate { ...@@ -40,7 +40,11 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
if scrollView.contentOffset.x/scViewBg.bounds.size.width <= 0 { if scrollView.contentOffset.x/scViewBg.bounds.size.width <= 0 {
leftBtn.isHidden = true leftBtn.isHidden = true
} }
if scrollView.contentOffset.x/scViewBg.bounds.size.width >= CGFloat(datas.count-1) { var num = datas.count-1
if num > 4 {
num = 4
}
if scrollView.contentOffset.x/scViewBg.bounds.size.width >= CGFloat(num) {
rightBtn.isHidden = true rightBtn.isHidden = true
} }
...@@ -72,9 +76,13 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate { ...@@ -72,9 +76,13 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
} }
override func layoutIfNeeded() { override func layoutIfNeeded() {
super.layoutIfNeeded() super.layoutIfNeeded()
scrollView?.contentSize = CGSize(width: (scViewBg.bounds.size.width) * CGFloat(datas.count), height: (scViewBg.bounds.size.height)) var num = datas.count - 1
if num > 5 {
num = 5
}
scrollView?.contentSize = CGSize(width: (scViewBg.bounds.size.width) * CGFloat(num), height: (scViewBg.bounds.size.height))
for i in 0 ..< datas.count{ for i in 0 ..< num{
let view = UIView(frame: CGRect(x: CGFloat(i) * (scViewBg.bounds.size.width), y:0, width: scViewBg.bounds.size.width, height: scViewBg.bounds.size.height)) let view = UIView(frame: CGRect(x: CGFloat(i) * (scViewBg.bounds.size.width), y:0, width: scViewBg.bounds.size.width, height: scViewBg.bounds.size.height))
if i % 2 == 0 { if i % 2 == 0 {
view.backgroundColor = UIColor.blue view.backgroundColor = UIColor.blue
......
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