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