优化跳转

master
chenzhi 3 years ago
parent 4be3750a77
commit c9cb8c230d

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

@ -29,104 +29,106 @@
<a href="{:U('order_add')}" class="current">充值</a> <a href="{:U('order_add')}" class="current">充值</a>
</div> </div>
</div> </div>
<div class="trunk-list"> <if condition="$config['is_open'] == 1 ">
<form id="payform" action="{:U('agent_pay')}" method="post" enctype="multipart/form-data" style="position: relative;"> <div class="trunk-list">
<div class="remittance" hidden style="width: 300px;height: 450px;position: absolute;left: 600px;top: 0;"> <form id="payform" action="{:U('agent_pay')}" method="post" enctype="multipart/form-data" style="position: relative;">
<img style="width: 100%;" src="{$config.collection_img_path}" /> <div class="remittance" hidden style="width: 300px;height: 450px;position: absolute;left: 600px;top: 0;">
</div> <img style="width: 100%;" src="{$config.collection_img_path}" />
<table class="table2"> </div>
<tr> <table class="table2">
<td class="l">充值方式:</td> <tr>
<td class="r form-radio jspayradio"> <td class="l">充值方式:</td>
<label><input type="radio" value="1" name="pay_type" checked><i class="current"></i><span>在线转账</span></label> <td class="r form-radio jspayradio">
<if condition="$config['is_open'] == 1 "> <!-- <label><input type="radio" value="1" name="pay_type" checked><i class="current"></i><span>在线转账</span></label> -->
<label><input type="radio" value="2" name="pay_type"><i></i><span>线下转账</span><span class="noticetxt">(需上传截图)</span></label> <if condition="$config['is_open'] == 1 ">
</if> <label><input type="radio" value="2" name="pay_type" checked><i></i><span>线下转账</span><span class="noticetxt">(需上传截图)</span></label>
</td> </if>
</tr> </td>
<tr class="remittance" hidden> </tr>
<td class="l">请选择游戏</td>
<td class="r">
<select class="reselect select_gallery" name="game_id">
<option value="">请选择游戏</option>
<foreach name="config.game" item="vo" >
<option value="{$key}">{$vo}</option>
</foreach>
</select>
<div id="acountesc"></div>
</td>
</tr>
<tr>
<td class="l">充值账号:</td>
<td class="r"><span >{$account}</span></td>
</tr>
<tr>
<td class="l">平台币原价:</td>
<td class="r">¥1.00/个</td>
</tr>
<if condition="$config.coin_discount neq 10 ">
<tr class="remittance" hidden> <tr class="remittance" hidden>
<td class="l">平台币限时折扣:</td> <td class="l">请选择游戏</td>
<td class="r"><span >{$config.coin_discount}折</span></td> <td class="r">
<select class="reselect select_gallery" name="game_id">
<option value="">请选择游戏</option>
<foreach name="config.game" item="vo" >
<option value="{$key}">{$vo}</option>
</foreach>
</select>
<div id="acountesc"></div>
</td>
</tr> </tr>
</if> <tr>
<tr> <td class="l">充值账号:</td>
<td class="l">购买数量:</td> <td class="r"><span >{$account}</span></td>
<td class="r"><input type="text" class="txt" name="coin_num" autocomplete="off" placeholder="" oninput="this.value=this.value.replace(/[^0-9]+|^0|\d{9}/,'');"> </tr>
<span class="noticetxt">平台币</span> <tr>
</td> <td class="l">平台币原价:</td>
</tr> <td class="r">¥1.00/个</td>
<tr> </tr>
<td class="l">应付金额:</td> <if condition="$config.coin_discount neq 10 ">
<td class="r" id="pay_amount"><span>0.00</span> <tr class="remittance" hidden>
<input name="discount" value="{$discount}" type="hidden"> <td class="l">平台币限时折扣:</td>
</td> <td class="r"><span >{$config.coin_discount}折</span></td>
</tr> </tr>
<!-- <tr class="remittance" hidden> </if>
<td class="l">汇入银行:</td> <tr>
<td class="r"> <td class="l">购买数量:</td>
<select class="reselect select_gallery" name="collection_account"> <td class="r"><input type="text" class="txt" name="coin_num" autocomplete="off" placeholder="" oninput="this.value=this.value.replace(/[^0-9]+|^0|\d{9}/,'');">
<option value="" title="暂未开放 暂未开放" acountesc="">暂未开放 暂未开放</option> <span class="noticetxt">平台币</span>
<volist name="bank_list" id="bank"> </td>
<option value="{$bank.bank_account}" title="{$bank.bank}" acountesc="账户名称:{$bank.account_name}<br/>汇入账户:{$bank.bank_account}<br/>开户行:{$bank.bank_name}">{$bank.bank}</option> </tr>
</volist> <tr>
</select> <td class="l">应付金额:</td>
<div id="acountesc"></div> <td class="r" id="pay_amount"><span>0.00</span>
</td> <input name="discount" value="{$discount}" type="hidden">
</tr> --> </td>
</tr>
<tr class="remittance" hidden> <!-- <tr class="remittance" hidden>
<td class="l">订单号:</td> <td class="l">汇入银行:</td>
<td class="r"><input type="text" class="txt" name="pay_order_number" autocomplete="off" placeholder="请输入订单号"></td> <td class="r">
</tr> <select class="reselect select_gallery" name="collection_account">
<tr class="remittance" hidden> <option value="" title="暂未开放 暂未开放" acountesc="">暂未开放 暂未开放</option>
<td class="l">支付截图:</td> <volist name="bank_list" id="bank">
<td class="r"><div class="fallback" id="myid"><input name="voucher_img" type="file" multiple /></div></td> <option value="{$bank.bank_account}" title="{$bank.bank}" acountesc="账户名称:{$bank.account_name}<br/>汇入账户:{$bank.bank_account}<br/>开户行:{$bank.bank_name}">{$bank.bank}</option>
</tr> </volist>
<tr class="remittance" hidden> </select>
<td class="l">备注:</td> <div id="acountesc"></div>
<td class="r"> </td>
<textarea name="remark"></textarea> </tr> -->
</td>
</tr> <tr class="remittance" hidden>
<tr class="remittance" hidden> <td class="l">订单号:</td>
<td class="l" colspan="2" style="text-align: center;"> <td class="r"><input type="text" class="txt" name="pay_order_number" autocomplete="off" placeholder="请输入订单号"></td>
<span class="noticetxt">(特殊说明:折扣购买的平台币不参与结算)</span> </tr>
</td> <tr class="remittance" hidden>
</tr> <td class="l">支付截图:</td>
<tr id="tip"> <td class="r"><div class="fallback" id="myid"><input name="voucher_img" type="file" multiple /></div></td>
<td class="l" colspan="2"> </tr>
<span class="noticetxt">(手续费说明:每笔交易支付服务商将收取 {$LV}% 手续费最低收取0.1元,上不封顶)</span> <tr class="remittance" hidden>
</td> <td class="l">备注:</td>
</tr> <td class="r">
<tr> <textarea name="remark"></textarea>
<td class="r"> </td>
<button type="button" class="tjbnt btn" onclick="save_model()" >提交</button> </tr>
</td> <tr class="remittance" hidden>
</tr> <td class="l" colspan="2" style="text-align: center;">
</table> <span class="noticetxt">(特殊说明:折扣购买的平台币不参与结算)</span>
</form> </td>
</div> </tr>
<tr id="tip">
<td class="l" colspan="2">
<span class="noticetxt">(手续费说明:每笔交易支付服务商将收取 {$LV}% 手续费最低收取0.1元,上不封顶)</span>
</td>
</tr>
<tr>
<td class="r">
<button type="button" class="tjbnt btn" onclick="save_model()" >提交</button>
</td>
</tr>
</table>
</form>
</div>
</if>
</div> </div>
</div> </div>
</block> </block>
@ -153,6 +155,13 @@
calculation_money($("input[name=coin_num]").val()); 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 () { $("input[name=coin_num]").bind('input propertychange', function () {
calculation_money($(this).val()); calculation_money($(this).val());
}) })
@ -216,7 +225,8 @@
}else{ }else{
layer.alert(result.info,function () { layer.alert(result.info,function () {
parent.layer.closeAll(); parent.layer.closeAll();
location.reload(); var url = "{:U('CoinOrder/order_list')}";
location.href = url;
}); });
} }
}else{ }else{

Loading…
Cancel
Save