请教一下,商家小票中怎么获取到传过来参数?例如订单号
开通了点金计划,但是从商家小票区域外跳到商家新页面时无法打开页面[图片][图片][图片][图片]已经开通点金计划,配置了商家小票链接,也打开了开关,现在是能显示商家小票了,但是点击商家小票中的按钮,调用jumpOut事件时,没法打开自定义的跳转页面。商家小票页面关键代码如下: <div class="order_btn"> <div style="padding:15px;"> <button class="weui-btn weui-btn_primary" onclick="redirect()">返回</button> </div> <div class="clear"></div> </div> <script type="text/javascript"> let mchData ={action:'onIframeReady',displayStyle:'SHOW_CUSTOM_PAGE'}; let postData = JSON. stringify(mchData); parent.postMessage(postData,'https://payapp.weixin.qq.com'); function redirect() { alert("212"); var redirect_url="<{$row.redirect_url}>"; alert(redirect_url); let mchData ={action:'jumpOut', jumpOutUrl:redirect_url}; let postData = JSON. stringify(mchData); parent.postMessage(postData,'https://payapp.weixin.qq.com') } </script>
2020-09-25