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