Commit 4be95e7d authored by xinzhedeai's avatar xinzhedeai

fix: echarts3d

parent c409b6b1
...@@ -239,7 +239,7 @@ export default { ...@@ -239,7 +239,7 @@ export default {
.count2 { .count2 {
font-family: diget year; font-family: diget year;
font-weight: normal; font-weight: normal;
font-size: 0.42rem; font-size: 0.34rem;
color: #ffffff; color: #ffffff;
text-shadow: 0px 0.04rem 0.3rem rgba(5, 54, 78, 0.48); text-shadow: 0px 0.04rem 0.3rem rgba(5, 54, 78, 0.48);
background: linear-gradient(180deg, #dff2ff 0%, #36acff 100%); background: linear-gradient(180deg, #dff2ff 0%, #36acff 100%);
...@@ -250,13 +250,15 @@ export default { ...@@ -250,13 +250,15 @@ export default {
.unit2 { .unit2 {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
font-size: 0.21rem; font-size: 0.18rem;
color: #1e6bb2; color: #59EDFF;
vertical-align: 0.03rem;
} }
.count1{ .count1{
font-family: diget year; font-family: diget year;
font-weight: normal; font-weight: normal;
font-size: 0.42rem; font-size: 0.34rem;
color: #ffffff; color: #ffffff;
text-shadow: 0px 0.04rem 0.3rem rgba(5, 54, 78, 0.48); text-shadow: 0px 0.04rem 0.3rem rgba(5, 54, 78, 0.48);
background: linear-gradient(180deg, #fffae4 0%, #ffe25d 100%); background: linear-gradient(180deg, #fffae4 0%, #ffe25d 100%);
...@@ -267,8 +269,9 @@ export default { ...@@ -267,8 +269,9 @@ export default {
.unit1 { .unit1 {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: bold; font-weight: bold;
font-size: 0.21rem; font-size: 0.18rem;
color: #dfe224; color: #dfe224;
vertical-align: 0.03rem;
} }
} }
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="dt"> <div class="dt">
<span>监测项</span> <span>最近更新时间</span> <span>监测数据</span> <span>监测项</span> <span>最近更新时间</span> <span>监测数据</span>
</div> </div>
<div v-if="!dataList.length" style="font-size: 0.24rem">暂无数据</div> <div v-if="!dataList.length" class="emptyData">暂无数据</div>
<dl class="scrolling1"> <dl class="scrolling1">
<div class="list-wrap"> <div class="list-wrap">
<div class="list-content"> <div class="list-content">
...@@ -201,6 +201,14 @@ export default { ...@@ -201,6 +201,14 @@ export default {
type, type,
}).then((response) => { }).then((response) => {
this.dataList = response.data; this.dataList = response.data;
// if(type === '环境监测'){
// for (let index = 0; index < 5; index++) {
// this.dataList.push({
// name: index,
// value: index,
// });
// }
// }
this.$nextTick(() => { this.$nextTick(() => {
setTimeout(() => { setTimeout(() => {
this.startScrolling( this.startScrolling(
...@@ -224,6 +232,13 @@ export default { ...@@ -224,6 +232,13 @@ export default {
console.log('container.clientHeight', container.clientHeight) console.log('container.clientHeight', container.clientHeight)
const content = document.querySelector(contentClass); const content = document.querySelector(contentClass);
if(this.dataList.length<5){
content.style.transform = `translateY(0px)`;
clearInterval(this["interval4" + type]);
return
}
content.style.transform = `translateY(0px)`; content.style.transform = `translateY(0px)`;
console.log(content.scrollHeight, "content.scrollHeight"); console.log(content.scrollHeight, "content.scrollHeight");
// return // return
...@@ -254,6 +269,11 @@ export default { ...@@ -254,6 +269,11 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.emptyData {
font-size: 0.18rem;
text-align: center;
padding-top: 0.6rem;
}
.echart-bt { .echart-bt {
width: 100%; width: 100%;
height: 1.8rem; height: 1.8rem;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment