|
@@ -120,7 +120,8 @@ export default {
|
120
|
120
|
created () {
|
121
|
121
|
this.getCouponList().then((res) => {
|
122
|
122
|
// console.log(JSON.stringify(res))
|
123
|
|
- var id = JSON.parse(this.$route.query.info)[0].id, arr = [], nowDate = Date.now()
|
|
123
|
+ console.log(this.$route.query.info)
|
|
124
|
+ var id = JSON.parse(this.$route.query.info || '{}')[0].id, arr = [], nowDate = Date.now()
|
124
|
125
|
for (var n = 0; n < res.length; n++) {
|
125
|
126
|
if (res[n].Coupon.CouponType === 'goods' && res[n].Status === 1) {
|
126
|
127
|
if (res[n].Coupon.IsAll) {
|