From a1800a254bf5b2b0534c13f84a8d0424b65c17f3 Mon Sep 17 00:00:00 2001 From: Junling Bu Date: Mon, 8 Jul 2019 10:48:07 +0800 Subject: [PATCH] =?UTF-8?q?feat[litemall-vue]:=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=93=81=E9=A6=96=E5=8F=91=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E4=BA=BA=E6=B0=94=E6=8E=A8=E8=8D=90=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litemall-vue/src/api/api.js | 9 +- litemall-vue/src/router/items.js | 18 ++ litemall-vue/src/views/home/tabbar-home.vue | 158 ++++++++++-------- .../src/views/items/groupon/index.vue | 105 ++++++++++++ litemall-vue/src/views/items/hot/index.vue | 94 +++++++++++ litemall-vue/src/views/items/new/index.vue | 95 +++++++++++ 6 files changed, 409 insertions(+), 70 deletions(-) create mode 100644 litemall-vue/src/views/items/groupon/index.vue create mode 100644 litemall-vue/src/views/items/hot/index.vue create mode 100644 litemall-vue/src/views/items/new/index.vue 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 @@