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
Hide 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'
// 创建优惠券信息
export
function
createCoupon
(
data
)
{
return
request
({
url
:
'
/
ecw
/coupon/createOrUpdate
'
,
url
:
'
/
product
/coupon/createOrUpdate
'
,
method
:
'
post
'
,
data
:
data
})
...
...
@@ -12,7 +12,7 @@ export function createCoupon(data) {
// 更新优惠券信息
export
function
updateCoupon
(
data
)
{
return
request
({
url
:
'
/
ecw
/coupon/update
'
,
url
:
'
/
product
/coupon/update
'
,
method
:
'
put
'
,
data
:
data
})
...
...
@@ -21,7 +21,7 @@ export function updateCoupon(data) {
// 删除优惠券信息
export
function
deleteCoupon
(
id
)
{
return
request
({
url
:
'
/
ecw
/coupon/delete?id=
'
+
id
,
url
:
'
/
product
/coupon/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
...
...
@@ -29,7 +29,7 @@ export function deleteCoupon(id) {
// 获得优惠券信息
export
function
getCoupon
(
id
)
{
return
request
({
url
:
'
/
ecw
/coupon/get?couponId=
'
+
id
,
url
:
'
/
product
/coupon/get?couponId=
'
+
id
,
method
:
'
get
'
})
}
...
...
@@ -37,7 +37,7 @@ export function getCoupon(id) {
// 获得优惠券信息分页
export
function
getCouponPage
(
query
)
{
return
request
({
url
:
'
/
ecw
/coupon/page
'
,
url
:
'
/
product
/coupon/page
'
,
method
:
'
get
'
,
params
:
query
})
...
...
@@ -46,7 +46,7 @@ export function getCouponPage(query) {
// 获得优惠券下拉
export
function
getCouponSelect
(
query
)
{
return
request
({
url
:
'
/
ecw
/coupon/select
'
,
url
:
'
/
product
/coupon/select
'
,
method
:
'
get
'
,
params
:
query
})
...
...
@@ -55,7 +55,7 @@ export function getCouponSelect(query) {
// 导出优惠券信息 Excel
export
function
exportCouponExcel
(
query
)
{
return
request
({
url
:
'
/
ecw
/coupon/export-excel
'
,
url
:
'
/
product
/coupon/export-excel
'
,
method
:
'
get
'
,
params
:
query
,
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