Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-platform
Commits
6baa74d8
Commit
6baa74d8
authored
Sep 21, 2020
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:订单结算物流费用
parent
fc5903cf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.tsx
src/pages/lxMall/order/index.tsx
+4
-4
No files found.
src/pages/lxMall/order/index.tsx
View file @
6baa74d8
...
...
@@ -137,7 +137,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
for
(
let
orderItem
of
item
.
orderList
)
{
let
templateId
=
orderItem
.
logistics
?.
templateId
// 判断是否物流的方式和由买家承担费用并使用了运费模板
if
(
orderItem
.
logistics
?.
deliveryType
===
1
&&
orderItem
.
logistics
?.
carriageType
===
1
&&
orderItem
.
logistics
?.
useTemplate
&&
templateId
)
{
if
(
orderItem
.
logistics
?.
deliveryType
===
1
&&
orderItem
.
logistics
?.
carriageType
===
2
&&
orderItem
.
logistics
?.
useTemplate
&&
templateId
)
{
orderProductList
.
push
({
templateId
,
weight
:
orderItem
.
logistics
?.
weight
,
...
...
@@ -167,7 +167,7 @@ const Order: React.FC<OrderPropsType> = (props) => {
}
const
getAmount
=
(
state
=
true
)
=>
{
return
state
?
priceFormat
(
getCommodityAmount
()
+
getLogisticsFee
())
:
numFormat
(
getCommodityAmount
()
+
getLogisticsFee
()
)
return
state
?
priceFormat
(
getCommodityAmount
()
+
getLogisticsFee
())
:
numFormat
(
getCommodityAmount
())
}
/**
...
...
@@ -260,8 +260,8 @@ const Order: React.FC<OrderPropsType> = (props) => {
message
.
info
(
'请先同意签订电子合同'
)
return
}
//
setSignModalVisible(true)
submitOrder
()
setSignModalVisible
(
true
)
//
submitOrder()
}
const
handleSignModalConfirm
=
()
=>
{
...
...
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