window.onload = function () {
var vConsole = new VConsole(); //移动端调试工具 Vconsole方便定位问题
alert("111-"+location.href);
var mchData = { action: 'onIframeReady', displayStyle: 'SHOW_CUSTOM_PAGE' };
var postData = JSON.stringify(mchData);
parent.postMessage(postData, 'https://payapp.weixin.qq.com');
alert("222-" +location.href);
}
您好,商家小票无法获取订单信息可以参考这个排查问题:https://developers.weixin.qq.com/community/develop/doc/000ae6b1a98cc099e64ba71f456009