Procházet zdrojové kódy

图片滚动加载

zhangsijie před 2 roky
rodič
revize
9ad556c29c
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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({