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
4a0f8916
Commit
4a0f8916
authored
4 years ago
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
货物保障
parent
df480168
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
3 deletions
+52
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
+11
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+41
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
4a0f8916
No preview for this file type
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/View/AlertView/GLAlertSelectView.swift
View file @
4a0f8916
...
...
@@ -30,6 +30,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
{
delegate
?
.
GLAlertSelectViewFinish
?(
sender
:
sender
,
title
:
ysyfTitle
,
cellTag
:
cellTag
!
)
}
var
isBz
=
false
var
isNonSelect
=
false
{
didSet
{
...
...
@@ -206,6 +207,15 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
let
cell
=
tableView
.
cellForRow
(
at
:
indexPath
)
as!
TitleAndSelectCell
if
isMultipleS
==
false
{
if
isBz
{
if
selectNum
==
cell
.
tag
{
selectNum
=
10086
}
else
{
selectNum
=
cell
.
tag
}
}
else
{
if
isNonSelect
{
if
selectNum
!=
0
{
if
cell
.
tag
!=
0
{
...
...
@@ -217,6 +227,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
else
{
selectNum
=
cell
.
tag
}
}
}
else
{
if
isShangPinType
{
if
cell
.
tag
==
0
{
...
...
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
4a0f8916
...
...
@@ -12,7 +12,7 @@ import MAMapKit
import
SwiftyJSON
import
SwiftDate
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
,
TitleAndTFBtnCellDelegate
,
WenDuCellDelegate
,
LogisticalSelectViewDelegate
,
UIPickerViewDataSource
,
UIPickerViewDelegate
{
class
XiaYunDanViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
JiTuoWuXinXiViewDelegate
,
JiPaiFangShiViewControllerDelegate
,
ZengZhiServicesViewControllerDelegate
,
AdressSelectCellDelegate
,
DZGLViewControllerDelegate
,
XinZengDiZhiViewControllerDelegate
,
TitleAndTFBtnCellDelegate
,
WenDuCellDelegate
,
LogisticalSelectViewDelegate
,
UIPickerViewDataSource
,
UIPickerViewDelegate
,
GLAlertSelectViewDelegate
{
//时间选择背景
var
bgBtn
:
UIButton
?
...
...
@@ -373,6 +373,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
let
hPart2
=
[
"请选择用车时间"
,
"下单联系人信息"
,
"额外需求"
,
"货物保障"
]
var
hPart2P
=
[
""
,
""
,
""
,
""
]
let
hPart3
=
[
"关联平台:"
,
"关联订单号:"
]
var
isSelectPoripl
=
false
@objc
func
selectBtnClick
(
sender
:
UIButton
){
...
...
@@ -538,7 +539,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
var
bzIdx
=
10086
var
bzArr
=
[
"0元最高保5万"
,
"3元最高保10万"
,
"4元最高保20万"
,
"6元最高保30万"
,
"10元最高保50万"
,
"40元最高保100万"
,
"100元最高保200万"
]
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
tableView
==
listView
{
if
indexPath
.
section
==
1
{
...
...
@@ -589,6 +591,23 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
print
(
indexPath
.
section
,
indexPath
.
row
)
if
indexPath
.
section
==
2
{
//保障
if
indexPath
.
row
==
3
{
if
glSelectView
==
nil
{
let
view
=
GLAlertSelectView
(
frame
:
self
.
view
.
bounds
)
view
.
delegate
=
self
view
.
isBz
=
true
if
bzIdx
!=
10086
{
view
.
selectNum
=
bzIdx
view
.
tempNum
=
view
.
selectNum
}
view
.
titleLbl
.
text
=
"货物保障"
view
.
dataArr
=
bzArr
self
.
view
.
addSubview
(
view
)
glSelectView
=
view
}
}
//时间
if
indexPath
.
row
==
0
{
if
bgBtn
==
nil
{
let
btn
=
UIButton
()
...
...
@@ -618,7 +637,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
var
glSelectView
:
GLAlertSelectView
?
@objc
func
closeAc
(){
bgBtn
?
.
removeFromSuperview
()
...
...
@@ -790,6 +809,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"TitleAndBtnCell"
)
as!
TitleAndBtnCell
cell
.
btn
.
isUserInteractionEnabled
=
false
cell
.
nameLbl
.
text
=
hPart2
[
indexPath
.
row
]
cell
.
contentLbl
.
text
=
hPart2P
[
indexPath
.
row
]
return
cell
}
if
indexPath
.
section
==
4
{
...
...
@@ -1287,4 +1307,22 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
}
}
}
func
GLASClose
(
view
:
GLAlertSelectView
,
selectnum
:
Int
,
selectArr
:
Array
<
Int
>
)
{
bzIdx
=
selectnum
view
.
removeFromSuperview
()
glSelectView
=
nil
}
func
GLAlertSelectViewClick
(
selectNum
:
Int
,
view
:
GLAlertSelectView
)
{
bzIdx
=
selectNum
if
bzIdx
!=
10086
{
hPart2P
.
insert
(
bzArr
[
bzIdx
],
at
:
3
)
hPart2P
.
remove
(
at
:
4
)
hListView
.
reloadData
()
}
view
.
removeFromSuperview
()
glSelectView
=
nil
}
}
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