Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
dbec7585
Commit
dbec7585
authored
Jul 29, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加日历
parent
bc3c55cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
+28
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
dbec7585
No preview for this file type
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
View file @
dbec7585
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
YDLBVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITextFieldDelegate
{
class
YDLBVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITextFieldDelegate
,
TimeSelectViewDelgate
{
@IBOutlet
weak
var
timeBgH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
timeBgH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
scvContentH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
scvContentH
:
NSLayoutConstraint
!
...
@@ -20,7 +20,8 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
...
@@ -20,7 +20,8 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
removeBlackBtnView
()
removeBlackBtnView
()
}
}
let
calendarV
=
TimeSelectView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
fullScreenWidth
,
height
:
235
))
@IBOutlet
weak
var
preView
:
UIView
!
@IBOutlet
weak
var
preView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
listView
:
UITableView
!
...
@@ -114,6 +115,8 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
...
@@ -114,6 +115,8 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
@objc
func
closeTimeSelect
(){
@objc
func
closeTimeSelect
(){
timeBgH
.
constant
=
0
timeBgH
.
constant
=
0
scvContentH
.
constant
=
680
scvContentH
.
constant
=
680
calendarV
.
removeFromSuperview
()
}
}
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
...
@@ -444,17 +447,39 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
...
@@ -444,17 +447,39 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
let
vc
=
YunDanXiangQingViewController
()
let
vc
=
YunDanXiangQingViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
var
BeginDate
:
Date
!
=
nil
var
EndDate
:
Date
!
=
nil
@IBAction
func
timeSelectAction
(
_
sender
:
Any
)
{
@IBAction
func
timeSelectAction
(
_
sender
:
Any
)
{
print
(
"选择时间"
)
print
(
"选择时间"
)
if
timeBgH
.
constant
==
235
{
if
timeBgH
.
constant
==
235
{
timeBgH
.
constant
=
0
timeBgH
.
constant
=
0
scvContentH
.
constant
=
680
scvContentH
.
constant
=
680
calendarV
.
removeFromSuperview
()
}
else
{
}
else
{
timeBgH
.
constant
=
235
timeBgH
.
constant
=
235
scvContentH
.
constant
=
915
scvContentH
.
constant
=
915
calendarV
.
moreSelection
=
true
timeBgView
.
addSubview
(
calendarV
)
calendarV
.
delegate
=
self
if
BeginDate
!=
nil
{
calendarV
.
setOldDate
(
beginD
:
BeginDate
!
,
endD
:
EndDate
!
)
}
}
}
}
//MARK:--日历代理
func
selectMoreDate
(
beginDate
:
Date
,
endginDate
:
Date
)
{
//bug
let
timeInterval
:
TimeInterval
=
beginDate
.
timeIntervalSince1970
let
timeIntervalEnd
:
TimeInterval
=
endginDate
.
timeIntervalSince1970
timeTF
.
text
=
dayByDouble
(
sender
:
timeInterval
)
+
","
+
dayByDouble
(
sender
:
timeIntervalEnd
)
EndDate
=
endginDate
BeginDate
=
beginDate
}
}
//MARK: - 加载数据
//MARK: - 加载数据
@objc
func
loadData
(){
@objc
func
loadData
(){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment