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