Browse Source

Merge branch 'car_dev' of 121.43.114.153:/home/git/repositories/shopnc into car_dev

stanley-king 7 years ago
parent
commit
2c43a67833
1 changed files with 17 additions and 2 deletions
  1. 17 2
      shop/templates/default/seller/store_goods_add.step2.php

+ 17 - 2
shop/templates/default/seller/store_goods_add.step2.php

@@ -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>