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
ef758e3c
Commit
ef758e3c
authored
Aug 17, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据后台要求修改逻辑
parent
cf026f3f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
12 deletions
+25
-12
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/LalamoveInterface/LalamoveModel.swift
...inessPlatform/Model/LalamoveInterface/LalamoveModel.swift
+4
-0
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
...wController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
+2
-0
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
...ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
+18
-11
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.xib
...m/ViewController/货拉拉/运单详情/WaybillDetailViewController.xib
+1
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ef758e3c
No preview for this file type
GeliBusinessPlatform/Model/LalamoveInterface/LalamoveModel.swift
View file @
ef758e3c
...
...
@@ -553,6 +553,8 @@ class getHllOrderDetailsSalePlatDataModel: Mappable {
var
order_sn
:
String
?
var
hll_pay_status_two
:
Int
?
var
wb_no
:
String
?
var
bill_price_arr
:
Float
?
var
pay_status
:
Int
?
required
init
?(
map
:
Map
)
{
...
...
@@ -562,6 +564,8 @@ class getHllOrderDetailsSalePlatDataModel: Mappable {
order_sn
<-
map
[
"order_sn"
]
hll_pay_status_two
<-
map
[
"hll_pay_status_two"
]
wb_no
<-
map
[
"wb_no"
]
bill_price_arr
<-
map
[
"bill_price_arr"
]
pay_status
<-
map
[
"pay_status"
]
}
}
...
...
GeliBusinessPlatform/ViewController/货拉拉/收发货地址/ToAndFormSelectViewController.swift
View file @
ef758e3c
...
...
@@ -387,8 +387,10 @@ class ToAndFormSelectViewController: BaseViewController, MAMapViewDelegate, CLLo
print
(
"sureSelectAddressAction"
)
if
titleLbl
?
.
text
==
""
{
HUD
.
flash
(
.
label
(
"未能识别当前位置,请重新定位"
),
delay
:
1.2
)
return
}
var
dict
:
Dictionary
<
String
,
Any
>
=
Dictionary
()
dict
[
"menPai"
]
=
"
\(
city
)\(
districet
)\(
ad
)\(
addressDetailTF
.
text
!
)
"
dict
[
"shouHuoRen"
]
=
nameTF
.
text
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.swift
View file @
ef758e3c
...
...
@@ -11,7 +11,6 @@ import LGButton
class
WaybillDetailViewController
:
BaseViewController
,
UITableViewDelegate
,
UITableViewDataSource
,
BtmBtnCellDelegate
,
PaymentViewDelegate
{
@IBOutlet
weak
var
bottomLheight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
bottomLbl
:
UILabel
!
@IBOutlet
weak
var
bottomBtn
:
LGButton
!
...
...
@@ -73,7 +72,6 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
self
.
dataModel
=
model
.
data
!
if
!
self
.
isYDBc
{
switch
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
order_status
{
case
0
:
...
...
@@ -89,14 +87,18 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
self
.
bottomBtn
.
isHidden
=
false
self
.
bottomLbl
.
text
=
"取消订单"
case
13
,
2
:
//MARK: - 立即支付状态
print
(
"已完成"
)
if
self
.
dataModel
?
.
delivery
?
.
hll_pay_status_two
==
1
{
if
self
.
dataModel
?
.
delivery
?
.
pay_status
==
1
{
self
.
bottomLheight
.
constant
=
49
self
.
bottomLbl
.
isHidden
=
false
self
.
bottomBtn
.
isHidden
=
false
if
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
order_status
==
13
{
self
.
bottomLbl
.
text
=
"确认账单"
}
else
{
self
.
bottomLbl
.
text
=
"立即支付"
+
String
(
format
:
"%.2f"
,
((
self
.
dataModel
?
.
order_detail_item
?
.
order_item
?
.
price_fen
)
!/
100.0
))
+
"元"
}
}
default
:
break
}
...
...
@@ -125,12 +127,9 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
let
vc
=
HuolalaCancelViewController
()
vc
.
lwbno
=
lwb_no
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
if
(
bottomLbl
.
text
?
.
contains
(
"立即支付"
))
!
{
if
dataModel
?
.
delivery
?
.
hll_pay_status_two
==
1
&&
dataModel
?
.
order_detail_item
?
.
order_item
?
.
order_status
==
13
{
}
else
if
(
bottomLbl
.
text
?
.
contains
(
"确认账单"
))
!
{
if
!
ispayHllOrder
{
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
payHllOrder
([
"user_token"
:
UserToken
as
Any
,
"lwb_no"
:
lwb_no
as
Any
,
"nonce_str"
:
String
.
randomStr
(
len
:
30
)
as
Any
],
success
:
{
(
data
)
in
self
.
ispayHllOrder
=
true
self
.
setPaymentUI
(
data
:
self
.
orderPriceArrName
)
...
...
@@ -140,10 +139,19 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
}
else
{
self
.
setPaymentUI
(
data
:
self
.
orderPriceArrName
)
}
}
else
{
}
else
if
(
bottomLbl
.
text
?
.
contains
(
"立即支付"
))
!
{
//MARK: - 支付
if
dataModel
?
.
delivery
?
.
pay_status
==
1
{
if
!
ispayHllOrder
{
setPaymentUI
(
data
:
orderPriceArrName
)
}
}
else
{
self
.
setPaymentUI
(
data
:
self
.
orderPriceArrName
)
}
}
...
...
@@ -212,7 +220,6 @@ class WaybillDetailViewController: BaseViewController ,UITableViewDelegate,UITab
orderPriceArrStr
.
append
(
"¥"
+
String
(
format
:
"%.2f"
,
(
rowModel
.
price_fen
!/
100.0
)))
case
2
:
let
distance
=
CGFloat
((
dataModel
?
.
order_detail_item
?
.
exceed_distance
)
!
)
/
1000.0
print
(
"d == "
,
distance
)
orderPriceArrName
.
append
(
"超里程价"
+
"("
+
String
(
format
:
"%.2f"
,
distance
)
+
"公里"
+
")"
)
orderPriceArrStr
.
append
(
"¥"
+
String
(
format
:
"%.2f"
,
(
rowModel
.
price_fen
!/
100.0
)))
case
4
:
...
...
GeliBusinessPlatform/ViewController/货拉拉/运单详情/WaybillDetailViewController.xib
View file @
ef758e3c
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"16097
.2
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
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