From bf7035cd2e3feeba68dcb9e1718fd59cfb307791 Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Tue, 19 Nov 2024 00:58:08 +0800 Subject: [PATCH] =?UTF-8?q?Feat=EF=BC=9A=E5=9C=B0=E6=A0=87=E5=A5=BD?= =?UTF-8?q?=E7=89=A9=E6=94=BF=E7=AD=96=E6=90=9C=E7=B4=A2=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 ++ pages/home/components/policy.vue | 18 +++-- pages/home/searchPage.vue | 135 +++++++++++++++++++++++++++++++ 3 files changed, 151 insertions(+), 8 deletions(-) create mode 100644 pages/home/searchPage.vue diff --git a/pages.json b/pages.json index 7288a32..f8b04b7 100644 --- a/pages.json +++ b/pages.json @@ -42,6 +42,12 @@ "navigationBarTitleText": "地标好物" } }, + { + "path": "pages/home/searchPage", + "style": { + "navigationBarTitleText": "搜索" + } + }, { "path": "pages/home/newZone", "style": { diff --git a/pages/home/components/policy.vue b/pages/home/components/policy.vue index ec3a4be..1e095c3 100644 --- a/pages/home/components/policy.vue +++ b/pages/home/components/policy.vue @@ -7,9 +7,9 @@ - + - {{ isMore ? '收起' : '查看更多' }} + {{ isMore ? '查看更多' : '查看更多' }} @@ -65,12 +65,14 @@ export default { }) }, showMore() { - this.isMore = !this.isMore - if(this.isMore) { - this.currentList = this.list - } else { - this.currentList = this.list.filter((item, index) => index < 3) - } + // this.isMore = !this.isMore + // if(this.isMore) { + // this.currentList = this.list + // } else { + // this.currentList = this.list.filter((item, index) => index < 3) + // } + uni.navigateTo({ url: `/pages/home/searchPage?id=${this.landmarkDataId}&type=2` }) + }, fileItemClick(file) { const url = file.attachment || '' diff --git a/pages/home/searchPage.vue b/pages/home/searchPage.vue new file mode 100644 index 0000000..a2f5562 --- /dev/null +++ b/pages/home/searchPage.vue @@ -0,0 +1,135 @@ + + + + \ No newline at end of file