From 06ce35da7a535f5808fe8973842a5900a4500220 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Sun, 14 Nov 2021 21:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/search/search.vue | 14 +- pages.json | 21 + pages/design/design.vue | 28 +- pages/goods-category/goods-category.vue | 52 +-- pages/goods-search/goods-search.vue | 2 +- pages/index/index.vue | 490 +++++++++++------------ pages/plugins/activity/detail/detail.vue | 18 +- pages/plugins/label/detail/detail.css | 3 - pages/plugins/label/detail/detail.vue | 10 +- pages/plugins/points/index/index.vue | 18 +- pages/plugins/seckill/index/index.vue | 18 +- pages/plugins/shop/detail/detail.vue | 2 +- pages/plugins/shop/search/search.vue | 8 +- 13 files changed, 376 insertions(+), 308 deletions(-) diff --git a/components/search/search.vue b/components/search/search.vue index 84ca1331..f62615a1 100644 --- a/components/search/search.vue +++ b/components/search/search.vue @@ -13,10 +13,18 @@ return {}; }, components: {}, - props: { + props: { + propUrl: { + type: String, + default: '/pages/goods-search/goods-search' + }, + propFormName: { + type: String, + default: 'keywords' + }, propPlaceholder: { type: String, - default: '输入商品名称搜索' + default: '其实搜索很简单 ^_^!' }, propBgColor: { type: String, @@ -38,7 +46,7 @@ // 进入搜索页面 uni.navigateTo({ - url: '/pages/goods-search/goods-search?keywords=' + keywords + url: this.propUrl+'?'+this.propFormName+'=' + keywords }); }, } diff --git a/pages.json b/pages.json index c5610d1e..07b4a383 100644 --- a/pages.json +++ b/pages.json @@ -667,6 +667,27 @@ "enablePullDownRefresh": true, "navigationBarTitleText": "标签详情" } + }, + { + "path": "pages/plugins/blog/index/index", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "博客" + } + }, + { + "path": "pages/plugins/blog/search/search", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "博文搜索" + } + }, + { + "path": "pages/plugins/blog/detail/detail", + "style": { + "enablePullDownRefresh": true, + "navigationBarTitleText": "博文详情" + } } ], "subPackages": [], diff --git a/pages/design/design.vue b/pages/design/design.vue index 0064007e..6f230608 100644 --- a/pages/design/design.vue +++ b/pages/design/design.vue @@ -3,9 +3,9 @@ - - - + + + @@ -14,7 +14,7 @@ - + @@ -25,9 +25,9 @@