From 9ad7ed57c2ad81a44d7921247b5c0d96f0cd10dd Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 26 Feb 2025 17:56:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?docs:=20readme=E6=9B=B4=E6=96=B0=E5=AE=9D?= =?UTF-8?q?=E5=A1=94=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index af6e304..c74fd43 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## 宝塔 -101.37.12.135:19928/mianban + chaozg chaozg123 From 022b88557f8a23f3492829995fded4b35953dc20 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Thu, 27 Feb 2025 16:27:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E9=A1=B5=E9=9D=A2=EF=BC=8C=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=BB=A3=E5=AE=A2=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account/coupon.ts | 25 + src/api/order/order.ts | 6 +- src/components/GoodsSelect/index.vue | 6 +- src/store/modules/carts.ts | 31 +- src/utils/websocket.ts | 2 +- .../marketing/coupon/components/add.vue | 476 ++++++++++++++++++ .../coupon/components/coupon_details.vue | 19 +- .../application/marketing/coupon/list.vue | 39 +- src/views/order/index/config/config.ts | 27 +- src/views/order/index/config/content.ts | 88 +++- src/views/order/index/index.vue | 224 ++++++++- src/views/shop/config/components/shopInfo.vue | 4 +- src/views/shop/list/index.vue | 4 +- .../tool/Instead/components/carts/item.vue | 6 +- src/views/tool/Instead/index.vue | 35 +- 15 files changed, 908 insertions(+), 84 deletions(-) create mode 100644 src/views/application/marketing/coupon/components/add.vue diff --git a/src/api/account/coupon.ts b/src/api/account/coupon.ts index 67aa566..410dcde 100644 --- a/src/api/account/coupon.ts +++ b/src/api/account/coupon.ts @@ -24,8 +24,33 @@ const API = { data: data, }); }, + // 店铺优惠券获取记录 + queryReceive(data: queryReceive) { + return request({ + url: `${baseURL}/queryReceive`, + method: "post", + data: data, + }); + }, } export default API; + +export interface queryReceive { + /** + * 优惠券id + */ + couponId?: number; + /** + * 店铺id + */ + shopId?: number; + /** + * 状态 + */ + status?: number; + [property: string]: any; +} + export interface getListRequest { status?: number; type?: number; diff --git a/src/api/order/order.ts b/src/api/order/order.ts index 91db4b8..f48d9f7 100644 --- a/src/api/order/order.ts +++ b/src/api/order/order.ts @@ -2,11 +2,11 @@ import request from "@/utils/request"; import { Order_BaseUrl } from "@/api/config"; const baseURL = Order_BaseUrl + "/admin/order"; const OrderApi = { - getList(data: getListRequest) { + getList(params: getListRequest) { return request({ url: `${baseURL}`, - method: "post", - data + method: "get", + params }); }, add(data: addRequest) { diff --git a/src/components/GoodsSelect/index.vue b/src/components/GoodsSelect/index.vue index 9ab402b..14084f2 100644 --- a/src/components/GoodsSelect/index.vue +++ b/src/components/GoodsSelect/index.vue @@ -92,7 +92,7 @@ + + diff --git a/src/views/application/marketing/coupon/components/coupon_details.vue b/src/views/application/marketing/coupon/components/coupon_details.vue index c97ea19..949e611 100644 --- a/src/views/application/marketing/coupon/components/coupon_details.vue +++ b/src/views/application/marketing/coupon/components/coupon_details.vue @@ -1,6 +1,6 @@