diff --git a/litemall-vue/src/api/api.js b/litemall-vue/src/api/api.js index 466b6fb1..8b80b566 100644 --- a/litemall-vue/src/api/api.js +++ b/litemall-vue/src/api/api.js @@ -330,7 +330,14 @@ const FootprintDelete='wx/footprint/delete'; //删除足迹 const UserFormIdCreate='wx/formid/create'; //用户FromId,用于发送模版消息 -const GroupOnList='wx/groupon/list'; //团购列表 +const GrouponList='wx/groupon/list'; //团购列表 +export function grouponList(query) { + return request({ + url: GrouponList, + method: 'get', + params: query + }) +} const GroupOn='wx/groupon/query'; //团购API-查询 const GroupOnMy='wx/groupon/my'; //团购API-我的团购 const GroupOnDetail='wx/groupon/detail'; //团购API-详情 diff --git a/litemall-vue/src/router/items.js b/litemall-vue/src/router/items.js index 84591371..9917f4f8 100644 --- a/litemall-vue/src/router/items.js +++ b/litemall-vue/src/router/items.js @@ -31,5 +31,23 @@ export default [ name: 'list', component: () => import('@/views/items/list'), props: route => route.query + }, + { + path: '/items/hot', + name: 'hot', + component: () => import('@/views/items/hot'), + props: route => route.query + }, + { + path: '/items/new', + name: 'new', + component: () => import('@/views/items/new'), + props: route => route.query + }, + { + path: '/items/groupon', + name: 'groupon', + component: () => import('@/views/items/groupon'), + props: route => route.query } ]; diff --git a/litemall-vue/src/views/home/tabbar-home.vue b/litemall-vue/src/views/home/tabbar-home.vue index 20b0d7d7..787897bd 100755 --- a/litemall-vue/src/views/home/tabbar-home.vue +++ b/litemall-vue/src/views/home/tabbar-home.vue @@ -1,33 +1,37 @@