photo.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <template>
  2. <div id="photo">
  3. <el-row>
  4. <el-col :span="24" class="top">
  5. <el-col :span="10">
  6. <el-image style="width:100%;height:40px;" :src="left"></el-image>
  7. </el-col>
  8. <el-col :span="4" class="topTitle">
  9. {{ title }}
  10. </el-col>
  11. <el-col :span="10">
  12. <el-image style="width:100%;height:40px;" :src="right"></el-image>
  13. </el-col>
  14. </el-col>
  15. <el-col :span="24" class="info">
  16. 内容
  17. </el-col>
  18. </el-row>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'photo',
  24. props: {},
  25. components: {},
  26. data: () => ({
  27. title: '活动图集',
  28. left: require('@/assets/messageLeft.jpg'),
  29. right: require('@/assets/messageRight.jpg'),
  30. }),
  31. created() {},
  32. computed: {},
  33. methods: {},
  34. };
  35. </script>
  36. <style lang="less" scoped>
  37. p {
  38. padding: 0;
  39. margin: 0;
  40. }
  41. .textOver {
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. white-space: nowrap;
  45. }
  46. .top {
  47. height: 40px;
  48. line-height: 40px;
  49. margin: 0 0 40px 0;
  50. }
  51. .top .topTitle {
  52. font-size: 38px;
  53. color: #bd010b;
  54. text-align: center;
  55. font-weight: bold;
  56. font-family: '微软雅黑';
  57. }
  58. </style>