Commit 2d647ca1 authored by lujunye's avatar lujunye

修正收支统计bug

parent 344cc73f
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_5" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
......
......@@ -72,8 +72,8 @@ class ShouZhiTongJiViewController: BaseViewController,UITableViewDelegate,UITabl
self.bottomHolder.remove(at: 1)
}
if model.data?.expend?.temp_purchase != nil {
self.bottomArr.insert("\(model.data!.expend!.temp_purchase!)", at: 1)
self.bottomArr.remove(at: 2)
self.bottomHolder.insert("\(model.data!.expend!.temp_purchase!)", at: 1)
self.bottomHolder.remove(at: 2)
}
if model.data?.expend?.salary != nil {
self.bottomHolder.insert("\(model.data!.expend!.salary!)", at: 2)
......
......@@ -68,14 +68,16 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
self.selectionStyle = .none
}
override func layoutIfNeeded() {
super.layoutIfNeeded()
scrollView = UIScrollView(frame: scViewBg.bounds)
scViewBg.addSubview(scrollView!)
scrollView?.isPagingEnabled = true
scrollView?.showsHorizontalScrollIndicator = false
scrollView?.delegate = self
}
override func layoutIfNeeded() {
super.layoutIfNeeded()
var num = datas.count - 1
if num > 5 {
num = 5
......
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