Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
4b0bf05c
Commit
4b0bf05c
authored
May 11, 2018
by
Junling Bu
Browse files
fix[litemall-wx]: 立即购物时仍然下单购物车所有商品。
parent
e1111fed
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/shopping/checkout/checkout.js
View file @
4b0bf05c
...
@@ -101,7 +101,7 @@ Page({
...
@@ -101,7 +101,7 @@ Page({
util
.
showErrorToast
(
'
请选择收货地址
'
);
util
.
showErrorToast
(
'
请选择收货地址
'
);
return
false
;
return
false
;
}
}
util
.
request
(
api
.
OrderSubmit
,
{
cartId
:
0
,
addressId
:
this
.
data
.
addressId
,
couponId
:
this
.
data
.
couponId
},
'
POST
'
).
then
(
res
=>
{
util
.
request
(
api
.
OrderSubmit
,
{
cartId
:
this
.
data
.
cartId
,
addressId
:
this
.
data
.
addressId
,
couponId
:
this
.
data
.
couponId
},
'
POST
'
).
then
(
res
=>
{
if
(
res
.
errno
===
0
)
{
if
(
res
.
errno
===
0
)
{
const
orderId
=
res
.
data
.
orderId
;
const
orderId
=
res
.
data
.
orderId
;
...
...
Write
Preview
Supports
Markdown
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