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
013825c6
Commit
013825c6
authored
Aug 12, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情保证数据
parent
ce4779c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
30 deletions
+52
-30
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
...ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
+49
-30
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.xib
...m/ViewController/货拉拉/运单详情/WaybillDetailViewController.xib
+3
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
013825c6
No preview for this file type
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
View file @
013825c6
...
@@ -36,7 +36,6 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -36,7 +36,6 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
listView
.
register
(
UINib
(
nibName
:
"TitleAndLblCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndLblCell"
)
listView
.
register
(
UINib
(
nibName
:
"TitleAndLblCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndLblCell"
)
listView
.
register
(
UINib
(
nibName
:
"LalamoveBillTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"LalamoveBillTableViewCell"
)
listView
.
register
(
UINib
(
nibName
:
"LalamoveBillTableViewCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"LalamoveBillTableViewCell"
)
// setPaymentUI(data:datas)
loadData
()
loadData
()
if
!
isYDBc
{
if
!
isYDBc
{
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loadData
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"HuolalaOrderChange"
),
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loadData
)
,
name
:
NSNotification
.
Name
(
rawValue
:
"HuolalaOrderChange"
),
object
:
nil
)
...
@@ -45,6 +44,7 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -45,6 +44,7 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
bottomLheight
.
constant
=
0
bottomLheight
.
constant
=
0
bottomLbl
.
isHidden
=
true
bottomLbl
.
isHidden
=
true
bottomBtn
.
isHidden
=
true
bottomBtn
.
isHidden
=
true
// setPaymentUI(data:datas)
}
}
@objc
func
loadData
(){
@objc
func
loadData
(){
...
@@ -54,41 +54,60 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
...
@@ -54,41 +54,60 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
getHllOrderDetails
([
"user_token"
:
UserToken
as
Any
,
"lwb_no"
:
lwb_no
as
Any
],
success
:
{
(
data
)
in
getHllOrderDetails
([
"user_token"
:
UserToken
as
Any
,
"lwb_no"
:
lwb_no
as
Any
],
success
:
{
(
data
)
in
HUD
.
hide
()
HUD
.
hide
()
let
model
=
data
as!
getHllOrderDetailsModel
let
model
=
data
as!
getHllOrderDetailsModel
self
.
dataModel
=
model
.
data
!
if
model
.
data
?
.
order_detail_item
!=
nil
{
if
!
self
.
isYDBc
{
self
.
dataModel
=
model
.
data
!
switch
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
order_status
{
if
!
self
.
isYDBc
{
case
0
:
switch
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
order_status
{
print
(
"等待司机接单"
)
case
0
:
self
.
bottomLheight
.
constant
=
49
print
(
"等待司机接单"
)
self
.
bottomLbl
.
isHidden
=
false
self
.
bottomLheight
.
constant
=
49
self
.
bottomBtn
.
isHidden
=
false
self
.
bottomLbl
.
isHidden
=
false
case
1
:
self
.
bottomBtn
.
isHidden
=
false
print
(
"待装货"
)
self
.
bottomLbl
.
text
=
"取消订单"
self
.
bottomLheight
.
constant
=
49
case
1
:
self
.
bottomLbl
.
isHidden
=
false
print
(
"待装货"
)
self
.
bottomBtn
.
isHidden
=
false
self
.
bottomLheight
.
constant
=
49
case
15
:
self
.
bottomLbl
.
isHidden
=
false
print
(
"待装中"
)
self
.
bottomBtn
.
isHidden
=
false
case
7
:
self
.
bottomLbl
.
text
=
"取消订单"
print
(
"运输中"
)
case
15
:
case
2
:
print
(
"待装中"
)
print
(
"已完成"
)
case
7
:
self
.
bottomLheight
.
constant
=
49
print
(
"运输中"
)
self
.
bottomLbl
.
isHidden
=
false
case
2
:
self
.
bottomBtn
.
isHidden
=
false
print
(
"已完成"
)
self
.
bottomLbl
.
text
=
"立即支付51.2元"
if
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
pay_status
==
0
{
case
3
,
4
,
5
:
self
.
bottomLheight
.
constant
=
49
print
(
"已取消"
)
self
.
bottomLbl
.
isHidden
=
false
default
:
self
.
bottomBtn
.
isHidden
=
false
break
self
.
bottomLbl
.
text
=
"立即支付"
+
String
(
format
:
"%.2f"
,
(
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
price_fen
)
!
)
+
"元"
}
case
3
,
4
,
5
:
print
(
"已取消"
)
default
:
break
}
}
}
self
.
listView
.
reloadData
()
}
else
{
self
.
loadData
()
}
}
self
.
listView
.
reloadData
()
})
{
(
error
)
in
})
{
(
error
)
in
HUD
.
hide
()
HUD
.
hide
()
}
}
}
}
@IBAction
func
bottomAction
(
_
sender
:
LGButton
)
{
if
bottomLbl
.
text
==
"取消订单"
{
let
vc
=
HuolalaCancelViewController
()
vc
.
lwbno
=
lwb_no
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
if
(
bottomLbl
.
text
?
.
contains
(
"立即支付"
))
!
{
setPaymentUI
(
data
:
datas
)
}
}
func
selectBtmBtnCellBy
(
index
:
Int
)
{
func
selectBtmBtnCellBy
(
index
:
Int
)
{
switch
index
{
switch
index
{
case
0
:
case
0
:
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.xib
View file @
013825c6
...
@@ -43,6 +43,9 @@
...
@@ -43,6 +43,9 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
<userDefinedRuntimeAttribute
type=
"boolean"
keyPath=
"gradientHorizontal"
value=
"YES"
/>
</userDefinedRuntimeAttributes>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"bottomAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"zkd-LF-I00"
/>
</connections>
</view>
</view>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"取消订单"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tOa-jF-wGg"
>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"取消订单"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tOa-jF-wGg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"813"
width=
"414"
height=
"49"
/>
...
...
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