From 2c18f68f2e102f8dec78548773463daf60786b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=80=E5=9D=97=E5=85=AB?= <2523890936@qq.com> Date: Fri, 22 Aug 2025 11:24:29 +0800 Subject: [PATCH] bugfix --- f/web-kboss/src/api/ncmatch/index.js | 19 ++++ .../ncmatch/mainPage/productCard/index.vue | 92 ++++++++++++++++--- .../operation/consultingMangement/index.vue | 10 +- 3 files changed, 105 insertions(+), 16 deletions(-) diff --git a/f/web-kboss/src/api/ncmatch/index.js b/f/web-kboss/src/api/ncmatch/index.js index 86a39d5..7050981 100644 --- a/f/web-kboss/src/api/ncmatch/index.js +++ b/f/web-kboss/src/api/ncmatch/index.js @@ -219,4 +219,23 @@ export function reqSupplyAndDemandSecondCategory(data){ headers: { 'Content-Type': 'application/json' }, data }) +} + +//收藏 /product/publish_product_collect.dspy +export function reqPublishProductCollect(data){ + return request({ + url: '/user/favorite_add.dspy', + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data + }) +} +//取消收藏 /user/favorite_delete.dspy +export function reqFavoriteDelete(data){ + return request({ + url: '/user/favorite_delete.dspy', + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data + }) } \ No newline at end of file diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue index 3be6828..3bc3664 100644 --- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue @@ -52,13 +52,29 @@
¥{{ item.discount_price }} - {{ item.unit }} {{ item.short_term === '1' ? '(可短租)' : '' }} + {{ item.unit }} {{ item.short_term === '1' ? '(可短租)' : '' }} 已收藏 +
+
+ 立即咨询 + + 详情 >> + + + {{ item.favorite === '1' ? '取消收藏' : '收藏' }} + + +
-
-立即咨询 详情 >> -
@@ -94,10 +110,25 @@ ¥{{ item.discount_price }} {{ item.unit }} {{ item.short_term === '1' ? '(可短租)' : '' }} -
- - 立即咨询 详情 >> +
+ 立即咨询 + + 详情 >> + + + {{ item.favorite === '1' ? '取消收藏' : '收藏' }} + + +
@@ -107,7 +138,7 @@