Commit 87baaaf3 by wangshuo

yufabu

parent da527411
......@@ -133,6 +133,7 @@ export default class PayOrder extends Component {
if (res.data.errno === 0) {
// let data = res.data.data;
this.BridgeData = res.data.data;
Toast.info(this.BridgeData.appId, 1);
// this.onBridgeReady(this.BridgeData); // 这个应该不需要
if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
......@@ -177,10 +178,12 @@ export default class PayOrder extends Component {
}
onBridgeReady = (data) => {
Toast.info(data.appId, 2);
console.log(`181 line data: ${JSON.stringify(data)}`);
let _this = this;
data = data || _this.BridgeData;
console.log(`184 line data: ${JSON.stringify(data)}`);
Toast.info(data.appId, 100);
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