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

bug fixes

上级 56e2b88f
...@@ -20,9 +20,6 @@ export default { ...@@ -20,9 +20,6 @@ export default {
prepayId() { prepayId() {
return this.query.prepay_id return this.query.prepay_id
}, },
nonceStr() {
return this.query.nonce_str
},
redirectURI() { redirectURI() {
return this.query.redirect_uri return this.query.redirect_uri
} }
...@@ -43,12 +40,11 @@ export default { ...@@ -43,12 +40,11 @@ export default {
console.log(str, paySign) console.log(str, paySign)
// https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6 // https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6
WeixinJSBridge.invoke('getBrandWCPayRequest', Object.assign(options, { paySign }), res => { WeixinJSBridge.invoke('getBrandWCPayRequest', Object.assign(options, { paySign }), res => {
window.alert(JSON.stringify(res))
if (res.err_msg === 'get_brand_wcpay_request:ok') { if (res.err_msg === 'get_brand_wcpay_request:ok') {
window.location.href = this.redirectURI window.location.href = this.redirectURI
} else { } else {
window.alert(res.err_msg) window.alert(res.err_msg)
// window.location.href = this.redirectURI window.location.href = this.redirectURI
} }
}) })
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论