Authored by caoyan

VIP及变价优化

@@ -674,11 +674,11 @@ $(document).on('click', '.modify-btn', function() { @@ -674,11 +674,11 @@ $(document).on('click', '.modify-btn', function() {
674 674
675 var $wrap = parentTr.next('.product-detail'), 675 var $wrap = parentTr.next('.product-detail'),
676 $price = $wrap.find('.sale-price'), 676 $price = $wrap.find('.sale-price'),
677 - $select = $wrap.find('.discount-select'),  
678 - $vipPrice = $wrap.find('.vip-price'),  
679 - $vip3Price = $wrap.find('.vip3-price'),  
680 - $vip2Price = $wrap.find('.vip2-price'),  
681 - $vip1Price = $wrap.find('.vip1-price'), 677 +// $select = $wrap.find('.discount-select'),
  678 +// $vipPrice = $wrap.find('.vip-price'),
  679 +// $vip3Price = $wrap.find('.vip3-price'),
  680 +// $vip2Price = $wrap.find('.vip2-price'),
  681 +// $vip1Price = $wrap.find('.vip1-price'),
682 $student_price = $wrap.find('.student_price'), 682 $student_price = $wrap.find('.student_price'),
683 $startDate = $wrap.find('.startDate'), 683 $startDate = $wrap.find('.startDate'),
684 $endDate = $wrap.find('.endDate'), 684 $endDate = $wrap.find('.endDate'),
@@ -687,16 +687,16 @@ $(document).on('click', '.modify-btn', function() { @@ -687,16 +687,16 @@ $(document).on('click', '.modify-btn', function() {
687 $expectGrossProfitRate = $wrap.find('.expect_gross_profit_rate'); 687 $expectGrossProfitRate = $wrap.find('.expect_gross_profit_rate');
688 $select.val(data.vip_discount_type); 688 $select.val(data.vip_discount_type);
689 689
690 - vipPrice($wrap);  
691 - $select.on('change', function() {  
692 - vipPrice($wrap);  
693 - });  
694 - $vipPrice.on('blur', function() {  
695 - vipPrice($wrap);  
696 - });  
697 - $price.on('blur', function() {  
698 - vipPrice($wrap);  
699 - }); 690 +// vipPrice($wrap);
  691 +// $select.on('change', function() {
  692 +// vipPrice($wrap);
  693 +// });
  694 +// $vipPrice.on('blur', function() {
  695 +// vipPrice($wrap);
  696 +// });
  697 +// $price.on('blur', function() {
  698 +// vipPrice($wrap);
  699 +// });
700 $submitBtn.on('click', function() { 700 $submitBtn.on('click', function() {
701 $submitBtn.attr('disabled', true); 701 $submitBtn.attr('disabled', true);
702 if($price.val() != 0){ 702 if($price.val() != 0){
@@ -705,11 +705,11 @@ $(document).on('click', '.modify-btn', function() { @@ -705,11 +705,11 @@ $(document).on('click', '.modify-btn', function() {
705 data: { 705 data: {
706 product_skn: skn, 706 product_skn: skn,
707 sales_price: $price.val(), 707 sales_price: $price.val(),
708 - vip_discount_type: $select.val(),  
709 - vip_price: $vipPrice.val(),  
710 - vip1_price: $vip1Price.val(),  
711 - vip2_price: $vip2Price.val(),  
712 - vip3_price: $vip3Price.val(), 708 +// vip_discount_type: $select.val(),
  709 +// vip_price: $vipPrice.val(),
  710 +// vip1_price: $vip1Price.val(),
  711 +// vip2_price: $vip2Price.val(),
  712 +// vip3_price: $vip3Price.val(),
713 student_price: $student_price.val(), 713 student_price: $student_price.val(),
714 cgpriceStartTime:$startDate.val(), 714 cgpriceStartTime:$startDate.val(),
715 cgpriceEndTime:$endDate.val(), 715 cgpriceEndTime:$endDate.val(),