index.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <div class='m-container'>
  3. <div class="line"></div>
  4. <h2>
  5. <div class='squrt'></div> 建团申请
  6. </h2>
  7. <div class="m-core">
  8. <div class="stepbox">
  9. <span class='stepspan stepspan1'
  10. @click="activeIndex=0">
  11. <div class="step1 sptep"
  12. :class="activeIndex >= 0?'activestep':''">
  13. 基本信息
  14. </div>
  15. <img :src="activeIndex >= 0?stepImgs.nol:stepImgs.active"
  16. alt=""
  17. class="arrow">
  18. </span>
  19. <span class='stepspan stepspan2'
  20. @click="activeIndex=1">
  21. <div class="step2 sptep"
  22. :class="activeIndex >= 1?'activestep':''">
  23. 声部费用
  24. </div>
  25. <img :src="activeIndex >= 1?stepImgs.nol:stepImgs.active"
  26. alt=""
  27. class="
  28. arrow">
  29. </span>
  30. </div>
  31. <!-- 下面显示的内容 -->
  32. <div class="stepcontent">
  33. <div v-show='activeIndex==0'>
  34. <teamBaseInfo />
  35. </div>
  36. <div v-show='activeIndex==1'>
  37. <teamSoundMoney />
  38. </div>
  39. </div>
  40. <!-- <el-tabs type="border-card"
  41. v-model="activeIndex">
  42. <el-tab-pane label="基本信息"
  43. name='1'>
  44. <teamBaseInfo />
  45. </el-tab-pane>
  46. <el-tab-pane label="声部费用"
  47. name='2'>
  48. <teamSoundMoney />
  49. </el-tab-pane>
  50. </el-tabs> -->
  51. </div>
  52. </div>
  53. </template>
  54. <script>
  55. import teamBaseInfo from '@/views/teamBuild/components/teamBaseInfo'
  56. import teamSoundMoney from '@/views/teamBuild/components/teamSoundMoney'
  57. export default {
  58. components: { teamBaseInfo, teamSoundMoney },
  59. name: 'teamBuild',
  60. data () {
  61. return {
  62. activeIndex: '1',
  63. stepImgs: {
  64. nol: require('@/assets/images/base/step-arrow-active.png'),
  65. active: require('@/assets/images/base/step-arrow.png')
  66. }
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scope>
  72. .stepbox {
  73. display: flex;
  74. flex-direction: row;
  75. justify-content: flex-start;
  76. .stepspan {
  77. cursor: pointer;
  78. font-size: 14px;
  79. display: block;
  80. line-height: 40px;
  81. position: relative;
  82. z-index: 100;
  83. display: flex;
  84. flex-direction: row;
  85. justify-content: space-between;
  86. .sptep {
  87. width: 110px;
  88. height: 40px;
  89. border: 1px solid #dcdfe6;
  90. border-right: none;
  91. border-bottom: none;
  92. padding-left: 25px;
  93. border-radius: 4px 0 0 0;
  94. }
  95. .arrow {
  96. height: 40px;
  97. width: 17px;
  98. position: relative;
  99. top: 1px;
  100. }
  101. }
  102. .stepspan.stepspan2 {
  103. position: relative;
  104. z-index: 10;
  105. left: -17px;
  106. padding-right: 33px;
  107. .sptep {
  108. padding-left: 30px !important;
  109. border-radius: 0 !important;
  110. }
  111. }
  112. .sptep.activestep {
  113. color: #fff;
  114. font-weight: bold;
  115. background-color: #4eada7;
  116. }
  117. }
  118. .stepcontent {
  119. border-top: 1px solid #dcdfe6;
  120. padding-top: 30px;
  121. }
  122. </style>