From 5452fe0aba545e8e88c562c15dbd1e3c7f6928f3 Mon Sep 17 00:00:00 2001 From: lxf Date: Fri, 30 May 2025 16:38:11 +0800 Subject: [PATCH] fix: 支付计划 --- pages/payPlan/card.vue | 2 +- pages/payPlan/list.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/payPlan/card.vue b/pages/payPlan/card.vue index 152f7a3..549e4da 100644 --- a/pages/payPlan/card.vue +++ b/pages/payPlan/card.vue @@ -108,7 +108,7 @@ export default { if (this.choseMore) return; this.pressTimer = setTimeout(() => { this.isLongClick = true; - this.$emit('longClick', this.item.id); + this.$emit('longClick', this.item); }, 1000); }, mouseup() { diff --git a/pages/payPlan/list.vue b/pages/payPlan/list.vue index bda1874..ba5c90e 100644 --- a/pages/payPlan/list.vue +++ b/pages/payPlan/list.vue @@ -193,6 +193,8 @@ export default { } this.activeTab = index; this.list = []; + this.selection = []; + this.longClickFlag = false; this.onSearch(); }, orderAPI(params) { @@ -281,9 +283,11 @@ export default { } } }, - longClick(id) { - this.selection = [id]; - this.longClickFlag = true; + longClick(item) { + if (['NOT_PAY', 'PAY_FAILED'].includes(item.payStatus)) { + this.selection = [item.id]; + this.longClickFlag = true; + } }, onePaymentPlanFun(id) { uni.showLoading({ title: '加载中' }); -- libgit2 0.21.0