From b296b9940e312aa66cc601fb544529dfd8a47e07 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Mon, 11 Sep 2023 16:29:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E4=BF=A1=E6=81=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/user-base/user-base.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/user-base/user-base.vue b/components/user-base/user-base.vue index c824a4c6..e8c728d6 100644 --- a/components/user-base/user-base.vue +++ b/components/user-base/user-base.vue @@ -53,6 +53,7 @@ pages: [], client: [], interval_time: 0, + timer: null, form_submit_disabled_status: false }; }, @@ -93,7 +94,7 @@ this.init_config(true); // 是否需要展示弹窗提示 - if (this.pages.indexOf(type) != -1 && this.client.indexOf(this.application_client_type) != -1) { + if (!this.popup_status && this.pages.indexOf(type) != -1 && this.client.indexOf(this.application_client_type) != -1) { // 当前缓存用户 var user = app.globalData.get_user_cache_info() || null; // 默认昵称则赋空值 @@ -119,12 +120,13 @@ // 1秒后再提示用户填写信息 var self = this; - setTimeout(function() { + clearTimeout(this.timer); + this.timer = setTimeout(function() { self.setData({ popup_status: status, user: user }); - }, 1000); + }, 500); } },