Commit 5452fe0aba545e8e88c562c15dbd1e3c7f6928f3

Authored by lxf
1 parent 0b1e5da8

fix: 支付计划

pages/payPlan/card.vue
@@ -108,7 +108,7 @@ export default { @@ -108,7 +108,7 @@ export default {
108 if (this.choseMore) return; 108 if (this.choseMore) return;
109 this.pressTimer = setTimeout(() => { 109 this.pressTimer = setTimeout(() => {
110 this.isLongClick = true; 110 this.isLongClick = true;
111 - this.$emit('longClick', this.item.id); 111 + this.$emit('longClick', this.item);
112 }, 1000); 112 }, 1000);
113 }, 113 },
114 mouseup() { 114 mouseup() {
pages/payPlan/list.vue
@@ -193,6 +193,8 @@ export default { @@ -193,6 +193,8 @@ export default {
193 } 193 }
194 this.activeTab = index; 194 this.activeTab = index;
195 this.list = []; 195 this.list = [];
  196 + this.selection = [];
  197 + this.longClickFlag = false;
196 this.onSearch(); 198 this.onSearch();
197 }, 199 },
198 orderAPI(params) { 200 orderAPI(params) {
@@ -281,9 +283,11 @@ export default { @@ -281,9 +283,11 @@ export default {
281 } 283 }
282 } 284 }
283 }, 285 },
284 - longClick(id) {  
285 - this.selection = [id];  
286 - this.longClickFlag = true; 286 + longClick(item) {
  287 + if (['NOT_PAY', 'PAY_FAILED'].includes(item.payStatus)) {
  288 + this.selection = [item.id];
  289 + this.longClickFlag = true;
  290 + }
287 }, 291 },
288 onePaymentPlanFun(id) { 292 onePaymentPlanFun(id) {
289 uni.showLoading({ title: '加载中' }); 293 uni.showLoading({ title: '加载中' });