|
|
@ -37,8 +37,8 @@ |
|
|
|
<span class="source">地点:{{ item.address }}</span> |
|
|
|
</p> |
|
|
|
<p class="original"> |
|
|
|
<enroll :fnval="item.activityId" /> |
|
|
|
<!-- <a-button type="primary">立即报名</a-button> --> |
|
|
|
<enroll :fnval="item.activityId" v-if="item.closeTime < nowData" /> |
|
|
|
<a-button disabled v-else>报名已结束</a-button> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -76,9 +76,11 @@ export default { |
|
|
|
aList: [], |
|
|
|
lists: [], |
|
|
|
monthEnglish: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Spt', 'Oct', 'Nov', 'Dec'], |
|
|
|
nowData: '', |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed: mapState('home', ['actList', 'actIpCon', 'actCurrent']), |
|
|
|
|
|
|
|
created() { |
|
|
|
this.iptCon = this.actIpCon; |
|
|
|
this.aList = this.actList; |
|
|
@ -94,6 +96,23 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.getData(); |
|
|
|
|
|
|
|
// 获取当前时间 |
|
|
|
var aData = new Date(); |
|
|
|
console.log(aData); //Wed Aug 21 2019 10:00:58 GMT+0800 (中国标准时间) |
|
|
|
this.nowData = |
|
|
|
aData.getFullYear() + |
|
|
|
'-' + |
|
|
|
(aData.getMonth() + 1) + |
|
|
|
'-' + |
|
|
|
aData.getDate() + |
|
|
|
' ' + |
|
|
|
aData.getHours() + |
|
|
|
':' + |
|
|
|
aData.getMinutes() + |
|
|
|
':' + |
|
|
|
aData.getSeconds(); |
|
|
|
console.log(this.nowData); //2019-8-20 |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
...mapMutations('home', ['setActList', 'setActIpCon', 'setActCurrent', 'setActDetail']), |
|
|
@ -106,7 +125,7 @@ export default { |
|
|
|
activityType: this.actList, |
|
|
|
pageNum: this.actCurrent, |
|
|
|
pageSize: 5, |
|
|
|
title: this.iptCon, |
|
|
|
titleKey: this.iptCon, |
|
|
|
}, |
|
|
|
}; |
|
|
|
const res = await front(params); |
|
|
@ -205,11 +224,12 @@ export default { |
|
|
|
margin-left: 200px; |
|
|
|
text-indent: 2em; |
|
|
|
font-size: 16px; |
|
|
|
line-height: 36px; |
|
|
|
color: rgba(0, 0, 0, 0.35); |
|
|
|
font-family: Microsoft YaHei; |
|
|
|
overflow: hidden; |
|
|
|
display: -webkit-box; |
|
|
|
-webkit-line-clamp: 4; |
|
|
|
-webkit-line-clamp: 2; |
|
|
|
-webkit-box-orient: vertical; |
|
|
|
} |
|
|
|
|
|
|
|