Explorar el Código

图片滚动加载

zhangsijie hace 2 años
padre
commit
9ad556c29c
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      pages/cb/sy/imgList.vue
  2. 1 1
      pages/cb/thxydetail/photolist.vue

+ 1 - 1
pages/cb/sy/imgList.vue

@@ -98,7 +98,7 @@
 					}
 				})
 				console.log(res)
-				this.imglists = res.data
+				this.imglists = [...this.imglists,...res.data]
 			},
 			top() {
 				uni.pageScrollTo({

+ 1 - 1
pages/cb/thxydetail/photolist.vue

@@ -98,7 +98,7 @@
 					}
 				})
 				console.log(res)
-				this.imglists = res.data
+				this.imglists = [...this.imglists,...res.data]
 			},
 			top() {
 				uni.pageScrollTo({