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
98fe4d1a
Commit
98fe4d1a
authored
Jul 28, 2022
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改优惠券
parent
cdeafc6d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
38 deletions
+40
-38
src/api/coupon/coupon.js
+3
-3
src/views/coupon/coupon/index.vue
+37
-35
No files found.
src/api/coupon/coupon.js
View file @
98fe4d1a
...
...
@@ -20,10 +20,10 @@ export function addCoupon(data) {
}
// 修改
export
function
updateC
lass
(
data
)
{
export
function
updateC
oupon
(
data
)
{
return
request
({
url
:
"/
system/category
"
,
method
:
"p
u
t"
,
url
:
"/
coupon
"
,
method
:
"p
os
t"
,
data
:
data
,
});
}
...
...
src/views/coupon/coupon/index.vue
View file @
98fe4d1a
...
...
@@ -199,7 +199,7 @@
</template>
<
script
>
import
{
addCoupon
,
listCoupon
,
offlineCoupon
,
onlineCoupon
,
delCoupon
}
from
"@/api/coupon/coupon"
;
import
{
addCoupon
,
updateCoupon
,
listCoupon
,
offlineCoupon
,
onlineCoupon
,
delCoupon
,
getCouponDetail
}
from
"@/api/coupon/coupon"
;
import
{
getCouCategoryList
}
from
"@/api/coupon/couponType"
;
import
GiveCoupon
from
'./giveCoupon.vue'
;
import
{
listClass
}
from
"@/api/system/category"
;
...
...
@@ -250,41 +250,41 @@ export default {
},
couCategoryList
:
[],
weekList
:[{
value
:
2
,
label
:
'星期一'
value
:
2
,
label
:
'星期一'
},
{
value
:
3
,
label
:
'星期二'
value
:
3
,
label
:
'星期二'
},
{
value
:
4
,
label
:
'星期三'
value
:
4
,
label
:
'星期三'
},
{
value
:
5
,
label
:
'星期四'
value
:
5
,
label
:
'星期四'
},
{
value
:
6
,
label
:
'星期五'
value
:
6
,
label
:
'星期五'
},
{
value
:
7
,
label
:
'星期六'
value
:
7
,
label
:
'星期六'
},
{
value
:
1
,
label
:
'星期日'
}],
type
:
""
,
liJian
:
""
,
firstRadioValue
:
""
,
twoRadioValue
:
""
,
priceLimit
:
""
,
jiZhe
:
""
,
shopRangeList
:[],
categoryList
:[],
shopList
:[],
shopRange
:[],
cityList
:[],
storesRange
:[],
selectMess
:
true
,
shopAreaTreeList
:[]
value
:
1
,
label
:
'星期日'
}],
type
:
""
,
liJian
:
""
,
firstRadioValue
:
""
,
twoRadioValue
:
""
,
priceLimit
:
""
,
jiZhe
:
""
,
shopRangeList
:[],
categoryList
:[],
shopList
:[],
shopRange
:[],
cityList
:[],
storesRange
:[],
selectMess
:
true
,
shopAreaTreeList
:[]
};
},
created
()
{
...
...
@@ -566,11 +566,13 @@ export default {
}
console
.
log
(
"this.form"
,
this
.
form
);
if
(
this
.
form
.
id
!=
null
)
{
// updateClass(this.form).then((response) => {
// this.$modal.msgSuccess("修改成功");
// this.open = false;
// this.getList();
// });
updateCoupon
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
getList
();
}
});
}
else
{
addCoupon
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
...
...
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