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
3cf1e4a7
Commit
3cf1e4a7
authored
Dec 01, 2019
by
Junling Bu
Browse files
chore[litemall-wx]: 删除模拟支付代码
parent
0993ed17
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-wx/pages/payResult/payResult.js
View file @
3cf1e4a7
...
...
@@ -31,30 +31,6 @@ Page({
},
payOrder
()
{
let
that
=
this
;
// 模拟支付成功,同理,后台也仅仅是返回一个成功的消息而已
// wx.showModal({
// title: '目前不能微信支付',
// content: '点击确定模拟支付成功,点击取消模拟未支付成功',
// success: function (res) {
// if (res.confirm) {
// util.request(api.OrderPrepay, { orderId: that.data.orderId }, 'POST').then(res => {
// if (res.errno === 0) {
// that.setData({
// status: true
// });
// }
// else {
// util.showErrorToast('支付失败');
// }
// });
// }
// else if (res.cancel) {
// util.showErrorToast('支付失败');
// }
// }
// });
util
.
request
(
api
.
OrderPrepay
,
{
orderId
:
that
.
data
.
orderId
},
'
POST
'
).
then
(
function
(
res
)
{
...
...
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