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
e2f7952f
Commit
e2f7952f
authored
Aug 05, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整普通下运单 智能选择物流公司
parent
692d3661
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
...ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
+23
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e2f7952f
No preview for this file type
GeliBusinessPlatform/ViewController/代客下单(货运)/下运单/XiaYunDanViewController.swift
View file @
e2f7952f
...
@@ -229,6 +229,19 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -229,6 +229,19 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
alertView
.
jdPriceLbl
.
text
=
"京东冷运(预估运费"
+
(
logPayPriceModel
?
.
price_jd
)
!
+
"元)"
alertView
.
jdPriceLbl
.
text
=
"京东冷运(预估运费"
+
(
logPayPriceModel
?
.
price_jd
)
!
+
"元)"
alertView
.
sfPriceLbl
.
text
=
"顺丰冷运(预估运费"
+
(
logPayPriceModel
?
.
price_sf
)
!
+
"元)"
alertView
.
sfPriceLbl
.
text
=
"顺丰冷运(预估运费"
+
(
logPayPriceModel
?
.
price_sf
)
!
+
"元)"
self
.
view
.
window
?
.
addSubview
(
alertView
)
self
.
view
.
window
?
.
addSubview
(
alertView
)
if
logPayPriceModel
?
.
price_sf
==
"-"
{
alertView
.
jdSelectBtn
.
isSelected
=
true
alertView
.
sfSelectBtn
.
isSelected
=
false
}
else
if
logPayPriceModel
?
.
price_sf
!=
"-"
&&
logPayPriceModel
?
.
price_jd
!=
"-"
{
alertView
.
jdSelectBtn
.
isSelected
=
false
alertView
.
sfSelectBtn
.
isSelected
=
true
let
num1
=
logPayPriceModel
?
.
price_sf
as!
NSString
let
num2
=
logPayPriceModel
?
.
price_jd
as!
NSString
if
num1
.
floatValue
>
num2
.
floatValue
{
alertView
.
jdSelectBtn
.
isSelected
=
true
alertView
.
sfSelectBtn
.
isSelected
=
false
}
}
}
else
{
}
else
{
HUD
.
flash
(
.
label
(
"未同意快件服务协议无法下单"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"未同意快件服务协议无法下单"
),
delay
:
1.2
)
}
}
...
@@ -1307,6 +1320,16 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -1307,6 +1320,16 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
let
dataModel
=
data
as!
registerModel
let
dataModel
=
data
as!
registerModel
self
.
logPayPriceModel
=
dataModel
.
data
self
.
logPayPriceModel
=
dataModel
.
data
self
.
priceLbl
.
text
=
"¥"
+
(
dataModel
.
data
?
.
price_sf
)
!
self
.
priceLbl
.
text
=
"¥"
+
(
dataModel
.
data
?
.
price_sf
)
!
if
dataModel
.
data
?
.
price_sf
==
"-"
{
self
.
priceLbl
.
text
=
"¥"
+
(
dataModel
.
data
?
.
price_jd
)
!
}
else
if
dataModel
.
data
?
.
price_sf
!=
"-"
&&
dataModel
.
data
?
.
price_jd
!=
"-"
{
self
.
priceLbl
.
text
=
"¥"
+
(
dataModel
.
data
?
.
price_sf
)
!
let
num1
=
dataModel
.
data
?
.
price_sf
as!
NSString
let
num2
=
dataModel
.
data
?
.
price_jd
as!
NSString
if
num1
.
floatValue
>
num2
.
floatValue
{
self
.
priceLbl
.
text
=
"¥"
+
(
dataModel
.
data
?
.
price_jd
)
!
}
}
})
{
(
error
)
in
})
{
(
error
)
in
}
}
...
...
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