diff --git a/apis/interfaces/shop.js b/apis/interfaces/shop.js new file mode 100644 index 0000000..af5c6c8 --- /dev/null +++ b/apis/interfaces/shop.js @@ -0,0 +1,57 @@ + +/** + * Web唐明明 + * 匆匆数载恍如梦,岁月迢迢华发增。 + * 碌碌无为枉半生,一朝惊醒万事空。 + * moduleName: 部门/门店 + */ + +import { request } from '../index' + +// 列表 +const shops = () => { + return request({ + url: 'coupons/tools/stores' + }) +} + +// 创建 +const create = data => { + return request({ + url: 'coupons/tools/stores', + method: 'POST', + data: data + }) +} + +// 详情 +const editInfo = storeId => { + return request({ + url: 'coupons/tools/stores/' + storeId + '/edit' + }) +} + +// 编辑 +const putShop = (storeId, data) => { + return request({ + url: 'coupons/tools/stores/' + storeId, + method: 'PUT', + data + }) +} + +// 删除 +const deleteShop = storeId => { + return request({ + url: 'coupons/tools/stores/' + storeId, + method: 'DELETE' + }) +} + +export { + shops, + create, + editInfo, + putShop, + deleteShop +} diff --git a/components/store-boss/store-boss.vue b/components/store-boss/store-boss.vue index 9f39157..03352df 100644 --- a/components/store-boss/store-boss.vue +++ b/components/store-boss/store-boss.vue @@ -109,7 +109,7 @@ 营销推广码 - + 部门/门店 diff --git a/pages.json b/pages.json index 3f59f4e..78ecbda 100644 --- a/pages.json +++ b/pages.json @@ -290,6 +290,30 @@ "style": { "navigationBarTitleText": "核销券详情" } + },{ + "path" : "pages/shop/lists", + "name" : "shopLists", + "style": { + "navigationBarTitleText":"部门/门店", + "navigationBarBackgroundColor": "#FFFFFF", + "titleNView": { + "buttons": [ + { + "text": "创建", + "fontSize": "14", + "width": "80", + "color": "#c82626" + } + ] + } + } + },{ + "path" : "pages/shop/create", + "name" : "shopCreate", + "style":{ + "navigationBarTitleText": "创建门店/部门", + "navigationBarBackgroundColor": "#FFFFFF" + } } ], "tabBar": { diff --git a/pages/shop/create.vue b/pages/shop/create.vue new file mode 100644 index 0000000..7d8c8d4 --- /dev/null +++ b/pages/shop/create.vue @@ -0,0 +1,327 @@ +