diff --git a/api/favorite.js b/api/favorite.js index 81fe382..4260ba5 100644 --- a/api/favorite.js +++ b/api/favorite.js @@ -68,4 +68,11 @@ export function getVideoList(page = 1, limit = 10) { * */ export function removeFavorite(ids) { return request.post('/collection/delete', ids) +} + +/** + * 收藏千县名品县城列表 + * */ +export function getCountyFamousList(page = 1, limit = 10) { + return request.get('/collection/countyFamous/list', {page, limit}) } \ No newline at end of file diff --git a/api/qianxian.js b/api/qianxian.js index bb13f13..a40aabc 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -25,6 +25,16 @@ export function postCountyFamousShopZan(data) { return request.post('/countyFamous/shop/zan', data, { login: true }) } +// 千县名品店铺点赞/取消赞 +export function postCountyFamousShopAddFavorite(data) { + return request.post('/collection/countyFamous/add', data, { login: true }) +} + +// 千县名品店铺点赞/取消赞 +export function postCountyFamousShopRemoveFavorite(data) { + return request.post('/collection/countyFamous/remove', data, { login: true }) +} + // 千县名品资讯点赞/取消赞 export function postCountyFamousNewsZan(data) { return request.post('/countyFamous/news/zan', data, { login: true }) diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue index 8c42d7f..0333000 100644 --- a/pkg_product/views/famousQianxianShop.vue +++ b/pkg_product/views/famousQianxianShop.vue @@ -69,20 +69,18 @@ {{ inn.zan }} - + {{ favoriteCount }} @@ -95,9 +93,9 @@ {{ inn.shopIntro }} - + @@ -449,25 +447,23 @@ \ No newline at end of file