Authored by 刘传洋

m

... ... @@ -380,6 +380,18 @@ function getTogetherProduct(page) {
});
}
function productCollect(pid, isCancel) {
return $.ajax({
type: 'POST',
dataType: 'json',
url: '/product/item/togglecollect',
data: {
productId: pid,
type: isCancel ? 'cancel': 'add'
}
});
}
function showMDialog(id) {
$(id).show();
$('body').addClass('mmodal-body');
... ... @@ -408,5 +420,6 @@ module.exports = {
getFineProduct: getFineProduct,
getTogetherProduct: getTogetherProduct,
showMDialog: showMDialog,
hideMDialog: hideMDialog
hideMDialog: hideMDialog,
productCollect: productCollect
};
... ...