结算时增加节流

master
游梦婷 2 years ago
parent e68187c41e
commit 23aa9dc8f8
  1. 10
      physical-merchants/classify/order/pay.vue
  2. 15
      physical-merchants/settleAccounts/settleAccounts.vue

@ -181,9 +181,6 @@
} }
}, },
onUnload() {
clearInterval(this.timers);
},
// //
getThirdPartyByDetail() { getThirdPartyByDetail() {
// #ifdef H5 // #ifdef H5
@ -231,8 +228,11 @@
// 00:00:00 // 00:00:00
if (lefttime <= 0) { if (lefttime <= 0) {
clearInterval(this.timers); clearInterval(this.timers);
uni.redirectTo({ // uni.redirectTo({
url:'/pages/user/order_list/order_list?tbIndex='+'-1' // url:'/pages/user/order_list/order_list?tbIndex='+'-1'
// })
uni.navigateBack({
}) })
this.countdownh = this.countdownm = this.countdowns = "00"; this.countdownh = this.countdownm = this.countdowns = "00";

@ -5,7 +5,6 @@
<view v-if="haveAddress" class="address-left flex-1 font16"> <view v-if="haveAddress" class="address-left flex-1 font16">
<view class="text-ov "> <view class="text-ov ">
{{addressDetail.regionName+" "+addressDetail.address}} {{addressDetail.regionName+" "+addressDetail.address}}
<!-- 重庆市渝中区不是的聚钓具偶家 -->
</view> </view>
<view class="color999 mart3"> <view class="color999 mart3">
<text class="address-name">{{addressDetail.consignee}}</text> <text class="address-name">{{addressDetail.consignee}}</text>
@ -243,6 +242,8 @@
isSelectJf: false, // isSelectJf: false, //
isShowjf:true,// isShowjf:true,//
PaymentPassword: 0, PaymentPassword: 0,
noClick:true,//
} }
}, },
components: { components: {
@ -635,6 +636,18 @@
}, },
// , // ,
settleAccount() { settleAccount() {
if(this.noClick){
this.noClick = false;
setTimeout(()=>{
this.noClick = true;
},2000)
}else{
return
}
if (!this.addressDetail&&!this.haveAddress) { if (!this.addressDetail&&!this.haveAddress) {
uni.showToast({ uni.showToast({
title: '请选择地址', title: '请选择地址',

Loading…
Cancel
Save