Commit 7bdb51ee by lixiaomin

过滤优惠券有效期

parent 84faa5f0
...@@ -102,5 +102,14 @@ export function updateCheck(id) { ...@@ -102,5 +102,14 @@ export function updateCheck(id) {
}); });
} }
// 获取有效优惠券
export function effective() {
return request({
url: "/coupon/list/effective",
method: "get",
});
}
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<script> <script>
import {listCustomer} from "@/api/system/customer"; import {listCustomer} from "@/api/system/customer";
import {listCoupon,giveCoupon} from "@/api/coupon/coupon"; import {giveCoupon,effective} from "@/api/coupon/coupon";
export default { export default {
name: "Class", name: "Class",
data() { data() {
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
}, },
/** 查询优惠券列表 */ /** 查询优惠券列表 */
getCouponList() { getCouponList() {
listCoupon(1,10000,{state:1}).then((response) => { effective().then((response) => {
if(response.code==200){ if(response.code==200){
this.couponList = response.rows; this.couponList = response.rows;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment