From efd3ed26df7cf861408298bffd55d9042d737217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E8=89=AFking?= <2244255345@qq.com> Date: Tue, 10 Jan 2023 18:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8F=91=E5=88=B8=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=EF=BC=88=E7=AE=A1=E7=90=86=E7=AB=AF=E5=8A=A0=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E5=B1=95=E7=A4=BA=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/public/config.js | 4 + buyer/src/api/index.js | 9 ++ buyer/src/pages/Index.vue | 98 ++++++++++++++++++- buyer/src/pages/Login.vue | 1 + .../coupon-activity/coupon-info.vue | 10 +- .../coupon-activity/coupon-publish.vue | 48 ++++++++- .../promotions/coupon-activity/coupon.vue | 25 ++++- .../promotions/coupon/coupon-publish.vue | 9 +- 8 files changed, 198 insertions(+), 6 deletions(-) diff --git a/buyer/public/config.js b/buyer/public/config.js index d7556570..39fb8a71 100644 --- a/buyer/public/config.js +++ b/buyer/public/config.js @@ -7,6 +7,10 @@ var BASE = { buyer: "https://buyer-api.pickmall.cn", seller: "https://store-api.pickmall.cn", manager: "https://admin-api.pickmall.cn" + // common: "http://192.168.0.105:8890", + // buyer: "http://192.168.0.105:8888", + // seller: "http://192.168.0.105:8889", + // manager: "http://192.168.0.105:8887" }, API_PROD: { common: "https://common-api.pickmall.cn", diff --git a/buyer/src/api/index.js b/buyer/src/api/index.js index 083631d2..3fe612ff 100644 --- a/buyer/src/api/index.js +++ b/buyer/src/api/index.js @@ -10,6 +10,15 @@ export function indexData(params) { }); } +// 获取自动发券 +export function getAutoCoup(){ + return request({ + url: "/buyer/promotion/coupon/activity", + method: Method.GET, + needToken: true, + }); +} + /** * 获取店铺楼层数据 */ diff --git a/buyer/src/pages/Index.vue b/buyer/src/pages/Index.vue index 0cba5835..0a8b1c5a 100644 --- a/buyer/src/pages/Index.vue +++ b/buyer/src/pages/Index.vue @@ -1,5 +1,27 @@