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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
9 deletions
+53
-9
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+31
-2
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
...essPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
+22
-7
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
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: - 拼拼货
var
pph_time
=
""
func
P_P_H_Time_Select_View_Time_Select
(
time
:
String
)
{
...
...
@@ -357,11 +357,22 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
func
HLLTopCellScrollIdx
(
idx
:
Int
)
{
if
isPPH
{
pph_selectCarType
=
idx
pph_showScrollUI
()
return
}
selectCarType
=
idx
showScrollUI
()
}
func
HLLTopCellBtnClick
(
idx
:
Int
)
{
print
(
"abc == "
,
idx
)
if
isPPH
{
pph_selectCarType
=
idx
pph_showScrollUI
()
return
}
selectCarType
=
idx
showScrollUI
()
}
...
...
@@ -885,6 +896,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
@IBAction
func
selectAction
(
_
sender
:
UIButton
)
{
closeCarList
()
isPPH
=
false
pph_closeCarList
()
lineV
.
frame
.
origin
.
x
=
fullScreenWidth
*
0.333
*
CGFloat
(
sender
.
tag
)
if
rightBtn
==
sender
{
//货拉拉
...
...
@@ -935,6 +947,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
hllView
.
isHidden
=
true
}
else
{
//拼拼货
isPPH
=
true
rightBtn
.
isSelected
=
false
leftBtn
.
isSelected
=
false
pin_pin_huo
.
isSelected
=
true
...
...
@@ -2666,7 +2679,23 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
@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
]
topBtnClick
(
btn
:
btn
)
closeCarList
()
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/cell/HLLTopCell.swift
View file @
02c23b49
...
...
@@ -30,11 +30,20 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
leftBtn
.
isHidden
=
true
}
}
else
{
if
idx
<
datas
.
count
-
1
{
idx
+=
1
}
if
idx
==
datas
.
count
-
1
{
rightBtn
.
isHidden
=
true
if
isPPH
{
if
idx
<
pph_datas
.
count
-
1
{
idx
+=
1
}
if
idx
==
pph_datas
.
count
-
1
{
rightBtn
.
isHidden
=
true
}
}
else
{
if
idx
<
datas
.
count
-
1
{
idx
+=
1
}
if
idx
==
datas
.
count
-
1
{
rightBtn
.
isHidden
=
true
}
}
}
...
...
@@ -48,8 +57,14 @@ class HLLTopCell: UITableViewCell,UIScrollViewDelegate {
if
idx
<
0
{
idx
=
0
}
if
idx
>
datas
.
count
-
1
{
idx
=
datas
.
count
-
1
if
isPPH
{
if
idx
>
pph_datas
.
count
-
1
{
idx
=
pph_datas
.
count
-
1
}
}
else
{
if
idx
>
datas
.
count
-
1
{
idx
=
datas
.
count
-
1
}
}
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