...
|
...
|
@@ -186,22 +186,26 @@ $(document).on('click', '.modify-btn', function() { |
|
|
vipPrice($wrap);
|
|
|
});
|
|
|
$submitBtn.on('click', function() {
|
|
|
common.util.__ajax({
|
|
|
url: '/goods/updatePrice',
|
|
|
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(),
|
|
|
cgpriceStartTime:$startDate.val(),
|
|
|
cgpriceEndTime:$endDate.val()
|
|
|
}
|
|
|
}, function(res) {
|
|
|
if (res.code == 200) {g.reload()}
|
|
|
})
|
|
|
if($price.val() != 0){
|
|
|
common.util.__ajax({
|
|
|
url: '/goods/updatePrice',
|
|
|
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(),
|
|
|
cgpriceStartTime:$startDate.val(),
|
|
|
cgpriceEndTime:$endDate.val()
|
|
|
}
|
|
|
}, function(res) {
|
|
|
if (res.code == 200) {g.reload()}
|
|
|
})
|
|
|
}else{
|
|
|
common.util.__tip("销售价不能为0!");
|
|
|
}
|
|
|
});
|
|
|
},true);
|
|
|
}
|
...
|
...
|
|