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
1c32f146
Commit
1c32f146
authored
Jul 25, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券
parent
b143a965
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
src/api/coupon/coupon.js
+3
-11
src/api/coupon/couponType.js
+8
-1
src/views/coupon/coupon/index.vue
+0
-0
vue.config.js
+1
-1
No files found.
src/api/coupon/coupon.js
View file @
1c32f146
...
...
@@ -8,14 +8,6 @@ export function listClass(query) {
params
:
query
,
});
}
// 查询列表
export
function
getList
(
query
)
{
return
request
({
url
:
"/system/category/getList"
,
method
:
"get"
,
params
:
query
,
});
}
// 查询详细
export
function
getClass
(
id
)
{
...
...
@@ -26,10 +18,10 @@ export function getClass(id) {
}
// 新增
export
function
addC
lass
(
data
)
{
export
function
addC
oupon
(
data
)
{
return
request
({
url
:
"/
system/category
"
,
method
:
"p
os
t"
,
url
:
"/
coupon
"
,
method
:
"p
u
t"
,
data
:
data
,
});
}
...
...
src/api/coupon/couponType.js
View file @
1c32f146
...
...
@@ -18,7 +18,7 @@ export function addCouCategory(data) {
});
}
//
新增
//
修改
export
function
updateCouCategory
(
data
)
{
return
request
({
url
:
"/coupon-category/update"
,
...
...
@@ -51,4 +51,11 @@ export function onlineCouCategory(id) {
});
}
// 详情
export
function
getCouCategory
(
id
)
{
return
request
({
url
:
"/coupon-category/detail/"
+
id
,
method
:
"get"
,
});
}
src/views/coupon/coupon/index.vue
View file @
1c32f146
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
1c32f146
...
...
@@ -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
0
`
,
target
:
`http://140.143.224.240:809
1
`
,
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