From e7b81924e3fa4d7c5a52484f465efa6733e8c402 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: Thu, 26 Oct 2023 11:10:38 +0800
Subject: [PATCH] 防止重复点击
---
pages/tabBar/response/response.vue | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/pages/tabBar/response/response.vue b/pages/tabBar/response/response.vue
index 7d70cf9..0d1fe8b 100644
--- a/pages/tabBar/response/response.vue
+++ b/pages/tabBar/response/response.vue
@@ -7,6 +7,9 @@
<!-- 真正的导航栏内容 -->
<view class="navBar">
<view class="barText">叫应记录</view>
+ <view >
+ <u-button type="text" @click="loginOut" style="color: blue;margin-right: 5px;">退出</u-button>
+ </view>
</view>
</view>
<div v-if="loading" style='display: flex;justify-content: center;position: absolute;width:100%;top: 40%;left: 0'>
@@ -70,8 +73,17 @@
uni.hideTabBar();
},
methods: {
+ loginOut() {
+ uni.clearStorageSync();
+ uni.clearStorage();
+ uni.navigateTo({
+ url: '/pages/index/index'
+ })
+ },
getResponseList() {
this.loading = true
+
+
getResponse(this.data).then(res => {
if (res.code === 100) {
let list = res.data ? res.data : [];
@@ -120,7 +132,7 @@
},
lower: function(e) {
if (this.data.pageIndex * this.data.pageSize >= this.total){
- uni.$u.toast('已加载全部数据')
+ // uni.$u.toast('已加载全部数据')
return
}
//并且让页码+1,调用获取数据的方法获取第二页数据
--
Gitblit v1.9.2