修复中建四局bug
This commit is contained in:
parent
f50ef147a9
commit
69b48258b9
@ -2,12 +2,12 @@
|
||||
<Card title="疫情播报" class="max">
|
||||
<div class="container" id="more" @click="toMore">
|
||||
<div id="page">
|
||||
<div class="content" v-for="(item,index) in list" :key="index">
|
||||
<p class="time">{{item.content}}</p>
|
||||
<!-- <p class="value">
|
||||
<div class="content" v-for="(item, index) in list" :key="index">
|
||||
<p class="time">{{ item.content }}</p>
|
||||
<!-- <p class="value">
|
||||
<a :href= item.url target="_blank">{{111}}</a>
|
||||
</p> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
@ -20,67 +20,67 @@ export default {
|
||||
components: { Card },
|
||||
data() {
|
||||
return {
|
||||
list:[{content:''}]
|
||||
list: [{ content: '' }]
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getData()
|
||||
this.getData()
|
||||
},
|
||||
methods: {
|
||||
getData(){
|
||||
getEpidemicBroadcastApi().then((res)=>{
|
||||
if(res.code == 200){
|
||||
getData() {
|
||||
getEpidemicBroadcastApi({adCode: this.$store.state.currentProDetail.cityCode }).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.list[0].content = res.result
|
||||
}
|
||||
// console.log('疫情',res)
|
||||
})
|
||||
},
|
||||
toMore(){
|
||||
toMore() {
|
||||
let dom = document.getElementById('more')
|
||||
dom.addEventListener('click', function (e) {
|
||||
dom.addEventListener('click', function(e) {
|
||||
if (e.target.id == 'more') {
|
||||
window.open("http://wjw.gz.gov.cn/ztzl/xxfyyqfk/yqtb/index.html","_blank")
|
||||
window.open('http://wjw.gz.gov.cn/ztzl/xxfyyqfk/yqtb/index.html', '_blank')
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.max{
|
||||
.max {
|
||||
position: relative;
|
||||
}
|
||||
.container::after{
|
||||
content: '更多 >';
|
||||
cursor: pointer;
|
||||
color: #66D4D9;
|
||||
position: absolute;
|
||||
right: 4%;
|
||||
top: 5%;
|
||||
z-index: 999;
|
||||
}
|
||||
.container {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 8px 15px;
|
||||
overflow: auto;
|
||||
.content{
|
||||
.container::after {
|
||||
content: '更多 >';
|
||||
cursor: pointer;
|
||||
color: #66d4d9;
|
||||
position: absolute;
|
||||
right: 4%;
|
||||
top: 5%;
|
||||
z-index: 999;
|
||||
}
|
||||
.container {
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 8px 15px;
|
||||
overflow: auto;
|
||||
.content {
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
height: 65px;
|
||||
.time{
|
||||
padding:10px 0px 10px 0px;
|
||||
.time {
|
||||
padding: 10px 0px 10px 0px;
|
||||
// color:rgba(255, 255, 255, 0.65)
|
||||
border-left: 4px solid #66d3d8;
|
||||
background-image: linear-gradient(to right, #3b7589, #182337);
|
||||
margin-top: 35px;
|
||||
}
|
||||
a{
|
||||
a {
|
||||
text-decoration: none;
|
||||
color:rgb(255,255,255);
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
.value {
|
||||
position: relative;
|
||||
@ -96,7 +96,7 @@ export default {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
color:rgb(255, 255, 255);
|
||||
color: rgb(255, 255, 255);
|
||||
transition: all 0.3s;
|
||||
white-space: nowrap;
|
||||
|
||||
@ -106,9 +106,6 @@ export default {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user