Browse Source

bug修改

wangfei 6 years ago
parent
commit
dafd95cc51
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/pages/user/placeOrderDetail/index.vue

+ 2
- 1
src/pages/user/placeOrderDetail/index.vue View File

@@ -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) {