|
|
@@ -197,7 +197,6 @@ export default {
|
|
|
if (this.isLogin) {
|
|
|
this.add();
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
initTime(dingdanId, initTime) {
|
|
|
@@ -249,14 +248,14 @@ export default {
|
|
|
}, 1000);
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
add() {
|
|
|
this.$http
|
|
|
.post(
|
|
|
'/userCoupon/all',
|
|
|
{
|
|
|
query: {
|
|
|
- userId: this.userInfo.id
|
|
|
+ // userId: this.userInfo.id
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
@@ -264,13 +263,16 @@ export default {
|
|
|
}
|
|
|
)
|
|
|
.then(res => {
|
|
|
- this.list = res.content.filter(item => {
|
|
|
- return !item.used && this.checkTime(item) && this.checkUse(item, this.$route.query.id);
|
|
|
- });
|
|
|
this.listAll = res.content.filter(item => {
|
|
|
+ return item.used || !this.checkTime(item);
|
|
|
+ });
|
|
|
+ this.list = res.content.filter(item => {
|
|
|
return !item.used && this.checkTime(item) && this.checkUse(item, this.$route.query.id);
|
|
|
});
|
|
|
- console.log(this.listAll);
|
|
|
+ // this.listAll = res.content.filter(item => {
|
|
|
+ // return !item.used && this.checkTime(item) && this.checkUse(item, this.$route.query.id);
|
|
|
+ // });
|
|
|
+ // console.log(this.listAll);
|
|
|
});
|
|
|
},
|
|
|
IdFn(e) {
|
|
|
@@ -484,6 +486,13 @@ export default {
|
|
|
/deep/ .el-dialog {
|
|
|
border-radius: 8px;
|
|
|
}
|
|
|
+/deep/ .el-dialog__header {
|
|
|
+ padding: 18px 0;
|
|
|
+}
|
|
|
+/deep/ .el-dialog__title {
|
|
|
+ font-weight: bold;
|
|
|
+ font-size: 18px;
|
|
|
+}
|
|
|
.list {
|
|
|
padding: 24px 0 50px;
|
|
|
}
|
|
|
@@ -493,11 +502,11 @@ export default {
|
|
|
margin-bottom: 16px;
|
|
|
.box {
|
|
|
display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
.img {
|
|
|
width: 189px;
|
|
|
height: 120px;
|
|
|
- position: relative;
|
|
|
- z-index: 1;
|
|
|
}
|
|
|
.coupon-top {
|
|
|
padding: 16px 0;
|
|
|
@@ -510,14 +519,13 @@ export default {
|
|
|
font-weight: bold;
|
|
|
color: #1a1a1a;
|
|
|
line-height: 36px;
|
|
|
- margin: 15px 0 0 27px;
|
|
|
}
|
|
|
.text2 {
|
|
|
font-size: 12px;
|
|
|
font-weight: 400;
|
|
|
color: #1a1a1a;
|
|
|
line-height: 22px;
|
|
|
- margin-left: 30px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -548,11 +556,11 @@ export default {
|
|
|
line-height: 16px;
|
|
|
margin-top: 45px;
|
|
|
}
|
|
|
- .icon {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- margin-top: 33px;
|
|
|
- }
|
|
|
+ }
|
|
|
+ .icon {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ margin-top: 33px;
|
|
|
}
|
|
|
}
|
|
|
/deep/.el-radio {
|