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