Commit ae824c2f by wangshuo

支付

parent c7994cf8
...@@ -132,7 +132,7 @@ export default class PayOrder extends Component { ...@@ -132,7 +132,7 @@ export default class PayOrder extends Component {
http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => { http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {
if (res.data.errno === 0) { if (res.data.errno === 0) {
this.bridgeData = res.data.data; this.bridgeData = res.data.data;
// this.onBridgeReady(data) this.onBridgeReady();
if (typeof WeixinJSBridge == "undefined") { if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) { if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady, false) document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady, false)
...@@ -201,6 +201,7 @@ export default class PayOrder extends Component { ...@@ -201,6 +201,7 @@ export default class PayOrder extends Component {
http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => { http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {
if (res.data.errno === 0) { if (res.data.errno === 0) {
window.location = res.data.data.url; window.location = res.data.data.url;
this.payCallback();
} else { } else {
Toast.info(res.data.msg + 'alipayPay', 2) Toast.info(res.data.msg + 'alipayPay', 2)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment