Commit eadbc3db by 前端

更新样式 逻辑

1 parent 8577d8fc
...@@ -44,12 +44,12 @@ export default { ...@@ -44,12 +44,12 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
width:11vw; width:14vw;
height: 8.54vh; height: 8.54vh;
margin-left: 0.42vw; margin-left: 0.42vw;
.legend-item { .legend-item {
width: 5vw; width: 6.5vw;
height: 2.44vh; height: 2.44vh;
background: #0d133b; background: #0d133b;
align-items: center; align-items: center;
...@@ -60,7 +60,7 @@ export default { ...@@ -60,7 +60,7 @@ export default {
white-space: nowrap; white-space: nowrap;
.item-content { .item-content {
width: 4.2vw; width: 5.5vw;
overflow: hidden; overflow: hidden;
} }
......
...@@ -51,13 +51,9 @@ ...@@ -51,13 +51,9 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import FeedBack from 'components/FeedBack'
import data from 'utils/data'
// import FeedBack from 'plugins/FeedBack'
export default { export default {
name: 'ViewTitle', name: 'ViewTitle',
components: { FeedBack },
props: { props: {
title: { title: {
type: String, type: String,
...@@ -90,6 +86,8 @@ export default { ...@@ -90,6 +86,8 @@ export default {
}) })
}, },
changeTitles() { changeTitles() {
console.log('???????')
console.log(!this.titleClick)
this.titleClick = !this.titleClick this.titleClick = !this.titleClick
}, },
goPage(val) { goPage(val) {
...@@ -222,11 +220,12 @@ export default { ...@@ -222,11 +220,12 @@ export default {
.float-drag-wrap { .float-drag-wrap {
position: absolute; position: absolute;
//position: relative;
right: 0; right: 0;
top: 18%; top: 18%;
z-index: 6666; z-index: 6666;
opacity: 1; opacity: 1;
width: 1.5%;
.float-drag-object { .float-drag-object {
text-align: center; text-align: center;
font-size: 1vw; font-size: 1vw;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class='product'> <div class='product'>
<div class='title title-icon'> <div class='title title-icon'>
<span class='icon'></span> <span class='icon'></span>
<span>产品排名前5</span> <span>产品排名前10</span>
</div> </div>
<div class='container flex'> <div class='container flex'>
<pie-chart height='12vh' :id="'glproduct'" :list='productData' :keys='chart.keys'></pie-chart> <pie-chart height='12vh' :id="'glproduct'" :list='productData' :keys='chart.keys'></pie-chart>
...@@ -54,6 +54,7 @@ export default { ...@@ -54,6 +54,7 @@ export default {
.product{ .product{
background: #0b0e31; background: #0b0e31;
width: 20vw; width: 20vw;
height: 21vh;
.container{ .container{
margin-top:3vh; margin-top:3vh;
} }
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
<style lang='scss' scoped> <style lang='scss' scoped>
.rank { .rank {
margin: 3vh 0; margin: 5vh 0;
width: 100%; width: 100%;
height: 15vh; height: 15vh;
display: flex; display: flex;
......
...@@ -46,6 +46,7 @@ export default { ...@@ -46,6 +46,7 @@ export default {
.product{ .product{
background: #0b0e31; background: #0b0e31;
width: 20vw; width: 20vw;
height: 21vh;
.container{ .container{
margin-top:3vh; margin-top:3vh;
} }
......
...@@ -47,6 +47,7 @@ export default { ...@@ -47,6 +47,7 @@ export default {
.product{ .product{
background: #0b0e31; background: #0b0e31;
width: 20vw; width: 20vw;
height: 21vh;
.container{ .container{
margin-top:3vh; margin-top:3vh;
} }
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<div class='vehicle'> <div class='vehicle'>
<div class='title title-icon'> <div class='title title-icon'>
<span class='icon'></span> <span class='icon'></span>
<span>车型排名前5</span> <span>车型排名前10</span>
</div> </div>
<div class='container flex'> <div class='container flex'>
<pie-chart height='12vh' :id="'vehicle'" :list='vehicleData' :keys='chart.keys'></pie-chart> <pie-chart height='14vh' :id="'vehicle'" :list='vehicleData' :keys='chart.keys'></pie-chart>
<Legend :list='vehicleData' :showName="'vehicleBrand'"></Legend> <Legend :list='vehicleData' :showName="'vehicleBrand'"></Legend>
<!-- <template v-if="showType=='gl'">--> <!-- <template v-if="showType=='gl'">-->
<!-- <pie-chart height='12vh' :id="'glvehicle'" :list='glvehicleData' :keys='chart.keys'></pie-chart>--> <!-- <pie-chart height='12vh' :id="'glvehicle'" :list='glvehicleData' :keys='chart.keys'></pie-chart>-->
...@@ -56,9 +56,10 @@ export default { ...@@ -56,9 +56,10 @@ export default {
.vehicle { .vehicle {
background: #0b0e31; background: #0b0e31;
width: 20vw; width: 20vw;
//height: 18vh; height: 21vh;
//height: 20vh;
.container{ .container{
margin-top:3vh; margin-top:2vh;
} }
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!