From a432d670ff6d6df5b5a8bed2c86dc20ac0e43d8a Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 24 七月 2024 11:27:51 +0800
Subject: [PATCH] update 关注和商铺详情

---
 sub_pages/customer/self/follow.vue |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/sub_pages/customer/self/follow.vue b/sub_pages/customer/self/follow.vue
index ca6531d..dd70359 100644
--- a/sub_pages/customer/self/follow.vue
+++ b/sub_pages/customer/self/follow.vue
@@ -40,22 +40,13 @@
         url: '/sub_pages/customer/shop/shop?id=' + (item.id || '')
       })
     },
-    clearFollow(item) {
+    async clearFollow(item) {
       this.$message.showLoading()
-      // var res;
-      // if(type){
-      //   res = await this.$http.request('post',`/api/follow/add`,{
-      //     data:{
-      //       supplierId:this.dto.supplierId || this.dto.id
-      //     }
-      //   })
-      // }else{
-      //   res = await this.$http.request('get',`/api/follow/add`,{
-      //     data:{
-      //       supplierId:this.dto.supplierId || this.dto.id
-      //     }
-      //   })
-      // }
+      const {code} = await this.$http.request('get', `/api/follow/delete`, {
+        params: {
+          supplierId: item.id
+        }
+      })
       this.$message.hideLoading()
       if (code === 0) {
         //删除list里的本元素

--
Gitblit v1.9.3