Browse Source

图片滚动加载

zhangsijie 2 years ago
parent
commit
9ad556c29c
2 changed files with 2 additions and 2 deletions
  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({