소스 검색

bug修改

wangfei 6 년 전
부모
커밋
dafd95cc51
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      src/pages/user/placeOrderDetail/index.vue

+ 2
- 1
src/pages/user/placeOrderDetail/index.vue 파일 보기

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