Commit b51616b793d2b178ebd7a918cc38b5c69e574d77
1 parent
01e860af
Exists in
parentassistant
考勤补卡页面添加
Showing
10 changed files
with
364 additions
and
13 deletions
Show diff stats
ParentAssistant/ParentAssistant.xcodeproj/project.pbxproj
... | ... | @@ -41,6 +41,10 @@ |
41 | 41 | AD34D11A2064C79D00989F8D /* MoralDetailCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD34D1192064C79D00989F8D /* MoralDetailCell.swift */; }; |
42 | 42 | AD34D11C2064C7AE00989F8D /* EducationDetailCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD34D11B2064C7AE00989F8D /* EducationDetailCell.swift */; }; |
43 | 43 | AD34D11E2064C7C300989F8D /* BehaviorDetailCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD34D11D2064C7C300989F8D /* BehaviorDetailCell.swift */; }; |
44 | + AD5681CA208044860034A948 /* GrowCheckUpTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD5681C8208044860034A948 /* GrowCheckUpTableViewCell.swift */; }; | |
45 | + AD5681CB208044860034A948 /* GrowCheckUpTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AD5681C9208044860034A948 /* GrowCheckUpTableViewCell.xib */; }; | |
46 | + AD5681CE2080449A0034A948 /* GrowCheckDownTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD5681CC2080449A0034A948 /* GrowCheckDownTableViewCell.swift */; }; | |
47 | + AD5681CF2080449A0034A948 /* GrowCheckDownTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AD5681CD2080449A0034A948 /* GrowCheckDownTableViewCell.xib */; }; | |
44 | 48 | AD64A2C0207F289400B25E80 /* ProgramVacateTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD64A2BE207F289400B25E80 /* ProgramVacateTableViewCell.swift */; }; |
45 | 49 | AD64A2C1207F289400B25E80 /* ProgramVacateTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AD64A2BF207F289400B25E80 /* ProgramVacateTableViewCell.xib */; }; |
46 | 50 | AD64A2C3207F28CF00B25E80 /* ProgramVacateBodyTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD64A2C2207F28CF00B25E80 /* ProgramVacateBodyTableViewCell.swift */; }; |
... | ... | @@ -204,6 +208,10 @@ |
204 | 208 | AD34D1192064C79D00989F8D /* MoralDetailCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MoralDetailCell.swift; sourceTree = "<group>"; }; |
205 | 209 | AD34D11B2064C7AE00989F8D /* EducationDetailCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EducationDetailCell.swift; sourceTree = "<group>"; }; |
206 | 210 | AD34D11D2064C7C300989F8D /* BehaviorDetailCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BehaviorDetailCell.swift; sourceTree = "<group>"; }; |
211 | + AD5681C8208044860034A948 /* GrowCheckUpTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GrowCheckUpTableViewCell.swift; sourceTree = "<group>"; }; | |
212 | + AD5681C9208044860034A948 /* GrowCheckUpTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GrowCheckUpTableViewCell.xib; sourceTree = "<group>"; }; | |
213 | + AD5681CC2080449A0034A948 /* GrowCheckDownTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GrowCheckDownTableViewCell.swift; sourceTree = "<group>"; }; | |
214 | + AD5681CD2080449A0034A948 /* GrowCheckDownTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GrowCheckDownTableViewCell.xib; sourceTree = "<group>"; }; | |
207 | 215 | AD64A2BE207F289400B25E80 /* ProgramVacateTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgramVacateTableViewCell.swift; sourceTree = "<group>"; }; |
208 | 216 | AD64A2BF207F289400B25E80 /* ProgramVacateTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ProgramVacateTableViewCell.xib; sourceTree = "<group>"; }; |
209 | 217 | AD64A2C2207F28CF00B25E80 /* ProgramVacateBodyTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProgramVacateBodyTableViewCell.swift; sourceTree = "<group>"; }; |
... | ... | @@ -602,6 +610,10 @@ |
602 | 610 | AD64A2BF207F289400B25E80 /* ProgramVacateTableViewCell.xib */, |
603 | 611 | AD64A2C2207F28CF00B25E80 /* ProgramVacateBodyTableViewCell.swift */, |
604 | 612 | AD64A2C4207F28EB00B25E80 /* ProgramVacateBodyTableViewCell.xib */, |
613 | + AD5681C8208044860034A948 /* GrowCheckUpTableViewCell.swift */, | |
614 | + AD5681C9208044860034A948 /* GrowCheckUpTableViewCell.xib */, | |
615 | + AD5681CC2080449A0034A948 /* GrowCheckDownTableViewCell.swift */, | |
616 | + AD5681CD2080449A0034A948 /* GrowCheckDownTableViewCell.xib */, | |
605 | 617 | ); |
606 | 618 | path = View; |
607 | 619 | sourceTree = "<group>"; |
... | ... | @@ -915,6 +927,7 @@ |
915 | 927 | AD64A2C1207F289400B25E80 /* ProgramVacateTableViewCell.xib in Resources */, |
916 | 928 | BFF9B7F42057A29D00F39B3E /* TableEmptyView.xib in Resources */, |
917 | 929 | ADC9AB7E207C66DA00348EF1 /* BehaviorDetailCell.xib in Resources */, |
930 | + AD5681CF2080449A0034A948 /* GrowCheckDownTableViewCell.xib in Resources */, | |
918 | 931 | ADC9AB84207C673C00348EF1 /* SceneDownCell.xib in Resources */, |
919 | 932 | BFEAAAC8205257460072FAAF /* LXCalenderCell.xib in Resources */, |
920 | 933 | 599364F8204E648C00C8B371 /* ChannelCollectionViewCell.xib in Resources */, |
... | ... | @@ -924,6 +937,7 @@ |
924 | 937 | ADC9AB74207C64B300348EF1 /* MoralTableViewCell.xib in Resources */, |
925 | 938 | BF7A4C86204E338500460463 /* Main.storyboard in Resources */, |
926 | 939 | ADC9AB7A207C66A300348EF1 /* MoralDetailCell.xib in Resources */, |
940 | + AD5681CB208044860034A948 /* GrowCheckUpTableViewCell.xib in Resources */, | |
927 | 941 | BF67F3BD20590A2F002FDC61 /* Info-OSX.plist in Resources */, |
928 | 942 | BF621CAC205660E90040D2C1 /* My.storyboard in Resources */, |
929 | 943 | BF67F3BC20590A2F002FDC61 /* Info-iOS.plist in Resources */, |
... | ... | @@ -1017,6 +1031,7 @@ |
1017 | 1031 | buildActionMask = 2147483647; |
1018 | 1032 | files = ( |
1019 | 1033 | BF621CB02056664C0040D2C1 /* CurrentInfoViewController.swift in Sources */, |
1034 | + AD5681CA208044860034A948 /* GrowCheckUpTableViewCell.swift in Sources */, | |
1020 | 1035 | ADC9AB88207C940700348EF1 /* ProgramViewController.swift in Sources */, |
1021 | 1036 | BF7A4C3C204CD55300460463 /* ParentAssistant.xcdatamodeld in Sources */, |
1022 | 1037 | AD198177207D9FF5009AB8B5 /* ProgramVacateViewController.swift in Sources */, |
... | ... | @@ -1089,6 +1104,7 @@ |
1089 | 1104 | BFCED888205280B700055373 /* MyViewController.swift in Sources */, |
1090 | 1105 | AD198175207D9FC1009AB8B5 /* ProgramCardViewController.swift in Sources */, |
1091 | 1106 | AD65FB78206354220052415B /* MoralTableViewCell.swift in Sources */, |
1107 | + AD5681CE2080449A0034A948 /* GrowCheckDownTableViewCell.swift in Sources */, | |
1092 | 1108 | BF38846C205A58F800A240EF /* YXMessageManager.swift in Sources */, |
1093 | 1109 | BFBC06C92063AE8900CCFAFF /* ZLaunchAdConfig.swift in Sources */, |
1094 | 1110 | BFEAAAD820525D620072FAAF /* UILabel+LXLabel.m in Sources */, |
... | ... |
ParentAssistant/ParentAssistant.xcodeproj/xcuserdata/caoyang.xcuserdatad/xcschemes/xcschememanagement.plist
ParentAssistant/ParentAssistant.xcworkspace/xcuserdata/caoyang.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ParentAssistant/ParentAssistant/Classes/controllers/Grow/Program/ProgramCardViewController.swift
... | ... | @@ -8,14 +8,88 @@ |
8 | 8 | |
9 | 9 | import UIKit |
10 | 10 | |
11 | -class ProgramCardViewController: UIViewController { | |
11 | +class ProgramCardViewController: UIViewController,UITextFieldDelegate { | |
12 | 12 | |
13 | + var cardInputTextField = UITextField() | |
14 | + | |
15 | + lazy var cardView = { ()-> UIView in | |
16 | + | |
17 | + let view = UIView.init(frame: CGRect.init(x: 10, y: 10, width: screenWidth-20, height: 140)) | |
18 | + view.backgroundColor = UIColor.white | |
19 | + return view | |
20 | + }() | |
21 | + lazy var bottomBtn = {()-> UIButton in | |
22 | + let btn = UIButton.init(frame: CGRect.init(x: screenWidth/2-100, y: screenHeight-66-80, width: 200, height: 40)) | |
23 | + btn.setTitle("补卡申请", for: UIControlState.normal) | |
24 | + btn.layer.cornerRadius = 5 | |
25 | + btn.clipsToBounds = true | |
26 | + btn.setTitleColor(UIColor.black, for: UIControlState.normal) | |
27 | + btn.backgroundColor = Theme.topBarColor() | |
28 | + btn.addTarget(self, action: #selector(applyAction), for: UIControlEvents.touchUpInside) | |
29 | + return btn | |
30 | + }() | |
31 | + | |
32 | + @objc func applyAction(){ | |
33 | + print("补卡申请提交") | |
34 | + } | |
35 | + | |
13 | 36 | override func viewDidLoad() { |
14 | 37 | super.viewDidLoad() |
15 | - | |
38 | + self.view.backgroundColor = backGroundColor | |
39 | + self.view.addSubview(self.cardView) | |
40 | + self.view.addSubview(self.bottomBtn) | |
41 | + setUpContentView() | |
16 | 42 | // Do any additional setup after loading the view. |
43 | + | |
44 | + //点击空白区域收起键盘 | |
45 | + self.view.addGestureRecognizer(UITapGestureRecognizer.init(target: self, action: #selector(handleTap(sender:)))) | |
46 | + } | |
47 | + | |
48 | + @objc func handleTap(sender:UITapGestureRecognizer){ | |
49 | + if sender.state == .ended { | |
50 | + self.cardInputTextField.resignFirstResponder() | |
51 | + } | |
52 | + sender.cancelsTouchesInView = false | |
17 | 53 | } |
18 | 54 | |
55 | + | |
56 | + func setUpContentView () { | |
57 | + | |
58 | + let cardLable = UILabel.init(frame: CGRect.init(x: 10, y: 10, width: 100, height: 30)) | |
59 | + cardLable.text = "补卡人:" | |
60 | + | |
61 | + let cardName = UILabel.init(frame: CGRect.init(x: 110, y: 10, width: 100, height: 30)) | |
62 | + cardName.text = "张三" | |
63 | + | |
64 | + let cardNumberLab = UILabel.init(frame: CGRect.init(x: 10, y: 50, width: 100, height: 30)) | |
65 | + cardNumberLab.text = "卡号:" | |
66 | + | |
67 | + let cardNumberInput = UITextField.init(frame: CGRect.init(x: 110, y: 50, width: screenWidth-120, height: 30)) | |
68 | + cardNumberInput.placeholder = "请输入卡号" | |
69 | + cardNumberInput.keyboardType = .numbersAndPunctuation | |
70 | + cardNumberInput.delegate = self | |
71 | + self.cardInputTextField = cardNumberInput | |
72 | + | |
73 | + let cardDateLab = UILabel.init(frame: CGRect.init(x: 10, y: 90, width: 100, height: 30)) | |
74 | + cardDateLab.text = "考勤日期:" | |
75 | + | |
76 | + let cardDateInput = UILabel.init(frame: CGRect.init(x: 110, y: 90, width: screenWidth-120, height: 30)) | |
77 | + cardDateInput.text = "2018-02-12 09:40" | |
78 | + | |
79 | + self.cardView.addSubview(cardLable) | |
80 | + self.cardView.addSubview(cardName) | |
81 | + self.cardView.addSubview(cardNumberLab) | |
82 | + self.cardView.addSubview(cardNumberInput) | |
83 | + self.cardView.addSubview(cardDateLab) | |
84 | + self.cardView.addSubview(cardDateInput) | |
85 | + | |
86 | + } | |
87 | + //收回键盘 | |
88 | + func textFieldShouldReturn(_ textField: UITextField) -> Bool { | |
89 | + | |
90 | + return textField.resignFirstResponder() | |
91 | + } | |
92 | + | |
19 | 93 | override func didReceiveMemoryWarning() { |
20 | 94 | super.didReceiveMemoryWarning() |
21 | 95 | // Dispose of any resources that can be recreated. |
... | ... |
ParentAssistant/ParentAssistant/Classes/controllers/Grow/Program/ProgramVacateViewController.swift
... | ... | @@ -23,10 +23,12 @@ class ProgramVacateViewController: UIViewController,UITableViewDelegate,UITableV |
23 | 23 | }() |
24 | 24 | |
25 | 25 | lazy var bottomBtn = {()-> UIButton in |
26 | - let btn = UIButton.init(frame: CGRect.init(x: screenWidth/2-60, y: screenHeight-66-50, width: 120, height: 40)) | |
26 | + let btn = UIButton.init(frame: CGRect.init(x: screenWidth/2-100, y: screenHeight-66-50, width: 200, height: 40)) | |
27 | 27 | btn.setTitle("请假", for: UIControlState.normal) |
28 | 28 | btn.setTitleColor(UIColor.black, for: UIControlState.normal) |
29 | 29 | btn.backgroundColor = Theme.topBarColor() |
30 | + btn.layer.cornerRadius = 5 | |
31 | + btn.clipsToBounds = true | |
30 | 32 | return btn |
31 | 33 | }() |
32 | 34 | |
... | ... |
ParentAssistant/ParentAssistant/Classes/controllers/Grow/View/GrowCheckDownTableViewCell.swift
0 → 100644
... | ... | @@ -0,0 +1,27 @@ |
1 | +// | |
2 | +// GrowCheckDownTableViewCell.swift | |
3 | +// ParentAssistant | |
4 | +// | |
5 | +// Created by Cao yang on 2018/4/13. | |
6 | +// Copyright © 2018年 HANGZHOUTEAM. All rights reserved. | |
7 | +// | |
8 | + | |
9 | +import UIKit | |
10 | + | |
11 | +class GrowCheckDownTableViewCell: UITableViewCell { | |
12 | + | |
13 | + @IBOutlet weak var studentParents: UILabel! | |
14 | + @IBOutlet weak var studentMessage: UILabel! | |
15 | + @IBOutlet weak var studentImage: UIImageView! | |
16 | + override func awakeFromNib() { | |
17 | + super.awakeFromNib() | |
18 | + // Initialization code | |
19 | + } | |
20 | + | |
21 | + override func setSelected(_ selected: Bool, animated: Bool) { | |
22 | + super.setSelected(selected, animated: animated) | |
23 | + | |
24 | + // Configure the view for the selected state | |
25 | + } | |
26 | + | |
27 | +} | |
... | ... |
ParentAssistant/ParentAssistant/Classes/controllers/Grow/View/GrowCheckDownTableViewCell.xib
0 → 100644
... | ... | @@ -0,0 +1,109 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | |
3 | + <device id="retina4_7" orientation="portrait"> | |
4 | + <adaptation id="fullscreen"/> | |
5 | + </device> | |
6 | + <dependencies> | |
7 | + <deployment identifier="iOS"/> | |
8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> | |
9 | + <capability name="Alignment constraints with different attributes" minToolsVersion="5.1"/> | |
10 | + <capability name="Safe area layout guides" minToolsVersion="9.0"/> | |
11 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
12 | + </dependencies> | |
13 | + <objects> | |
14 | + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | |
15 | + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | |
16 | + <tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="GrowCheckDownTableViewCell" rowHeight="148" id="KGk-i7-Jjw" customClass="GrowCheckDownTableViewCell" customModule="ParentAssistant" customModuleProvider="target"> | |
17 | + <rect key="frame" x="0.0" y="0.0" width="320" height="148"/> | |
18 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | |
19 | + <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> | |
20 | + <rect key="frame" x="0.0" y="0.0" width="320" height="147.5"/> | |
21 | + <autoresizingMask key="autoresizingMask"/> | |
22 | + <subviews> | |
23 | + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="M2G-AT-SGp"> | |
24 | + <rect key="frame" x="10" y="0.0" width="300" height="147.5"/> | |
25 | + <subviews> | |
26 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" text="down" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Jwf-rl-f67"> | |
27 | + <rect key="frame" x="9.5" y="30" width="1" height="117.5"/> | |
28 | + <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/> | |
29 | + <constraints> | |
30 | + <constraint firstAttribute="width" constant="1" id="oLs-xY-7rY"/> | |
31 | + </constraints> | |
32 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
33 | + <nil key="textColor"/> | |
34 | + <nil key="highlightedColor"/> | |
35 | + </label> | |
36 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="up" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="k4Z-Uq-mfH"> | |
37 | + <rect key="frame" x="9.5" y="0.0" width="1" height="20"/> | |
38 | + <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/> | |
39 | + <constraints> | |
40 | + <constraint firstAttribute="width" constant="1" id="aid-s0-fng"/> | |
41 | + </constraints> | |
42 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
43 | + <nil key="textColor"/> | |
44 | + <nil key="highlightedColor"/> | |
45 | + </label> | |
46 | + <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="grow_ellipse" translatesAutoresizingMaskIntoConstraints="NO" id="yIx-vT-vEu"> | |
47 | + <rect key="frame" x="5" y="20" width="10" height="10"/> | |
48 | + </imageView> | |
49 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="尊敬的张三家长," textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CSJ-Ct-dJH"> | |
50 | + <rect key="frame" x="25" y="14.5" width="126" height="21"/> | |
51 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
52 | + <nil key="textColor"/> | |
53 | + <nil key="highlightedColor"/> | |
54 | + </label> | |
55 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="您的孩子已于08:00进校" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Poh-Qh-ybX"> | |
56 | + <rect key="frame" x="25" y="45.5" width="185" height="21"/> | |
57 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
58 | + <nil key="textColor"/> | |
59 | + <nil key="highlightedColor"/> | |
60 | + </label> | |
61 | + <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="report_teacher" translatesAutoresizingMaskIntoConstraints="NO" id="SPG-e7-fgN"> | |
62 | + <rect key="frame" x="25" y="76.5" width="100" height="60"/> | |
63 | + <constraints> | |
64 | + <constraint firstAttribute="width" constant="100" id="VO7-To-XAp"/> | |
65 | + <constraint firstAttribute="height" constant="60" id="i62-A6-AJc"/> | |
66 | + </constraints> | |
67 | + </imageView> | |
68 | + </subviews> | |
69 | + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | |
70 | + <constraints> | |
71 | + <constraint firstItem="SPG-e7-fgN" firstAttribute="leading" secondItem="Poh-Qh-ybX" secondAttribute="leading" id="0m7-7x-IO0"/> | |
72 | + <constraint firstItem="CSJ-Ct-dJH" firstAttribute="leading" secondItem="yIx-vT-vEu" secondAttribute="trailing" constant="10" id="2wH-ly-4k4"/> | |
73 | + <constraint firstItem="SPG-e7-fgN" firstAttribute="top" secondItem="Poh-Qh-ybX" secondAttribute="bottom" constant="10" id="5K6-Js-Pz1"/> | |
74 | + <constraint firstItem="yIx-vT-vEu" firstAttribute="centerX" secondItem="M2G-AT-SGp" secondAttribute="leading" constant="10" id="C3w-hd-rvx"/> | |
75 | + <constraint firstItem="k4Z-Uq-mfH" firstAttribute="top" secondItem="M2G-AT-SGp" secondAttribute="top" id="L6i-6C-gy9"/> | |
76 | + <constraint firstItem="yIx-vT-vEu" firstAttribute="top" secondItem="k4Z-Uq-mfH" secondAttribute="bottom" id="MPy-yt-5il"/> | |
77 | + <constraint firstItem="CSJ-Ct-dJH" firstAttribute="centerY" secondItem="yIx-vT-vEu" secondAttribute="centerY" id="PQp-9r-0ji"/> | |
78 | + <constraint firstItem="Poh-Qh-ybX" firstAttribute="leading" secondItem="CSJ-Ct-dJH" secondAttribute="leading" id="Tyn-83-pbP"/> | |
79 | + <constraint firstAttribute="bottom" secondItem="Jwf-rl-f67" secondAttribute="bottom" id="UQW-vJ-8KC"/> | |
80 | + <constraint firstItem="Jwf-rl-f67" firstAttribute="top" secondItem="yIx-vT-vEu" secondAttribute="bottom" id="Wty-SD-XgN"/> | |
81 | + <constraint firstItem="yIx-vT-vEu" firstAttribute="top" secondItem="M2G-AT-SGp" secondAttribute="top" constant="20" id="c64-bu-wzf"/> | |
82 | + <constraint firstItem="k4Z-Uq-mfH" firstAttribute="centerX" secondItem="yIx-vT-vEu" secondAttribute="centerX" id="pBh-nT-Dpq"/> | |
83 | + <constraint firstItem="Poh-Qh-ybX" firstAttribute="top" secondItem="CSJ-Ct-dJH" secondAttribute="bottom" constant="10" id="v4X-Nd-4dM"/> | |
84 | + <constraint firstItem="Jwf-rl-f67" firstAttribute="centerX" secondItem="yIx-vT-vEu" secondAttribute="centerX" id="vju-Nu-nX1"/> | |
85 | + </constraints> | |
86 | + </view> | |
87 | + </subviews> | |
88 | + <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/> | |
89 | + <constraints> | |
90 | + <constraint firstItem="M2G-AT-SGp" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="2DK-lh-wLK"/> | |
91 | + <constraint firstItem="M2G-AT-SGp" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="anD-pN-eZ2"/> | |
92 | + <constraint firstAttribute="bottom" secondItem="M2G-AT-SGp" secondAttribute="bottom" id="hFP-C5-Crm"/> | |
93 | + <constraint firstAttribute="trailing" secondItem="M2G-AT-SGp" secondAttribute="trailing" constant="10" id="u3X-pJ-les"/> | |
94 | + </constraints> | |
95 | + </tableViewCellContentView> | |
96 | + <viewLayoutGuide key="safeArea" id="njF-e1-oar"/> | |
97 | + <connections> | |
98 | + <outlet property="studentImage" destination="SPG-e7-fgN" id="a1j-bR-MGg"/> | |
99 | + <outlet property="studentMessage" destination="Poh-Qh-ybX" id="I4b-qR-mT8"/> | |
100 | + <outlet property="studentParents" destination="CSJ-Ct-dJH" id="pU9-Ds-VC7"/> | |
101 | + </connections> | |
102 | + <point key="canvasLocation" x="25" y="-62"/> | |
103 | + </tableViewCell> | |
104 | + </objects> | |
105 | + <resources> | |
106 | + <image name="grow_ellipse" width="10" height="10"/> | |
107 | + <image name="report_teacher" width="130" height="155"/> | |
108 | + </resources> | |
109 | +</document> | |
... | ... |
ParentAssistant/ParentAssistant/Classes/controllers/Grow/View/GrowCheckUpTableViewCell.swift
0 → 100644
... | ... | @@ -0,0 +1,27 @@ |
1 | +// | |
2 | +// GrowCheckUpTableViewCell.swift | |
3 | +// ParentAssistant | |
4 | +// | |
5 | +// Created by Cao yang on 2018/4/13. | |
6 | +// Copyright © 2018年 HANGZHOUTEAM. All rights reserved. | |
7 | +// | |
8 | + | |
9 | +import UIKit | |
10 | + | |
11 | +class GrowCheckUpTableViewCell: UITableViewCell { | |
12 | + | |
13 | + @IBOutlet weak var checkName: UILabel! | |
14 | + @IBOutlet weak var checkDate: UILabel! | |
15 | + @IBOutlet weak var checkCount: UILabel! | |
16 | + override func awakeFromNib() { | |
17 | + super.awakeFromNib() | |
18 | + // Initialization code | |
19 | + } | |
20 | + | |
21 | + override func setSelected(_ selected: Bool, animated: Bool) { | |
22 | + super.setSelected(selected, animated: animated) | |
23 | + | |
24 | + // Configure the view for the selected state | |
25 | + } | |
26 | + | |
27 | +} | |
... | ... |
ParentAssistant/ParentAssistant/Classes/controllers/Grow/View/GrowCheckUpTableViewCell.xib
0 → 100644
... | ... | @@ -0,0 +1,96 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> | |
3 | + <device id="retina4_7" orientation="portrait"> | |
4 | + <adaptation id="fullscreen"/> | |
5 | + </device> | |
6 | + <dependencies> | |
7 | + <deployment identifier="iOS"/> | |
8 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/> | |
9 | + <capability name="Safe area layout guides" minToolsVersion="9.0"/> | |
10 | + <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | |
11 | + </dependencies> | |
12 | + <objects> | |
13 | + <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | |
14 | + <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | |
15 | + <tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="GrowCheckUpTableViewCell" rowHeight="125" id="KGk-i7-Jjw" customClass="GrowCheckUpTableViewCell" customModule="ParentAssistant" customModuleProvider="target"> | |
16 | + <rect key="frame" x="0.0" y="0.0" width="320" height="125"/> | |
17 | + <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | |
18 | + <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> | |
19 | + <rect key="frame" x="0.0" y="0.0" width="320" height="124.5"/> | |
20 | + <autoresizingMask key="autoresizingMask"/> | |
21 | + <subviews> | |
22 | + <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4bl-Ug-Jkf"> | |
23 | + <rect key="frame" x="10" y="10" width="300" height="109.5"/> | |
24 | + <subviews> | |
25 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="考勤对象:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ExJ-Vr-Gtw"> | |
26 | + <rect key="frame" x="10" y="10" width="74" height="21"/> | |
27 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
28 | + <nil key="textColor"/> | |
29 | + <nil key="highlightedColor"/> | |
30 | + </label> | |
31 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="张三" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OoZ-Pq-CLb"> | |
32 | + <rect key="frame" x="94" y="10" width="35" height="21"/> | |
33 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
34 | + <nil key="textColor"/> | |
35 | + <nil key="highlightedColor"/> | |
36 | + </label> | |
37 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="考勤日期:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tmY-YA-dJD"> | |
38 | + <rect key="frame" x="10" y="41" width="74" height="21"/> | |
39 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
40 | + <nil key="textColor"/> | |
41 | + <nil key="highlightedColor"/> | |
42 | + </label> | |
43 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2018-04-02" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PQL-0B-hTy"> | |
44 | + <rect key="frame" x="94" y="41" width="95" height="21"/> | |
45 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
46 | + <nil key="textColor"/> | |
47 | + <nil key="highlightedColor"/> | |
48 | + </label> | |
49 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="考勤次数:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SdL-gq-fnS"> | |
50 | + <rect key="frame" x="10" y="72" width="74" height="21"/> | |
51 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
52 | + <nil key="textColor"/> | |
53 | + <nil key="highlightedColor"/> | |
54 | + </label> | |
55 | + <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2次" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ix0-QT-dOr"> | |
56 | + <rect key="frame" x="94" y="72" width="28" height="21"/> | |
57 | + <fontDescription key="fontDescription" type="system" pointSize="17"/> | |
58 | + <nil key="textColor"/> | |
59 | + <nil key="highlightedColor"/> | |
60 | + </label> | |
61 | + </subviews> | |
62 | + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | |
63 | + <constraints> | |
64 | + <constraint firstItem="tmY-YA-dJD" firstAttribute="leading" secondItem="ExJ-Vr-Gtw" secondAttribute="leading" id="3Pa-wB-2lr"/> | |
65 | + <constraint firstItem="PQL-0B-hTy" firstAttribute="centerY" secondItem="tmY-YA-dJD" secondAttribute="centerY" id="BEz-Ng-xFW"/> | |
66 | + <constraint firstItem="PQL-0B-hTy" firstAttribute="leading" secondItem="tmY-YA-dJD" secondAttribute="trailing" constant="10" id="C6P-sS-Ti3"/> | |
67 | + <constraint firstItem="ix0-QT-dOr" firstAttribute="leading" secondItem="SdL-gq-fnS" secondAttribute="trailing" constant="10" id="C7D-Xp-8fA"/> | |
68 | + <constraint firstItem="OoZ-Pq-CLb" firstAttribute="leading" secondItem="ExJ-Vr-Gtw" secondAttribute="trailing" constant="10" id="CV2-qX-bM9"/> | |
69 | + <constraint firstItem="ix0-QT-dOr" firstAttribute="centerY" secondItem="SdL-gq-fnS" secondAttribute="centerY" id="DbP-xw-6R6"/> | |
70 | + <constraint firstItem="tmY-YA-dJD" firstAttribute="top" secondItem="ExJ-Vr-Gtw" secondAttribute="bottom" constant="10" id="Feh-ug-yAO"/> | |
71 | + <constraint firstItem="OoZ-Pq-CLb" firstAttribute="centerY" secondItem="ExJ-Vr-Gtw" secondAttribute="centerY" id="GSd-kH-4nO"/> | |
72 | + <constraint firstItem="ExJ-Vr-Gtw" firstAttribute="leading" secondItem="4bl-Ug-Jkf" secondAttribute="leading" constant="10" id="I8y-IR-Znk"/> | |
73 | + <constraint firstItem="SdL-gq-fnS" firstAttribute="leading" secondItem="tmY-YA-dJD" secondAttribute="leading" id="Ig0-4D-3dH"/> | |
74 | + <constraint firstItem="SdL-gq-fnS" firstAttribute="top" secondItem="tmY-YA-dJD" secondAttribute="bottom" constant="10" id="XIM-uQ-5fp"/> | |
75 | + <constraint firstItem="ExJ-Vr-Gtw" firstAttribute="top" secondItem="4bl-Ug-Jkf" secondAttribute="top" constant="10" id="dYP-XR-ZhS"/> | |
76 | + </constraints> | |
77 | + </view> | |
78 | + </subviews> | |
79 | + <color key="backgroundColor" cocoaTouchSystemColor="groupTableViewBackgroundColor"/> | |
80 | + <constraints> | |
81 | + <constraint firstItem="4bl-Ug-Jkf" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="Oj0-RK-tj4"/> | |
82 | + <constraint firstAttribute="bottom" secondItem="4bl-Ug-Jkf" secondAttribute="bottom" constant="5" id="RVP-gf-Oys"/> | |
83 | + <constraint firstItem="4bl-Ug-Jkf" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="10" id="spZ-Iv-ujG"/> | |
84 | + <constraint firstAttribute="trailing" secondItem="4bl-Ug-Jkf" secondAttribute="trailing" constant="10" id="xte-F0-Y0Y"/> | |
85 | + </constraints> | |
86 | + </tableViewCellContentView> | |
87 | + <viewLayoutGuide key="safeArea" id="njF-e1-oar"/> | |
88 | + <connections> | |
89 | + <outlet property="checkCount" destination="ix0-QT-dOr" id="S2d-me-Lfu"/> | |
90 | + <outlet property="checkDate" destination="PQL-0B-hTy" id="oje-oo-bif"/> | |
91 | + <outlet property="checkName" destination="OoZ-Pq-CLb" id="47o-Bv-QW8"/> | |
92 | + </connections> | |
93 | + <point key="canvasLocation" x="-30" y="-35.5"/> | |
94 | + </tableViewCell> | |
95 | + </objects> | |
96 | +</document> | |
... | ... |
ParentAssistant/Pods/Pods.xcodeproj/xcuserdata/caoyang.xcuserdatad/xcschemes/xcschememanagement.plist
... | ... | @@ -7,47 +7,47 @@ |
7 | 7 | <key>Alamofire.xcscheme</key> |
8 | 8 | <dict> |
9 | 9 | <key>orderHint</key> |
10 | - <integer>0</integer> | |
10 | + <integer>1</integer> | |
11 | 11 | </dict> |
12 | 12 | <key>DZNEmptyDataSet.xcscheme</key> |
13 | 13 | <dict> |
14 | 14 | <key>orderHint</key> |
15 | - <integer>1</integer> | |
15 | + <integer>2</integer> | |
16 | 16 | </dict> |
17 | 17 | <key>Pods-ParentAssistant.xcscheme</key> |
18 | 18 | <dict> |
19 | 19 | <key>orderHint</key> |
20 | - <integer>2</integer> | |
20 | + <integer>3</integer> | |
21 | 21 | </dict> |
22 | 22 | <key>Reachability.xcscheme</key> |
23 | 23 | <dict> |
24 | 24 | <key>orderHint</key> |
25 | - <integer>3</integer> | |
25 | + <integer>4</integer> | |
26 | 26 | </dict> |
27 | 27 | <key>SDWebImage.xcscheme</key> |
28 | 28 | <dict> |
29 | 29 | <key>orderHint</key> |
30 | - <integer>4</integer> | |
30 | + <integer>5</integer> | |
31 | 31 | </dict> |
32 | 32 | <key>SVProgressHUD.xcscheme</key> |
33 | 33 | <dict> |
34 | 34 | <key>orderHint</key> |
35 | - <integer>5</integer> | |
35 | + <integer>6</integer> | |
36 | 36 | </dict> |
37 | 37 | <key>SwiftHash.xcscheme</key> |
38 | 38 | <dict> |
39 | 39 | <key>orderHint</key> |
40 | - <integer>6</integer> | |
40 | + <integer>7</integer> | |
41 | 41 | </dict> |
42 | 42 | <key>Toast.xcscheme</key> |
43 | 43 | <dict> |
44 | 44 | <key>orderHint</key> |
45 | - <integer>7</integer> | |
45 | + <integer>8</integer> | |
46 | 46 | </dict> |
47 | 47 | <key>XRCarouselView.xcscheme</key> |
48 | 48 | <dict> |
49 | 49 | <key>orderHint</key> |
50 | - <integer>8</integer> | |
50 | + <integer>9</integer> | |
51 | 51 | </dict> |
52 | 52 | </dict> |
53 | 53 | </dict> |
... | ... |