diff --git a/admin/src/App.vue b/admin/src/App.vue
index 1e52924..4029c92 100644
--- a/admin/src/App.vue
+++ b/admin/src/App.vue
@@ -4,6 +4,16 @@
@touchmove="touchMove"
@touchend="touchEnd"
>
+
-
@@ -223,7 +230,12 @@
rightUserCenterDrawerShow: false,
startY: '',
moveDistance: 0,
- moveState: 0
+ moveState: 0,
+ mainDivLoadingStyle: {
+ "position": "absolute",
+ "width": "100%",
+ "z-index": "2000"
+ }
}
},
mounted() {
@@ -256,6 +268,7 @@
if (move > 0) {
e.preventDefault();
this.moveDistance = Math.pow(move, 0.8);
+ this.mainDivLoadingStyle.top = (this.moveDistance > 70 ? 70 : this.moveDistance) + 'px';
// console.log(window.innerHeight, scrollTop, e.targetTouches[0].clientY, y, this.startY, move, this.moveDistance);
if (this.moveDistance > 70) {
if (this.moveState === 1) return;
@@ -272,8 +285,8 @@
//下拉刷新逻辑
{
if (this.moveDistance > 70) {
- this.moveDistance = 70;
this.$EventBus.$emit(glob.eventNames.globRefreshEventName);
+ this.moveDistance = 0;
this.moveState = 0;
} else {
this.moveDistance = 0;