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 @@