新版梦工厂手机端官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. <template>
  2. <div class="headline_container">
  3. <h2 class="title_h2">
  4. {{ flip ? title : '' }}
  5. <span :class="theme ? 'theme theme_color' : 'theme'">{{
  6. themeTitle
  7. }}</span>
  8. {{ !flip ? title : '' }}
  9. </h2>
  10. <div class="scale">
  11. <p class="line1" v-if="line1">{{ line1 }}</p>
  12. <p class="line2" v-if="line2">{{ line2 }}</p>
  13. </div>
  14. </div>
  15. </template>
  16. <script setup>
  17. import { onMounted, ref } from 'vue'
  18. import { useRoute } from 'vue-router'
  19. const route = useRoute()
  20. const theme = ref(false)
  21. onMounted(() => {
  22. if (route.path.indexOf('/hardware') != -1) {
  23. theme.value = true
  24. }
  25. })
  26. const props = defineProps({
  27. themeTitle: {
  28. type: String,
  29. default: '',
  30. },
  31. flip: {
  32. type: Boolean,
  33. default: false,
  34. },
  35. title: {
  36. type: String,
  37. },
  38. line1: {
  39. type: String,
  40. },
  41. line2: {
  42. type: String,
  43. },
  44. })
  45. </script>
  46. <style lang="scss" scoped>
  47. .headline_container {
  48. display: flex;
  49. flex-direction: column;
  50. align-items: center;
  51. padding: 36px 0;
  52. box-sizing: border-box;
  53. .title_h2 {
  54. font-size: 11px;
  55. font-family: Source Han Sans CN;
  56. font-weight: 500;
  57. color: #191919;
  58. margin-bottom: 10px;
  59. display: flex;
  60. align-items: center;
  61. }
  62. .theme {
  63. color: $home-color;
  64. }
  65. .theme_color {
  66. color: $hardware-theme;
  67. }
  68. .scale {
  69. font-size: 14px;
  70. transform: scale(0.6);
  71. width: 170%;
  72. .line1 {
  73. font-family: Source Han Sans CN;
  74. font-weight: 300;
  75. color: #595959;
  76. line-height: 16px;
  77. text-align: center;
  78. }
  79. .line2 {
  80. font-family: Alibaba PuHuiTi;
  81. font-weight: 300;
  82. color: #595959;
  83. text-align: center;
  84. line-height: 9px;
  85. margin-top: 4px;
  86. }
  87. }
  88. }
  89. </style>