From 2d5090c2b215a5ea7e489d4b50fbf30aae569324 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 26 七月 2024 15:03:01 +0800
Subject: [PATCH] fix bug 接口对接和样式调整

---
 sub_pages/customer/self/follow.vue |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)

diff --git a/sub_pages/customer/self/follow.vue b/sub_pages/customer/self/follow.vue
index ca6531d..3624dbf 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里的本元素
@@ -119,7 +110,7 @@
 
     .button-2 {
       border-radius: 34rpx;
-      border: 2rpx solid #20613D
+      border: 2rpx solid #20613D;
       color: #20613D;
     }
   }

--
Gitblit v1.9.3