From e9e193a7a7dcec4a180ae8ce4804eb0d1dd6989b Mon Sep 17 00:00:00 2001 From: taohebin Date: Thu, 17 Aug 2023 12:39:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9list=E6=96=B0=E9=97=BB?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 4 ++-- pages/component/{list => list-news}/detail/detail.uvue | 0 pages/component/{list => list-news}/list.uvue | 4 ++-- pages/tabBar/component.uvue | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename pages/component/{list => list-news}/detail/detail.uvue (100%) rename pages/component/{list => list-news}/list.uvue (93%) diff --git a/pages.json b/pages.json index a848ec02..af875e51 100644 --- a/pages.json +++ b/pages.json @@ -625,7 +625,7 @@ } }, { - "path": "pages/component/list/list", + "path": "pages/component/list-news/list", "style": { "navigationBarTitleText": "列表到详情示例" } @@ -637,7 +637,7 @@ } }, { - "path": "pages/component/list/detail/detail", + "path": "pages/component/list-news/detail/detail", "style": { "navigationBarTitleText": "详情示例" } diff --git a/pages/component/list/detail/detail.uvue b/pages/component/list-news/detail/detail.uvue similarity index 100% rename from pages/component/list/detail/detail.uvue rename to pages/component/list-news/detail/detail.uvue diff --git a/pages/component/list/list.uvue b/pages/component/list-news/list.uvue similarity index 93% rename from pages/component/list/list.uvue rename to pages/component/list-news/list.uvue index 0eefec01..cf5bb305 100644 --- a/pages/component/list/list.uvue +++ b/pages/component/list-news/list.uvue @@ -122,7 +122,7 @@ const cover = detail.cover; const title = detail.title; uni.navigateTo({ - url: '/pages/component/list/detail/detail?post_id=' + post_id + "&cover=" + cover + "&title=" + title + url: '/pages/component/list-news/detail/detail?post_id=' + post_id + "&cover=" + cover + "&title=" + title }); }, bannerClick(e:Banner){ @@ -131,7 +131,7 @@ const cover = detail.cover; const title = detail.title; uni.navigateTo({ - url: '/pages/component/list/detail/detail?post_id=' + post_id + "&cover=" + cover + "&title=" + title + url: '/pages/component/list-news/detail/detail?post_id=' + post_id + "&cover=" + cover + "&title=" + title }); }, setTime(items: UTSJSONObject[]): Item[] { diff --git a/pages/tabBar/component.uvue b/pages/tabBar/component.uvue index 5ba6339c..a805cb53 100644 --- a/pages/tabBar/component.uvue +++ b/pages/tabBar/component.uvue @@ -107,7 +107,7 @@ export default { */ { name: 'list(新闻)', - url: '/pages/component/list/list', + url: '/pages/component/list-news/list', }, { name: 'list', -- GitLab