福田开发
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
<!-- 标准征求意见 -->
|
||||
<template>
|
||||
<div class="solicitopinions">
|
||||
<ul>
|
||||
<li v-for="item in domesticDynamics" :key="item.id" class="time-title">
|
||||
<a class="title" :title="item.title">{{ item.title }}</a>
|
||||
<span class="time">{{ putTime }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'Solicitopinions',
|
||||
components: {},
|
||||
mixins: [],
|
||||
data() {
|
||||
return {
|
||||
putTime: '',
|
||||
domesticDynamics: [
|
||||
{
|
||||
id: 1,
|
||||
title: '标准征求意见1',
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: '标准征求意见2',
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: '标准征求意见3',
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: '标准征求意见4',
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
title: '标准征求意见5',
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
title: '标准征求意见6',
|
||||
},
|
||||
],
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
mounted() {
|
||||
this.getDate()
|
||||
},
|
||||
methods: {
|
||||
getDate() {
|
||||
//获取当前时间
|
||||
var date = new Date()
|
||||
var year = date.getFullYear()
|
||||
var month = date.getMonth() + 1
|
||||
var day = date.getDate()
|
||||
if (month < 10) {
|
||||
month = '0' + month
|
||||
}
|
||||
if (day < 10) {
|
||||
day = '0' + day
|
||||
}
|
||||
var nowDate = year + '-' + month + '-' + day
|
||||
this.putTime = nowDate
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.solicitopinions {
|
||||
.time-title {
|
||||
margin: 15px;
|
||||
.time {
|
||||
float: right;
|
||||
}
|
||||
a {
|
||||
color: #ffffff;
|
||||
&:hover {
|
||||
color: #e9c851;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user