移动端
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

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