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
653f6b3c
Commit
653f6b3c
authored
Dec 13, 2018
by
Junling Bu
Browse files
fix[litemall-wx]: 下单成功后,重置couponId
parent
00af9731
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/checkout/checkout.js
View file @
653f6b3c
...
...
@@ -141,6 +141,14 @@ Page({
grouponLinkId
:
this
.
data
.
grouponLinkId
},
'
POST
'
).
then
(
res
=>
{
if
(
res
.
errno
===
0
)
{
// 下单成功,重置couponId
try
{
wx
.
setStorageSync
(
'
couponId
'
,
0
);
}
catch
(
error
)
{
}
const
orderId
=
res
.
data
.
orderId
;
util
.
request
(
api
.
OrderPrepay
,
{
orderId
:
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