Commit 5a30e8bc by wangshuo

BUG解决

parent 1dd646e6
......@@ -130,7 +130,6 @@ export default class PayOrder extends Component {
return
} else {
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) {
// let data = res.data.data;
this.BridgeData = res.data.data;
......@@ -178,8 +177,10 @@ export default class PayOrder extends Component {
}
onBridgeReady = (data) => {
console.log(`181 line data: ${data}`);
let _this = this;
data = data || _this.BridgeData;
console.log(`184 line data: ${data}`);
WeixinJSBridge.invoke(
'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