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
7bdb51ee
Commit
7bdb51ee
authored
2 years ago
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤优惠券有效期
parent
84faa5f0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/api/coupon/coupon.js
+9
-0
src/views/coupon/coupon/giveCoupon.vue
+2
-2
No files found.
src/api/coupon/coupon.js
View file @
7bdb51ee
...
...
@@ -102,5 +102,14 @@ export function updateCheck(id) {
});
}
// 获取有效优惠券
export
function
effective
()
{
return
request
({
url
:
"/coupon/list/effective"
,
method
:
"get"
,
});
}
This diff is collapsed.
Click to expand it.
src/views/coupon/coupon/giveCoupon.vue
View file @
7bdb51ee
...
...
@@ -60,7 +60,7 @@
<
script
>
import
{
listCustomer
}
from
"@/api/system/customer"
;
import
{
listCoupon
,
giveCoupon
}
from
"@/api/coupon/coupon"
;
import
{
giveCoupon
,
effective
}
from
"@/api/coupon/coupon"
;
export
default
{
name
:
"Class"
,
data
()
{
...
...
@@ -95,7 +95,7 @@ export default {
},
/** 查询优惠券列表 */
getCouponList
()
{
listCoupon
(
1
,
10000
,{
state
:
1
}
).
then
((
response
)
=>
{
effective
(
).
then
((
response
)
=>
{
if
(
response
.
code
==
200
){
this
.
couponList
=
response
.
rows
;
}
...
...
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