diff --git a/mobile-web/src/components/search/searchtop.vue b/mobile-web/src/components/search/searchtop.vue
index d5e00bcd..c60fb62b 100644
--- a/mobile-web/src/components/search/searchtop.vue
+++ b/mobile-web/src/components/search/searchtop.vue
@@ -28,12 +28,12 @@ export default {
[Search.name]:Search,
},
props: {
- // keyword: String,
+ keyword: String,
// onSearch: Function,
},
data(){
return{
- value:'',
+ value: this.keyword,
}
},
methods:{
diff --git a/mobile-web/src/config/router.js b/mobile-web/src/config/router.js
index 7fd1ac55..562c22d4 100644
--- a/mobile-web/src/config/router.js
+++ b/mobile-web/src/config/router.js
@@ -88,7 +88,7 @@ const routes = [
},
{
path: '/user/coupon',
- component: () => import('../page/user/coupon/list'),
+ component: () => import('../page/coupon/list'),
meta: {
title: '我的优惠券',
requireAuth: true,
@@ -99,7 +99,7 @@ const routes = [
component: () => import('../page/user/order/list'),
meta: {
title: '我的订单'
- }
+ },
},
{
path: '/user/order/:id',
@@ -154,6 +154,7 @@ const routes = [
}
},
{
+ name: '/product/search',
path: '/product/search',
component: () => import('../page/product/search'),
meta: {
diff --git a/mobile-web/src/page/category/index.vue b/mobile-web/src/page/category/index.vue
index b02a1799..2f7cd5da 100644
--- a/mobile-web/src/page/category/index.vue
+++ b/mobile-web/src/page/category/index.vue
@@ -1,7 +1,7 @@
@@ -92,7 +92,7 @@ export default {
},
data() {
return {
- value: "",
+ keyword: "",
rootCategories: [],
childCategories: [],
activeKey: 0,
@@ -105,7 +105,10 @@ export default {
onSearch() {
// debugger;
// GetAddressById(1);
- console.log(this.value);
+ // console.log(this.value);
+ this.$router.push(
+ {name: '/product/search', params: {keyword: this.keyword}}
+ )
},
onClick(key) {
// debugger;
diff --git a/mobile-web/src/page/user/coupon/list.vue b/mobile-web/src/page/coupon/list.vue
similarity index 99%
rename from mobile-web/src/page/user/coupon/list.vue
rename to mobile-web/src/page/coupon/list.vue
index 59a6e1eb..2453dc5c 100644
--- a/mobile-web/src/page/user/coupon/list.vue
+++ b/mobile-web/src/page/coupon/list.vue
@@ -152,8 +152,8 @@