kun 19/10/14 11:20

This commit is contained in:
沈学坤
2019-10-14 11:17:11 +08:00
parent 110cf5418f
commit a4c8a1e89a
9 changed files with 104 additions and 26 deletions

View File

@@ -5,9 +5,11 @@
<!-- 公告 -->
<div class="top">
<img :src="imgUrl.xlb" alt />
<div v-if="bgValue.announcement.name == ''">
<span>{{bgValue.announcement.name + bgValue.announcement.pro_content}}</span>
<time>{{bgValue.announcement.protime}}</time>
<div v-if="cd !== 0">
<!-- <aside v-for="(list,index) in bgValue.announcement" :key="index"> -->
<span>{{bgValue.announcement[0].name + bgValue.announcement[0].pro_content}}</span>
<time>{{bgValue.announcement[0].protime}}</time>
<!-- </aside> -->
</div>
<div v-else>
<span>暂无项目申报内容</span>
@@ -118,7 +120,10 @@
</dd>
<dd>
<span class="iconfont icon-shenhetongguo1"></span>
<span class="block">当前申报阶段{{item.status}}</span>
<span class="block-k">
<b>项目状态</b>
{{item.status}}
</span>
</dd>
</dl>
</div>
@@ -178,7 +183,8 @@ export default {
area_value: '全部',
value_date: '',
start_time: '',
end_time: ''
end_time: '',
cd: Number
};
},
computed: {},
@@ -251,7 +257,9 @@ export default {
}).then(res => {
if (res.data.code === 200) {
_this.bgValue = res.data.data
// console.log(_this.bgValue)
console.log(_this.bgValue)
_this.cd = _this.bgValue.announcement.length
} else {
_this.$message.error('请求数据有问题!')
}
@@ -413,12 +421,16 @@ export default {
color: #666666;
}
.block {
.block-k {
width: 288px;
height: 14px;
line-height: 14px;
display: inline-block;
overflow: hidden;
b {
font-weight: 900;
}
}
}