Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
2edaff60
Commit
2edaff60
authored
Oct 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/viitto/mallapp
parents
ee9fdc4b
55af7fd5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
130 deletions
+87
-130
cart.vue
pages/cart/cart.vue
+71
-127
order-submit.vue
pages/order-submit/order-submit.vue
+16
-3
No files found.
pages/cart/cart.vue
View file @
2edaff60
This diff is collapsed.
Click to expand it.
pages/order-submit/order-submit.vue
View file @
2edaff60
...
...
@@ -615,6 +615,7 @@
this
.
payInfo
.
GoodsName
=
this
.
mchs
[
0
].
goods_list
[
0
].
name
.
slice
(
0
,
10
);
this
.
formdata
.
DeliveryMethod
=
this
.
mchs
[
0
].
delivery
.
send_type
;
this
.
ds
=
res
.
data
;
console
.
log
(
"this.ds "
,
this
.
ds
)
this
.
expressPrice
=
0.0
;
this
.
goodPrice
=
0.0
;
this
.
couponPrice
=
0.0
;
...
...
@@ -644,7 +645,6 @@
);
},
formatPrice
()
{
console
.
log
(
"this.mchs"
,
this
.
mchs
);
if
(
this
.
mchs
)
{
this
.
mchs
.
forEach
(
x
=>
{
x
.
delivery
.
showDelivery
=
false
;
...
...
@@ -655,7 +655,21 @@
}
});
}
this
.
goodPrice
+=
parseFloat
(
x
.
total_goods_price
);
//绑定商品价格 HK 2022-10-11新增 判断是否有绑定商品
let
tempRelevancePrice
=
0
;
if
(
x
.
goods_list
&&
x
.
goods_list
.
length
>
0
)
{
x
.
goods_list
.
forEach
(
rootItem
=>
{
if
(
rootItem
.
GoodsRelevanceList
&&
rootItem
.
GoodsRelevanceList
.
length
>
0
)
{
rootItem
.
GoodsRelevanceList
.
forEach
(
qitem
=>
{
tempRelevancePrice
+=
parseFloat
(
qitem
.
RelevancePrice
);
console
.
log
(
"tempRelevancePrice1"
,
tempRelevancePrice
)
})
}
})
}
console
.
log
(
"tempRelevancePrice2"
,
tempRelevancePrice
)
//HK 2022-10-11 新增结束
this
.
goodPrice
+=
parseFloat
(
x
.
total_goods_price
)
+
parseFloat
(
tempRelevancePrice
);
this
.
expressPrice
+=
parseFloat
(
x
.
express_price
);
this
.
couponPrice
+=
parseFloat
(
x
.
coupon
.
coupon_discount
||
0.0
);
this
.
cashPrice
+=
parseFloat
(
x
.
deposit
.
deposit_price
||
0.0
);
...
...
@@ -698,7 +712,6 @@
button
[
disabled
]
{
color
:
rgba
(
0
,
0
,
0
,
.3
)
!important
;
background-color
:
#f7f7f7
!important
;
}
.ordersubmit
{
...
...
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