SubTitle.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="subtilte">
  3. <view class="title">
  4. <view class="icon"></view>
  5. <view class="name">{{ title }}</view>
  6. <view class="letter">{{ titleEng }}</view>
  7. </view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. props:['title','titleEng'],
  13. name: "SubTitle",
  14. data() {
  15. return {
  16. };
  17. }
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. $lineColor:#191F33;
  22. $titColor:#192233;
  23. // SubTile公共样式
  24. .subtilte{
  25. display: flex;
  26. flex-direction: column;
  27. border-top:$lineColor solid 1px;
  28. border-bottom:$lineColor solid 1px;
  29. width: 100%;
  30. .title{
  31. width: 100%;
  32. background-color: $titColor;
  33. margin: 1px 0px;
  34. height: 24px;
  35. display: flex;
  36. .icon{
  37. width: 17px;
  38. height: 10px;
  39. background-image: url('/static/public/ico2.png');
  40. background-size: 100% 100%;
  41. margin-left: 2px;
  42. }
  43. .name{
  44. font-size: 16px;
  45. margin-left: -5px;
  46. height: 24px;
  47. line-height: 22px;
  48. font-weight: 600;
  49. letter-spacing: 1px;
  50. text-shadow: 0 0 2px #1753ce,0 0 2px #1753ce,0 0 2px #1753ce,0 0 2px #1753ce;
  51. color: white;
  52. }
  53. .letter{
  54. color: #2A3855;
  55. font-size: 10px;
  56. margin-left: 5px;
  57. padding-top: 5px;
  58. font-weight: 600;
  59. }
  60. .carOnline{
  61. margin-left: auto;
  62. font-size: 15px;
  63. font-weight: 600;
  64. color: rgba(255,255,255,0.85);
  65. line-height: 34px;
  66. text-shadow: 0px 0px 4px #0027D8;
  67. cursor: pointer;
  68. font{
  69. text-decoration: underline;
  70. color: #91FDB9;
  71. text-shadow: 0px 0px 4px #0027D8;
  72. margin-right: 16px;
  73. }
  74. }
  75. }
  76. }
  77. </style>