diff --git a/src/assets/img/park-center-popver-bg.png b/src/assets/img/park-center-popver-bg.png new file mode 100644 index 0000000..5598079 Binary files /dev/null and b/src/assets/img/park-center-popver-bg.png differ diff --git a/src/assets/style/index.less b/src/assets/style/index.less index 9b1c424..461cf3b 100644 --- a/src/assets/style/index.less +++ b/src/assets/style/index.less @@ -1,7 +1,7 @@ @import url("variables.less"); @import url("base.less"); -@import url('https://at.alicdn.com/t/c/font_4006769_n9ff4895s3f.css'); +@import url('https://at.alicdn.com/t/c/font_4006769_9qy7hm49cu4.css'); [class*=plantBS-]{ font-family: "plantManaBS"; src: url('//at.alicdn.com/t/c/font_4006769_tj4ca5pc17h.woff2?t=1681117510410') format('woff2'), diff --git a/src/view/park/center.vue b/src/view/park/center.vue index 5a33e29..cab4d2a 100644 --- a/src/view/park/center.vue +++ b/src/view/park/center.vue @@ -53,7 +53,7 @@ } } } - &>canvas,&>.modelPopover{ + &>canvas,&>.mapCSS2D{ position:fixed; pointer-events: all; z-index: -10; @@ -62,13 +62,143 @@ width:100%; height:100%; } - &>.modelPopover{ + &>.mapCSS2D{ pointer-events: none; } + .model{ + &>div{ + opacity:0; + position:absolute; + bottom:0; + right:calc(-289px/2); + width:289px; + height:149px; + background-image:url(@/assets/img/park-center-popver-bg.png); + &>.title{ + font-weight: bold; + font-size:13px; + color:#50A7F9; + font-weight: bold; + position:absolute; + text-align: center; + top: 25px; + left: 28px; + width: 240px; + } + &>.ads{ + position: absolute; + top: 49px; + left: 30px; + width: 241px; + display:flex; + align-items: center; + span{ + &.plantBS-dingwei{ + color:#F19149; + margin-right:auto; + } + &.item{ + color:var(--c); + font-weight: bold; + font-size:14px; + &:before{ + content:attr(data-title); + font-weight: normal; + color:#C0DBF7; + font-size:12px; + } + &:after{ + content:"个"; + color:#C0DBF7; + font-weight: normal; + font-size:12px; + } + &+.item{ + margin-left:10px; + } + } + } + } + &>.line{ + position:absolute; + top: 73px; + left: 30px; + width: 239px; + height: 1px; + background: linear-gradient(rgba(12, 137, 254, 0.3), rgba(9, 207, 251, 0.3)); + &:before{ + content:""; + background-image:url(@/assets/img/line.png); + width:152px; + height:29px; + position:absolute; + top: -17px; + left: -43px; + animation: move 4s linear infinite; + } + } + &>.scroll-board{ + position:absolute; + top: 73px; + left: 30px; + width: 239px; + margin-top:5px; + height:55px; + &:deep>div{ + display:flex; + align-items: center; + span{ + font-size:12px; + color:#0C89FE; + &:first-child{ + width:80px; + flex-shrink: 0; + } + &:nth-child(2){ + flex-grow: 1; + &:after{ + content:"亩"; + } + } + &:nth-child(3){ + width:120px; + text-align: right; + flex-shrink: 0; + &:before{ + content:"预估产量"; + } + &:after{ + content:"吨"; + } + } + &:before,&:after{ + color:#C0DBF7; + } + } + } + } + } + } svg{ opacity: 0; } } + @keyframes move { + 0%{ + left:-43px; + opacity: 0; + } + 30%{ + opacity: 1; + } + 70%{ + opacity: 1; + } + 100%{ + left:141px; + opacity: 0; + } + }