|
@@ -7,14 +7,14 @@
|
|
|
</div>
|
|
|
<div class="popular-list">
|
|
|
<el-row class="popular-list-item" v-for="item in competitionList" :key="item.id">
|
|
|
- <el-col :span="23">
|
|
|
+ <el-col :span="23" @click.native="gotoDetail(item)">
|
|
|
<img src="../../assets/img/logo-project.png" alt="logo-project" class="pull-left project-logo-img">
|
|
|
<div style="margin-left: 55px">
|
|
|
<div class="list-item-title">
|
|
|
{{item.name}}
|
|
|
</div>
|
|
|
<div class="list-item-info">
|
|
|
- {{item.startTime}}
|
|
|
+ {{$moment(item.startTime).format("YYYY-MM-DD HH:mm:ss")}}
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -29,9 +29,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import moment from 'moment';
|
|
|
export default {
|
|
|
name: 'HotContest',
|
|
|
- props:['competitionList']
|
|
|
+ props:['competitionList'],
|
|
|
+ methods:{
|
|
|
+ gotoDetail(item){
|
|
|
+ window.open(item.linkUrl)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|