提交 c9c18502 编写于 作者: guofeng.chen's avatar guofeng.chen

添加userId

上级 94fb71d2
...@@ -301,12 +301,14 @@ export default { ...@@ -301,12 +301,14 @@ export default {
tradeType: 3, tradeType: 3,
} }
this.POST('trade/center/mweb_prepay', data).then(res => { this.POST('trade/center/mweb_prepay', data).then(res => {
if (res.code == "000000" && res.data) { if (res.code == "000000") {
let redirectUrl = this.getRedirectUrl(orderId); if (res.data) {
let jumpLink = res.data + '&redirect_url=' + encodeURIComponent(redirectUrl); let redirectUrl = this.getRedirectUrl(orderId);
window.location.href = jumpLink; let jumpLink = res.data + '&redirect_url=' + encodeURIComponent(redirectUrl);
window.location.href = jumpLink;
}
} else { } else {
this.$toast(res.message); this.$toast(res.message || '暂时不能支付');
} }
}) })
}, },
...@@ -317,6 +319,7 @@ export default { ...@@ -317,6 +319,7 @@ export default {
orderId, orderId,
payChannel: 1, payChannel: 1,
tradeType: 1, tradeType: 1,
userId: this.$store.state.user.info.id
} }
this.POST('trade/center/jsapi_prepay', data).then(res => { this.POST('trade/center/jsapi_prepay', data).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册