|
|
@ -168,7 +168,7 @@
|
|
|
|
<td><span class="pay_amount">{$com['statement_info'][0]['game_list'][0]['pay_amount']}</span></td>
|
|
|
|
<td><span class="pay_amount">{$com['statement_info'][0]['game_list'][0]['pay_amount']}</span></td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<input class="refund" onkeyup ="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" value="{$com['statement_info'][0]['game_list'][0]['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$com['statement_info'][0]['game_list'][0]['game_name']}{$com['statement_info'][0]['time']}{$com['statement_info'][0]['account']}]">
|
|
|
|
<input class="refund" value="{$com['statement_info'][0]['game_list'][0]['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$com['statement_info'][0]['game_list'][0]['game_name']}{$com['statement_info'][0]['time']}{$com['statement_info'][0]['account']}]">
|
|
|
|
<else/>
|
|
|
|
<else/>
|
|
|
|
0
|
|
|
|
0
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -259,7 +259,7 @@
|
|
|
|
<td><span class="pay_amount">{$game['pay_amount']}</span></td>
|
|
|
|
<td><span class="pay_amount">{$game['pay_amount']}</span></td>
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<input class="refund" onkeyup ="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" value="{$game['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$game['game_name']}{$com['statement_info'][0]['time']}{$com['statement_info'][0]['account']}]">
|
|
|
|
<input class="refund" value="{$game['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$game['game_name']}{$com['statement_info'][0]['time']}{$com['statement_info'][0]['account']}]">
|
|
|
|
<else/>
|
|
|
|
<else/>
|
|
|
|
0
|
|
|
|
0
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -310,7 +310,7 @@
|
|
|
|
<!-- <td>{$account['game_list'][0]['increment_ratio']|showNumPercent}</td>-->
|
|
|
|
<!-- <td>{$account['game_list'][0]['increment_ratio']|showNumPercent}</td>-->
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<input class="refund" onkeyup ="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" value="{$account['game_list'][0]['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$account['game_list'][0]['game_name']}{$account['time']?$account['time']:$com['statement_info'][0]['time']}{$account['account']}]">
|
|
|
|
<input class="refund" value="{$account['game_list'][0]['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$account['game_list'][0]['game_name']}{$account['time']?$account['time']:$com['statement_info'][0]['time']}{$account['account']}]">
|
|
|
|
<else/>
|
|
|
|
<else/>
|
|
|
|
0
|
|
|
|
0
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -377,7 +377,7 @@
|
|
|
|
<!-- <td>{$game['increment_ratio']|showNumPercent}</td>-->
|
|
|
|
<!-- <td>{$game['increment_ratio']|showNumPercent}</td>-->
|
|
|
|
<td>
|
|
|
|
<td>
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<if condition="($com.is_reward_fine_split eq 0)">
|
|
|
|
<input class="refund" onkeyup ="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" value="{$game['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$game['game_name']}{$account['time']?$account['time']:$com['statement_info'][0]['time']}{$account['account']}]">
|
|
|
|
<input class="refund" value="{$game['refund']|default=0}" style="width: 40px;" name="refund[{$com['id']}][{$game['game_name']}{$account['time']?$account['time']:$com['statement_info'][0]['time']}{$account['account']}]">
|
|
|
|
<else/>
|
|
|
|
<else/>
|
|
|
|
0
|
|
|
|
0
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -464,6 +464,13 @@
|
|
|
|
saveForm(id);
|
|
|
|
saveForm(id);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".refund").keyup(function() {
|
|
|
|
|
|
|
|
var val = $(this).val();
|
|
|
|
|
|
|
|
var reg = /^(\-|\+)?\d+(\.\d+)?$/g;
|
|
|
|
|
|
|
|
if( !reg.test(val)){
|
|
|
|
|
|
|
|
$(this).val(0)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
var pool_ids = "{$_GET['id']}";
|
|
|
|
var pool_ids = "{$_GET['id']}";
|
|
|
|
$(".split_RewardOrFail").on("click",function() {
|
|
|
|
$(".split_RewardOrFail").on("click",function() {
|
|
|
@ -641,8 +648,8 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//退款
|
|
|
|
//退款
|
|
|
|
var refund = $(_this).parent().parent().find(".refund").val();
|
|
|
|
var refund = $(_this).parent().parent().find(".refund").val();
|
|
|
|
if (!refund || refund < 0) {
|
|
|
|
if (!refund) {
|
|
|
|
refund = 0;
|
|
|
|
// refund = 0;
|
|
|
|
$(_this).parent().parent().find(".refund").val(refund);
|
|
|
|
$(_this).parent().parent().find(".refund").val(refund);
|
|
|
|
} else if(parseFloat(refund) > parseFloat(pay_money)) {
|
|
|
|
} else if(parseFloat(refund) > parseFloat(pay_money)) {
|
|
|
|
refund = pay_money;
|
|
|
|
refund = pay_money;
|
|
|
|