Showing
1 changed file
with
1 additions
and
1 deletions
@@ -29,7 +29,6 @@ const getCouponsList = (uid, type, page, limit)=>{ | @@ -29,7 +29,6 @@ const getCouponsList = (uid, type, page, limit)=>{ | ||
29 | // 格式化有效日期 "couponValidity": "2016.03.15-2016.03.31" | 29 | // 格式化有效日期 "couponValidity": "2016.03.15-2016.03.31" |
30 | let dates = item.couponValidity.split('-'); | 30 | let dates = item.couponValidity.split('-'); |
31 | 31 | ||
32 | - | ||
33 | result[i].beginTime = dates[0].replace('.', '-'); | 32 | result[i].beginTime = dates[0].replace('.', '-'); |
34 | result[i].endTime = dates[1].replace('.', '-'); | 33 | result[i].endTime = dates[1].replace('.', '-'); |
35 | 34 | ||
@@ -55,6 +54,7 @@ const getCouponsList = (uid, type, page, limit)=>{ | @@ -55,6 +54,7 @@ const getCouponsList = (uid, type, page, limit)=>{ | ||
55 | result[i].orderSum = item.orderPrice.toFixed(2) ? item.orderPrice : 0; | 54 | result[i].orderSum = item.orderPrice.toFixed(2) ? item.orderPrice : 0; |
56 | result[i].payment = item.actuallyPaid.toFixed(2) ? item.actuallyPaid : 0; | 55 | result[i].payment = item.actuallyPaid.toFixed(2) ? item.actuallyPaid : 0; |
57 | let data = result[i].usedTime ? moment(result[i].usedTime).format('YYYY-MM-DD') : 0; | 56 | let data = result[i].usedTime ? moment(result[i].usedTime).format('YYYY-MM-DD') : 0; |
57 | + | ||
58 | if (data) { | 58 | if (data) { |
59 | result[i].useTime = new Date(date).getTime(); | 59 | result[i].useTime = new Date(date).getTime(); |
60 | } else { | 60 | } else { |
-
Please register or login to post a comment