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
c1dad615
Commit
c1dad615
authored
Mar 30, 2018
by
Junling Bu
Browse files
模拟支付成功提示信息。
parent
ae37e045
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/shopping/checkout/checkout.js
View file @
c1dad615
...
...
@@ -107,9 +107,16 @@ Page({
const
orderId
=
res
.
data
.
orderInfo
.
id
;
// 目前不能支持微信支付,这里仅仅是模拟支付成功,同理,后台也仅仅是返回一个成功的消息而已
wx
.
showModal
({
title
:
'
目前不能微信支付
'
,
content
:
'
点击确定模拟支付成功
'
,
showCancel
:
false
,
success
:
function
(
res
)
{
wx
.
redirectTo
({
url
:
'
/pages/payResult/payResult?status=true&orderId=
'
+
orderId
});
}
});
// pay.payOrder(orderId).then(res => {
// wx.redirectTo({
...
...
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