title.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <div class="images">
  3. <div class="img-con">
  4. <div class="title">{{hotspot.title}}</div>
  5. <div class="desc" v-html="hotspot.content"></div>
  6. <img @click="$emit('close')" class="close" :src="require('@/assets/images/project/close.png')" alt="">
  7. </div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. props:['hotspot'],
  13. data(){
  14. return {
  15. active:0
  16. }
  17. },
  18. methods:{
  19. }
  20. }
  21. </script>
  22. <style lang="less" scoped>
  23. .noshow{
  24. opacity: 0!important;;
  25. pointer-events: none!important;;
  26. }
  27. .images{
  28. width: 1010px;
  29. background-color: #fff;
  30. text-align: center;
  31. margin: 0 auto;
  32. position: fixed;
  33. top: 50%;
  34. left: 50%;
  35. transform: translate(-50%,-50%);
  36. border-radius: 5px;
  37. border-top: 10px solid #338F7B;
  38. text-align: left;
  39. .title {
  40. padding: 0 10px;
  41. font-weight: bold;
  42. color: #333333;
  43. font-size: 24px;
  44. width: 100%;
  45. padding: 20px 60px;
  46. }
  47. .img-con{
  48. .desc{
  49. margin: 0 auto;
  50. width: 100%;
  51. text-align: left;
  52. line-height: 1.5;
  53. max-height: 250px;
  54. color: #333333;
  55. overflow-y: auto;
  56. font-size: 16px;
  57. padding: 20px;
  58. }
  59. }
  60. }
  61. .close{
  62. position: absolute;
  63. top: 40px;
  64. right: 50px;
  65. width: 20px;
  66. height: 20px;
  67. cursor: pointer;
  68. z-index: 9999999;
  69. }
  70. </style>