Commit ae824c2f by wangshuo

支付

parent c7994cf8
......@@ -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) => {
if (res.data.errno === 0) {
this.bridgeData = res.data.data;
// this.onBridgeReady(data)
this.onBridgeReady();
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', this.onBridgeReady, false)
......@@ -201,6 +201,7 @@ export default class PayOrder extends Component {
http.get(`${API['base-api']}/pay/alipay/wap_charge_new/oid/${orderId}`).then((res) => {
if (res.data.errno === 0) {
window.location = res.data.data.url;
this.payCallback();
} else {
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