From 557d7ef1d98615abe6a6031336478ce33d758820 Mon Sep 17 00:00:00 2001 From: paulGao Date: Thu, 27 Jan 2022 14:58:42 +0800 Subject: [PATCH] fix bugs --- .../product/promotion/-promotion-assemble-promotions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/product/product/promotion/-promotion-assemble-promotions.vue b/pages/product/product/promotion/-promotion-assemble-promotions.vue index fb275b2..625cc6e 100644 --- a/pages/product/product/promotion/-promotion-assemble-promotions.vue +++ b/pages/product/product/promotion/-promotion-assemble-promotions.vue @@ -149,7 +149,7 @@ export default { return val.toFixed(2).split("."); }, getCountDownTime(val) { - let date = new Date(val.replace(/-/g, "/")); + let date = new Date(val); let timeSimple = new Date(date).getTime() / 1000; return timeSimple - new Date().getTime() / 1000; },