收藏
回答

商家小票获取不到订单内容?

<html>
<head>
   <meta charset="utf-8">
   <meta name="viewport" content="width=desvice-width, initial-scale=1.0">
   <script type="text/javascript" charset="UTF-8" src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
   <title>点金计划</title>
</head>
<body>
<div id="btnBack">点击返回</div>
</body>
<script type="text/javascript">
   var btnBack = document.getElementById("btnBack");
   btnBack.onclick = function () {
      let mchData = { action: 'jumpOut', jumpOutUrl: 'https://www.qq.com' }
      let postData = JSON.stringify(mchData)
      parent.postMessage(postData, 'https://payapp.weixin.qq.com')
   }
   function myfun(){

      let mchData ={action:'onIframeReady',displayStyle:'SHOW_CUSTOM_PAGE'};
      let postData = JSON. stringify(mchData);
      window.parent.postMessage(postData,'https://payapp.weixin.qq.com')
   }
   window.onload = myfun;
</script>
</html>
回答关注问题邀请回答
收藏
登录 后发表内容
问题标签