index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <template>
  2. <div class='m-container'>
  3. <div class="line"></div>
  4. <h2>
  5. <!-- <div class='squrt'></div> {{ pageName }} -->
  6. <el-page-header @back="goBack"
  7. :content="pageName">
  8. </el-page-header>
  9. </h2>
  10. <div class="m-core">
  11. <div class="stepbox">
  12. <span class='stepspan stepspan1'
  13. @click="activeIndex=0">
  14. <div class="step1 sptep"
  15. :class="activeIndex >= 0?'activestep':''">
  16. 基本信息
  17. </div>
  18. <img :src="activeIndex >= 0?stepImgs.nol:stepImgs.active"
  19. alt=""
  20. class="arrow">
  21. </span>
  22. <span class='stepspan stepspan2'
  23. v-if="activeIndex==1"
  24. @click="activeIndex=1">
  25. <!-- -->
  26. <div class="step2 sptep"
  27. :class="activeIndex == 1?'activestep':''">
  28. 声部费用
  29. </div>
  30. <img :src="activeIndex == 1?stepImgs.nol:stepImgs.active"
  31. alt=""
  32. class="
  33. arrow">
  34. </span>
  35. <!-- <span class='stepspan stepspan2'
  36. v-if="activeIndex==2"
  37. @click="activeIndex==2">
  38. <div class="step2 sptep"
  39. :class="activeIndex == 2?'activestep':''">
  40. 声部费用
  41. </div>
  42. <img :src="activeIndex == 2?stepImgs.nol:stepImgs.active"
  43. alt=""
  44. class="
  45. arrow">
  46. </span> -->
  47. </div>
  48. <!-- 下面显示的内容 -->
  49. <div class="stepcontent">
  50. <div v-show='activeIndex==0'>
  51. <teamBaseInfo @chiosetab='chiosetab'
  52. :getTeamList='getTeamList' />
  53. </div>
  54. <div v-if='activeIndex==1'>
  55. <teamSoundMoney @chiosetab='chiosetab'
  56. :getTeamList='getTeamList' />
  57. </div>
  58. <!-- <div v-if='activeIndex==2'>
  59. <teamResetSound @chiosetab='chiosetab'
  60. :getTeamList='getTeamList' />
  61. </div> -->
  62. </div>
  63. </div>
  64. </div>
  65. </template>
  66. <script>
  67. import teamBaseInfo from '@/views/teamBuild/components/teamBaseInfo'
  68. import teamSoundMoney from '@/views/teamBuild/components/teamSoundMoney'
  69. import teamResetSound from '@/views/teamBuild/components/teamResetSound'
  70. export default {
  71. components: { teamBaseInfo, teamSoundMoney, teamResetSound },
  72. name: 'teamBuild',
  73. data () {
  74. return {
  75. activeIndex: 0,
  76. stepImgs: {
  77. nol: require('@/assets/images/base/step-arrow-active.png'),
  78. active: require('@/assets/images/base/step-arrow.png')
  79. },
  80. pageName: '建团申请',
  81. getTeamList: [],
  82. teamStatus: '',
  83. Fsearch: null,
  84. Frules: null
  85. }
  86. },
  87. created () {
  88. // 判断 是新建乐团还是修改乐团
  89. this.teamStatus = this.$route.query.type;
  90. if (this.$route.query.teamList) {
  91. this.getTeamList = this.$route.query.teamList
  92. }
  93. // 判断是否带缓存参数
  94. if (this.$route.query.search) {
  95. this.Fsearch = this.$route.query.search;
  96. }
  97. if (this.$route.query.rules) {
  98. this.Frules = this.$route.query.rules
  99. }
  100. if (this.teamStatus == 'newTeam') {
  101. // 新建团
  102. this.pageName = '建团申请'
  103. } else {
  104. this.pageName = '乐团修改'
  105. }
  106. },
  107. methods: {
  108. chiosetab (val) {
  109. this.activeIndex = val;
  110. },
  111. goBack () {
  112. // this.$rout
  113. }
  114. },
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .stepbox {
  119. display: flex;
  120. flex-direction: row;
  121. justify-content: flex-start;
  122. .stepspan {
  123. cursor: pointer;
  124. font-size: 14px;
  125. display: block;
  126. line-height: 40px;
  127. position: relative;
  128. z-index: 100;
  129. display: flex;
  130. flex-direction: row;
  131. justify-content: space-between;
  132. .sptep {
  133. width: 110px;
  134. height: 40px;
  135. border: 1px solid #dcdfe6;
  136. border-right: none;
  137. border-bottom: none;
  138. padding-left: 25px;
  139. border-radius: 4px 0 0 0;
  140. }
  141. .arrow {
  142. height: 40px;
  143. width: 17px;
  144. position: relative;
  145. top: 1px;
  146. }
  147. }
  148. .stepspan.stepspan2 {
  149. position: relative;
  150. z-index: 10;
  151. left: -17px;
  152. padding-right: 33px;
  153. .sptep {
  154. padding-left: 30px !important;
  155. border-radius: 0 !important;
  156. }
  157. }
  158. .sptep.activestep {
  159. color: #fff;
  160. font-weight: bold;
  161. background-color: #4eada7;
  162. }
  163. }
  164. .stepcontent {
  165. border-top: 1px solid #dcdfe6;
  166. padding-top: 30px;
  167. }
  168. </style>