作者 lihan
1 个管道 的构建 通过 耗费 0 秒

确认收货

... ... @@ -779,6 +779,39 @@
}
})
$(".surepay").click(function () {
if(pay_type == '') {
return false;
}
if(address_id == '') {
return false;
}
if(window.confirm('是否确认购买?')) {
$.ajax({
url:"{:url('pay/Pay/done')}",
data:{
pay_type:pay_type,
address_id:address_id,
remark:$("#remark").val(),
pay_cash:pay_cash,
pay_num:pay_num,
},
type:"POST",
dataType:"JSON",
success: function (data) {
if(data.data === true) {
window.location.href=data.url;
}else {
alert(data.msg);
}
}
})
}else {
return false;
}
})
//确认支付
$(".paywrapper").click(function(){
$(this).css("display","none")
... ...