diff --git a/pages.json b/pages.json index d3ced2e..2327993 100644 --- a/pages.json +++ b/pages.json @@ -35,6 +35,12 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "pages/search/search", + "style": { + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/classify/classify.vue b/pages/classify/classify.vue index d3ac733..6eacf0f 100644 --- a/pages/classify/classify.vue +++ b/pages/classify/classify.vue @@ -3,7 +3,7 @@ - + 🔍 输入关键词或粘贴商品标题 @@ -111,6 +111,11 @@ switchMainCategory(index) { this.activeIndex = index; }, + goToSearch() { + uni.navigateTo({ + url: '/pages/search/search' + }); + }, goToDetail(three) { const name = encodeURIComponent(three.cate_name.trim()); const catId = this.categoryData[this.activeIndex].cat_id; diff --git a/pages/search/search.vue b/pages/search/search.vue new file mode 100644 index 0000000..fdc50fe --- /dev/null +++ b/pages/search/search.vue @@ -0,0 +1,451 @@ + + + + +