后台返回数据

"<script language="javascript">window.onload=function(){document.pay_form.submit();}</script>
<form id="pay_form" name="pay_form" action="http://gateway.lianyin88.com/GateWay/Index" method="post">
<input type="hidden" name="amount" id="amount" value="100.00">
<input type="hidden" name="asynbackurl" id="asynbackurl" value="http://112.74.45.1:8088/spay/v1/notify/10A/7100/73E36B946898542C6A5361F54779242B">
<input type="hidden" name="banktype" id="banktype" value="1003">
<input type="hidden" name="customer" id="customer" value="8816641">
<input type="hidden" name="orderid" id="orderid" value="20190110102434193">
<input type="hidden" name="request_time" id="request_time" value="20190110102434">
<input type="hidden" name="sign" id="sign" value="6fc95170a6b138293816a26ed3dcad8b">
<input type="hidden" name="synNotifyUrl" id="synNotifyUrl" value="">
</form>
"

接收参数跳转

let dwSafari
dwSafari=window.open();
dwSafari.document.open();
let dataObj=data.data.html
let html=  dataObj.replace(/[^\u0000-\u00FF]/g,function($0){return escape($0).replace(/(%u)(\w{4})/gi,"&#x$2;")}); 
dwSafari.document.write("<html><head><title></title><meta charset='utf-8'><body>"+dataObj+"</body></html>")
dwSafari.document.forms[0].submit()
dwSafari.document.close()

 

Logo

前往低代码交流专区

更多推荐