|
@@ -1355,7 +1355,7 @@ $(function(){
|
|
$('.check_surplus_pay_btn').on('click',function(){
|
|
$('.check_surplus_pay_btn').on('click',function(){
|
|
var checked_row = $('input[surplus_checked="true"]');
|
|
var checked_row = $('input[surplus_checked="true"]');
|
|
if($('input[name="surplus_one_off"]').is(':checked')) {
|
|
if($('input[name="surplus_one_off"]').is(':checked')) {
|
|
- checked_row.siblings('.surplus_payment_label').text('一次性付款');
|
|
|
|
|
|
+ checked_row.siblings('.surplus_payment_label').text('全部支付');
|
|
checked_row.siblings('.surplus_payment').val('1');
|
|
checked_row.siblings('.surplus_payment').val('1');
|
|
checked_row.siblings('.surplus_periods').val("");
|
|
checked_row.siblings('.surplus_periods').val("");
|
|
checked_row.siblings('.terminally_price').val("");
|
|
checked_row.siblings('.terminally_price').val("");
|
|
@@ -1424,5 +1424,20 @@ $(function(){
|
|
}
|
|
}
|
|
goods_plus();
|
|
goods_plus();
|
|
|
|
|
|
-
|
|
|
|
|
|
+ function surplus_payment(){
|
|
|
|
+ for(var i =0;i<$('.surplus_payment').length;i++) {
|
|
|
|
+ if($('.surplus_payment').eq(i).val() == "1") {
|
|
|
|
+ $('.surplus_payment').eq(i).siblings('.surplus_payment_label').text('全部支付');
|
|
|
|
+ }
|
|
|
|
+ else if($('.surplus_payment').eq(i).val() == "0"){
|
|
|
|
+ $('.surplus_payment').eq(i).siblings('.surplus_payment_label').text('分期付款');
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ $('.surplus_payment').eq(i).siblings('.surplus_payment_label').text('');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $(function(){
|
|
|
|
+ surplus_payment();
|
|
|
|
+ });
|
|
</script>
|
|
</script>
|