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
9e4c6c37
Commit
9e4c6c37
authored
Jun 11, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运单列表样式完成
parent
8ad92bd4
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
113 additions
and
3 deletions
+113
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+2
-1
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
+111
-2
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.xib
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.xib
+0
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
9e4c6c37
No preview for this file type
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
9e4c6c37
...
...
@@ -505,7 +505,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
return
case
88
:
//运单列表
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
let
vc
=
YDLBVc
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
return
case
89
:
//物流公司列表
HUD
.
flash
(
.
label
(
"敬请期待"
),
delay
:
1.2
)
...
...
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.swift
View file @
9e4c6c37
...
...
@@ -8,16 +8,25 @@
import
UIKit
class
YDLBVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
{
class
YDLBVc
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITextFieldDelegate
{
@IBOutlet
weak
var
contentView
:
UIView
!
@IBAction
func
listControlAction
(
_
sender
:
Any
)
{
print
(
"调用筛选列表"
)
preView
.
isHidden
=
!
preView
.
isHidden
}
@IBOutlet
weak
var
preView
:
UIView
!
@IBOutlet
weak
var
listView
:
UITableView
!
@IBOutlet
weak
var
searchVBg
:
UIView
!
@IBOutlet
weak
var
topView
:
UIView
!
@IBOutlet
weak
var
timeTF
:
UITextField
!
@IBOutlet
weak
var
standerTF
:
UITextField
!
@IBOutlet
weak
var
orderNumTF
:
UITextField
!
var
searchV
:
SearchBarView
?
=
nil
var
datas
:
Array
<
Any
>
=
[
1
,
2
]
...
...
@@ -25,6 +34,13 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
orderNumTF
.
tag
=
1
orderNumTF
.
delegate
=
self
standerTF
.
delegate
=
self
navbar
.
title
=
"运单列表"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
topView
,
height
:
51
)
...
...
@@ -49,6 +65,85 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
headerMJ
.
setRefreshingTarget
(
self
,
refreshingAction
:
#selector(
loadData
)
)
self
.
listView
!.
mj_header
=
headerMJ
self
.
listView
.
mj_header
?
.
beginRefreshing
()
}
func
btnUISet
(
btn
:
UIButton
){
btn
.
isSelected
=
!
btn
.
isSelected
if
btn
.
isSelected
{
btn
.
setTitleColor
(
UIColor
.
white
,
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
(
named
:
"按钮背景颜色"
)
}
else
{
btn
.
setTitleColor
(
UIColor
(
named
:
"个人中心灰色字体"
),
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
(
named
:
"多选按钮背景颜色"
)
}
}
@IBAction
func
btnClick
(
_
sender
:
UIButton
)
{
if
sender
.
titleLabel
!.
text
!=
"重置"
&&
sender
.
titleLabel
!.
text
!=
"确定"
{
btnUISet
(
btn
:
sender
)
}
switch
sender
.
titleLabel
?
.
text
{
case
"京东"
:
break
case
"已付款"
:
break
case
"未付款"
:
break
case
"已退款"
:
break
case
"全部"
:
if
sender
.
tag
==
99
{
//运单状态
}
else
{
//打印状态
}
break
case
"已打印"
:
break
case
"未打印"
:
break
case
"下单完成"
:
break
case
"揽收成功"
:
break
case
"运输中"
:
break
case
"已签收"
:
break
case
"已取消"
:
break
case
"重置"
:
print
(
"12"
)
contentView
.
subviews
.
forEach
{
(
view
)
in
view
.
subviews
.
forEach
{
(
item
)
in
if
item
.
isKind
(
of
:
UITextField
.
classForCoder
()){
print
(
"1"
)
let
tf
=
item
as!
UITextField
tf
.
text
=
""
}
if
item
.
isKind
(
of
:
UIButton
.
classForCoder
()){
print
(
"2"
)
let
btn
=
item
as!
UIButton
btn
.
isSelected
=
false
if
btn
.
tag
!=
996
{
btn
.
setTitleColor
(
UIColor
(
named
:
"个人中心灰色字体"
),
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
(
named
:
"多选按钮背景颜色"
)
}
}
}
}
break
case
"确定"
:
preView
.
isHidden
=
true
listView
.
mj_header
?
.
beginRefreshing
()
break
default
:
break
}
}
@IBAction
func
timeSelectAction
(
_
sender
:
Any
)
{
print
(
"选择时间"
)
}
//MARK: - 加载数据
@objc
func
loadData
(){
...
...
@@ -60,6 +155,7 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
var
blackBtnView
:
UIButton
!
=
nil
func
searchBarShouldBeginEditing
(
_
searchBar
:
UISearchBar
)
->
Bool
{
print
(
"调起搜索后添加个蒙版本"
)
preView
.
isHidden
=
true
blackBtnView
=
UIButton
()
blackBtnView
.
backgroundColor
=
UIColor
.
init
(
named
:
"提示视图背景色"
)
view
.
addSubview
(
blackBtnView
)
...
...
@@ -116,6 +212,19 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
cell
.
tag
=
indexPath
.
row
return
cell
}
func
textFieldDidBeginEditing
(
_
textField
:
UITextField
)
{
if
textField
.
tag
==
1
{
orderNumTF
.
text
=
" "
}
else
{
standerTF
.
text
=
" "
}
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
if
textField
.
tag
==
1
{
orderNumTF
.
text
=
textField
.
text
!
}
else
{
standerTF
.
text
=
textField
.
text
!
}
}
}
GeliBusinessPlatform/ViewController/运单列表/YDLBVc.xib
View file @
9e4c6c37
This diff is collapsed.
Click to expand it.
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