优化比例

master
chenzhi 4 years ago
parent d2a10e626d
commit 40940b4536

@ -467,7 +467,7 @@
}
//数据类
var DATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE};
var DATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE};
var YDATAOBJ = {$data|json_encode=###,JSON_UNESCAPED_UNICODE};
//事件类
var EVENT = {
@ -548,8 +548,15 @@
var td = DATAOBJ.statement_info[index];
var rname = $(this).attr("name");
var ratio = 0;
if( rname == "increment_ratio" || rname == "ratio"){
var ratio = val;
ratio = val;
}else{
if(DATAOBJ.withdraw_type==2){
ratio = td['increment_ratio'];
}else{
ratio = td['ratio'];
}
}
DATAOBJ.statement_money = PUBLIC.floatCut(DATAOBJ.statement_money,td['sum_money']);
td['sum_money'] = Math.round(td['pay_amount']*ratio*(100-td['fax_ratio'])/100,2)/100;

@ -372,8 +372,11 @@
var td = DATAOBJ.statement_info[index];
var rname = $(this).attr("name");
var ratio = 0;
if( rname == "increment_ratio" || rname == "ratio"){
var ratio = val;
ratio = val;
}else{
ratio = td['ratio'];
}
DATAOBJ.statement_money = PUBLIC.floatCut(DATAOBJ.statement_money,td['sum_money']);
td['sum_money'] = Math.round(td['pay_amount']*ratio)/100 - td['fine'] + (td['reward']-0);

Loading…
Cancel
Save