service.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div id="service">
  3. <el-col :span="24" class="maintoplefttitle">
  4. <div style="padding:10px 0 0 0;border-bottom: 1px solid #ccc;">
  5. <span></span><span>科级合作</span><span><i class="el-icon-more"></i></span>
  6. </div>
  7. </el-col>
  8. <el-col :span="24">
  9. <el-col :span="24" class="leftcontext" v-for="(item, index) in serviceList" :key="index">
  10. <el-col :span="16" class="title"> <span></span>{{ item.title }} </el-col>
  11. <el-col :span="8" class="date">{{ item.date }}</el-col>
  12. </el-col>
  13. </el-col>
  14. </div>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'service',
  19. props: {
  20. serviceList: null,
  21. },
  22. components: {},
  23. data: () => ({}),
  24. created() {},
  25. computed: {},
  26. methods: {},
  27. };
  28. </script>
  29. <style lang="less" scoped>
  30. .between {
  31. height: 300px;
  32. background-color: #fff;
  33. padding: 0 10px 0 10px;
  34. }
  35. .between .leftcontext {
  36. padding: 0 20px 0 20px;
  37. }
  38. .main .between .maintoplefttitle {
  39. padding: 20px;
  40. // border-bottom: 1px dashed #ccc;
  41. }
  42. .main .between .maintoplefttitle span:first-child {
  43. display: inline-block;
  44. width: 4px;
  45. height: 20px;
  46. background: #005293;
  47. margin: 0 10px -3px 0;
  48. }
  49. .main .between .maintoplefttitle span:nth-child(2) {
  50. font-size: 20px;
  51. color: #005293;
  52. padding: 0 10px 0 0;
  53. }
  54. .main .between .maintoplefttitle span:nth-child(3) {
  55. font-size: 20px;
  56. color: #005293;
  57. float: right;
  58. }
  59. .maintopright .leftcontext {
  60. padding: 0 20px 0 20px;
  61. font-size: 16px;
  62. }
  63. .maintopright .leftcontext p {
  64. margin: 0;
  65. padding: 0;
  66. }
  67. .maintopright .leftcontext title span:first-child {
  68. font-weight: 1000;
  69. padding: 5px;
  70. }
  71. .title {
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. white-space: nowrap;
  75. height: 38px;
  76. }
  77. .title span:first-child {
  78. display: inline-block;
  79. width: 4px;
  80. height: 4px;
  81. margin: 9px 10px 3px 0;
  82. background: #ccc;
  83. }
  84. .date {
  85. float: right;
  86. color: #777777;
  87. text-indent: 24px;
  88. }
  89. </style>