优化跳转

master
chenzhi 3 years ago
parent 4be3750a77
commit c9cb8c230d

@ -129,6 +129,7 @@
$('#submit').click(function () {
$('#form').submit();
});
var backurl = "{:U('PromoteCoin/offlineList')}";
$("#agree").on("click",function(){
var id = $(this).parents(".new_submit").data("id");
var url= "{:U('PromoteCoin/offlineAgree')}"+"&ids[]="+id;
@ -138,7 +139,7 @@
icon: 1,
time: 1000 //2秒关闭如果不配置默认是3秒
}, function(){
window.location.reload()
window.location.href = backurl;
});
}
});
@ -152,7 +153,7 @@
icon: 1,
time: 1000 //2秒关闭如果不配置默认是3秒
}, function(){
window.location.reload()
window.location.href = backurl;
});
}
});

@ -29,6 +29,7 @@
<a href="{:U('order_add')}" class="current">充值</a>
</div>
</div>
<if condition="$config['is_open'] == 1 ">
<div class="trunk-list">
<form id="payform" action="{:U('agent_pay')}" method="post" enctype="multipart/form-data" style="position: relative;">
<div class="remittance" hidden style="width: 300px;height: 450px;position: absolute;left: 600px;top: 0;">
@ -38,9 +39,9 @@
<tr>
<td class="l">充值方式:</td>
<td class="r form-radio jspayradio">
<label><input type="radio" value="1" name="pay_type" checked><i class="current"></i><span>在线转账</span></label>
<!-- <label><input type="radio" value="1" name="pay_type" checked><i class="current"></i><span>在线转账</span></label> -->
<if condition="$config['is_open'] == 1 ">
<label><input type="radio" value="2" name="pay_type"><i></i><span>线下转账</span><span class="noticetxt">(需上传截图)</span></label>
<label><input type="radio" value="2" name="pay_type" checked><i></i><span>线下转账</span><span class="noticetxt">(需上传截图)</span></label>
</if>
</td>
</tr>
@ -127,6 +128,7 @@
</table>
</form>
</div>
</if>
</div>
</div>
</block>
@ -153,6 +155,13 @@
calculation_money($("input[name=coin_num]").val());
}
});
//---begin 直接执行 如需线上取消
$(".remittance").show();
$("#tip").hide();
calculation_money($("input[name=coin_num]").val());
$("input[name='pay_type']").siblings('i').addClass('current');
//----end
$("input[name=coin_num]").bind('input propertychange', function () {
calculation_money($(this).val());
})
@ -216,7 +225,8 @@
}else{
layer.alert(result.info,function () {
parent.layer.closeAll();
location.reload();
var url = "{:U('CoinOrder/order_list')}";
location.href = url;
});
}
}else{

Loading…
Cancel
Save