yuantianjiao 6 years ago
parent
commit
c3596586be
2 changed files with 3 additions and 3 deletions
  1. 1
    1
      src/pages/user/coupons/index.vue
  2. 2
    2
      src/util/api.js

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

52
           desc: res[n].Coupon.Share.UseInstruction,
52
           desc: res[n].Coupon.Share.UseInstruction,
53
           time: this.toolClass.dateFormat(res[n].EndDate),
53
           time: this.toolClass.dateFormat(res[n].EndDate),
54
           useType: res[n].Status === 1 ? '未使用' : '已使用',
54
           useType: res[n].Status === 1 ? '未使用' : '已使用',
55
-          tag: res[n].Coupon.CouponType === 'coupon' ? '课程' : '商品',
55
+          tag: res[n].Coupon.CouponType === 'course' ? '课程' : '商品',
56
           customercouponid: res[n].CustomerCouponId,
56
           customercouponid: res[n].CustomerCouponId,
57
           couponid: res[n].Coupon.CouponId,
57
           couponid: res[n].Coupon.CouponId,
58
           Coupon: res[n].Coupon
58
           Coupon: res[n].Coupon

+ 2
- 2
src/util/api.js View File

1
-// const baseUrl = '/api-v2'
2
-const baseUrl = '/api'
1
+const baseUrl = '/api-v2'
2
+// const baseUrl = '/api'
3
 const wechat = '/wechat/:org'
3
 const wechat = '/wechat/:org'
4
 const guest = '/guest/:org'
4
 const guest = '/guest/:org'
5
 
5