Commit 79a57c6f authored by zhengyi's avatar zhengyi

修改优惠券url路由

parent 738c3c88
...@@ -3,7 +3,7 @@ import request from '@/utils/request' ...@@ -3,7 +3,7 @@ import request from '@/utils/request'
// 创建优惠券信息 // 创建优惠券信息
export function createCoupon(data) { export function createCoupon(data) {
return request({ return request({
url: '/ecw/coupon/createOrUpdate', url: '/product/coupon/createOrUpdate',
method: 'post', method: 'post',
data: data data: data
}) })
...@@ -12,7 +12,7 @@ export function createCoupon(data) { ...@@ -12,7 +12,7 @@ export function createCoupon(data) {
// 更新优惠券信息 // 更新优惠券信息
export function updateCoupon(data) { export function updateCoupon(data) {
return request({ return request({
url: '/ecw/coupon/update', url: '/product/coupon/update',
method: 'put', method: 'put',
data: data data: data
}) })
...@@ -21,7 +21,7 @@ export function updateCoupon(data) { ...@@ -21,7 +21,7 @@ export function updateCoupon(data) {
// 删除优惠券信息 // 删除优惠券信息
export function deleteCoupon(id) { export function deleteCoupon(id) {
return request({ return request({
url: '/ecw/coupon/delete?id=' + id, url: '/product/coupon/delete?id=' + id,
method: 'delete' method: 'delete'
}) })
} }
...@@ -29,7 +29,7 @@ export function deleteCoupon(id) { ...@@ -29,7 +29,7 @@ export function deleteCoupon(id) {
// 获得优惠券信息 // 获得优惠券信息
export function getCoupon(id) { export function getCoupon(id) {
return request({ return request({
url: '/ecw/coupon/get?couponId=' + id, url: '/product/coupon/get?couponId=' + id,
method: 'get' method: 'get'
}) })
} }
...@@ -37,7 +37,7 @@ export function getCoupon(id) { ...@@ -37,7 +37,7 @@ export function getCoupon(id) {
// 获得优惠券信息分页 // 获得优惠券信息分页
export function getCouponPage(query) { export function getCouponPage(query) {
return request({ return request({
url: '/ecw/coupon/page', url: '/product/coupon/page',
method: 'get', method: 'get',
params: query params: query
}) })
...@@ -46,7 +46,7 @@ export function getCouponPage(query) { ...@@ -46,7 +46,7 @@ export function getCouponPage(query) {
// 获得优惠券下拉 // 获得优惠券下拉
export function getCouponSelect(query) { export function getCouponSelect(query) {
return request({ return request({
url: '/ecw/coupon/select', url: '/product/coupon/select',
method: 'get', method: 'get',
params: query params: query
}) })
...@@ -55,7 +55,7 @@ export function getCouponSelect(query) { ...@@ -55,7 +55,7 @@ export function getCouponSelect(query) {
// 导出优惠券信息 Excel // 导出优惠券信息 Excel
export function exportCouponExcel(query) { export function exportCouponExcel(query) {
return request({ return request({
url: '/ecw/coupon/export-excel', url: '/product/coupon/export-excel',
method: 'get', method: 'get',
params: query, params: query,
responseType: 'blob' responseType: 'blob'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment