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
02c23b49
Commit
02c23b49
authored
Apr 12, 2021
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asdfsadfasf232323dasdf
parent
07f30b2b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
1 deletion
+45
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+30
-1
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
...essPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
+15
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
02c23b49
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
02c23b49
...
@@ -17,7 +17,7 @@ import IQKeyboardManagerSwift
...
@@ -17,7 +17,7 @@ import IQKeyboardManagerSwift
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
,
TitleAndTFBtnCellDelegate
,
WenDuCellDelegate
,
LogisticalSelectViewDelegate
,
UIPickerViewDataSource
,
UIPickerViewDelegate
,
GLAlertSelectViewDelegate
,
CLLocationManagerDelegate
,
CityListViewControllerDelegate
,
ToAndFormSelectViewControllerDelegate
,
WayBillAddressCanDelItemCellDelegate
,
HLLTopCellDelegate
,
OtherDemandViewControllerDelegate
,
OnlyViewCellDelegate
,
XiaDanUserInfoViewControllerDelegate
,
P_P_H_Time_Select_View_Delegate
{
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
,
TitleAndTFBtnCellDelegate
,
WenDuCellDelegate
,
LogisticalSelectViewDelegate
,
UIPickerViewDataSource
,
UIPickerViewDelegate
,
GLAlertSelectViewDelegate
,
CLLocationManagerDelegate
,
CityListViewControllerDelegate
,
ToAndFormSelectViewControllerDelegate
,
WayBillAddressCanDelItemCellDelegate
,
HLLTopCellDelegate
,
OtherDemandViewControllerDelegate
,
OnlyViewCellDelegate
,
XiaDanUserInfoViewControllerDelegate
,
P_P_H_Time_Select_View_Delegate
{
var
isPPH
=
false
//MARK: - 拼拼货
//MARK: - 拼拼货
var
pph_time
=
""
var
pph_time
=
""
func
P_P_H_Time_Select_View_Time_Select
(
time
:
String
)
{
func
P_P_H_Time_Select_View_Time_Select
(
time
:
String
)
{
...
@@ -357,11 +357,22 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -357,11 +357,22 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
func
HLLTopCellScrollIdx
(
idx
:
Int
)
{
func
HLLTopCellScrollIdx
(
idx
:
Int
)
{
if
isPPH
{
pph_selectCarType
=
idx
pph_showScrollUI
()
return
}
selectCarType
=
idx
selectCarType
=
idx
showScrollUI
()
showScrollUI
()
}
}
func
HLLTopCellBtnClick
(
idx
:
Int
)
{
func
HLLTopCellBtnClick
(
idx
:
Int
)
{
print
(
"abc == "
,
idx
)
if
isPPH
{
pph_selectCarType
=
idx
pph_showScrollUI
()
return
}
selectCarType
=
idx
selectCarType
=
idx
showScrollUI
()
showScrollUI
()
}
}
...
@@ -885,6 +896,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -885,6 +896,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
closeCarList
()
closeCarList
()
isPPH
=
false
pph_closeCarList
()
pph_closeCarList
()
lineV
.
frame
.
origin
.
x
=
fullScreenWidth
*
0.333
*
CGFloat
(
sender
.
tag
)
lineV
.
frame
.
origin
.
x
=
fullScreenWidth
*
0.333
*
CGFloat
(
sender
.
tag
)
if
rightBtn
==
sender
{
//货拉拉
if
rightBtn
==
sender
{
//货拉拉
...
@@ -935,6 +947,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -935,6 +947,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
hllView
.
isHidden
=
true
hllView
.
isHidden
=
true
}
else
{
//拼拼货
}
else
{
//拼拼货
isPPH
=
true
rightBtn
.
isSelected
=
false
rightBtn
.
isSelected
=
false
leftBtn
.
isSelected
=
false
leftBtn
.
isSelected
=
false
pin_pin_huo
.
isSelected
=
true
pin_pin_huo
.
isSelected
=
true
...
@@ -2666,7 +2679,23 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -2666,7 +2679,23 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
@objc
func
carSelect
(
sender
:
UIButton
){
@objc
func
carSelect
(
sender
:
UIButton
){
if
isPPH
{
let
btn
=
pph_btnArr
[
sender
.
tag
]
pph_topBtnClick
(
btn
:
btn
)
pph_closeCarList
()
let
idx
=
IndexPath
(
row
:
0
,
section
:
0
)
let
cell
=
pph_listView
.
cellForRow
(
at
:
idx
)
as!
HLLTopCell
let
w
=
cell
.
scViewBg
.
bounds
.
size
.
width
cell
.
scrollView
?
.
setContentOffset
(
CGPoint
(
x
:
sender
.
tag
*
Int
(
w
),
y
:
0
),
animated
:
true
)
cell
.
idx
=
sender
.
tag
let
x
=
btn
.
frame
.
minX
let
rect
=
CGRect
(
x
:
Int
(
x
),
y
:
0
,
width
:
Int
(
w
),
height
:
1
)
pph_topBtnScv
.
scrollRectToVisible
(
rect
,
animated
:
true
)
pph_selectCarType
=
sender
.
tag
return
}
let
btn
=
btnArr
[
sender
.
tag
]
let
btn
=
btnArr
[
sender
.
tag
]
topBtnClick
(
btn
:
btn
)
topBtnClick
(
btn
:
btn
)
closeCarList
()
closeCarList
()
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
View file @
02c23b49
...
@@ -29,6 +29,14 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
...
@@ -29,6 +29,14 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
if
idx
==
0
{
if
idx
==
0
{
leftBtn
.
isHidden
=
true
leftBtn
.
isHidden
=
true
}
}
}
else
{
if
isPPH
{
if
idx
<
pph_datas
.
count
-
1
{
idx
+=
1
}
if
idx
==
pph_datas
.
count
-
1
{
rightBtn
.
isHidden
=
true
}
}
else
{
}
else
{
if
idx
<
datas
.
count
-
1
{
if
idx
<
datas
.
count
-
1
{
idx
+=
1
idx
+=
1
...
@@ -37,6 +45,7 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
...
@@ -37,6 +45,7 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
rightBtn
.
isHidden
=
true
rightBtn
.
isHidden
=
true
}
}
}
}
}
scrollView
?
.
setContentOffset
(
CGPoint
(
x
:
scViewBg
.
bounds
.
size
.
width
*
CGFloat
(
idx
),
y
:
(
scrollView
?
.
frame
.
origin
.
y
)
!
),
animated
:
true
)
scrollView
?
.
setContentOffset
(
CGPoint
(
x
:
scViewBg
.
bounds
.
size
.
width
*
CGFloat
(
idx
),
y
:
(
scrollView
?
.
frame
.
origin
.
y
)
!
),
animated
:
true
)
delegate
?
.
HLLTopCellBtnClick
(
idx
:
idx
)
delegate
?
.
HLLTopCellBtnClick
(
idx
:
idx
)
...
@@ -48,9 +57,15 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
...
@@ -48,9 +57,15 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
if
idx
<
0
{
if
idx
<
0
{
idx
=
0
idx
=
0
}
}
if
isPPH
{
if
idx
>
pph_datas
.
count
-
1
{
idx
=
pph_datas
.
count
-
1
}
}
else
{
if
idx
>
datas
.
count
-
1
{
if
idx
>
datas
.
count
-
1
{
idx
=
datas
.
count
-
1
idx
=
datas
.
count
-
1
}
}
}
delegate
?
.
HLLTopCellScrollIdx
(
idx
:
idx
)
delegate
?
.
HLLTopCellScrollIdx
(
idx
:
idx
)
}
}
}
}
...
...
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