Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
hooloo
web
soss
Commits
02eff0ae
Commit
02eff0ae
authored
Jul 23, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联调优惠券类别
parent
1a31de34
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
32 deletions
+25
-32
src/api/coupon/couponType.js
+24
-31
src/views/coupon/couponCategory/index.vue
+0
-0
vue.config.js
+1
-1
No files found.
src/api/coupon/couponType.js
View file @
02eff0ae
import
request
from
"@/utils/request"
;
// 查询列表
export
function
listClass
(
query
)
{
export
function
getCouCategoryList
(
data
)
{
return
request
({
url
:
"/system/category/list"
,
method
:
"get"
,
params
:
query
,
});
}
// 查询列表
export
function
getList
(
query
)
{
return
request
({
url
:
"/system/category/getList"
,
method
:
"get"
,
params
:
query
,
url
:
"/coupon-category"
,
method
:
"post"
,
data
:
data
,
});
}
//
查询详细
export
function
getClass
(
id
)
{
//
新增
export
function
addCouCategory
(
data
)
{
return
request
({
url
:
"/system/category/"
+
id
,
method
:
"get"
,
url
:
"/coupon-category"
,
method
:
"put"
,
data
:
data
,
});
}
// 新增
export
function
addClass
(
data
)
{
export
function
updateCouCategory
(
data
)
{
return
request
({
url
:
"/
system/category
"
,
url
:
"/
coupon-category/update
"
,
method
:
"post"
,
data
:
data
,
});
}
//
修改
export
function
updateClass
(
data
)
{
//
删除
export
function
delCouCategory
(
id
)
{
return
request
({
url
:
"/system/category"
,
method
:
"put"
,
data
:
data
,
url
:
"/coupon-category/"
+
id
,
method
:
"delete"
,
});
}
//
删除
export
function
delClass
(
id
)
{
//
下架
export
function
offlineCouCategory
(
id
)
{
return
request
({
url
:
"/
system/category
/"
+
id
,
method
:
"
delete
"
,
url
:
"/
coupon-category/offline
/"
+
id
,
method
:
"
get
"
,
});
}
//
查询排序列表
export
function
turnList
(
query
)
{
//
上架
export
function
onlineCouCategory
(
id
)
{
return
request
({
url
:
"/
system/category/turnOrder"
,
url
:
"/
coupon-category/online/"
+
id
,
method
:
"get"
,
params
:
query
,
});
}
src/views/coupon/coupon
Type
/index.vue
→
src/views/coupon/coupon
Category
/index.vue
View file @
02eff0ae
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
02eff0ae
...
...
@@ -35,7 +35,7 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://140.143.224.240:809
1
`
,
target
:
`http://140.143.224.240:809
0
`
,
changeOrigin
:
true
,
pathRewrite
:
{
[
"^"
+
process
.
env
.
VUE_APP_BASE_API
]:
""
,
...
...
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