From 809f4488eb20d077d77cb19396ccaec022c507a1 Mon Sep 17 00:00:00 2001 From: gwbvipvip Date: Wed, 21 Feb 2024 11:27:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.js | 6 ++++++ src/pages/push/batchingpush/index.jsx | 4 +++- src/pages/push/goodspush/index.jsx | 3 +++ src/pages/push/technologypush/index.jsx | 3 +++ .../shopmanage/coupon/goodsCoupon/service.js | 17 +++++++++-------- 5 files changed, 24 insertions(+), 9 deletions(-) diff --git a/config/routes.js b/config/routes.js index 9845600..4fb7934 100644 --- a/config/routes.js +++ b/config/routes.js @@ -318,6 +318,12 @@ export default [ icon: 'smile', path: '/shopmanage/coupon/paperCoupon', component: './shopmanage/coupon/paperCoupon', + }, + { + name: '商品优惠券管理', + icon: 'smile', + path: '/shopmanage/coupon/goodsCoupon', + component: './shopmanage/coupon/goodsCoupon', } ], }, diff --git a/src/pages/push/batchingpush/index.jsx b/src/pages/push/batchingpush/index.jsx index 2ae8c1d..14e13d1 100644 --- a/src/pages/push/batchingpush/index.jsx +++ b/src/pages/push/batchingpush/index.jsx @@ -272,7 +272,9 @@ const HandleOk= async(values)=>{ {currentRow?.topic} - + + {currentRow?.description} + { diff --git a/src/pages/push/goodspush/index.jsx b/src/pages/push/goodspush/index.jsx index 26e744f..41b25d1 100644 --- a/src/pages/push/goodspush/index.jsx +++ b/src/pages/push/goodspush/index.jsx @@ -271,6 +271,9 @@ const HandleOk= async(values)=>{ {currentRow?.topic} + + {currentRow?.description} + { diff --git a/src/pages/push/technologypush/index.jsx b/src/pages/push/technologypush/index.jsx index c9f7add..09be69c 100644 --- a/src/pages/push/technologypush/index.jsx +++ b/src/pages/push/technologypush/index.jsx @@ -271,6 +271,9 @@ const HandleOk= async(values)=>{ {currentRow?.topic} + + {currentRow?.description} + { diff --git a/src/pages/shopmanage/coupon/goodsCoupon/service.js b/src/pages/shopmanage/coupon/goodsCoupon/service.js index 3652254..99cd4f4 100644 --- a/src/pages/shopmanage/coupon/goodsCoupon/service.js +++ b/src/pages/shopmanage/coupon/goodsCoupon/service.js @@ -1,8 +1,9 @@ import { request } from 'umi'; +import { getDataBaseUrl,getStoremanagement } from '@/global_data'; /** 获取优惠卷 sdsa GET /kitchen/api/coupon/couponpgage */ export async function GetGoodsCouponPgage(data) { - return request(`/kitchen/api/goodscoupon/getGoodsCouponPgage`, { + return request(getStoremanagement()+`/api/goodscoupon/getGoodsCouponPgage`, { method: 'POST', data: data, // params: { ...params }, @@ -13,7 +14,7 @@ export async function GetGoodsCouponPgage(data) { export async function AddGoodsCoupon(data) { // http://localhost:7002 - return request('/kitchen/api/goodscoupon/addGoodsCoupon', { + return request(getStoremanagement()+'/api/goodscoupon/addGoodsCoupon', { method: 'POST', // type:'json', data: data, @@ -25,7 +26,7 @@ export async function AddGoodsCoupon(data) { export async function DeleteGoodsCoupon(data) { // http://localhost:7002 - return request('/kitchen/api/goodscoupon/updateGoodsCouponEnable?Ids='+data, { + return request(getStoremanagement()+'/api/goodscoupon/updateGoodsCouponEnable?Ids='+data, { method: 'GET', // type:'json', //data: data, @@ -37,7 +38,7 @@ export async function DeleteGoodsCoupon(data) { export async function UpdateGoodsCoupon(data) { // http://localhost:7002 - return request('/kitchen/api/goodscoupon/updateGoodsCoupon', { + return request(getStoremanagement()+'/api/goodscoupon/updateGoodsCoupon', { method: 'POST', // type:'json', data: data, @@ -47,7 +48,7 @@ export async function UpdateGoodsCoupon(data) { } /** 获取优惠卷类型 sdsa GET //kitchen/api/coupon/coupon-status-or-type/{type} */ export async function GetPaperCouponType() { - return request(`/kitchen/api/papercoupon/getPaperCouponType`, { + return request(getStoremanagement()+`/api/papercoupon/getPaperCouponType`, { method: 'GET', //data: null, // params: { ...params }, @@ -57,7 +58,7 @@ export async function GetPaperCouponType() { /** 添加优惠卷类型 */ export async function AddPaperCouponType(data) { // http://localhost:7002 - return request('/kitchen/api/papercoupon/addPaperCouponType', { + return request(getStoremanagement()+'/api/papercoupon/addPaperCouponType', { method: 'POST', // type:'json', data: data, @@ -66,7 +67,7 @@ export async function GetPaperCouponType() { } /** 获取店铺上架商品 */ export async function GetStoreGoods(data) { - return request(`​​/kitchen/api/Store/GetStoreGoods`, { + return request(getStoremanagement()+`​​/api/Store/GetStoreGoods`, { method: 'POST', data: data, // params: { ...params }, @@ -76,7 +77,7 @@ export async function GetStoreGoods(data) { } /** 获取 */ export async function GetStoreInfoPage(data) { - return request(`/kitchen/api/Store/GetStoreList`, { + return request(getStoremanagement()+`/api/Store/GetStoreList`, { method: 'POST', data: data, // params: { ...params },