From 4f33cdbcebae8c207c01728a48cf467d100987ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com> Date: Tue, 7 Sep 2021 16:58:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E5=BA=97=E9=83=A8=E9=97=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/interfaces/shop.js | 57 ++ components/store-boss/store-boss.vue | 2 +- pages.json | 24 + pages/shop/create.vue | 327 +++++++ pages/shop/lists.vue | 112 +++ .../dist/dev/app-plus/app-config-service.js | 4 +- unpackage/dist/dev/app-plus/app-service.js | 664 +++++++++++++- unpackage/dist/dev/app-plus/app-view.js | 816 +++++++++++++++++- unpackage/dist/dev/app-plus/manifest.json | 2 +- 9 files changed, 1988 insertions(+), 20 deletions(-) create mode 100644 apis/interfaces/shop.js create mode 100644 pages/shop/create.vue create mode 100644 pages/shop/lists.vue 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 @@ +