提交 c821d67e authored 作者: 王鹏飞's avatar 王鹏飞

支付增加回调url参数

上级 7b045c4a
...@@ -43,19 +43,25 @@ export default { ...@@ -43,19 +43,25 @@ export default {
computed: { computed: {
qrcodeValue() { qrcodeValue() {
return this.order.url return this.order.url
},
pid() {
return this.$route.params.id
},
notifyUrl() {
return `${location.origin}/api/ehall/v2/lobby/update-status-api/${this.pid}`
} }
}, },
methods: { methods: {
// 创建微信订单 // 创建微信订单
createWxPayOrder(productId, num = 1) { createWxPayOrder(productId, num = 1) {
return api.createWxpayOrder('ezijing', productId, { num }).then(response => { return api.createWxpayOrder('ezijing', productId, { num, notify_url: this.notifyUrl }).then(response => {
this.order = response this.order = response
return response return response
}) })
}, },
// 创建支付宝订单 // 创建支付宝订单
createAliPayOrder(productId, num = 1) { createAliPayOrder(productId, num = 1) {
return api.createAlipayOrder(productId, { type: 2, num }).then(response => { return api.createAlipayOrder(productId, { type: 2, num, notify_url: this.notifyUrl }).then(response => {
this.order = response this.order = response
return response return response
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论