From 72b2edc0d4929f0ee41aace5066e0cd19859c0bf Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 6 Apr 2023 15:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E8=B5=9Ebug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue | 3 ++- src/project/fengdu/AppNewFarmerBank/handpick.vue | 8 ++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue b/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue index e8fb948..b5d8a7b 100644 --- a/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue +++ b/src/project/fengdu/AppNewFarmerBank/AppNewFarmerBank.vue @@ -120,10 +120,11 @@ export default { this.flag = true this.$instance.post(`/app/appcontentinfo/supportById?id=${id}`).then(res=> { if(res?.code==0) { + this.flag = false this.list[index].upStatus = 1 this.$u.toast(`点赞成功`) } - }) + }).finally(() => this.flag = false) }, toPages(url,status) { if(!this.user.idNumber) { diff --git a/src/project/fengdu/AppNewFarmerBank/handpick.vue b/src/project/fengdu/AppNewFarmerBank/handpick.vue index 587d82f..32cff6b 100644 --- a/src/project/fengdu/AppNewFarmerBank/handpick.vue +++ b/src/project/fengdu/AppNewFarmerBank/handpick.vue @@ -2,7 +2,9 @@
-
{{ item.content }}
+
+ {{ item.content }} +
@@ -74,15 +76,17 @@ export default { }, // 点赞 upCount(id,index) { + console.log(id,index); if (this.flag) return this.flag = true this.$instance.post(`/app/appcontentinfo/supportById?id=${id}`).then(res => { if (res?.code == 0) { + this.flag = false this.list[index].upStatus = 1 this.$u.toast(`点赞成功`) } - }) + }).finally(() => this.flag = false) }, }, onShow() {