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 @@