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
16a50699
Commit
16a50699
authored
Jun 03, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善时间选择器
parent
2e7f7c5b
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
138 additions
and
94 deletions
+138
-94
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/AppDelegate.swift
GeliBusinessPlatform/AppDelegate.swift
+1
-1
GeliBusinessPlatform/View/TimeSelectView/ShowTimeSelectView.swift
...nessPlatform/View/TimeSelectView/ShowTimeSelectView.swift
+8
-1
GeliBusinessPlatform/View/TimeSelectView/TimeSelectView.swift
...BusinessPlatform/View/TimeSelectView/TimeSelectView.swift
+101
-89
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+12
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+12
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+2
-1
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
...latform/ViewController/订单列表/OrderListViewController.swift
+2
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
16a50699
No preview for this file type
GeliBusinessPlatform/AppDelegate.swift
View file @
16a50699
...
...
@@ -241,7 +241,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate, UITabBarCon
tabBarC
=
tabBarController
let
v1
=
OrderListViewController
()
let
v2
=
CRK
ListVC
()
let
v2
=
GoodsManage
ListVC
()
let
v3
=
WorkCViewController
()
let
v4
=
WarehoseMangementListVC
()
let
v5
=
PersonCenterViewController
()
...
...
GeliBusinessPlatform/View/TimeSelectView/ShowTimeSelectView.swift
View file @
16a50699
...
...
@@ -109,11 +109,18 @@ class ShowTimeSelectView: UIView ,TimeSelectViewDelgate{
var
beginDateByWork
:
Date
?
=
nil
{
didSet
{
calendarV
.
beginDateByWork
=
beginDateByWork
if
BeginDate
!=
nil
&&
EndDate
!=
nil
{
calendarV
.
setOldDate
(
beginD
:
BeginDate
,
endD
:
EndDate
)
let
timeInterval
:
TimeInterval
=
BeginDate
.
timeIntervalSince1970
let
timeIntervalEnd
:
TimeInterval
=
EndDate
.
timeIntervalSince1970
timeLbl
.
text
=
dayByDouble
(
sender
:
timeInterval
)
+
"-"
+
dayByDouble
(
sender
:
timeIntervalEnd
)
}
}
}
var
BeginDate
:
Date
!
=
nil
var
EndDate
:
Date
!
=
nil
var
EndDate
:
Date
!
=
nil
func
selectMoreDate
(
beginDate
:
Date
,
endginDate
:
Date
)
{
print
(
"选择日期·····"
)
let
timeInterval
:
TimeInterval
=
beginDate
.
timeIntervalSince1970
...
...
GeliBusinessPlatform/View/TimeSelectView/TimeSelectView.swift
View file @
16a50699
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
16a50699
...
...
@@ -1054,6 +1054,12 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
if
cell
.
nameLbl
.
text
==
"预设预付定金时间段"
{
print
(
"定金时间段"
)
let
timeSelectV
=
ShowTimeSelectView
(
frame
:
self
.
view
.
window
!.
bounds
)
if
dj_time_start
!=
0
&&
dj_time_end
!=
0
{
var
time
=
TimeInterval
(
exactly
:
dj_time_start
!
)
timeSelectV
.
BeginDate
=
Date
(
timeIntervalSince1970
:
time
!
)
time
=
TimeInterval
(
exactly
:
dj_time_end
!
)
timeSelectV
.
EndDate
=
Date
(
timeIntervalSince1970
:
time
!
)
}
timeSelectV
.
beginDateByWork
=
Date
()
timeSelectV
.
titleLbl
.
text
=
"预设预付定金时间段"
timeSelectV
.
delegate
=
self
...
...
@@ -1070,6 +1076,12 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
let
timeSelectV
=
ShowTimeSelectView
(
frame
:
self
.
view
.
window
!.
bounds
)
timeSelectV
.
titleLbl
.
text
=
"预设预付尾款时间段"
timeSelectV
.
delegate
=
self
if
wk_time_start
!=
0
&&
wk_time_end
!=
0
{
var
time
=
TimeInterval
(
exactly
:
wk_time_start
!
)
timeSelectV
.
BeginDate
=
Date
(
timeIntervalSince1970
:
time
!
)
time
=
TimeInterval
(
exactly
:
wk_time_end
!
)
timeSelectV
.
EndDate
=
Date
(
timeIntervalSince1970
:
time
!
)
}
let
dijitime
:
TimeInterval
=
TimeInterval
(
exactly
:
(
dj_time_start
!
+
(
24
*
60
*
60
)))
!
let
beginDate
=
Date
(
timeIntervalSince1970
:
dijitime
)
timeSelectV
.
beginDateByWork
=
beginDate
...
...
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
16a50699
...
...
@@ -632,6 +632,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
if
cell
.
nameLbl
.
text
==
"预设预付定金时间段"
{
print
(
"定金时间段"
)
let
timeSelectV
=
ShowTimeSelectView
(
frame
:
self
.
view
.
window
!.
bounds
)
if
dj_time_start
!=
0
&&
dj_time_end
!=
0
{
var
time
=
TimeInterval
(
exactly
:
dj_time_start
!
)
timeSelectV
.
BeginDate
=
Date
(
timeIntervalSince1970
:
time
!
)
time
=
TimeInterval
(
exactly
:
dj_time_end
!
)
timeSelectV
.
EndDate
=
Date
(
timeIntervalSince1970
:
time
!
)
}
timeSelectV
.
beginDateByWork
=
Date
()
timeSelectV
.
titleLbl
.
text
=
"预设预付定金时间段"
timeSelectV
.
delegate
=
self
...
...
@@ -648,6 +654,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
let
timeSelectV
=
ShowTimeSelectView
(
frame
:
self
.
view
.
window
!.
bounds
)
timeSelectV
.
titleLbl
.
text
=
"预设预付尾款时间段"
timeSelectV
.
delegate
=
self
if
wk_time_start
!=
0
&&
wk_time_end
!=
0
{
var
time
=
TimeInterval
(
exactly
:
wk_time_start
!
)
timeSelectV
.
BeginDate
=
Date
(
timeIntervalSince1970
:
time
!
)
time
=
TimeInterval
(
exactly
:
wk_time_end
!
)
timeSelectV
.
EndDate
=
Date
(
timeIntervalSince1970
:
time
!
)
}
let
dijitime
:
TimeInterval
=
TimeInterval
(
exactly
:
(
dj_time_start
!
+
(
24
*
60
*
60
)))
!
let
beginDate
=
Date
(
timeIntervalSince1970
:
dijitime
)
timeSelectV
.
beginDateByWork
=
beginDate
...
...
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
16a50699
...
...
@@ -46,7 +46,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
//MARK:--二维码方法
@IBAction
func
codeAction
(
_
sender
:
UIButton
)
{
print
(
"二维码方法"
)
//加一个透明的显示弹窗
print
(
"指定日期当天的开始时间:"
,
Date
()
.
dateAtStartOf
(
.
day
)
.
date
)
print
(
"指定日期当天的结束时间:"
,
Date
()
.
dateAtEndOf
(
.
day
)
.
date
)
}
//MARK:--头部按钮方法
let
selectV
=
WorkSelectTimeView
()
...
...
GeliBusinessPlatform/ViewController/订单列表/OrderListViewController.swift
View file @
16a50699
...
...
@@ -160,8 +160,8 @@ class OrderListViewController: BaseViewController ,UISearchBarDelegate, SearchBa
vc
.
endTime
=
0
}
else
{
let
timeInterval
:
TimeInterval
=
BeginDate
!.
timeIntervalSince1970
let
timeIntervalEnd
:
TimeInterval
=
EndDate
!.
timeIntervalSince1970
let
timeIntervalEnd
:
TimeInterval
=
EndDate
!.
timeIntervalSince1970
vc
.
startTime
=
Int
(
timeInterval
)
vc
.
endTime
=
Int
(
timeIntervalEnd
)
}
...
...
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