boxLineFor.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div class="box-line">
  3. <div class="item">
  4. <div class="title inline-16">
  5. {{title}}
  6. </div>
  7. <el-tooltip effect="dark" placement="top-start">
  8. <div slot="content">
  9. {{content}}
  10. </div>
  11. <!-- <i class="el-icon-question" style="color: #afb0be;float: right;margin-top: 0px"></i>-->
  12. <img width="14px" height="14px" src="../../../assets/icons/prompt_icon.svg" style="float: right">
  13. </el-tooltip>
  14. <p style="margin: 15px 0 0 15px;font-size: 18px">
  15. <span style="font-size: 14px">¥</span>
  16. <span v-if="data>= 0">
  17. <span style="font-size: 26px" v-if="data > 10000">{{tool.formatAmount(data/10000,2)}}<span style="font-size: 14px">万</span></span>
  18. <span v-else style="font-size: 26px">{{tool.formatAmount(data,2)}}</span>
  19. </span>
  20. <span v-else>
  21. <span style="font-size: 26px" v-if="data < 10000">{{tool.formatAmount(data/10000,2)}}<span style="font-size: 14px">万</span></span>
  22. <span v-else style="font-size: 26px">{{tool.formatAmount(data,2)}}</span>
  23. </span>
  24. </p>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. export default {
  30. name: "boxLine3",
  31. props:['title','data','content','windowWidth']
  32. }
  33. </script>
  34. <style scoped>
  35. .box-line{
  36. float: left;
  37. width: 270px;
  38. margin-right: 16px;
  39. }
  40. .item{
  41. width: 100%;
  42. height: 112px;
  43. margin: 6px;
  44. padding: 10px;
  45. border-radius: 2px;
  46. border: 1px solid #e9e9e9;
  47. background-color: #ffffff;
  48. box-sizing: border-box;
  49. box-shadow: -1px -1px 5px 0px rgba(0, 0, 0, 0.2);
  50. }
  51. .item .title{
  52. display: flex;
  53. flex-wrap: nowrap;
  54. font-size: 14px;
  55. color: #666666;
  56. margin: 15px 0 0 15px;
  57. }
  58. </style>