瀏覽代碼

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