Authored by weiqingting

Merge branch 'release/shop_supplier_v' of http://git.dev.yoho.cn/platform/yohobu…

…y-portal-fe into release/shop_supplier_v
... ... @@ -150,13 +150,20 @@ g.init($("#gridurl").val());
//单个变价
$('#basicTable').on('click', '.modify-btn', function() {
var skn = $(this).data('skn'),
that = this;
that = this,
$detail = $(that).parents('tr').next('.product-detail');
if ($detail.size() == 0) {
$(that).addClass('disabled');
}
if ($(that).data('detail')) {
$(that).parents('tr').next('.product-detail').toggle();
$detail.toggle();
return;
}
$.ajax({
type: 'POST',
url: '/goods/getPrice',
... ... @@ -166,6 +173,7 @@ $('#basicTable').on('click', '.modify-btn', function() {
}
}).then(function(res) {
var data = res.data.data;
$(that).removeClass('disabled');
$(that).data('detail', true).parents('tr')
.after($(common.util.__template($("#template").html(), data)))
... ...