title.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="donate" @click.stop>
  3. <p class="qtitle">{{hotspot.title}}</p>
  4. <div class="qline">
  5. <img :src="require(`@/assets/images/icon/star.png`)" alt="" />
  6. </div>
  7. <div class="txtcon">
  8. <p v-html="hotspot.content"></p>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. props:['hotspot'],
  15. };
  16. </script>
  17. <style lang="less" scoped>
  18. .donate {
  19. width: 988px;
  20. margin: 0 auto;
  21. position: fixed;
  22. top: 50%;
  23. left: 50%;
  24. transform: translate(-50%, -50%);
  25. z-index: 99;
  26. background-color: rgba(3, 51, 48, 0.5);
  27. color: #fff;
  28. padding: 36px 34px;
  29. border-top: 8px solid #ccaf8f;
  30. border-bottom: 8px solid #ccaf8f;
  31. background-repeat: no-repeat;
  32. background-position: right bottom;
  33. background-size: 100% auto;
  34. .qtitle {
  35. width: 100%;
  36. height: 30px;
  37. font-size: 30px;
  38. font-weight: bold;
  39. line-height: 38px;
  40. color: #FFE0A6;
  41. text-align: center;
  42. }
  43. .qline {
  44. width: 100%;
  45. height: 1px;
  46. margin: 26px 0;
  47. position: relative;
  48. background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 48%, rgba(255, 255, 255, 0) 100%);
  49. > img {
  50. position: absolute;
  51. left: 50%;
  52. transform: translateX(-50%);
  53. width: 32px;
  54. top: -12px;
  55. }
  56. }
  57. .txtcon{
  58. background-color: rgba(255, 255, 255, 0.7);
  59. padding: 20px;
  60. color: #626260;
  61. p{
  62. font-size: 18px;
  63. line-height: 1.5;
  64. }
  65. }
  66. }
  67. </style>