Commit 66621a1d authored by lujunye's avatar lujunye

收支统计,分类cell

parent 538d5d51
...@@ -145,6 +145,14 @@ ...@@ -145,6 +145,14 @@
E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E82A24555D8600D6DB34 /* KuCunXiangQingCell.xib */; }; E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E82A24555D8600D6DB34 /* KuCunXiangQingCell.xib */; };
E0A320C52456D01300AF321C /* DaiKeXiaDanFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */; }; E0A320C52456D01300AF321C /* DaiKeXiaDanFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */; };
E0A320C72456D01D00AF321C /* DaiKeXiaDanFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */; }; E0A320C72456D01D00AF321C /* DaiKeXiaDanFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */; };
E0A409C32463F31600CFF109 /* ShouZhiTongJiViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A409C12463F31600CFF109 /* ShouZhiTongJiViewController.swift */; };
E0A409C42463F31600CFF109 /* ShouZhiTongJiViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A409C22463F31600CFF109 /* ShouZhiTongJiViewController.xib */; };
E0A409C82464010D00CFF109 /* FirstCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A409C62464010D00CFF109 /* FirstCell.swift */; };
E0A409C92464010D00CFF109 /* FirstCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A409C72464010D00CFF109 /* FirstCell.xib */; };
E0A409CC2464026B00CFF109 /* SecondCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A409CA2464026B00CFF109 /* SecondCell.swift */; };
E0A409CD2464026B00CFF109 /* SecondCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A409CB2464026B00CFF109 /* SecondCell.xib */; };
E0A409D02464041200CFF109 /* ThirdCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A409CE2464041200CFF109 /* ThirdCell.swift */; };
E0A409D12464041200CFF109 /* ThirdCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A409CF2464041200CFF109 /* ThirdCell.xib */; };
E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */; }; E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */; };
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; }; E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; };
E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B6036C244D376900A56B38 /* KuWeiCell.swift */; }; E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B6036C244D376900A56B38 /* KuWeiCell.swift */; };
...@@ -495,6 +503,14 @@ ...@@ -495,6 +503,14 @@
E0A2E82A24555D8600D6DB34 /* KuCunXiangQingCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KuCunXiangQingCell.xib; sourceTree = "<group>"; }; E0A2E82A24555D8600D6DB34 /* KuCunXiangQingCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KuCunXiangQingCell.xib; sourceTree = "<group>"; };
E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DaiKeXiaDanFooterView.swift; sourceTree = "<group>"; }; E0A320C42456D01300AF321C /* DaiKeXiaDanFooterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DaiKeXiaDanFooterView.swift; sourceTree = "<group>"; };
E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DaiKeXiaDanFooterView.xib; sourceTree = "<group>"; }; E0A320C62456D01D00AF321C /* DaiKeXiaDanFooterView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DaiKeXiaDanFooterView.xib; sourceTree = "<group>"; };
E0A409C12463F31600CFF109 /* ShouZhiTongJiViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShouZhiTongJiViewController.swift; sourceTree = "<group>"; };
E0A409C22463F31600CFF109 /* ShouZhiTongJiViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ShouZhiTongJiViewController.xib; sourceTree = "<group>"; };
E0A409C62464010D00CFF109 /* FirstCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstCell.swift; sourceTree = "<group>"; };
E0A409C72464010D00CFF109 /* FirstCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = FirstCell.xib; sourceTree = "<group>"; };
E0A409CA2464026B00CFF109 /* SecondCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecondCell.swift; sourceTree = "<group>"; };
E0A409CB2464026B00CFF109 /* SecondCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SecondCell.xib; sourceTree = "<group>"; };
E0A409CE2464041200CFF109 /* ThirdCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThirdCell.swift; sourceTree = "<group>"; };
E0A409CF2464041200CFF109 /* ThirdCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ThirdCell.xib; sourceTree = "<group>"; };
E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckWareHourseViewController.swift; sourceTree = "<group>"; }; E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckWareHourseViewController.swift; sourceTree = "<group>"; };
E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckWareHourseViewController.xib; sourceTree = "<group>"; }; E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckWareHourseViewController.xib; sourceTree = "<group>"; };
E0B6036C244D376900A56B38 /* KuWeiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuWeiCell.swift; sourceTree = "<group>"; }; E0B6036C244D376900A56B38 /* KuWeiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuWeiCell.swift; sourceTree = "<group>"; };
...@@ -1159,6 +1175,8 @@ ...@@ -1159,6 +1175,8 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = { E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
E0A409C5246400BA00CFF109 /* 分类Cell */,
E0A409C02463F2F400CFF109 /* 收支统计 */,
F94A315024626D4000FEC38E /* 工作中心 */, F94A315024626D4000FEC38E /* 工作中心 */,
E0707DC82462475700E039A8 /* 地图 */, E0707DC82462475700E039A8 /* 地图 */,
E0BE8A8D245A9B6500E80134 /* 应付账款 */, E0BE8A8D245A9B6500E80134 /* 应付账款 */,
...@@ -1292,6 +1310,28 @@ ...@@ -1292,6 +1310,28 @@
path = "库存商品"; path = "库存商品";
sourceTree = "<group>"; sourceTree = "<group>";
}; };
E0A409C02463F2F400CFF109 /* 收支统计 */ = {
isa = PBXGroup;
children = (
E0A409C12463F31600CFF109 /* ShouZhiTongJiViewController.swift */,
E0A409C22463F31600CFF109 /* ShouZhiTongJiViewController.xib */,
);
path = "收支统计";
sourceTree = "<group>";
};
E0A409C5246400BA00CFF109 /* 分类Cell */ = {
isa = PBXGroup;
children = (
E0A409C62464010D00CFF109 /* FirstCell.swift */,
E0A409C72464010D00CFF109 /* FirstCell.xib */,
E0A409CA2464026B00CFF109 /* SecondCell.swift */,
E0A409CB2464026B00CFF109 /* SecondCell.xib */,
E0A409CE2464041200CFF109 /* ThirdCell.swift */,
E0A409CF2464041200CFF109 /* ThirdCell.xib */,
);
path = "分类Cell";
sourceTree = "<group>";
};
E0A75479244A894200A84B67 /* 新增、编辑(查看)仓库 */ = { E0A75479244A894200A84B67 /* 新增、编辑(查看)仓库 */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -1865,6 +1905,7 @@ ...@@ -1865,6 +1905,7 @@
F9956B1C2463D941001A617D /* WorkSelectTimeView.xib in Resources */, F9956B1C2463D941001A617D /* WorkSelectTimeView.xib in Resources */,
E09B03B72445B85A00211A51 /* LoginViewController.xib in Resources */, E09B03B72445B85A00211A51 /* LoginViewController.xib in Resources */,
E09F4C9E2452BEBB00BE033D /* JiPaiFangShiViewController.xib in Resources */, E09F4C9E2452BEBB00BE033D /* JiPaiFangShiViewController.xib in Resources */,
E0A409D12464041200CFF109 /* ThirdCell.xib in Resources */,
E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */, E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */,
E06524EE2458008900CA22E2 /* RuKuViewController.xib in Resources */, E06524EE2458008900CA22E2 /* RuKuViewController.xib in Resources */,
E06524F624580BB600CA22E2 /* BaoZhiQiCell.xib in Resources */, E06524F624580BB600CA22E2 /* BaoZhiQiCell.xib in Resources */,
...@@ -1878,12 +1919,14 @@ ...@@ -1878,12 +1919,14 @@
E0B946282456775000FBEC9A /* DaiKeXiaDanGouWuCell.xib in Resources */, E0B946282456775000FBEC9A /* DaiKeXiaDanGouWuCell.xib in Resources */,
E0B6036F244D376900A56B38 /* KuWeiCell.xib in Resources */, E0B6036F244D376900A56B38 /* KuWeiCell.xib in Resources */,
E0273DDA24551B6D00B3FCAE /* SendTimeSelectView.xib in Resources */, E0273DDA24551B6D00B3FCAE /* SendTimeSelectView.xib in Resources */,
E0A409C42463F31600CFF109 /* ShouZhiTongJiViewController.xib in Resources */,
E01C26B72446AF3100ADCC70 /* DemoViewController.xib in Resources */, E01C26B72446AF3100ADCC70 /* DemoViewController.xib in Resources */,
F9DDBE972457D3EC00A32CB2 /* WebViewController.xib in Resources */, F9DDBE972457D3EC00A32CB2 /* WebViewController.xib in Resources */,
E0F97B0424512299001BD600 /* GLAlertSelectView.xib in Resources */, E0F97B0424512299001BD600 /* GLAlertSelectView.xib in Resources */,
F9023F6E2449A9B100DD5A63 /* TitleAndTFCell.xib in Resources */, F9023F6E2449A9B100DD5A63 /* TitleAndTFCell.xib in Resources */,
F94A315424626D7800FEC38E /* WorkCViewController.xib in Resources */, F94A315424626D7800FEC38E /* WorkCViewController.xib in Resources */,
E042F7392452766100CDFA12 /* AdressSelectCell.xib in Resources */, E042F7392452766100CDFA12 /* AdressSelectCell.xib in Resources */,
E0A409C92464010D00CFF109 /* FirstCell.xib in Resources */,
E00E48C32457C0D600F16545 /* XuanZeShangPinViewController.xib in Resources */, E00E48C32457C0D600F16545 /* XuanZeShangPinViewController.xib in Resources */,
F9023F6A2449A50900DD5A63 /* TitleContentCell.xib in Resources */, F9023F6A2449A50900DD5A63 /* TitleContentCell.xib in Resources */,
E0516F782448003D00E373CE /* PayViewController.xib in Resources */, E0516F782448003D00E373CE /* PayViewController.xib in Resources */,
...@@ -1931,6 +1974,7 @@ ...@@ -1931,6 +1974,7 @@
F961D27524503CCF007FBE70 /* OrderSelectMoreView.xib in Resources */, F961D27524503CCF007FBE70 /* OrderSelectMoreView.xib in Resources */,
E042F74524529B8500CDFA12 /* JiTuoWuXinXiView.xib in Resources */, E042F74524529B8500CDFA12 /* JiTuoWuXinXiView.xib in Resources */,
E01C26B12446989700ADCC70 /* Interface_Z.plist in Resources */, E01C26B12446989700ADCC70 /* Interface_Z.plist in Resources */,
E0A409CD2464026B00CFF109 /* SecondCell.xib in Resources */,
F95A9EEA24558B8800867849 /* ShowAlGoodsViewController.xib in Resources */, F95A9EEA24558B8800867849 /* ShowAlGoodsViewController.xib in Resources */,
F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */, F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */,
E0D4166524483058008DCAB4 /* ChangePassViewController.xib in Resources */, E0D4166524483058008DCAB4 /* ChangePassViewController.xib in Resources */,
...@@ -2035,10 +2079,12 @@ ...@@ -2035,10 +2079,12 @@
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
E0A409C32463F31600CFF109 /* ShouZhiTongJiViewController.swift in Sources */,
F950FDE624518B9500C40530 /* FSCalendarAppearance.m in Sources */, F950FDE624518B9500C40530 /* FSCalendarAppearance.m in Sources */,
F9023F6D2449A9B100DD5A63 /* TitleAndTFCell.swift in Sources */, F9023F6D2449A9B100DD5A63 /* TitleAndTFCell.swift in Sources */,
F933F6D22452DAE100189561 /* TabBarContentClassView.swift in Sources */, F933F6D22452DAE100189561 /* TabBarContentClassView.swift in Sources */,
F933F6C82452C68B00189561 /* PKHUDTextView.swift in Sources */, F933F6C82452C68B00189561 /* PKHUDTextView.swift in Sources */,
E0A409C82464010D00CFF109 /* FirstCell.swift in Sources */,
E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */, E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */,
E0D197BA2448431C002B080C /* BabyDefine.m in Sources */, E0D197BA2448431C002B080C /* BabyDefine.m in Sources */,
F94A314924624FA400FEC38E /* ShopAdministratorInfoModel.swift in Sources */, F94A314924624FA400FEC38E /* ShopAdministratorInfoModel.swift in Sources */,
...@@ -2046,6 +2092,7 @@ ...@@ -2046,6 +2092,7 @@
F950FDE124518B9500C40530 /* FSCalendarConstants.m in Sources */, F950FDE124518B9500C40530 /* FSCalendarConstants.m in Sources */,
F9023F712449ACA800DD5A63 /* TitleAndSwitchCell.swift in Sources */, F9023F712449ACA800DD5A63 /* TitleAndSwitchCell.swift in Sources */,
E0C4F4BD244EF53D00CC7E2F /* BindStepTwoViewController.swift in Sources */, E0C4F4BD244EF53D00CC7E2F /* BindStepTwoViewController.swift in Sources */,
E0A409CC2464026B00CFF109 /* SecondCell.swift in Sources */,
E0BE8A87245A7A1500E80134 /* JiBenXinXiCell.swift in Sources */, E0BE8A87245A7A1500E80134 /* JiBenXinXiCell.swift in Sources */,
E0F97B1724517C87001BD600 /* AutoTextField.swift in Sources */, E0F97B1724517C87001BD600 /* AutoTextField.swift in Sources */,
E0DDCB13244ADF2C00DF54C7 /* ChangePriceNormalCell.swift in Sources */, E0DDCB13244ADF2C00DF54C7 /* ChangePriceNormalCell.swift in Sources */,
...@@ -2129,6 +2176,7 @@ ...@@ -2129,6 +2176,7 @@
F950FDD724518B9500C40530 /* FSCalendarCollectionView.m in Sources */, F950FDD724518B9500C40530 /* FSCalendarCollectionView.m in Sources */,
E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */, E02C88262456B24F00925766 /* WuLiuGenZongViewController.swift in Sources */,
E09B03C62445BF6700211A51 /* NavBarView.swift in Sources */, E09B03C62445BF6700211A51 /* NavBarView.swift in Sources */,
E0A409D02464041200CFF109 /* ThirdCell.swift in Sources */,
E0C9EF12244E922200277435 /* OrderDViewController.swift in Sources */, E0C9EF12244E922200277435 /* OrderDViewController.swift in Sources */,
F950FDE424518B9500C40530 /* FSCalendarTransitionCoordinator.m in Sources */, F950FDE424518B9500C40530 /* FSCalendarTransitionCoordinator.m in Sources */,
E0BE8A90245A9B9600E80134 /* YingFuZhangKuanCell.swift in Sources */, E0BE8A90245A9B9600E80134 /* YingFuZhangKuanCell.swift in Sources */,
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "1@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "1@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "2@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "2@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "3@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "3@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{ {
"info" : { "info" : {
"author" : "xcode", "version" : 1,
"version" : 1 "author" : "xcode"
} }
} }
\ No newline at end of file
{
"info" : {
"version" : 1,
"author" : "xcode"
},
"colors" : [
{
"idiom" : "universal",
"color" : {
"color-space" : "srgb",
"components" : {
"red" : "0.910",
"alpha" : "1.000",
"blue" : "0.973",
"green" : "0.937"
}
}
}
]
}
\ No newline at end of file
//
// FirstCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/7.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class FirstCell: UITableViewCell {
@IBOutlet weak var imgView: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="FirstCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5pm-2K-Cc2">
<rect key="frame" x="15" y="0.0" width="360" height="49"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="3" translatesAutoresizingMaskIntoConstraints="NO" id="fzr-hO-ZT7">
<rect key="frame" x="351" y="20" width="9" height="9"/>
<constraints>
<constraint firstAttribute="width" constant="9" id="TBk-nn-jgD"/>
<constraint firstAttribute="height" constant="9" id="f5j-5Q-4wy"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="j9L-eQ-KnD">
<rect key="frame" x="15" y="48" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="zbW-jB-v8s"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="j9L-eQ-KnD" secondAttribute="bottom" id="6F2-cI-cyr"/>
<constraint firstAttribute="trailing" secondItem="fzr-hO-ZT7" secondAttribute="trailing" constant="15" id="Djh-0O-s3S"/>
<constraint firstItem="5pm-2K-Cc2" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="ZnF-Ot-UC2"/>
<constraint firstAttribute="trailing" secondItem="5pm-2K-Cc2" secondAttribute="trailing" id="aGT-LK-cCp"/>
<constraint firstAttribute="bottom" secondItem="5pm-2K-Cc2" secondAttribute="bottom" id="coT-2O-t2a"/>
<constraint firstItem="5pm-2K-Cc2" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="gOc-cc-9Cj"/>
<constraint firstItem="fzr-hO-ZT7" firstAttribute="centerY" secondItem="5pm-2K-Cc2" secondAttribute="centerY" id="seh-J5-xqd"/>
<constraint firstAttribute="trailing" secondItem="j9L-eQ-KnD" secondAttribute="trailing" id="tQh-SZ-W6m"/>
<constraint firstItem="j9L-eQ-KnD" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="yse-sT-yay"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="imgView" destination="fzr-hO-ZT7" id="5eg-N0-FIe"/>
<outlet property="nameLbl" destination="5pm-2K-Cc2" id="DAp-av-cmU"/>
</connections>
<point key="canvasLocation" x="132.60869565217394" y="131.58482142857142"/>
</tableViewCell>
</objects>
<resources>
<image name="3" width="4.5" height="9"/>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// SecondCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/7.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class SecondCell: UITableViewCell {
@IBOutlet weak var imgView: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var line: UIView!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="SecondCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nBn-qe-PSC">
<rect key="frame" x="15" y="48" width="360" height="1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="5gC-ff-FPN"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QuV-c4-Eqm">
<rect key="frame" x="40" y="0.0" width="335" height="48"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="3" translatesAutoresizingMaskIntoConstraints="NO" id="uwp-3N-xwZ">
<rect key="frame" x="351" y="19.5" width="9" height="9"/>
<constraints>
<constraint firstAttribute="height" constant="9" id="v9J-st-KXA"/>
<constraint firstAttribute="width" constant="9" id="x7b-nD-ase"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" name="分类Cell背景色"/>
<constraints>
<constraint firstItem="nBn-qe-PSC" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="8Uf-Le-cBK"/>
<constraint firstItem="QuV-c4-Eqm" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="40" id="BBA-3E-o65"/>
<constraint firstAttribute="bottom" secondItem="nBn-qe-PSC" secondAttribute="bottom" id="D3Z-iL-5Pp"/>
<constraint firstAttribute="trailing" secondItem="QuV-c4-Eqm" secondAttribute="trailing" id="XjE-Nj-mIz"/>
<constraint firstItem="uwp-3N-xwZ" firstAttribute="centerY" secondItem="QuV-c4-Eqm" secondAttribute="centerY" id="bTm-qV-KOP"/>
<constraint firstItem="QuV-c4-Eqm" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="dfv-qv-WTO"/>
<constraint firstAttribute="trailing" secondItem="uwp-3N-xwZ" secondAttribute="trailing" constant="15" id="eix-ed-vK0"/>
<constraint firstAttribute="trailing" secondItem="nBn-qe-PSC" secondAttribute="trailing" id="mno-LZ-yHw"/>
<constraint firstItem="nBn-qe-PSC" firstAttribute="top" secondItem="QuV-c4-Eqm" secondAttribute="bottom" id="tF5-Po-dnO"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="imgView" destination="uwp-3N-xwZ" id="RCn-kn-I1E"/>
<outlet property="line" destination="nBn-qe-PSC" id="dVA-03-4XE"/>
<outlet property="nameLbl" destination="QuV-c4-Eqm" id="DSG-VO-99d"/>
</connections>
<point key="canvasLocation" x="132" y="132"/>
</tableViewCell>
</objects>
<resources>
<image name="3" width="4.5" height="9"/>
<namedColor name="分类Cell背景色">
<color red="0.90980392156862744" green="0.93725490196078431" blue="0.97254901960784312" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// ThirdCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/7.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class ThirdCell: UITableViewCell {
@IBOutlet weak var imgView: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var xValue: NSLayoutConstraint!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ThirdCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="82I-NG-ea8">
<rect key="frame" x="75" y="0.0" width="300" height="49"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="daixuan" translatesAutoresizingMaskIntoConstraints="NO" id="4da-tb-aTt">
<rect key="frame" x="340" y="14.5" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="kHU-M2-7Wc"/>
<constraint firstAttribute="width" constant="20" id="oXa-pd-vlS"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SfC-2S-YPK">
<rect key="frame" x="15" y="48" width="360" height="1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="B43-AZ-cpc"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" name="分类Cell背景色"/>
<constraints>
<constraint firstItem="4da-tb-aTt" firstAttribute="centerY" secondItem="82I-NG-ea8" secondAttribute="centerY" id="2Uf-bi-fuN"/>
<constraint firstAttribute="trailing" secondItem="SfC-2S-YPK" secondAttribute="trailing" id="Auj-id-2IR"/>
<constraint firstItem="82I-NG-ea8" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="B4M-cD-ExO"/>
<constraint firstAttribute="trailing" secondItem="82I-NG-ea8" secondAttribute="trailing" id="JJZ-c8-paj"/>
<constraint firstAttribute="bottom" secondItem="82I-NG-ea8" secondAttribute="bottom" id="JSt-Om-bYm"/>
<constraint firstItem="82I-NG-ea8" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="75" id="UPU-yV-uNp"/>
<constraint firstAttribute="bottom" secondItem="SfC-2S-YPK" secondAttribute="bottom" id="VJ3-L9-F2F"/>
<constraint firstAttribute="trailing" secondItem="4da-tb-aTt" secondAttribute="trailing" constant="15" id="fKX-Hk-WnR"/>
<constraint firstItem="SfC-2S-YPK" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="i9H-nA-jJN"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="imgView" destination="4da-tb-aTt" id="CoI-Qh-mwP"/>
<outlet property="nameLbl" destination="82I-NG-ea8" id="Bis-3i-NhO"/>
<outlet property="xValue" destination="UPU-yV-uNp" id="jaK-Mj-hu3"/>
</connections>
<point key="canvasLocation" x="132.60869565217394" y="131.58482142857142"/>
</tableViewCell>
</objects>
<resources>
<image name="daixuan" width="19" height="19"/>
<namedColor name="分类Cell背景色">
<color red="0.90980392156862744" green="0.93725490196078431" blue="0.97254901960784312" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
...@@ -975,7 +975,7 @@ ...@@ -975,7 +975,7 @@
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<namedColor name="灰色字体颜色"> <namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<namedColor name="白色背景色"> <namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
//
// ShouZhiTongJiViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/7.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class ShouZhiTongJiViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
@IBOutlet weak var scrollView: UIScrollView!
@IBOutlet weak var bottomListView: UITableView!
@IBOutlet weak var topListView: UITableView!
@IBOutlet weak var zhiChuSmallLbl: UILabel!
@IBOutlet weak var zhiChuBigLbl: UILabel!
@IBOutlet weak var shouRuSmallLbl: UILabel!
@IBOutlet weak var shouRuBigLbl: UILabel!
@IBOutlet weak var viewH: NSLayoutConstraint!
@IBOutlet weak var viewW: NSLayoutConstraint!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "收支统计"
self.view.addSubview(navbar)
SetTopFrame(view: scrollView, height: fullScreenHeight - NavCGRect.height)
// Do any additional setup after loading the view.
topListView.separatorStyle = .none
bottomListView.separatorStyle = .none
topListView.isScrollEnabled = false
bottomListView.isScrollEnabled = false
topListView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
bottomListView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
}
//MARK: - cell delegate
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 37))
let title = UILabel(frame: CGRect(x: 15, y: 0, width: fullScreenWidth, height: 37))
if tableView == topListView {
title.text = "收入概括"
}else{
title.text = "支出概括"
}
title.textColor = UIColor(named: "标题字颜色")
title.font = UIFont.boldSystemFont(ofSize: 15)
view.addSubview(title)
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 37
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 49
}
var topArr = ["主营收入","其它收入"]
var bottomArr = ["固定采购","临时采购","员工工资","运输费","租金费","冷藏费","其它费","样品"]
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if tableView == topListView {
return topArr.count
}else{
return bottomArr.count
}
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
if tableView == topListView {
cell.nameLbl.text = topArr[indexPath.row]
cell.textTF.text = topArr[indexPath.row]
}else{
cell.nameLbl.text = bottomArr[indexPath.row]
cell.textTF.text = bottomArr[indexPath.row]
}
return cell
}
}
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