| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <div class="box-line">
- <div class="item">
- <div class="title inline-16">
- {{title}}
- </div>
- <el-tooltip effect="dark" placement="top-start">
- <div slot="content">
- {{content}}
- </div>
- <!-- <i class="el-icon-question" style="color: #afb0be;float: right;margin-top: 0px"></i>-->
- <img width="14px" height="14px" src="../../../assets/icons/prompt_icon.svg" style="float: right">
- </el-tooltip>
- <p style="margin: 15px 0 0 15px;font-size: 18px">
- <span style="font-size: 14px">¥</span>
- <span v-if="data>= 0">
- <span style="font-size: 26px" v-if="data > 10000">{{tool.formatAmount(data/10000,2)}}<span style="font-size: 14px">万</span></span>
- <span v-else style="font-size: 26px">{{tool.formatAmount(data,2)}}</span>
- </span>
- <span v-else>
- <span style="font-size: 26px" v-if="data < 10000">{{tool.formatAmount(data/10000,2)}}<span style="font-size: 14px">万</span></span>
- <span v-else style="font-size: 26px">{{tool.formatAmount(data,2)}}</span>
- </span>
- </p>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: "boxLine3",
- props:['title','data','content','windowWidth']
- }
- </script>
- <style scoped>
- .box-line{
- float: left;
- width: 270px;
- margin-right: 16px;
- }
- .item{
- width: 100%;
- height: 112px;
- margin: 6px;
- padding: 10px;
- border-radius: 2px;
- border: 1px solid #e9e9e9;
- background-color: #ffffff;
- box-sizing: border-box;
- box-shadow: -1px -1px 5px 0px rgba(0, 0, 0, 0.2);
- }
- .item .title{
- display: flex;
- flex-wrap: nowrap;
- font-size: 14px;
- color: #666666;
- margin: 15px 0 0 15px;
- }
- </style>
|