这个我 年月选项的是时候并不能把结果也转换过来 会出现下面图片上的问题 这是我那写的不对吗
并且 计算的时候默认的是年 但是你转换的 日月的时候他们的结果还是 跟年的结果一样
所以请你们看看 那错了 js 和html在下面贴
这个我 年月选项的是时候并不能把结果也转换过来 会出现下面图片上的问题 这是我那写的不对吗
并且 计算的时候默认的是年 但是你转换的 日月的时候他们的结果还是 跟年的结果一样
所以请你们看看 那错了 js 和html在下面贴
你到底按我的改没有了
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="法律计算器" />
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' /><!--所有页面的三级导航基本样式-->
<link href="css/style.css" rel='stylesheet' type='text/css' /><!--所有页面的导航基本样式-->
<link href="css/finance.css" rel="stylesheet" type="text/css" /><!--所有页面的除导航基本样式-->
<link href="css/law.css" rel="stylesheet" type="text/css" /><!--法律页面的样式-->
<link href="css/calendar.css" rel="stylesheet" type="text/css" /><!--日历样式-->
</head>
<body>
<!-- 受理费计算器 -->
<div id="columns" class="sortable">
<!--受理费计算器 -->
<div class="cols3 column">
<div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all">
<div class="portlet-header">受理费计算器</div>
<div class="portlet-content">
<h5><span>*注意</span>执行申请费,未参加登记的权利人向人民法院提起诉讼的,应当按照本项规定的标准交纳申请费,不再交纳案件受理费; </h5>
<hr class="hi" />
<div class="table1">
<form id="tj" class="tj">
<div class="input">
<table cellpadding="0" cellspacing="1">
<tbody>
<tr>
<td width="79">标的金额: </td>
<td width="324">
<input type="text" id="input" /><span>元</span>
</td>
</tr>
<tr>
<td>起算日期:</td>
<td>
<input type="text" class="date" id="EntTime30" name="EntTime30" onclick="return showCalendar('EntTime30', 'y-mm-dd');" />
<span>请点击</span>
</td>
</tr>
<tr>
<td>截止日期:</td>
<td>
<input type="text" class="date" id="EntTime31" name="EntTime31" onclick="return showCalendar('EntTime31', 'y-mm-dd');" /><span>请点击</span>
</td>
</tr>
<tr>
<td>利率选项: </td>
<td>
<div class="sortNum">
<input type="radio" id="1-5" class="sortNum1" name="standard1" onclick="Costcalculator1(parseFloat($('#input').val()) || 0, parseFloat($('#input1').val()) || 0)" />日利率
<input type="radio" id="1-4" class="sortNum1" name="standard1" onclick="Costcalculator2(parseFloat($('#input').val()) || 0, parseFloat($('#input1').val()) || 0)" />月利率
<input type="radio" id="1-6" class="sortNum1" name="standard1" onclick="Costcalculator(parseFloat($('#input').val()) || 0, parseFloat($('#input1').val()) || 0)" checked="checked" /> 年利率
</div>
</td>
</tr>
<tr>
<td>利率: </td>
<td>
<input type="text" id="input1"><span>%</span>
</td>
</tr>
</tbody>
</table>
<input type="reset" class="bt" value="重置" />
</div>
<div class="output">
<h4>受理费计算结果</h4><hr class="hi" />
<div class="jg" id="jg">
<label class="sexLabel" for="1-5">全额</label>
<table cellpadding="0" cellspacing="1">
<tbody>
<tr>
<td>离婚案件(涉及财产): </td>
<td><input id="lj" type="text" /><span>元</span></td>
</tr>
<tr>
<td>人格权侵权损害赔偿: </td>
<td><input id="lj1" type="text" /><span>元</span></td>
</tr>
<tr>
<td>执行案件: </td>
<td><input id="lj2" type="text" /><span>元</span></td>
</tr>
<tr>
<td>财产保全案件: </td>
<td><input id="lj3" type="text" /><span>元</span></td>
</tr>
<tr>
<td>申请支付令: </td>
<td><input id="lj4" type="text" /><span>元</span></td>
</tr>
<tr>
<td>延迟利息: </td>
<td><input id="lj5" type="text" /><span>元</span></td>
</tr>
<tr>
<td>逾期违约金: </td>
<td><input id="lj6" type="text" /><span>元</span></td>
</tr>
</tbody>
</table>
<label class="sexLabel" for="1-4">减半</label>
<table cellpadding="0" cellspacing="1">
<tbody>
<tr>
<td>离婚案件(涉及财产): </td>
<td><input id="lj7" type="text" /><span>元</span></td>
</tr>
<tr>
<td>人格权侵权损害赔偿: </td>
<td><input id="lj8" type="text" /><span>元</span></td>
</tr>
<tr>
<td>执行案件: </td>
<td><input id="lj9" type="text" /><span>元</span></td>
</tr>
<tr>
<td>财产保全案件: </td>
<td><input id="lj10" type="text" /><span>元</span></td>
</tr>
<tr>
<td>申请支付令: </td>
<td><input id="lj11" type="text" /><span>元</span></td>
</tr>
<tr>
<td>延迟利息: </td>
<td><input id="lj12" type="text" /><span>元</span></td>
</tr>
<tr>
<td>逾期违约金: </td>
<td><input id="lj13" type="text" /><span>元</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
<input type="button" value="显示/隐藏说明" onclick="sl()" />
<!--受理费隐藏显示内容-->
<div id="ss" style="display:none;margin-top:20px;line-height:30px;" />
<h4 class="ys">受理费(全额):</h4>
<p>
1.不超过1万元的,每件交纳50元;</br>
2.超过1万元至10万元的部分,按照2.5%交纳;公式=50+(标的金额-1万)*2.5%</br>
3.超过10万元至20万元的部分,按照2%交纳;公式=50+(标的金额-10万)*2%</br>
4.超过20万元至50万元的部分,按照1.5%交纳;公式=50+(标的金额-20万)*1.5%</br>
5.超过50万元至100万元的部分,按照1%交纳;公式=50+(标的金额-50万)*1%</br>
6.超过100万元至200万元的部分,按照0.9%交纳;公式=50+(标的金额-100万)*0.9%</br>
7.超过200万元至500万元的部分,按照0.8%交纳;公式=50+(标的金额-200万)*0.8%</br>
8.超过500万元至1000万元的部分,按照0.7%交纳;公式=50+(标的金额-500万)*0.7%</br>
9.超过1000万元至2000万元的部分,按照0.6%交纳;公式=50+(标的金额-1000万)*0.6%</br>
10.超过2000万元的部分,按照0.5%交纳。公式=50+(标的金额-2000万)*0.5%
</p>
<h4 class="ys">受理费(半额):</h4>
<p>
1.不超过1万元的,每件交纳25元;</br>
2.超过1万元至10万元的部分,按照2.5%交纳的总额一半;公式=[50+(标的金额-1万)*2.5%]/2</br>
3.超过10万元至20万元的部分,按照2%交纳的总额一半;公式=[50+(标的金额-10万)*2%]/2</br>
4.超过20万元至50万元的部分,按照1.5%交纳的总额一半;公式=[50+(标的金额-20万)*1.5%]/2</br>
5.超过50万元至100万元的部分,按照1%交纳的总额一半;公式=[50+(标的金额-50万)*1%]/2</br>
6.超过100万元至200万元的部分,按照0.9%交纳的总额一半;公式=[50+(标的金额-100万)*0.9%]/2</br>
7.超过200万元至500万元的部分,按照0.8%交纳的总额一半;公式=[50+(标的金额-200万)*0.8%]/2</br>
8.超过500万元至1000万元的部分,按照0.7%交纳的总额一半;公式=[50+(标的金额-500万)*0.7%]/2</br>
9.超过1000万元至2000万元的部分,按照0.6%交纳的总额一半;公式=[50+(标的金额-1000万)*0.6%]/2</br>
10.超过2000万元的部分,按照0.5%交纳的总额一半。公式=[50+(标的金额-2000万)*0.5%]/2
</p>
<h4 class="ys">离婚案件(涉及财产):</h4>
<p>
涉及财产分割,财产总额不超过20万元的,交纳100元;超过20万元的部分,按照0.5%交纳。公式=100+(标的金额-20万)*0.5%
</p>
<h4 class="ys">人格权侵权损害赔偿案件:</h4>
<p>
侵害姓名权、名称权、肖像权、名誉权、荣誉权以及其他人格权的案件,5万(含)以下500元。</br>
5-10万(含10万元),超出5万的部分,按照1%交纳;公式=500+(标的金额-5万)*1%</br>
10万以上的,超出部分按照0.5%交纳。公式=500+(标的金额-10万)*0.5%
;超过5万元至10万元的部分,按照1%交纳;
超过10万元的部分,按照0.5%交纳。
</p>
<h4 class="ys">执行案件:</h4>
<p>
执行金额或者价额不超过1万元的,每件交纳50元;</br>
超过1万元至50万元的部分(含50万),按照1.5%交纳;公式=50+(标的金额-1万)*1.5%</br>
超过50万元至500万元的部分(含500万),按照1%交纳;公式=50+(标的金额-50万)*1%</br>
超过500万元至1000万元的部分(含1000万),按照0.5%交纳;公式=50+(标的金额-500万)*0.5%</br>
超过1000万元的部分,按照0.1%交纳。公式=50+(标的金额-1000万)*0.1%
</p>
<h4 class="ys">财产保全案件:</h4>
<p>
财产数额不超过1000元或者不涉及财产数额的,每件交纳30元;</br>
超过1000元至10万元的部分,按照1%交纳;公式=30+(标的金额-1000)*1%</br>
超过10万元的部分,按照0.5%交纳。公式=30+(标的金额-10万)*0.5%
</p>
<h4 class="ys">申请支付令:</h4>
<p>
比照受理费(全额)标准的1/3交纳
</p>
<h4 class="ys">申请公示催告:</h4>
<p>
每件交纳100元。</br>
申请撤销仲裁裁决或者认定仲裁协议效力的</br>
每件交纳400元
</p>
<h4 class="ys">破产案件:</h4>
<p>
依据破产财产总额计算,按照财产案件受理费标准减半交纳,但是,最高不超过30万元。
</p>
<h4 class="ys">海事案件:</h4>
<p>
1.申请设立海事赔偿责任限制基金的,每件交纳1000元至1万元;</br>
2.申请海事强制令的,每件交纳1000元至5000元;</br>
3.申请船舶优先权催告的,每件交纳1000元至5000元;<br>
4.申请海事债权登记的,每件交纳1000元;<br>
5.申请共同海损理算的,每件交纳1000元。
</p>
</div>
</div>
</div>
</div>
</div>
<!-- End 受理费计算器 -->
</div>
</div>
</div>
<!-- End 受理费计算器 -->
</div>
</div>
</body>
<script type="text/javascript" src="js/calendar.js"></script><!--日历-->
<script type="text/javascript" src="js/calendar-setup.js"></script><!--日历-->
<script type="text/javascript" src="js/calendar-zh.js"></script><!--日历-->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="Costcalculator.js"></script>
<script type="text/javascript" src="js/easyTooltip.js"></script><!--所有页面的二级导航基本样式-->
<script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
<script type="text/javascript" src="js/superfish.js"></script><!--所有页面的二级导航基本样式-->
<script type="text/javascript" src="js/custom.js"></script><!--所有页面的二级导航基本样式-->
<script type="text/javascript" src="js/sl.js"></script><!--隐藏显示法律类的说明-->
<script>
/*
id :
金额 input 利率 input1
全额:
离婚 lj 人格 lj1 执行 lj2 财产 lj3 支付令 lj4 延迟 lj5 逾期 lj6
半额:
离婚 lj7 人格 lj8 执行 lj9 财产lj10 支付令 lj11 延迟 lj12 逾期 lj13
*/
$(document).ready(function () {
//显示当前日期
var d = new Date();
var s2 = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
$('#EntTime30').val(s2);
//显示截止日期
var d = new Date();
var s1 = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
$('#EntTime31').val(s1);
//调用id 和id值改变后重新计算
var input = parseFloat($("#input").val());
var inprt1 = parseFloat($(" #input1").val());
Costcalculator(input, input1);
Costcalculator1(input, input1);
//Costcalculator2(input,input1);
/*$("#input").change(function () {
input = parseFloat($(this).val());
Costcalculator(input, input1);
});
$("#input1").change(function () {
input1 = parseFloat($(this).val());
Costcalculator(input, input1);
})*/
//你2个input的chagne不要只调用Costcalculator,要依据点击的利率还计算,触发下选中的radio的onclick时间就行
$("#input,#input1").change(function () { $(':radio[id^="1-"]:checked').trigger('click'); })
$('[id^="input"],[id^="lj"],[id^="lj1"],[id^="lj2"],[id^="lj3"],[id^="lj4"],[id^="lj5"],[id^="lj6"],[id^="lj7"],[id^="lj8"],[id^="lj9"],[id^="lj10"],[id^="lj11"],[id^="lj12"],[id^="lj13"],[id^="input1"]').val('');
});
function Costcalculator(input, input1) {console.log(arguments)
input = parseFloat(input) || 0;
input1 = parseFloat(input1) || 0;
var al = 0;
var sl = 0;
var dl = 0;
var el = 0;
var fl = 0;
var gl = 0;
var hl = 0;
var jl = 0;
var kl = 0;
var ll = 0;
var ql = 0;
var wl = 0;
//受理费全额 半额计算
if (input <= 10000) {
al = (input * input1 / 100) + 50;
sl = [(input * input1 / 100) + 50] / 2;
} else if (input > 10000 && input <= 100000) {
al = [(input - 10000) * 2.5 / 100 + 50] * input1 / 100;
sl = [(input - 10000) * 2.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 100000 && input <= 200000) {
al = [(input - 100000) * 2 / 100 + 50] * input1 / 100;
sl = [(input - 100000) * 2 / 100 + 50] * input1 / 100 / 2;
} else if (input > 200000 && input <= 500000) {
al = [(input - 200000) * 1.5 / 100 + 50] * input1 / 100;
sl = [(input - 200000) * 1.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 500000 && input <= 1000000) {
al = [(input - 500000) * 1 / 100 + 50] * input1 / 100;
sl = [(input - 500000) * 1 / 100 + 50] * input1 / 100 / 2;
} else if (input > 1000000 && input <= 2000000) {
al = [(input - 1000000) * 0.9 / 100 + 50] * input1 / 100;
sl = [(input - 1000000) * 0.9 / 100 + 50] * input1 / 100 / 2;
} else if (input > 2000000 && input <= 5000000) {
al = [(input - 2000000) * 0.8 / 100 + 50] * input1 / 100;
sl = [(input - 2000000) * 0.8 / 100 + 50] * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
al = [(input - 5000000) * 0.7 / 100 + 50] * input1 / 100;
sl = [(input - 5000000) * 0.7 / 100 + 50] * input1 / 100 / 2;
} else if (input > 10000000 && input <= 20000000) {
al = [(input - 10000000) * 0.6 / 100 + 50] * input1 / 100;
sl = [(input - 10000000) * 0.6 / 100 + 50] * input1 / 100 / 2;
} else {
al = [(input - 20000000) * 0.5 / 100 + 50] * input1 / 100;
sl = [(input - 20000000) * 0.5 / 100 + 50] * input1 / 100 / 2;
}
//离婚计算
if (input <= 200000) {
dl = input * input1 / 100 + 100
el = [(input * input1 / 100) + 100] / 2
} else {
dl = [(input - 200000) * 0.5 / 100 + 100] * input1 / 100;
el = [(input - 200000) * 0.5 / 100 + 100] * input1 / 100 / 2;
}
var lj = 0;
lj = al + dl;
$("#lj").val(lj.toFixed(2));
var lj7 = 0;
lj7 = sl + el;
$("#lj7").val(lj7.toFixed(2));
//人格计算
if (input <= 50000) {
fl = input * input1 / 100 + 500;
gl = [(input * input1 / 100) + 500] / 2;
} else if (input > 50000 && input <= 100000) {
fl = [(input - 50000) * 1 / 100 + 500] * input1 / 100;
gl = [(input - 50000) * 1 / 100 + 500] * input1 / 100 / 2;
} else {
fl = [(input - 100000) * 0.5 / 100 + 500] * input1 / 100;
gl = [(input - 100000) * 0.5 / 100 + 500] * input1 / 100 / 2;
}
var lj1 = 0;
lj1 = al + fl;
$("#lj1").val(lj1.toFixed(2));
var lj8 = 0;
lj8 = sl + gl;
$("#lj8").val(lj8.toFixed(2));
//执行案件
if (input <= 10000) {
hl = input * input1 / 100 + 50;
jl = [(input * input1 / 100) + 50] / 2;
} else if (input > 10000 && input <= 500000) {
hl = [(input - 10000) * 1.5 / 100 + 50] * input1 / 100;
jl = [(input - 10000) * 1.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 500000 && input <= 5000000) {
hl = [(input - 500000) * 1 / 100 + 50] * input1 / 100;
jl = [(input - 500000) * 1 / 100 + 50] * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
hl = [(input - 5000000) * 0.5 / 100 + 50] * input1 / 100;
jl = [(input - 5000000) * 0.5 / 100 + 50] * input1 / 100 / 2;
} else {
hl = [(input - 10000000) * 0.1 / 100 + 50] * input1 / 100;
jl = [(input - 10000000) * 0.1 / 100 + 50] * input1 / 100 / 2;
}
var lj2 = 0;
lj2 = al + hl;
$("#lj2").val(lj2.toFixed(2));
var lj9 = 0;
lj9 = sl + jl;
$("#lj9").val(lj9.toFixed(2));
//财产计算
if (input <= 1000) {
kl = input * input1 / 100 + 30;
ll = [(input * input1 / 100) + 30] / 2
} else if (input > 1000 && input <= 100000) {
kl = [(input - 1000) * 1 / 100 + 30] * input1 / 100;
ll = [(input - 1000) * 1 / 100 + 30] * input1 / 100 / 2;
} else {
kl = [(input - 100000) * 0.5 / 100 + 30] * input1 / 100;
ll = [(input - 100000) * 0.5 / 100 + 30] * input1 / 100 / 2;
}
var lj3 = 0;
lj3 = al + kl;
$("#lj3").val(lj3.toFixed(2));
var lj10 = 0;
lj10 = sl + ll;
$("#lj10").val(lj10.toFixed(2));
//支付令计算
if (input <= 10000) {
ql = [(input * input1 / 100 + 50)] / 3;
wl = [(input * input1 / 100 + 50) / 3] / 2
} else if (input > 10000 && input <= 100000) {
ql = [(input - 10000) * 2.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 10000) * 2.5 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 100000 && input <= 200000) {
ql = [(input - 100000) * 2 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 100000) * 2 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 200000 && input <= 500000) {
ql = [(input - 200000) * 1.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 200000) * 1.5 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 500000 && input <= 1000000) {
ql = [(input - 500000) * 1 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 500000) * 1 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 1000000 && input <= 2000000) {
ql = [(input - 1000000) * 0.9 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 1000000) * 0.9 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 2000000 && input <= 5000000) {
ql = [(input - 2000000) * 0.8 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 2000000) * 0.8 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
ql = [(input - 5000000) * 0.7 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 5000000) * 0.7 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input < 10000000 && input <= 20000000) {
ql = [(input - 10000000) * 0.6 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 10000000) * 0.6 / 100 + 50] / 3 * input1 / 100 / 2;
} else {
ql = [(input - 20000000) * 0.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 20000000) * 0.5 / 100 + 50] / 3 * input1 / 100 / 2;
}
var lj4 = 0;
lj4 = al + ql;
$("#lj4").val(lj4.toFixed(2));
var lj11 = 0;
lj11 = sl + wl;
$("#lj11").val(lj11.toFixed(2));
}
function Costcalculator1(input, input1) {
input = parseFloat(input) || 0;
input1 = parseFloat(input1) || 0;
var al = 0;
var sl = 0;
var dl = 0;
var el = 0;
var fl = 0;
var gl = 0;
var hl = 0;
var jl = 0;
var kl = 0;
var ll = 0;
var ql = 0;
var wl = 0;
//受理费全额 半额计算
if (input <= 10000) {
al = (input * input1 / 100) + 50;
sl = [(input * input1 / 100) + 50] / 2;
} else if (input > 10000 && input <= 100000) {
al = [(input - 10000) * 2.5 / 100 + 50] * input1 / 100;
sl = [(input - 10000) * 2.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 100000 && input <= 200000) {
al = [(input - 100000) * 2 / 100 + 50] * input1 / 100;
sl = [(input - 100000) * 2 / 100 + 50] * input1 / 100 / 2;
} else if (input > 200000 && input <= 500000) {
al = [(input - 200000) * 1.5 / 100 + 50] * input1 / 100;
sl = [(input - 200000) * 1.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 500000 && input <= 1000000) {
al = [(input - 500000) * 1 / 100 + 50] * input1 / 100;
sl = [(input - 500000) * 1 / 100 + 50] * input1 / 100 / 2;
} else if (input > 1000000 && input <= 2000000) {
al = [(input - 1000000) * 0.9 / 100 + 50] * input1 / 100;
sl = [(input - 1000000) * 0.9 / 100 + 50] * input1 / 100 / 2;
} else if (input > 2000000 && input <= 5000000) {
al = [(input - 2000000) * 0.8 / 100 + 50] * input1 / 100;
sl = [(input - 2000000) * 0.8 / 100 + 50] * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
al = [(input - 5000000) * 0.7 / 100 + 50] * input1 / 100;
sl = [(input - 5000000) * 0.7 / 100 + 50] * input1 / 100 / 2;
} else if (input > 10000000 && input <= 20000000) {
al = [(input - 10000000) * 0.6 / 100 + 50] * input1 / 100;
sl = [(input - 10000000) * 0.6 / 100 + 50] * input1 / 100 / 2;
} else {
al = [(input - 20000000) * 0.5 / 100 + 50] * input1 / 100;
sl = [(input - 20000000) * 0.5 / 100 + 50] * input1 / 100 / 2;
}
//离婚计算
if (input <= 200000) {
dl = input * input1 / 100 + 100
el = [(input * input1 / 100) + 100] / 2
} else {
dl = [(input - 200000) * 0.5 / 100 + 100] * input1 / 100;
el = [(input - 200000) * 0.5 / 100 + 100] * input1 / 100 / 2;
}
var lj = 0;
lj = (al + dl) / 365;
$("#lj").val(lj.toFixed(2));
var lj7 = 0;
lj7 = (sl + el) / 365;
$("#lj7").val(lj7.toFixed(2));
//人格计算
if (input <= 50000) {
fl = input * input1 / 100 + 500;
gl = [(input * input1 / 100) + 500] / 2;
} else if (input > 50000 && input <= 100000) {
fl = [(input - 50000) * 1 / 100 + 500] * input1 / 100;
gl = [(input - 50000) * 1 / 100 + 500] * input1 / 100 / 2;
} else {
fl = [(input - 100000) * 0.5 / 100 + 500] * input1 / 100;
gl = [(input - 100000) * 0.5 / 100 + 500] * input1 / 100 / 2;
}
var lj1 = 0;
lj1 = (al + fl) / 365;
$("#lj1").val(lj1.toFixed(2));
var lj8 = 0;
lj8 = (sl + gl) / 365;
$("#lj8").val(lj8.toFixed(2));
//执行案件
if (input <= 10000) {
hl = input * input1 / 100 + 50;
jl = [(input * input1 / 100) + 50] / 2;
} else if (input > 10000 && input <= 500000) {
hl = [(input - 10000) * 1.5 / 100 + 50] * input1 / 100;
jl = [(input - 10000) * 1.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 500000 && input <= 5000000) {
hl = [(input - 500000) * 1 / 100 + 50] * input1 / 100;
jl = [(input - 500000) * 1 / 100 + 50] * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
hl = [(input - 5000000) * 0.5 / 100 + 50] * input1 / 100;
jl = [(input - 5000000) * 0.5 / 100 + 50] * input1 / 100 / 2;
} else {
hl = [(input - 10000000) * 0.1 / 100 + 50] * input1 / 100;
jl = [(input - 10000000) * 0.1 / 100 + 50] * input1 / 100 / 2;
}
var lj2 = 0;
lj2 = (al + hl) / 365;
$("#lj2").val(lj2.toFixed(2));
var lj9 = 0;
lj9 = (sl + jl) / 365;
$("#lj9").val(lj9.toFixed(2));
//财产计算
if (input <= 1000) {
kl = input * input1 / 100 + 30;
ll = [(input * input1 / 100) + 30] / 2
} else if (input > 1000 && input <= 100000) {
kl = [(input - 1000) * 1 / 100 + 30] * input1 / 100;
ll = [(input - 1000) * 1 / 100 + 30] * input1 / 100 / 2;
} else {
kl = [(input - 100000) * 0.5 / 100 + 30] * input1 / 100;
ll = [(input - 100000) * 0.5 / 100 + 30] * input1 / 100 / 2;
}
var lj3 = 0;
lj3 = (al + kl) / 365;
$("#lj3").val(lj3.toFixed(2));
var lj10 = 0;
lj10 = (sl + ll) / 365;
$("#lj10").val(lj10.toFixed(2));
//支付令计算
if (input <= 10000) {
ql = [(input * input1 / 100 + 50)] / 3;
wl = [(input * input1 / 100 + 50) / 3] / 2
} else if (input > 10000 && input <= 100000) {
ql = [(input - 10000) * 2.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 10000) * 2.5 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 100000 && input <= 200000) {
ql = [(input - 100000) * 2 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 100000) * 2 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 200000 && input <= 500000) {
ql = [(input - 200000) * 1.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 200000) * 1.5 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 500000 && input <= 1000000) {
ql = [(input - 500000) * 1 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 500000) * 1 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 1000000 && input <= 2000000) {
ql = [(input - 1000000) * 0.9 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 1000000) * 0.9 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 2000000 && input <= 5000000) {
ql = [(input - 2000000) * 0.8 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 2000000) * 0.8 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
ql = [(input - 5000000) * 0.7 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 5000000) * 0.7 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input < 10000000 && input <= 20000000) {
ql = [(input - 10000000) * 0.6 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 10000000) * 0.6 / 100 + 50] / 3 * input1 / 100 / 2;
} else {
ql = [(input - 20000000) * 0.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 20000000) * 0.5 / 100 + 50] / 3 * input1 / 100 / 2;
}
var lj4 = 0;
lj4 = (al + ql) / 365;
$("#lj4").val(lj4.toFixed(2));
var lj11 = 0;
lj11 = (sl + wl) / 365;
$("#lj11").val(lj11.toFixed(2));
}
function Costcalculator2(input, input1) {
input = parseFloat(input) || 0;
input1 = parseFloat(input1) || 0;
var al = 0;
var sl = 0;
var dl = 0;
var el = 0;
var fl = 0;
var gl = 0;
var hl = 0;
var jl = 0;
var kl = 0;
var ll = 0;
var ql = 0;
var wl = 0;
//受理费全额 半额计算
if (input <= 10000) {
al = (input * input1 / 100) + 50;
sl = [(input * input1 / 100) + 50] / 2;
} else if (input > 10000 && input <= 100000) {
al = [(input - 10000) * 2.5 / 100 + 50] * input1 / 100;
sl = [(input - 10000) * 2.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 100000 && input <= 200000) {
al = [(input - 100000) * 2 / 100 + 50] * input1 / 100;
sl = [(input - 100000) * 2 / 100 + 50] * input1 / 100 / 2;
} else if (input > 200000 && input <= 500000) {
al = [(input - 200000) * 1.5 / 100 + 50] * input1 / 100;
sl = [(input - 200000) * 1.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 500000 && input <= 1000000) {
al = [(input - 500000) * 1 / 100 + 50] * input1 / 100;
sl = [(input - 500000) * 1 / 100 + 50] * input1 / 100 / 2;
} else if (input > 1000000 && input <= 2000000) {
al = [(input - 1000000) * 0.9 / 100 + 50] * input1 / 100;
sl = [(input - 1000000) * 0.9 / 100 + 50] * input1 / 100 / 2;
} else if (input > 2000000 && input <= 5000000) {
al = [(input - 2000000) * 0.8 / 100 + 50] * input1 / 100;
sl = [(input - 2000000) * 0.8 / 100 + 50] * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
al = [(input - 5000000) * 0.7 / 100 + 50] * input1 / 100;
sl = [(input - 5000000) * 0.7 / 100 + 50] * input1 / 100 / 2;
} else if (input > 10000000 && input <= 20000000) {
al = [(input - 10000000) * 0.6 / 100 + 50] * input1 / 100;
sl = [(input - 10000000) * 0.6 / 100 + 50] * input1 / 100 / 2;
} else {
al = [(input - 20000000) * 0.5 / 100 + 50] * input1 / 100;
sl = [(input - 20000000) * 0.5 / 100 + 50] * input1 / 100 / 2;
}
//离婚计算
if (input <= 200000) {
dl = input * input1 / 100 + 100
el = [(input * input1 / 100) + 100] / 2
} else {
dl = [(input - 200000) * 0.5 / 100 + 100] * input1 / 100;
el = [(input - 200000) * 0.5 / 100 + 100] * input1 / 100 / 2;
}
var lj = 0;
lj = (al + dl) / 12;
$("#lj").val(lj.toFixed(2));
var lj7 = 0;
lj7 = (sl + el) / 12;
$("#lj7").val(lj7.toFixed(2));
//人格计算
if (input <= 50000) {
fl = input * input1 / 100 + 500;
gl = [(input * input1 / 100) + 500] / 2;
} else if (input > 50000 && input <= 100000) {
fl = [(input - 50000) * 1 / 100 + 500] * input1 / 100;
gl = [(input - 50000) * 1 / 100 + 500] * input1 / 100 / 2;
} else {
fl = [(input - 100000) * 0.5 / 100 + 500] * input1 / 100;
gl = [(input - 100000) * 0.5 / 100 + 500] * input1 / 100 / 2;
}
var lj1 = 0;
lj1 = (al + fl) / 12;
$("#lj1").val(lj1.toFixed(2));
var lj8 = 0;
lj8 = (sl + gl) / 12;
$("#lj8").val(lj8.toFixed(2));
//执行案件
if (input <= 10000) {
hl = input * input1 / 100 + 50;
jl = [(input * input1 / 100) + 50] / 2;
} else if (input > 10000 && input <= 500000) {
hl = [(input - 10000) * 1.5 / 100 + 50] * input1 / 100;
jl = [(input - 10000) * 1.5 / 100 + 50] * input1 / 100 / 2;
} else if (input > 500000 && input <= 5000000) {
hl = [(input - 500000) * 1 / 100 + 50] * input1 / 100;
jl = [(input - 500000) * 1 / 100 + 50] * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
hl = [(input - 5000000) * 0.5 / 100 + 50] * input1 / 100;
jl = [(input - 5000000) * 0.5 / 100 + 50] * input1 / 100 / 2;
} else {
hl = [(input - 10000000) * 0.1 / 100 + 50] * input1 / 100;
jl = [(input - 10000000) * 0.1 / 100 + 50] * input1 / 100 / 2;
}
var lj2 = 0;
lj2 = (al + hl) / 12;
$("#lj2").val(lj2.toFixed(2));
var lj9 = 0;
lj9 = (sl + jl) / 12;
$("#lj9").val(lj9.toFixed(2));
//财产计算
if (input <= 1000) {
kl = input * input1 / 100 + 30;
ll = [(input * input1 / 100) + 30] / 2
} else if (input > 1000 && input <= 100000) {
kl = [(input - 1000) * 1 / 100 + 30] * input1 / 100;
ll = [(input - 1000) * 1 / 100 + 30] * input1 / 100 / 2;
} else {
kl = [(input - 100000) * 0.5 / 100 + 30] * input1 / 100;
ll = [(input - 100000) * 0.5 / 100 + 30] * input1 / 100 / 2;
}
var lj3 = 0;
lj3 = (al + kl) / 12;
$("#lj3").val(lj3.toFixed(2));
var lj10 = 0;
lj10 = (sl + ll) / 12;
$("#lj10").val(lj10.toFixed(2));
//支付令计算
if (input <= 10000) {
ql = [(input * input1 / 100 + 50)] / 3;
wl = [(input * input1 / 100 + 50) / 3] / 2
} else if (input > 10000 && input <= 100000) {
ql = [(input - 10000) * 2.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 10000) * 2.5 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 100000 && input <= 200000) {
ql = [(input - 100000) * 2 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 100000) * 2 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 200000 && input <= 500000) {
ql = [(input - 200000) * 1.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 200000) * 1.5 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 500000 && input <= 1000000) {
ql = [(input - 500000) * 1 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 500000) * 1 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 1000000 && input <= 2000000) {
ql = [(input - 1000000) * 0.9 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 1000000) * 0.9 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 2000000 && input <= 5000000) {
ql = [(input - 2000000) * 0.8 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 2000000) * 0.8 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input > 5000000 && input <= 10000000) {
ql = [(input - 5000000) * 0.7 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 5000000) * 0.7 / 100 + 50] / 3 * input1 / 100 / 2;
} else if (input < 10000000 && input <= 20000000) {
ql = [(input - 10000000) * 0.6 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 10000000) * 0.6 / 100 + 50] / 3 * input1 / 100 / 2;
} else {
ql = [(input - 20000000) * 0.5 / 100 + 50] / 3 * input1 / 100;
wl = [(input - 20000000) * 0.5 / 100 + 50] / 3 * input1 / 100 / 2;
}
var lj4 = 0;
lj4 = (al + ql) / 12;
$("#lj4").val(lj4.toFixed(2));
var lj11 = 0;
lj11 = (sl + wl) / 12;
$("#lj11").val(lj11.toFixed(2));
}
</script>
</html>