...
|
...
|
@@ -674,11 +674,11 @@ $(document).on('click', '.modify-btn', function() { |
|
|
|
|
|
var $wrap = parentTr.next('.product-detail'),
|
|
|
$price = $wrap.find('.sale-price'),
|
|
|
$select = $wrap.find('.discount-select'),
|
|
|
$vipPrice = $wrap.find('.vip-price'),
|
|
|
$vip3Price = $wrap.find('.vip3-price'),
|
|
|
$vip2Price = $wrap.find('.vip2-price'),
|
|
|
$vip1Price = $wrap.find('.vip1-price'),
|
|
|
// $select = $wrap.find('.discount-select'),
|
|
|
// $vipPrice = $wrap.find('.vip-price'),
|
|
|
// $vip3Price = $wrap.find('.vip3-price'),
|
|
|
// $vip2Price = $wrap.find('.vip2-price'),
|
|
|
// $vip1Price = $wrap.find('.vip1-price'),
|
|
|
$student_price = $wrap.find('.student_price'),
|
|
|
$startDate = $wrap.find('.startDate'),
|
|
|
$endDate = $wrap.find('.endDate'),
|
...
|
...
|
@@ -687,16 +687,16 @@ $(document).on('click', '.modify-btn', function() { |
|
|
$expectGrossProfitRate = $wrap.find('.expect_gross_profit_rate');
|
|
|
$select.val(data.vip_discount_type);
|
|
|
|
|
|
vipPrice($wrap);
|
|
|
$select.on('change', function() {
|
|
|
vipPrice($wrap);
|
|
|
});
|
|
|
$vipPrice.on('blur', function() {
|
|
|
vipPrice($wrap);
|
|
|
});
|
|
|
$price.on('blur', function() {
|
|
|
vipPrice($wrap);
|
|
|
});
|
|
|
// vipPrice($wrap);
|
|
|
// $select.on('change', function() {
|
|
|
// vipPrice($wrap);
|
|
|
// });
|
|
|
// $vipPrice.on('blur', function() {
|
|
|
// vipPrice($wrap);
|
|
|
// });
|
|
|
// $price.on('blur', function() {
|
|
|
// vipPrice($wrap);
|
|
|
// });
|
|
|
$submitBtn.on('click', function() {
|
|
|
$submitBtn.attr('disabled', true);
|
|
|
if($price.val() != 0){
|
...
|
...
|
@@ -705,11 +705,11 @@ $(document).on('click', '.modify-btn', function() { |
|
|
data: {
|
|
|
product_skn: skn,
|
|
|
sales_price: $price.val(),
|
|
|
vip_discount_type: $select.val(),
|
|
|
vip_price: $vipPrice.val(),
|
|
|
vip1_price: $vip1Price.val(),
|
|
|
vip2_price: $vip2Price.val(),
|
|
|
vip3_price: $vip3Price.val(),
|
|
|
// vip_discount_type: $select.val(),
|
|
|
// vip_price: $vipPrice.val(),
|
|
|
// vip1_price: $vip1Price.val(),
|
|
|
// vip2_price: $vip2Price.val(),
|
|
|
// vip3_price: $vip3Price.val(),
|
|
|
student_price: $student_price.val(),
|
|
|
cgpriceStartTime:$startDate.val(),
|
|
|
cgpriceEndTime:$endDate.val(),
|
...
|
...
|
|