From 7452f8924debf32261b1593f1c6e309f6fd6eeeb Mon Sep 17 00:00:00 2001 From: zhangguoping Date: Fri, 30 Aug 2024 18:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=8B=E5=87=8F=E9=87=91=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/api.ts | 6 +- src/views/templates/cmsVoucher/index.vue | 269 +++++++---------------- 2 files changed, 86 insertions(+), 189 deletions(-) diff --git a/src/router/api.ts b/src/router/api.ts index a742b1f..6cb6267 100644 --- a/src/router/api.ts +++ b/src/router/api.ts @@ -8,7 +8,9 @@ export enum Api { // 模板查询 GET_THEME = "/v1/theme", // 兑换 - EXCHANGE = "/v1/order/exchange" + EXCHANGE = "/v1/order/exchange", + // 商品详情查询 + DETAIL_QUERY = "/v1/goods/detail", } @@ -19,3 +21,5 @@ export const QUERY = (data?: any) => request.get(Api.QUERY, data); export const GET_THEME = (data?: any) => request.get(Api.GET_THEME, data); export const EXCHANGE = (data?: any) => request.post(Api.EXCHANGE, data); + +export const getGoodsDetail = (data?: any) => request.get(Api.DETAIL_QUERY, data); diff --git a/src/views/templates/cmsVoucher/index.vue b/src/views/templates/cmsVoucher/index.vue index 16cc9bf..8a518bc 100644 --- a/src/views/templates/cmsVoucher/index.vue +++ b/src/views/templates/cmsVoucher/index.vue @@ -1,5 +1,5 @@