Commit 30241555 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新样式

parent b4f284cd
...@@ -25,7 +25,9 @@ ...@@ -25,7 +25,9 @@
</div> </div>
| |
<div> <div>
<p class="count"><m-count :value="info.rectifyRatio" />%</p> <p class="count">
<m-count :value="info.rectifyRatio" :decimal="2" />%
</p>
<p>完成率</p> <p>完成率</p>
</div> </div>
</div> </div>
...@@ -40,7 +42,7 @@ ...@@ -40,7 +42,7 @@
<span></span> <span></span>
</div> </div>
<div v-for="item in list.slice(1)" :key="item.name"> <div v-for="item in list.slice(1)" :key="item.name">
<m-count :value="item.value" /> <m-count class="count" :value="item.value" />
<p>{{ item.name }}</p> <p>{{ item.name }}</p>
</div> </div>
</div> </div>
...@@ -193,6 +195,8 @@ const barOption = { ...@@ -193,6 +195,8 @@ const barOption = {
text-align center text-align center
flex 1 flex 1
position relative position relative
.count
font-size .12rem
p p
color #ccc color #ccc
span span
......
...@@ -16,12 +16,10 @@ ...@@ -16,12 +16,10 @@
/> />
</div> </div>
<div class="legend"> <div class="legend">
<div class="inner"> <div v-for="(item, i) in pieData.source" :key="item.type">
<div v-for="(item, i) in pieData.source" :key="item.type"> <i class="dot" :style="`background:${pieOption.color[i]}`" />
<i class="dot" :style="`background:${pieOption.color[i]}`" /> <p :title="item.type">{{ item.type }}</p>
<p :title="item.type">{{ item.type }}</p> <span><m-count :value="item.rate" />%</span>
<span><m-count :value="item.rate" />%</span>
</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -144,37 +142,37 @@ async function onClick({ query, icon }) { ...@@ -144,37 +142,37 @@ async function onClick({ query, icon }) {
@import '../../components/MyComponent/main.styl' @import '../../components/MyComponent/main.styl'
.chart-wrapper .chart-wrapper
display flex display flex
flex 1
.chart .chart
width 25% width 25%
height 1rem height 1rem
.legend .legend
flex 1 flex 1
.inner display flex
flex-wrap wrap
>div
display flex display flex
flex-wrap wrap align-items center
>div width 48%
display flex font-size .09rem
align-items center &:nth-of-type(2n)
width 48% margin-left .05rem
font-size .08rem .dot
&:nth-of-type(2n) display inline-block
margin-left .05rem width .06rem
.dot height @width
display inline-block border-radius 50%
width .06rem p
height @width margin 0 .04rem
border-radius 50% flex 1
p color #ccc
margin 0 .04rem overflow hidden
flex 1 white-space nowrap
color #ccc text-overflow ellipsis
overflow hidden
white-space nowrap
text-overflow ellipsis
.summary .summary
display flex display flex
justify-content space-between justify-content space-between
margin-bottom .04rem margin .05rem 0
>div >div
text-align center text-align center
cursor pointer cursor pointer
......
...@@ -162,7 +162,6 @@ const onClick = (state) => { ...@@ -162,7 +162,6 @@ const onClick = (state) => {
>div >div
display flex display flex
align-items center align-items center
font-size .09rem
color #ccc color #ccc
cursor pointer cursor pointer
.orange-count .orange-count
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<p> <p>
住宅预销售金额 住宅预销售金额
<span style="margin-left: 0.1rem"> <span style="margin-left: 0.1rem">
<m-count class="orange-count" :value="total" /> <m-count class="orange-count" :value="total" :decimal="2" />
亿
</span> </span>
</p> </p>
<n-select <n-select
...@@ -91,7 +91,7 @@ watch( ...@@ -91,7 +91,7 @@ watch(
livePresaleNum = 0, //居住预售证数 livePresaleNum = 0, //居住预售证数
totalArea = 0, //总面积 totalArea = 0, //总面积
} = res?.data?.content || {} } = res?.data?.content || {}
total.value = totalPrice total.value = totalPrice / 100000000
list.value = [ list.value = [
{ {
name: '住房', name: '住房',
...@@ -177,7 +177,7 @@ const areas = ref([ ...@@ -177,7 +177,7 @@ const areas = ref([
flex 1 flex 1
margin-left .05rem margin-left .05rem
.orange-count .orange-count
margin 0 .04rem .02rem 0.1rem margin 0 .04rem .02rem
span span
display flex display flex
align-items center align-items center
......
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