<template> <single-layout title="盈利能力" @click="getData"> <div style="width: 100%;height:100%;padding:0.1rem" > <div class="youth-count-container"> <image-block2 v-for="item of data" :key="item.name" :data="item"/> </div> </div> </single-layout> </template> <script> import ImageBlock2 from '@/components/block/imageBlock2' import SingleLayout from '@/components/layout/singleLayout' import mockData from '../../../../../../static/industrialEconomy.json' export default { name: 'Profit', components: {ImageBlock2, SingleLayout}, data () { return { data: [ {name: '销售利润率', value: '', unit: '%'}, {name: '成本费用利润率', value: '', unit: '%'}, {name: '总资产报酬率', value: '', unit: '%'}, {name: '净资产收益率', value: '', unit: '%'}, {name: '净资产增长率', value: '', unit: '%'}, {name: '净利润增长率', value: '', unit: '%'} ] } }, created () { // this.getData() this.data = mockData.right.enterprise.profit }, methods: { getData () { } } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .youth-count-container{ // 垂直flex height: 100%; padding-left:0.03rem; padding-right:0.03rem; display: -webkit-flex; /* Safari */ display: flex; flex-direction: column; justify-content: space-between; margin:auto; } </style>