From 87e0a41035e05533d198d5c2a691cf40b574fd63 Mon Sep 17 00:00:00 2001 From: yr <1308291615@qq.com> Date: Tue, 26 May 2020 14:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/myOrderPaying/myOrderPaying.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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() + } } } -- 2.0.0