From da894466fa452dcd2819716ee73c42931e93d5cc Mon Sep 17 00:00:00 2001 From: iizmg Date: Wed, 27 May 2020 09:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=8B=E6=8B=89=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/App.vue | 21 ++-- .../src/main/resources/templates/common.html | 100 ++++++++++++++++-- .../src/main/resources/templates/index.html | 41 ++++++- .../src/main/resources/templates/login.html | 5 + .../main/resources/templates/registered.html | 5 + 5 files changed, 150 insertions(+), 22 deletions(-) diff --git a/admin/src/App.vue b/admin/src/App.vue index 4906884..f2e9407 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -233,7 +233,14 @@ } }, mounted() { - { + //微信禁止下拉 + this.wxStopPull(); + //初始化 + this.init(); + }, + methods: { + //微信禁止下拉 + wxStopPull() { var startY = 0; document.addEventListener('touchstart', function (e) { startY = Number(e.touches[0].pageY); @@ -254,11 +261,7 @@ } } }; - } - //初始化 - this.init(); - }, - methods: { + }, //开始拖拽 touchStart(e) { //下拉刷新逻辑 @@ -306,11 +309,9 @@ { if (this.moveDistance > 70) { this.$EventBus.$emit(glob.eventNames.globRefreshEventName); - this.moveDistance = 0; - this.moveState = 0; - } else { - this.moveDistance = 0; } + this.moveDistance = 0; + this.moveState = 0; } }, //初始化 diff --git a/udf-api/udf-api-server/src/main/resources/templates/common.html b/udf-api/udf-api-server/src/main/resources/templates/common.html index d912bec..21da780 100644 --- a/udf-api/udf-api-server/src/main/resources/templates/common.html +++ b/udf-api/udf-api-server/src/main/resources/templates/common.html @@ -309,6 +309,12 @@ .pre-scrollable { overflow-y: auto; } + + .loadDiv { + position: absolute; + width: 100%; + z-index: 2000; + } [(${title})] @@ -377,8 +383,6 @@ integrity="sha256-WqU1JavFxSAMcLP2WIOI+GB2zWmShMI82mTpLDcqFUg=" crossorigin="anonymous"> - \ No newline at end of file diff --git a/udf-api/udf-api-server/src/main/resources/templates/login.html b/udf-api/udf-api-server/src/main/resources/templates/login.html index 01a7c73..655df80 100644 --- a/udf-api/udf-api-server/src/main/resources/templates/login.html +++ b/udf-api/udf-api-server/src/main/resources/templates/login.html @@ -36,6 +36,11 @@