diff --git a/src/pages/myOrderPaying/myOrderPaying.vue b/src/pages/myOrderPaying/myOrderPaying.vue
index f9686be..0acb2ba 100644
--- a/src/pages/myOrderPaying/myOrderPaying.vue
+++ b/src/pages/myOrderPaying/myOrderPaying.vue
@@ -86,7 +86,7 @@
订单号:{{payId}}
- 下单时间:{{orderInfo.order_info[0].pay_time}}
+ 下单时间:{{orderInfo.order_info[0].pay_time | timerChange}}
@@ -133,6 +133,7 @@ export default {
return {
// orderInfo:{},
payId: '',
+ payTime: '',
status: '',
uid: '',
openid: '',
@@ -164,7 +165,6 @@ export default {
},
orderInfoList () {
const orderInfoList = this.orderInfo.order_info[0].list
- // console.log(this.orderInfo.order_info[0].list.p_name + 'sssss')
return orderInfoList
},
// 获取订单地址信息
@@ -230,6 +230,14 @@ export default {
}, 1500)
)
}
+ },
+ filters: {
+ timerChange: function(value) {
+ var newDate = new Date()
+ newDate.setTime(value * 1000)
+ console.log(newDate.toLocaleString())
+ return newDate.toLocaleString()
+ }
}
}