移动端
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

113 righe
2.5 KiB

  1. <template>
  2. <div class="header_main">
  3. <div class="navigation_main">
  4. <div class="head_portrait"></div>
  5. <div class="dynamic_main">
  6. <div
  7. @click="skip('/sunVillage/index')"
  8. class="flex_navigation"
  9. :class="[currentNav == '1' ? 'current' : '']"
  10. >
  11. 最新动态
  12. </div>
  13. <!-- -->
  14. <div
  15. @click="skip('/sunVillage/consulting')"
  16. class="flex_navigation"
  17. :class="[currentNav == '2' ? 'current' : '']"
  18. >
  19. 民生直通车
  20. </div>
  21. <div
  22. @click="skip('/sunVillage/equity')"
  23. class="flex_navigation"
  24. :class="[currentNav == '3' ? 'current' : '']"
  25. >
  26. 股权查询
  27. </div>
  28. </div>
  29. </div>
  30. <div class="headings_main" v-if="headings" @click="previousStep">
  31. <div class="return"></div>
  32. <div class="title">{{ headings }}</div>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. props: ["headings", "currentNav", "returnUrl"],
  39. data() {
  40. return {};
  41. },
  42. mounted() {},
  43. methods: {
  44. previousStep() {
  45. if (this.returnUrl) {
  46. this.$router.push(this.returnUrl);
  47. } else {
  48. this.$router.back();
  49. }
  50. },
  51. skip(url) {
  52. this.$router.push(url);
  53. },
  54. },
  55. };
  56. </script>
  57. <style scoped lang="scss">
  58. .header_main {
  59. padding: 32px 0 28px;
  60. border-bottom: 2px solid #e5e5e5;
  61. margin: 0 24px;
  62. }
  63. .navigation_main {
  64. display: flex;
  65. .head_portrait {
  66. width: 64px;
  67. height: 64px;
  68. background: url("../../../assets/images/sunVillage/head_portrait.jpg")
  69. no-repeat;
  70. background-size: 100% 100%;
  71. margin-right: 24px;
  72. }
  73. .dynamic_main {
  74. flex: 1;
  75. flex-direction: row;
  76. display: flex;
  77. justify-content: space-between;
  78. .flex_navigation {
  79. height: 64px;
  80. line-height: 64px;
  81. background: #ededed;
  82. font-size: 32px;
  83. border-radius: 10px;
  84. padding: 0 28px;
  85. &.current {
  86. background: #07c160;
  87. color: #fff;
  88. }
  89. }
  90. }
  91. }
  92. .headings_main {
  93. display: flex;
  94. align-items: center;
  95. padding-top: 28px;
  96. .return {
  97. width: 16px;
  98. height: 26px;
  99. background: url("../../../assets/images/sunVillage/headings_return.png")
  100. center center no-repeat;
  101. background-size: 100% 100%;
  102. margin-right: 16px;
  103. margin-left: 8px;
  104. }
  105. .title {
  106. font-size: 32px;
  107. }
  108. }
  109. </style>