From dc04b4220f89ffa7e559ef9b1037275121223d9f Mon Sep 17 00:00:00 2001 From: ran <17633066053@163.com> Date: Fri, 29 Apr 2022 12:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=83=E9=94=80=E5=95=86=E5=93=81=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MP_verify_qSyvBPhDsPdxvOhC.txt | 1 - manifest.json | 4 ---- pages/tabbar/cart/cartList.vue | 13 ++++++++----- 3 files changed, 8 insertions(+), 10 deletions(-) delete mode 100644 MP_verify_qSyvBPhDsPdxvOhC.txt diff --git a/MP_verify_qSyvBPhDsPdxvOhC.txt b/MP_verify_qSyvBPhDsPdxvOhC.txt deleted file mode 100644 index 767ab3e..0000000 --- a/MP_verify_qSyvBPhDsPdxvOhC.txt +++ /dev/null @@ -1 +0,0 @@ -qSyvBPhDsPdxvOhC \ No newline at end of file diff --git a/manifest.json b/manifest.json index 871e564..1f7eaf5 100644 --- a/manifest.json +++ b/manifest.json @@ -195,10 +195,6 @@ } }, "plugins" : { - "myPlugin" : { - "version" : "1.1.0", - "provider" : "wx738958e0f4c894f9" - }, "live-player-plugin" : { "version" : "1.3.0", "provider" : "wx2b03c6e691cd7370" diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue index 2233360..afc0000 100644 --- a/pages/tabbar/cart/cartList.vue +++ b/pages/tabbar/cart/cartList.vue @@ -236,12 +236,15 @@ export default { }, methods: { /** - * 倒数计时 - */ + * 倒数计时 + */ getCountDownTime(val) { - let date = new Date(val.replace(/-/g, "/")); - let timeSimple = new Date(date).getTime() / 1000; - return timeSimple - new Date().getTime() / 1000; + if (val.promotionMap) { + let key = Object.keys(val.promotionMap).find((child, index) => { + return child.split("-")[0] == 'SECKILL' + }); + return val.promotionMap[key].endTime / 1000 - (new Date().getTime() / 1000) + } }, /**