From 99dd695553cf45b7cf4f406c58f5274604823d1b Mon Sep 17 00:00:00 2001
From: lifizer <913626195@qq.com>
Date: Fri, 23 Aug 2024 10:55:33 +0800
Subject: [PATCH] =?UTF-8?q?Feat(=E5=8D=83=E5=8E=BF=E5=BA=97=E9=93=BA):?=
=?UTF-8?q?=E6=94=B6=E8=97=8F=E5=8A=9F=E8=83=BD=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/favorite.js | 7 +
api/qianxian.js | 10 +
pkg_product/views/famousQianxianShop.vue | 24 +-
pkg_user/views/myFavorite.vue | 463 +++++++++++++++++------
4 files changed, 382 insertions(+), 122 deletions(-)
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