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
2 years ago
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) {
...
@@ -20,10 +20,10 @@ export function addCoupon(data) {
}
}
// 修改
// 修改
export
function
updateC
lass
(
data
)
{
export
function
updateC
oupon
(
data
)
{
return
request
({
return
request
({
url
:
"/
system/category
"
,
url
:
"/
coupon
"
,
method
:
"p
u
t"
,
method
:
"p
os
t"
,
data
:
data
,
data
:
data
,
});
});
}
}
...
...
This diff is collapsed.
Click to expand it.
src/views/coupon/coupon/index.vue
View file @
98fe4d1a
...
@@ -199,7 +199,7 @@
...
@@ -199,7 +199,7 @@
</template>
</template>
<
script
>
<
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
{
getCouCategoryList
}
from
"@/api/coupon/couponType"
;
import
GiveCoupon
from
'./giveCoupon.vue'
;
import
GiveCoupon
from
'./giveCoupon.vue'
;
import
{
listClass
}
from
"@/api/system/category"
;
import
{
listClass
}
from
"@/api/system/category"
;
...
@@ -250,41 +250,41 @@ export default {
...
@@ -250,41 +250,41 @@ export default {
},
},
couCategoryList
:
[],
couCategoryList
:
[],
weekList
:[{
weekList
:[{
value
:
2
,
value
:
2
,
label
:
'星期一'
label
:
'星期一'
},
{
},
{
value
:
3
,
value
:
3
,
label
:
'星期二'
label
:
'星期二'
},
{
},
{
value
:
4
,
value
:
4
,
label
:
'星期三'
label
:
'星期三'
},
{
},
{
value
:
5
,
value
:
5
,
label
:
'星期四'
label
:
'星期四'
},
{
},
{
value
:
6
,
value
:
6
,
label
:
'星期五'
label
:
'星期五'
},
{
},
{
value
:
7
,
value
:
7
,
label
:
'星期六'
label
:
'星期六'
},
{
},
{
value
:
1
,
value
:
1
,
label
:
'星期日'
label
:
'星期日'
}],
}],
type
:
""
,
type
:
""
,
liJian
:
""
,
liJian
:
""
,
firstRadioValue
:
""
,
firstRadioValue
:
""
,
twoRadioValue
:
""
,
twoRadioValue
:
""
,
priceLimit
:
""
,
priceLimit
:
""
,
jiZhe
:
""
,
jiZhe
:
""
,
shopRangeList
:[],
shopRangeList
:[],
categoryList
:[],
categoryList
:[],
shopList
:[],
shopList
:[],
shopRange
:[],
shopRange
:[],
cityList
:[],
cityList
:[],
storesRange
:[],
storesRange
:[],
selectMess
:
true
,
selectMess
:
true
,
shopAreaTreeList
:[]
shopAreaTreeList
:[]
};
};
},
},
created
()
{
created
()
{
...
@@ -566,11 +566,13 @@ export default {
...
@@ -566,11 +566,13 @@ export default {
}
}
console
.
log
(
"this.form"
,
this
.
form
);
console
.
log
(
"this.form"
,
this
.
form
);
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
// updateClass(this.form).then((response) => {
updateCoupon
(
this
.
form
).
then
((
response
)
=>
{
// this.$modal.msgSuccess("修改成功");
if
(
response
.
code
==
200
){
// this.open = false;
this
.
$modal
.
msgSuccess
(
"修改成功"
);
// this.getList();
this
.
open
=
false
;
// });
this
.
getList
();
}
});
}
else
{
}
else
{
addCoupon
(
this
.
form
).
then
((
response
)
=>
{
addCoupon
(
this
.
form
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
if
(
response
.
code
==
200
){
...
...
This diff is collapsed.
Click to expand it.
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