Authored by 郭成尧

shop-base-fav

... ... @@ -562,14 +562,19 @@ if ($brandHeader.length > 0) {
var appVersion = $('input[name="app_version"]').val();
/* 如果是基础店铺,POST 的数据一样 */
postData = {
shop_id: id,
app_version: appVersion
};
if ($this.hasClass('coled')) {
postData = {
shop_id: id,
app_version: appVersion,
opt: 'cancel'
};
postUrl = '/product/index/cancelShopFav';
} else {
postData = {
shop_id: id,
app_version: appVersion,
opt: 'ok'
};
postUrl = '/product/index/shopFav';
}
} else {
... ...