Explorar el Código

修复历史页面按钮挡住问题

armg hace 1 semana
padre
commit
4ac2eebd7a
Se han modificado 2 ficheros con 5 adiciones y 3 borrados
  1. 2 1
      src/views/AIDesign/diagnoseHistory.vue
  2. 3 2
      src/views/AIDesign/history.vue

+ 2 - 1
src/views/AIDesign/diagnoseHistory.vue

@@ -133,6 +133,7 @@ export default class Resout extends Vue {
         this.isLoadingMore = false;
         this.hasMore = true;
         this.isProcessing = false; // 防止重复加载的锁
+        this.isLongPressing = false;
     }
 
     // 处理滚动事件
@@ -412,7 +413,7 @@ export default class Resout extends Vue {
         width: 50px;
         position: absolute;
         right: 20px;
-        top: 14px;
+        top: 56px;
         border-radius: 8px;
         background-color: #2484F2;
         color: #fff;

+ 3 - 2
src/views/AIDesign/history.vue

@@ -8,7 +8,7 @@
       </van-nav-bar>
     </div>
     <div class="container">
-      <van-button class="selecBtn" size="small" @click="selectImage">
+      <van-button class="selecBtn" size="small" @click="selectImage"  v-show="Object.keys(groupedImages).length > 0">
         {{ isLongPressing ? "取消" : "选择" }}
       </van-button>
 
@@ -131,6 +131,7 @@ export default class Resout extends Vue {
     this.images = [];
     this.pagination.page = 1;
     this.hasMore = true;
+    this.isLongPressing = false;
     this.getDataInfioList();
     // 监听滚动事件
     window.addEventListener('scroll', this.handleScroll);
@@ -407,7 +408,7 @@ export default class Resout extends Vue {
     width: 50px;
     position: absolute;
     right: 20px;
-    top: 14px;
+    top: 56px;
     border-radius: 8px;
     background-color: #2484F2;
     color: #fff;