index.vue 3.1 KB

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