This commit is contained in:
花有清香月有阴
2022-01-05 18:26:02 +08:00
parent 182a223918
commit fb52789993

View File

@@ -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;
}
}