Commit b41a68f4 authored by lujunye's avatar lujunye

asdsafdsafd332

parent 241bdb3f
......@@ -320,6 +320,8 @@
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; };
E0A804B325B81A000082F56B /* printOrderModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A804B225B81A000082F56B /* printOrderModel.swift */; };
E0A804BB25B81B790082F56B /* printOrderInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A804BA25B81B790082F56B /* printOrderInterface.swift */; };
E0A930142603387A00287E4A /* OnlyTimeSelectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A930132603387A00287E4A /* OnlyTimeSelectView.swift */; };
E0A930192603388500287E4A /* OnlyTimeSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A930182603388500287E4A /* OnlyTimeSelectView.xib */; };
E0AA3A87248F3C5E00CBFC27 /* StatisticsModel.swif.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0AA3A86248F3C5E00CBFC27 /* StatisticsModel.swif.swift */; };
E0AA3A89248F3E1400CBFC27 /* StatisticsInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0AA3A88248F3E1400CBFC27 /* StatisticsInterface.swift */; };
E0AA3A91248F626400CBFC27 /* XinCaiGouViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0AA3A8F248F626400CBFC27 /* XinCaiGouViewController.swift */; };
......@@ -1081,6 +1083,8 @@
E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckWareHourseViewController.xib; sourceTree = "<group>"; };
E0A804B225B81A000082F56B /* printOrderModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = printOrderModel.swift; sourceTree = "<group>"; };
E0A804BA25B81B790082F56B /* printOrderInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = printOrderInterface.swift; sourceTree = "<group>"; };
E0A930132603387A00287E4A /* OnlyTimeSelectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlyTimeSelectView.swift; sourceTree = "<group>"; };
E0A930182603388500287E4A /* OnlyTimeSelectView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OnlyTimeSelectView.xib; sourceTree = "<group>"; };
E0AA3A86248F3C5E00CBFC27 /* StatisticsModel.swif.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatisticsModel.swif.swift; sourceTree = "<group>"; };
E0AA3A88248F3E1400CBFC27 /* StatisticsInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatisticsInterface.swift; sourceTree = "<group>"; };
E0AA3A8F248F626400CBFC27 /* XinCaiGouViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XinCaiGouViewController.swift; sourceTree = "<group>"; };
......@@ -2887,6 +2891,8 @@
E01613DC2601B47700E55497 /* Location_Cell.xib */,
E01614042601E78B00E55497 /* DZSH_Date_Cell.swift */,
E01614052601E78B00E55497 /* DZSH_Date_Cell.xib */,
E0A930132603387A00287E4A /* OnlyTimeSelectView.swift */,
E0A930182603388500287E4A /* OnlyTimeSelectView.xib */,
);
path = "店长审核";
sourceTree = "<group>";
......@@ -3977,6 +3983,7 @@
E0402603259C186800EDF182 /* KHXQ_Cell.xib in Resources */,
F971D7B3248B6432007F1619 /* address_new.json in Resources */,
E00D85E8244561FE00F5F816 /* Preview Assets.xcassets in Resources */,
E0A930192603388500287E4A /* OnlyTimeSelectView.xib in Resources */,
E0D11BD625C12C540066DB21 /* img_title_cell.xib in Resources */,
E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */,
E0BE8A88245A7A1500E80134 /* JiBenXinXiCell.xib in Resources */,
......@@ -4442,6 +4449,7 @@
E0BE8AA4245AA31400E80134 /* YingFuZhangKuanXQViewController.swift in Sources */,
F94A315324626D7800FEC38E /* WorkCViewController.swift in Sources */,
F9531F3A2465108800724BEE /* JXPhotoBrowserNoneAnimator.swift in Sources */,
E0A930142603387A00287E4A /* OnlyTimeSelectView.swift in Sources */,
E07B1E62245921A60055BA3C /* KeHuXQCell.swift in Sources */,
E0CC847C24823087009B1FE9 /* GetGoodBatchModel.swift in Sources */,
F9FA9C5A255B8772004034B3 /* RetailManageFooterView.swift in Sources */,
......
......@@ -13,6 +13,7 @@ protocol DZSH_Date_Cell_Delegate {
class DZSH_Date_Cell: UITableViewCell {
var delegate:DZSH_Date_Cell_Delegate?
@IBAction func select_Action(_ sender: UIButton) {
sender.titleLabel?.text = timeLbl.text
delegate?.DZSH_Date_Cell_SelectAction(sender: sender, cell: self)
}
......
......@@ -85,8 +85,8 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="l45-ay-mKC">
<rect key="frame" x="247.5" y="43" width="110" height="37"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="9:00~18:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vCZ-bO-MXw">
<rect key="frame" x="22.5" y="9.5" width="65.5" height="18.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="09:00~18:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vCZ-bO-MXw">
<rect key="frame" x="18.5" y="9.5" width="73.5" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
......
......@@ -10,93 +10,103 @@ import UIKit
import Photos
import SwiftyJSON
class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource, GeliAlertTextViewDelegate ,DZSH_Two_Btn_Cell_Delegate, Location_Cell_Delegate, DZSH_UPLOAD_IMG_CELL_Delegate, UIPickerViewDataSource, UIPickerViewDelegate, DZSH_Date_Cell_Delegate{
var altView:UITableView?
var date_arr:Array<String> = []
func scrollViewDidScroll(_ scrollView: UIScrollView) {
if altView != nil {
if altView?.frame.minY != 0 {
if is_Scroll == false {
is_Scroll = true
temp_y = (altView?.frame.minY)!
}
var offsetY:CGFloat = 0
if temp_y >= (altView?.frame.minY)! {
offsetY = temp_y - (altView?.frame.minY)!
}else{
offsetY = (altView?.frame.minY)! - temp_y
class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource, GeliAlertTextViewDelegate ,DZSH_Two_Btn_Cell_Delegate, Location_Cell_Delegate, DZSH_UPLOAD_IMG_CELL_Delegate, UIPickerViewDataSource, UIPickerViewDelegate, DZSH_Date_Cell_Delegate, GLAlertSelectViewDelegate, OnlyTimeSelectView_Delegate{
var work_time_str = "09:00~18:00"
func OnlyTimeSelectView_submitAction(view: OnlyTimeSelectView, sh: Int, sm: Int, eh: Int, em: Int) {
timeSelect_view!.removeFromSuperview()
timeSelect_view = nil
if view.tag == 99 {//营业时间
var s1 = StringByInt(number: sh)
if s1.count == 1 {
s1 = "0" + StringByInt(number: sh)
}
if offsetY > 15 {
altView?.removeFromSuperview()
altView = nil
temp_y = 0
is_Scroll = false
var s2 = StringByInt(number: sm)
if s2.count == 1 {
s2 = "0" + StringByInt(number: sm)
}
var s3 = StringByInt(number: eh)
if s3.count == 1 {
s3 = "0" + StringByInt(number: eh)
}
var s4 = StringByInt(number: em)
if s4.count == 1 {
s4 = "0" + StringByInt(number: em)
}
work_time_str = s1 + ":" + s2 + "~" + s3 + ":" + s4
}
list_view.reloadData()
}
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
view.removeFromSuperview()
glSelectView = nil
}
var is_Scroll = false
var temp_y:CGFloat = 0
func GLAlertSelectViewClick(selectNum: Int, view: GLAlertSelectView) {
switch view.tag {
case 99:
startDayIdx = selectNum
break
default:
endDayIdx = selectNum
break
}
list_view.reloadData()
view.removeFromSuperview()
glSelectView = nil
}
var date_arr = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"]
var glSelectView:GLAlertSelectView?
var startDayIdx = 1
var endDayIdx = 5
var timeSelect_view:OnlyTimeSelectView?
func DZSH_Date_Cell_SelectAction(sender: UIButton, cell: DZSH_Date_Cell) {
if sender.tag != 2 {
if altView == nil {
setDateUI(sender: sender, cell: cell)
}else{
if altView?.tag == sender.tag + 22 {
altView?.removeFromSuperview()
altView = nil
}else{
setDateUI(sender: sender, cell: cell)
print(sender.tag)
switch sender.tag {
case 0:
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
view.tag = 99
view.titleLbl.text = "请选择日期"
view.delegate = self
view.dataArr = date_arr
view.is_center_select = true
view.selectNum = startDayIdx
self.view.addSubview(view)
glSelectView = view
}
break
case 1:
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
view.tag = 100
view.titleLbl.text = "请选择日期"
view.delegate = self
view.dataArr = date_arr
view.is_center_select = true
view.selectNum = endDayIdx
self.view.addSubview(view)
glSelectView = view
}
}else{
altView?.removeFromSuperview()
altView = nil
}
}
func setDateUI(sender: UIButton, cell: DZSH_Date_Cell){
altView?.removeFromSuperview()
altView = nil
let y = list_view.convert(list_view.rectForRow(at: cell.indexPath!), to: list_view.superview).minY - 259
let dateArr = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"]
let tbvH:CGFloat = 160
let tbv = UITableView(frame: CGRect(x: 0, y: 0, width: sender.bounds.size.width, height: tbvH))
tbv.tag = cell.tag + sender.tag
tbv.delegate = self
tbv.dataSource = self
tbv.estimatedRowHeight = 0
tbv.register(UINib(nibName: "OnlyLabelCell", bundle: nil), forCellReuseIdentifier: "OnlyLabelCell")
tbv.layer.borderWidth = 1
tbv.layer.borderColor = UIColor.lightGray.cgColor
tbv.backgroundColor = UIColor(named:"#EDF2F7")
self.view.addSubview(tbv)
altView = tbv
date_arr.removeAll()
if y < 165 {
for item in dateArr {
date_arr.append(item)
}
altView?.snp.makeConstraints({ (make) in
make.top.equalTo(sender.snp_bottom)
make.width.equalTo(sender.snp_width)
make.left.equalTo(sender.snp_left)
make.height.equalTo(tbvH)
})
}else{
for item in dateArr.reversed().enumerated() {
date_arr.append(item.element)
}
altView?.snp.makeConstraints({ (make) in
make.bottom.equalTo(sender.snp_top)
make.width.equalTo(sender.snp_width)
make.left.equalTo(sender.snp_left)
make.height.equalTo(tbvH)
})
altView?.setContentOffset(CGPoint(x: 0, y: 65), animated: false)
break
default:
if timeSelect_view == nil {
let view = OnlyTimeSelectView(frame: self.view.bounds)
view.tag = 99
view.delegate = self
view.titleStr = (sender.titleLabel?.text)!
self.view.addSubview(view)
timeSelect_view = view
}
break
}
}
......@@ -224,10 +234,23 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
var title_str = ""
var hourArr:Array<String> = []
var minArr:Array<String> = []
override func viewDidLoad() {
super.viewDidLoad()
// navbar.title = "信息审核"
hourArr.removeAll()
minArr.removeAll()
for i in 0 ..< 24 {
hourArr.append(StringByInt(number: i))
}
for i in 0 ..< 60 {
minArr.append(StringByInt(number: i))
}
navbar.title = title_str
if title_str == "信息审核" {
btm_action_bg.isHidden = false
......@@ -317,15 +340,9 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
//MARK: - tableviewdelegate
func numberOfSections(in tableView: UITableView) -> Int {
if tableView.tag == 22 || tableView.tag == 23{
return 1
}
return 6
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if tableView.tag == 22 || tableView.tag == 23 {
return date_arr.count
}
switch section {
case 0:
return 4
......@@ -343,9 +360,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if tableView.tag == 22 || tableView.tag == 23 {
return 37
}
switch indexPath.section {
case 0:
if indexPath.row == 3 {
......@@ -398,12 +413,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if tableView.tag == 22 || tableView.tag == 23 {
let cell = tableView.dequeueReusableCell(withIdentifier: "OnlyLabelCell") as! OnlyLabelCell
cell.titleLbl.text = date_arr[indexPath.row]
cell.backgroundColor = UIColor(named: "#EDF2F7")
return cell
}
switch indexPath.section {
case 0:
switch indexPath.row {
......@@ -532,12 +542,9 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
cell.tag = 22
cell.delegate = self
cell.indexPath = indexPath
if end1.count > 0 {
cell.endDateLbl.text = end1
}
if start1.count > 0 {
cell.startDateLbl.text = start1
}
cell.startDateLbl.text = date_arr[startDayIdx]
cell.endDateLbl.text = date_arr[endDayIdx]
cell.timeLbl.text = work_time_str
return cell
}
default:
......@@ -649,29 +656,19 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
// return cell
}
var start1 = ""
var end1 = ""
var time1 = ""
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if tableView.tag == 22 || tableView.tag == 23 {
switch tableView.tag {
case 22:
start1 = date_arr[indexPath.row]
break
default:
end1 = date_arr[indexPath.row]
break
}
list_view.reloadData()
altView?.removeFromSuperview()
altView = nil
}
switch indexPath.section {
case 1:
if indexPath.row == 3 {
print_bottom_cell_select_place_action()
}
break
case 2:
if indexPath.row == 1 {
}
break
default:
break
}
......@@ -873,7 +870,6 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
return UIView()
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 5
}
//MARK:--地址选择器
......@@ -1085,12 +1081,15 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
var dzStr = ""
//设置选择框的列数为3列,继承于UIPickerViewDataSource协议
func numberOfComponents(in pickerView: UIPickerView) -> Int {
return 3
}
//设置选择框的行数,继承于UIPickerViewDataSource协议
func pickerView(_ pickerView: UIPickerView,
numberOfRowsInComponent component: Int) -> Int {
if component == 0 {
return self.addressArray.count
} else if component == 1 {
......@@ -1113,6 +1112,7 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
//设置选择框各选项的内容,继承于UIPickerViewDelegate协议
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int,
forComponent component: Int) -> String? {
if component == 0 {
let rowDic = self.addressArray[row] as! Dictionary<String,Any>
return rowDic["area_name"] as? String
......@@ -1152,10 +1152,13 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
}
func pickerView(_ pickerView: UIPickerView, rowHeightForComponent component: Int) -> CGFloat {
return 50
}
//自定义UIPickerView
func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
let genderLbl = UILabel()
genderLbl.textAlignment = .center
genderLbl.font = UIFont.systemFont(ofSize: 15)
......
//
// OnlyTimeSelectView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/3/18.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
import LGButton
protocol OnlyTimeSelectView_Delegate {
func OnlyTimeSelectView_submitAction(view:OnlyTimeSelectView,sh:Int,sm:Int,eh:Int,em:Int)
}
class OnlyTimeSelectView: UIView,UIPickerViewDelegate,UIPickerViewDataSource {
func numberOfComponents(in pickerView: UIPickerView) -> Int {
return 2
}
func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {
if component == 0 {
return hourArr.count
}
return minArr.count
}
//设置选择框各选项的内容,继承于UIPickerViewDelegate协议
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int,
forComponent component: Int) -> String? {
if component == 0 {
return hourArr[row]
}
return minArr[row]
}
var titleStr = "" {
didSet{
let arr = titleStr.components(separatedBy: "~")
let startArr = arr.first?.components(separatedBy: ":") as! Array<NSString>
start_hour = startArr.first!.integerValue
start_min = startArr.last!.integerValue
temp_s_h = start_hour
temp_s_m = start_min
let endArr = arr.last?.components(separatedBy: ":") as! Array<NSString>
end_hour = endArr.first!.integerValue
end_min = endArr.last!.integerValue
temp_e_h = end_hour
temp_e_m = end_min
lieft_pick.selectRow(start_hour, inComponent: 0, animated: false)
lieft_pick.selectRow(start_min, inComponent: 1, animated: false)
right_pick.selectRow(end_hour, inComponent: 0, animated: false)
right_pick.selectRow(end_min, inComponent: 1, animated: false)
}
}
var start_hour = 0
var start_min = 0
var end_hour = 0
var end_min = 0
var temp_s_h = 0
var temp_s_m = 0
var temp_e_h = 0
var temp_e_m = 0
//选中项改变事件(将在滑动停止后触发)
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int,
inComponent component: Int) {
if component == 0 {
if pickerView == lieft_pick {
start_hour = row
}else{
end_hour = row
}
}else{
if pickerView == lieft_pick {
start_min = row
}else{
end_min = row
}
}
}
//自定义UIPickerView
func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
let genderLbl = UILabel()
genderLbl.textAlignment = .center
genderLbl.font = UIFont.systemFont(ofSize: 15)
genderLbl.textColor = UIColor.init(named: "标题字颜色")
if component == 0 {
genderLbl.text = hourArr[row]
}else{
genderLbl.text = minArr[row]
}
return genderLbl
}
var contentView:UIView!
@IBOutlet weak var lieft_pick: UIPickerView!
@IBOutlet weak var right_pick: UIPickerView!
var delegate:OnlyTimeSelectView_Delegate?
@IBAction func closet_action(_ sender: Any) {
delegate?.OnlyTimeSelectView_submitAction(view: self, sh: temp_s_h, sm: temp_s_m, eh: temp_e_h, em: temp_e_m)
}
@IBAction func submit_action(_ sender: Any) {
delegate?.OnlyTimeSelectView_submitAction(view: self, sh: start_hour, sm: start_min, eh: end_hour, em: end_min)
}
var hourArr:Array<String> = []
var minArr:Array<String> = []
func setUI(){
for i in 0 ..< 24 {
hourArr.append(StringByInt(number: i))
}
for i in 0 ..< 60 {
minArr.append(StringByInt(number: i))
}
}
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
setUI()
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
setUI()
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="OnlyTimeSelectView" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="lieft_pick" destination="WYh-rA-eKE" id="uSp-L9-Rgv"/>
<outlet property="right_pick" destination="F08-jg-ZCL" id="DEk-4a-Scf"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" alpha="0.40000000000000002" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ook-dx-oMU">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<color key="backgroundColor" name="标题字颜色"/>
<connections>
<action selector="closet_action:" destination="-1" eventType="touchUpInside" id="JVh-gX-aF8"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sac-9Y-h4Z" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="207" y="813" width="207" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submit_action:" destination="-1" eventType="touchUpInside" id="NVw-GO-T0F"/>
</connections>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="feW-V9-NaT">
<rect key="frame" x="0.0" y="813" width="207" height="83"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.94901960780000005" blue="0.96862745100000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<connections>
<action selector="closet_action:" destination="-1" eventType="touchUpInside" id="nmg-bL-UbE"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="取消" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rSL-SF-t1O">
<rect key="frame" x="0.0" y="813" width="207" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="eJs-L2-ZUd"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" name="蓝色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确定" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GPG-5N-SX8">
<rect key="frame" x="207" y="813" width="207" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="VaE-7v-juA"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OnV-aF-5CM">
<rect key="frame" x="0.0" y="563" width="414" height="250"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="结束时间" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jSt-IS-3OI">
<rect key="frame" x="207" y="0.0" width="207" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="EhR-Qq-51B"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="起始时间" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FDq-WS-FRP">
<rect key="frame" x="0.0" y="0.0" width="207" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="enQ-jy-FxM"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="arc-eg-KQQ">
<rect key="frame" x="0.0" y="40" width="414" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="H6m-Dm-n02"/>
</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="F3a-aL-NSX">
<rect key="frame" x="203" y="134.5" width="8" height="21"/>
<constraints>
<constraint firstAttribute="width" constant="8" id="Jc3-LD-YBr"/>
<constraint firstAttribute="height" constant="21" id="kTr-hR-nPd"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<pickerView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="WYh-rA-eKE">
<rect key="frame" x="0.0" y="41" width="203" height="209"/>
<connections>
<outlet property="dataSource" destination="-1" id="TAC-06-rKC"/>
<outlet property="delegate" destination="-1" id="rrw-hU-RTZ"/>
</connections>
</pickerView>
<pickerView contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F08-jg-ZCL">
<rect key="frame" x="211" y="41" width="203" height="209"/>
<connections>
<outlet property="dataSource" destination="-1" id="vdM-0V-4hr"/>
<outlet property="delegate" destination="-1" id="DgS-qr-vSC"/>
</connections>
</pickerView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="WYh-rA-eKE" firstAttribute="leading" secondItem="OnV-aF-5CM" secondAttribute="leading" id="1Pl-r4-J5L"/>
<constraint firstItem="jSt-IS-3OI" firstAttribute="width" secondItem="FDq-WS-FRP" secondAttribute="width" id="5eT-A7-Gji"/>
<constraint firstItem="FDq-WS-FRP" firstAttribute="leading" secondItem="OnV-aF-5CM" secondAttribute="leading" id="6My-Kd-Nyd"/>
<constraint firstItem="F3a-aL-NSX" firstAttribute="leading" secondItem="WYh-rA-eKE" secondAttribute="trailing" id="826-am-4M2"/>
<constraint firstItem="F3a-aL-NSX" firstAttribute="centerY" secondItem="OnV-aF-5CM" secondAttribute="centerY" constant="20" id="G8Q-UT-U2U"/>
<constraint firstItem="WYh-rA-eKE" firstAttribute="top" secondItem="arc-eg-KQQ" secondAttribute="bottom" id="HIG-BP-gpw"/>
<constraint firstItem="arc-eg-KQQ" firstAttribute="leading" secondItem="OnV-aF-5CM" secondAttribute="leading" id="LLO-u0-aTc"/>
<constraint firstAttribute="bottom" secondItem="F08-jg-ZCL" secondAttribute="bottom" id="P26-NQ-ZO1"/>
<constraint firstItem="F08-jg-ZCL" firstAttribute="leading" secondItem="F3a-aL-NSX" secondAttribute="trailing" id="PRq-gM-B8X"/>
<constraint firstItem="jSt-IS-3OI" firstAttribute="top" secondItem="OnV-aF-5CM" secondAttribute="top" id="V3F-fW-Zvr"/>
<constraint firstAttribute="height" constant="250" id="V6q-qw-ISw"/>
<constraint firstItem="arc-eg-KQQ" firstAttribute="top" secondItem="jSt-IS-3OI" secondAttribute="bottom" id="Wxg-0e-0Sf"/>
<constraint firstItem="F3a-aL-NSX" firstAttribute="centerX" secondItem="OnV-aF-5CM" secondAttribute="centerX" id="Xvs-kc-BPt"/>
<constraint firstItem="jSt-IS-3OI" firstAttribute="leading" secondItem="FDq-WS-FRP" secondAttribute="trailing" id="a9P-Rs-zFo"/>
<constraint firstItem="FDq-WS-FRP" firstAttribute="top" secondItem="OnV-aF-5CM" secondAttribute="top" id="kj2-Mj-lJB"/>
<constraint firstAttribute="trailing" secondItem="jSt-IS-3OI" secondAttribute="trailing" id="nrO-rt-HK0"/>
<constraint firstItem="F08-jg-ZCL" firstAttribute="top" secondItem="arc-eg-KQQ" secondAttribute="bottom" id="nvw-5o-tN3"/>
<constraint firstAttribute="bottom" secondItem="WYh-rA-eKE" secondAttribute="bottom" id="v9o-wH-Aot"/>
<constraint firstAttribute="trailing" secondItem="arc-eg-KQQ" secondAttribute="trailing" id="vCJ-Tr-bJu"/>
<constraint firstAttribute="trailing" secondItem="F08-jg-ZCL" secondAttribute="trailing" id="wX9-TJ-KEx"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="ook-dx-oMU" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="2u7-6x-aYa"/>
<constraint firstItem="feW-V9-NaT" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="4Ce-31-8Gv"/>
<constraint firstItem="sac-9Y-h4Z" firstAttribute="top" secondItem="OnV-aF-5CM" secondAttribute="bottom" id="53G-mT-SJE"/>
<constraint firstItem="ook-dx-oMU" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="88b-pF-RNM"/>
<constraint firstItem="sac-9Y-h4Z" firstAttribute="width" secondItem="feW-V9-NaT" secondAttribute="width" id="DDp-bK-4bb"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="ook-dx-oMU" secondAttribute="trailing" id="F3T-Aa-Iuu"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="GPG-5N-SX8" secondAttribute="bottom" id="Fk5-73-lPz"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="rSL-SF-t1O" secondAttribute="bottom" id="IuT-jG-bCU"/>
<constraint firstItem="GPG-5N-SX8" firstAttribute="leading" secondItem="rSL-SF-t1O" secondAttribute="trailing" id="KbU-0T-5mc"/>
<constraint firstItem="GPG-5N-SX8" firstAttribute="width" secondItem="rSL-SF-t1O" secondAttribute="width" id="N9h-9z-HpI"/>
<constraint firstAttribute="bottom" secondItem="sac-9Y-h4Z" secondAttribute="bottom" id="Phd-fM-hYE"/>
<constraint firstItem="sac-9Y-h4Z" firstAttribute="top" secondItem="GPG-5N-SX8" secondAttribute="top" id="PuC-dh-DKr"/>
<constraint firstItem="sac-9Y-h4Z" firstAttribute="leading" secondItem="feW-V9-NaT" secondAttribute="trailing" id="W2k-BY-nIp"/>
<constraint firstAttribute="bottom" secondItem="feW-V9-NaT" secondAttribute="bottom" id="Yzh-h7-i7Z"/>
<constraint firstItem="OnV-aF-5CM" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="ZEJ-qW-hYq"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="GPG-5N-SX8" secondAttribute="trailing" id="bue-Sg-Okz"/>
<constraint firstAttribute="trailing" secondItem="sac-9Y-h4Z" secondAttribute="trailing" id="fjo-Vl-FsI"/>
<constraint firstItem="feW-V9-NaT" firstAttribute="top" secondItem="rSL-SF-t1O" secondAttribute="top" id="lKD-fp-Aa8"/>
<constraint firstItem="vUN-kp-3ea" firstAttribute="trailing" secondItem="OnV-aF-5CM" secondAttribute="trailing" id="oNQ-4v-6ws"/>
<constraint firstItem="rSL-SF-t1O" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="wQZ-Rf-GM8"/>
<constraint firstAttribute="bottom" secondItem="ook-dx-oMU" secondAttribute="bottom" id="z8c-Pq-FKr"/>
</constraints>
<point key="canvasLocation" x="-197.10144927536234" y="85.714285714285708"/>
</view>
</objects>
<designables>
<designable name="sac-9Y-h4Z">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<resources>
<namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="TimeSelectV" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="btmBg" destination="SMg-XB-Jbv" id="eyz-Wv-uZY"/>
<outlet property="topBg" destination="ziE-D1-pPK" id="YUx-hb-Trs"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="414" height="200"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ziE-D1-pPK">
<rect key="frame" x="0.0" y="0.0" width="414" height="40"/>
<color key="backgroundColor" name="#EDF2F7"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="aW6-2f-bi4"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SMg-XB-Jbv">
<rect key="frame" x="0.0" y="160" width="414" height="40"/>
<color key="backgroundColor" name="#EDF2F7"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Hvq-JH-rsm"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ud5-OA-dRJ">
<rect key="frame" x="0.0" y="44" width="414" height="116"/>
<color key="backgroundColor" name="#EDF2F7"/>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="ud5-OA-dRJ" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="9bo-ta-LXy"/>
<constraint firstItem="ud5-OA-dRJ" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="IoL-T3-mlm"/>
<constraint firstItem="ziE-D1-pPK" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="MQy-nv-Fgx"/>
<constraint firstAttribute="trailing" secondItem="ziE-D1-pPK" secondAttribute="trailing" id="N53-Fb-PTP"/>
<constraint firstItem="SMg-XB-Jbv" firstAttribute="leading" secondItem="vUN-kp-3ea" secondAttribute="leading" id="Vmc-yy-eSc"/>
<constraint firstItem="ud5-OA-dRJ" firstAttribute="top" secondItem="vUN-kp-3ea" secondAttribute="top" id="X4j-gt-kws"/>
<constraint firstItem="SMg-XB-Jbv" firstAttribute="bottom" secondItem="vUN-kp-3ea" secondAttribute="bottom" id="a9G-jL-FZk"/>
<constraint firstItem="SMg-XB-Jbv" firstAttribute="trailing" secondItem="vUN-kp-3ea" secondAttribute="trailing" id="dh9-oS-qhs"/>
<constraint firstItem="ziE-D1-pPK" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="lad-ad-POq"/>
<constraint firstItem="SMg-XB-Jbv" firstAttribute="top" secondItem="ud5-OA-dRJ" secondAttribute="bottom" id="tzg-Ud-qvn"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-197.10144927536234" y="99.776785714285708"/>
</view>
</objects>
<resources>
<namedColor name="#EDF2F7">
<color red="0.92900002002716064" green="0.94900000095367432" blue="0.96899998188018799" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
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