From fb52789993e1e011fd4b472c2c8ef1713190ee37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Wed, 5 Jan 2022 18:26:02 +0800 Subject: [PATCH] bug --- src/apps/AppVillageDiscuss/Detail.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/apps/AppVillageDiscuss/Detail.vue b/src/apps/AppVillageDiscuss/Detail.vue index d57cc97c..60226824 100644 --- a/src/apps/AppVillageDiscuss/Detail.vue +++ b/src/apps/AppVillageDiscuss/Detail.vue @@ -87,7 +87,12 @@ export default { images: JSON.parse(res.data.images), messages: res.data.messages || [], } - this.timestamp = new Date(res.data.discussDeadline).getTime() + var discussTime = (new Date(res.data.discussDeadline).getTime() * 1) / 1000 + var nowTime = (new Date().getTime() * 1) / 1000 + if (discussTime >= nowTime) { + this.timestamp = discussTime - nowTime + } + console.log(res.data.discussDeadline, this.timestamp) } }) }, @@ -130,7 +135,7 @@ export default { .Detail { height: 100vh; background: #fff; - padding-bottom: 112px; + // padding-bottom: 112px; ::v-deep.AiTopFixed { border-bottom: 16px solid #f6f7f9; @@ -220,12 +225,16 @@ export default { .totalCount { display: flex; justify-content: space-between; - padding-top: 44px; + .total { display: block; font-size: 30px; height: 120px; box-sizing: border-box; + padding-top: 44px; + } + .rightCount { + padding-top: 44px; } }