Commit 5a30e8bc by wangshuo

BUG解决

parent 1dd646e6
...@@ -130,7 +130,6 @@ export default class PayOrder extends Component { ...@@ -130,7 +130,6 @@ export default class PayOrder extends Component {
return return
} else { } else {
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) => {
Toast.info(`测试结果用${JSON.stringify(res.data)}`, 120);
if (res.data.errno === 0) { if (res.data.errno === 0) {
// let data = res.data.data; // let data = res.data.data;
this.BridgeData = res.data.data; this.BridgeData = res.data.data;
...@@ -178,8 +177,10 @@ export default class PayOrder extends Component { ...@@ -178,8 +177,10 @@ export default class PayOrder extends Component {
} }
onBridgeReady = (data) => { onBridgeReady = (data) => {
console.log(`181 line data: ${data}`);
let _this = this; let _this = this;
data = data || _this.BridgeData; data = data || _this.BridgeData;
console.log(`184 line data: ${data}`);
WeixinJSBridge.invoke( WeixinJSBridge.invoke(
'getBrandWCPayRequest', { 'getBrandWCPayRequest', {
......
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