From 23aa9dc8f80e53993b3e51e91b18cf1360029fbe Mon Sep 17 00:00:00 2001 From: youmengting <2080639302@qq.com> Date: Fri, 28 Apr 2023 09:29:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=8A=82=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- physical-merchants/classify/order/pay.vue | 10 +++++----- .../settleAccounts/settleAccounts.vue | 15 ++++++++++++++- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/physical-merchants/classify/order/pay.vue b/physical-merchants/classify/order/pay.vue index fa1a40e..028dd70 100644 --- a/physical-merchants/classify/order/pay.vue +++ b/physical-merchants/classify/order/pay.vue @@ -181,9 +181,6 @@ } }, - onUnload() { - clearInterval(this.timers); - }, //查询支付方式 getThirdPartyByDetail() { // #ifdef H5 @@ -231,8 +228,11 @@ // 倒计时结束时,显示00:00:00 if (lefttime <= 0) { clearInterval(this.timers); - uni.redirectTo({ - url:'/pages/user/order_list/order_list?tbIndex='+'-1' + // uni.redirectTo({ + // url:'/pages/user/order_list/order_list?tbIndex='+'-1' + // }) + uni.navigateBack({ + }) this.countdownh = this.countdownm = this.countdowns = "00"; diff --git a/physical-merchants/settleAccounts/settleAccounts.vue b/physical-merchants/settleAccounts/settleAccounts.vue index 16df08f..2b68992 100644 --- a/physical-merchants/settleAccounts/settleAccounts.vue +++ b/physical-merchants/settleAccounts/settleAccounts.vue @@ -5,7 +5,6 @@ {{addressDetail.regionName+" "+addressDetail.address}} - {{addressDetail.consignee}} @@ -243,6 +242,8 @@ isSelectJf: false, //是否选择积分抵扣 isShowjf:true,//是否显示积分 PaymentPassword: 0, + + noClick:true,//去支付的点击防抖判断 } }, components: { @@ -635,6 +636,18 @@ }, // 去支付按钮,下单 settleAccount() { + + if(this.noClick){ + this.noClick = false; + setTimeout(()=>{ + this.noClick = true; + },2000) + }else{ + return + } + + + if (!this.addressDetail&&!this.haveAddress) { uni.showToast({ title: '请选择地址',