zhangsijie 2 лет назад
Родитель
Сommit
cd78f54e8c
2 измененных файлов с 16 добавлено и 2 удалено
  1. 8 1
      pages/cb/sy/imgList.vue
  2. 8 1
      pages/cb/thxydetail/photolist.vue

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

@@ -98,7 +98,14 @@
 					}
 				})
 				console.log(res)
-				this.imglists = [...this.imglists,...res.data]
+        this.imglists = [...this.imglists, ...res.data]
+        if(this.imglists.length == 0) {
+					uni.showToast({
+						title: '数据为空',
+						duration: 2000,
+						icon:'none'
+					});
+				}
 			},
 			top() {
 				uni.pageScrollTo({

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

@@ -98,7 +98,14 @@
 					}
 				})
 				console.log(res)
-				this.imglists = [...this.imglists,...res.data]
+        this.imglists = [...this.imglists, ...res.data]
+        if(this.imglists.length == 0) {
+					uni.showToast({
+						title: '数据为空',
+						duration: 2000,
+						icon:'none'
+					});
+				}
 			},
 			top() {
 				uni.pageScrollTo({