Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
79a57c6f
Commit
79a57c6f
authored
Jun 28, 2022
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券url路由
parent
738c3c88
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
coupon.js
src/api/ecw/coupon.js
+7
-7
No files found.
src/api/ecw/coupon.js
View file @
79a57c6f
...
@@ -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
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment