From 066470b4e6980d238f0a89f1c8fddc19cf70b31f Mon Sep 17 00:00:00 2001 From: hot777zz <912275990@qq.com> Date: Sat, 18 Nov 2023 16:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A2=81=E8=88=AA=EF=BC=9A=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/request.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/service/request.js b/service/request.js index e66473b..1a1f005 100644 --- a/service/request.js +++ b/service/request.js @@ -1,4 +1,5 @@ const serverHost = 'https://spsp.feashow.com/api' //http://xx.xxx.xx + const service = { get(url, data) { const header = {} @@ -246,6 +247,14 @@ const apiService = { resolve(service.post(url,data)) }) }, + //获取商铺列表 + getShopList(query){ + const url = `/shop/alllist${query}` + return new Promise((resolve,reject) => { + resolve(service.get(url)) + }) + } + }, //发布店铺转让 publishTransfer(data){ const url = `/shop/transfer/`