SquareCard.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <el-card class="square-card">
  3. <div class="card-title" >
  4. XXXXXX卡片标题
  5. </div>
  6. <div class="card-content">
  7. 卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容卡片内容
  8. </div>
  9. <div class="card-detail">
  10. <el-row>
  11. <el-col :span="6">
  12. <span class="card-detail-money">¥10000</span>
  13. </el-col>
  14. <el-col :span="18">
  15. <span class="card-detail-info pull-right">14分钟前发布/5人参与</span>
  16. </el-col>
  17. </el-row>
  18. </div>
  19. <div class="card-footer">
  20. <el-row class="card-footer-row">
  21. <el-col :span="12" class="pull-left">
  22. 性能测试项目
  23. </el-col>
  24. <el-col :span="12" class=" test-btn">
  25. <el-button type="primary" round size="mini" class="pull-right">我要众测</el-button>
  26. </el-col>
  27. </el-row>
  28. </div>
  29. </el-card>
  30. </template>
  31. <script>
  32. export default {
  33. name: 'SquareCard'
  34. }
  35. </script>
  36. <style lang="less">
  37. .square-card .el-card__body{
  38. padding: 0 !important;
  39. }
  40. .square-card {
  41. .card-title {
  42. font-size:16px;
  43. font-family:Source Han Sans CN;
  44. font-weight:500;
  45. color:rgba(0,0,0,1);
  46. line-height:30px;
  47. margin: 10px 0;
  48. }
  49. .card-content {
  50. font-size:14px;
  51. font-family:Source Han Sans CN;
  52. font-weight:400;
  53. color:rgba(0,0,0,1);
  54. height: 70px;
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. display:-webkit-box; //作为弹性伸缩盒子模型显示。
  58. -webkit-box-orient:vertical; //设置伸缩盒子的子元素排列方式--从上到下垂直排列
  59. -webkit-line-clamp:3; //显示的行
  60. }
  61. .card-detail {
  62. margin: 10px 0;
  63. .card-detail-money{
  64. font-size:14px;
  65. font-family:Source Han Sans CN;
  66. font-weight:bold;
  67. color:rgba(0,117,203,1);
  68. }
  69. .card-detail-info {
  70. font-size:14px;
  71. font-family:Roboto;
  72. font-weight:400;
  73. color:rgba(153,153,153,1);
  74. }
  75. }
  76. }
  77. .card-title,.card-content,.card-detail{
  78. padding: 0 10px !important;
  79. }
  80. .card-footer {
  81. background:rgba(233,239,249,1);
  82. /*height: 40px;*/
  83. .card-footer-row {
  84. padding: 15px 10px;
  85. font-size:14px;
  86. font-family:Source Han Sans CN;
  87. font-weight:bold;
  88. }
  89. }
  90. </style>