2022-10-17 10:13:22 +08:00
|
|
|
<template>
|
2022-10-19 17:23:08 +08:00
|
|
|
<Card title="疫情播报" class="max">
|
2022-10-22 18:06:19 +08:00
|
|
|
<div class="container" id="more" @click="toMore">
|
2022-12-22 18:28:08 +08:00
|
|
|
<div id="page" v-for="(item, index) in list" :key="index">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<p class="time">{{ item}}</p>
|
2022-12-17 11:46:32 +08:00
|
|
|
<!-- <p class="value">
|
2022-12-16 10:54:02 +08:00
|
|
|
<a :href= item.url target="_blank">{{111}}</a>
|
|
|
|
|
</p> -->
|
2022-12-17 11:46:32 +08:00
|
|
|
</div>
|
2022-10-22 18:06:19 +08:00
|
|
|
</div>
|
2022-10-17 10:13:22 +08:00
|
|
|
</div>
|
|
|
|
|
</Card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import Card from '../components/Card'
|
2022-10-22 18:06:19 +08:00
|
|
|
import { getEpidemicBroadcastApi } from '@/assets/js/api/zhongjianFourth'
|
2022-12-20 11:25:19 +08:00
|
|
|
import { getProjectDetail } from "@/assets/js/api/baseInfo.js";
|
|
|
|
|
|
2022-10-17 10:13:22 +08:00
|
|
|
export default {
|
|
|
|
|
components: { Card },
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-12-22 18:28:08 +08:00
|
|
|
list: []
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2022-12-17 11:46:32 +08:00
|
|
|
this.getData()
|
2022-10-17 10:13:22 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2022-12-17 11:46:32 +08:00
|
|
|
getData() {
|
2022-12-20 11:25:19 +08:00
|
|
|
let data = {
|
|
|
|
|
projectSn: this.$store.state.projectSn,
|
|
|
|
|
};
|
|
|
|
|
getProjectDetail(data).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
getEpidemicBroadcastApi({adCode: res.result.cityCode }).then(res => {
|
2022-12-21 09:38:25 +08:00
|
|
|
console.log('res--------',res);
|
|
|
|
|
|
2022-12-17 11:46:32 +08:00
|
|
|
if (res.code == 200) {
|
2022-12-22 18:28:08 +08:00
|
|
|
this.list= res.result
|
2022-10-22 18:06:19 +08:00
|
|
|
}
|
|
|
|
|
})
|
2022-12-20 11:25:19 +08:00
|
|
|
}
|
|
|
|
|
});
|
2022-10-22 18:06:19 +08:00
|
|
|
},
|
2022-12-17 11:46:32 +08:00
|
|
|
toMore() {
|
2022-12-20 11:25:19 +08:00
|
|
|
// let dom = document.getElementById('more')
|
|
|
|
|
// dom.addEventListener('click', function(e) {
|
|
|
|
|
// if (e.target.id == 'more') {
|
|
|
|
|
// window.open('http://wjw.gz.gov.cn/ztzl/xxfyyqfk/yqtb/index.html', '_blank')
|
|
|
|
|
// }
|
|
|
|
|
// })
|
2022-10-22 18:06:19 +08:00
|
|
|
}
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2022-12-17 11:46:32 +08:00
|
|
|
.max {
|
2022-10-19 17:23:08 +08:00
|
|
|
position: relative;
|
2022-10-22 18:06:19 +08:00
|
|
|
}
|
2022-12-20 11:25:19 +08:00
|
|
|
// .container::after {
|
|
|
|
|
// content: '更多 >';
|
|
|
|
|
// cursor: pointer;
|
|
|
|
|
// color: #66d4d9;
|
|
|
|
|
// position: absolute;
|
|
|
|
|
// right: 4%;
|
|
|
|
|
// top: 5%;
|
|
|
|
|
// z-index: 999;
|
|
|
|
|
// }
|
2022-12-17 11:46:32 +08:00
|
|
|
.container {
|
|
|
|
|
position: relative;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
padding: 8px 15px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
.content {
|
2022-10-17 17:46:04 +08:00
|
|
|
margin-top: 10px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 65px;
|
2022-12-22 18:28:08 +08:00
|
|
|
padding: 20px 0px 10px 0px;
|
2022-12-16 10:54:02 +08:00
|
|
|
// color:rgba(255, 255, 255, 0.65)
|
|
|
|
|
border-left: 4px solid #66d3d8;
|
|
|
|
|
background-image: linear-gradient(to right, #3b7589, #182337);
|
2022-12-22 18:28:08 +08:00
|
|
|
.time {
|
|
|
|
|
|
|
|
|
|
font-size: 18px;
|
2022-10-17 17:46:04 +08:00
|
|
|
}
|
2022-12-17 11:46:32 +08:00
|
|
|
a {
|
2022-10-17 17:46:04 +08:00
|
|
|
text-decoration: none;
|
2022-12-17 11:46:32 +08:00
|
|
|
color: rgb(255, 255, 255);
|
2022-10-17 17:46:04 +08:00
|
|
|
}
|
|
|
|
|
.value {
|
|
|
|
|
position: relative;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border-left: 4px solid #66d3d8;
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
padding: 10px 5px;
|
|
|
|
|
width: 100%;
|
2022-10-22 18:06:19 +08:00
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
2022-10-17 17:46:04 +08:00
|
|
|
background-image: linear-gradient(to right, #3b7589, #182337);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
cursor: pointer;
|
2022-12-17 11:46:32 +08:00
|
|
|
color: rgb(255, 255, 255);
|
2022-10-17 17:46:04 +08:00
|
|
|
transition: all 0.3s;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
2022-10-19 19:17:21 +08:00
|
|
|
cursor: pointer;
|
2022-10-17 17:46:04 +08:00
|
|
|
margin-top: 2px;
|
|
|
|
|
margin-bottom: 5px;
|
2022-10-17 10:13:22 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|