默认页面
<p>在order.js文件中添加银联支付的代码</p>
<pre><code class="language-javascript">else if(payment=='unpay'){
let url;
if(mixPay){
url=unionUrl.mixPay
}
else{
url=unionUrl.nativePayOrder
}
$.ajax({
url:url,
type:"post",
dataType:"json",
contentType:"application/json",
beforeSend: function (request) {
request.setRequestHeader("token", localStorage.getItem("token"));
request.setRequestHeader("ip", localStorage.getItem("ip"));
},
data:JSON.stringify({
"orderId":orderId,
"money":money
}),
success:function(resp){
if(resp.code==0){
let htmlCode=resp.htmlCode
// console.log(htmlCode)
$("#htmlCode").html(htmlCode)
}
}
})
}</code></pre>