From a3d8a8037fbcb942cff2f9c5dd7c8ff5c70983d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 27 May 2022 15:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=95=86=E5=93=81=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=20=E7=A9=BA=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/navigation/search/searchPage.vue | 31 ++++++++++++++------------ 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index d0da958..b953834 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -129,18 +129,6 @@ -
- - - - - - -

没有找到相关的商品信息

-

请换一个关键词试试吧

-
-
-
+ + + + + + +

没有找到相关的商品信息

+

请换一个关键词试试吧

+
+
@@ -281,6 +280,7 @@ import storage from "@/utils/storage"; export default { data() { return { + empty:false, scrollTop: 0, loadIndex: 10, oldKeywordIndex: "", @@ -709,8 +709,11 @@ export default { let goodsList = await getGoodsList(this.params); if (goodsList.data.result.content.length < 10) { - this.loadingType = "noMore"; - } + this.loadingType = "noMore"; + this.empty = true + } else { + this.empty = false + } this.goodsList.push(...goodsList.data.result.content); this.initSortGoods(); uni.hideLoading();