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
6050dcbe
Commit
6050dcbe
authored
Sep 11, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改增值服务装车,卸车可多选
parent
030e2ce0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
14 deletions
+12
-14
GeliBusinessPlatform/ViewController/增值服务/ZengZhiServicesViewController.swift
...m/ViewController/增值服务/ZengZhiServicesViewController.swift
+12
-14
No files found.
GeliBusinessPlatform/ViewController/增值服务/ZengZhiServicesViewController.swift
View file @
6050dcbe
...
...
@@ -17,6 +17,7 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
//MARK: - 数据汇总提交
@IBAction
func
submitAction
(
_
sender
:
Any
)
{
print
(
"submit"
)
print
(
"装车
\(
ZhuangChe
)
,卸车
\(
XieChe
)
"
)
if
price
.
count
==
0
{
HUD
.
flash
(
.
label
(
"请输入保价金额"
),
delay
:
1.2
)
return
...
...
@@ -50,30 +51,27 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
@IBOutlet
weak
var
rightB
:
UIButton
!
@IBOutlet
weak
var
leftB
:
UIButton
!
//MARK: - 额外服务:2装车 1卸车 0不选
var
selectNum
=
0
var
ZhuangChe
=
0
var
XieChe
=
0
@IBAction
func
logistActionSelect
(
_
sender
:
UIButton
)
{
if
sender
.
tag
==
1
{
if
leftB
.
isSelected
==
false
{
leftB
.
isSelected
=
true
selectNum
=
2
}
else
{
if
leftB
.
isSelected
{
leftB
.
isSelected
=
false
ZhuangChe
=
0
}
else
{
leftB
.
isSelected
=
true
ZhuangChe
=
1
}
}
else
{
if
rightB
.
isSelected
{
rightB
.
isSelected
=
false
XieChe
=
0
}
else
{
if
rightB
.
isSelected
==
false
{
rightB
.
isSelected
=
true
selectNum
=
1
}
else
{
rightB
.
isSelected
=
false
}
leftB
.
isSelected
=
false
XieChe
=
1
}
if
rightB
.
isSelected
==
false
&&
leftB
.
isSelected
==
false
{
selectNum
=
0
}
print
(
selectNum
)
}
var
selectIdx
:
Int
?
...
...
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