index.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <div class="m-container">
  3. <div class="line"></div>
  4. <h2>
  5. <el-page-header @back="goBack"
  6. :content="pageName"> </el-page-header>
  7. </h2>
  8. <div class="m-core">
  9. <div class="stepbox">
  10. <!-- @click="activeIndex = 0" -->
  11. <span class="stepspan stepspan1">
  12. <div class="step1 sptep"
  13. :class="activeIndex >= 0 ? 'activestep' : ''">
  14. 基本信息
  15. </div>
  16. <img :src="activeIndex >= 0 ? stepImgs.nol : stepImgs.active"
  17. alt=""
  18. class="arrow" />
  19. </span>
  20. <!-- @click="activeIndex = 1" -->
  21. <span class="stepspan stepspan2"
  22. v-if="showFlag?activeIndex>= 1:true">
  23. <!-- -->
  24. <div class="step2 sptep"
  25. :class="activeIndex >= 1 ? 'activestep' : ''">
  26. 声部设置
  27. </div>
  28. <img :src="activeIndex >= 1 ? stepImgs.nol : stepImgs.active"
  29. alt=""
  30. class="arrow" />
  31. </span>
  32. <!-- @click="activeIndex = 2" -->
  33. <!-- <span class="stepspan stepspan3"
  34. v-if="showFlag?activeIndex >= 2:true">
  35. <div class="step2 sptep"
  36. :class="activeIndex >= 2 ? 'activestep' : ''">
  37. 创建缴费
  38. </div>
  39. <img :src="activeIndex >= 2 ? stepImgs.nol : stepImgs.active"
  40. alt=""
  41. class="arrow" />
  42. </span> -->
  43. </div>
  44. <!-- 下面显示的内容 -->
  45. <div class="stepcontent">
  46. <div v-show="activeIndex == 0">
  47. <teamBaseInfo @chiosetab="chiosetab"
  48. ref='teamBaseInfo'
  49. :getTeamList="getTeamList"
  50. @getBaseInfo="getBaseInfo" />
  51. </div>
  52. <div v-if="activeIndex == 1">
  53. <teamSoundMoney @chiosetab="chiosetab"
  54. :getTeamList="getTeamList"
  55. @getBaseInfo="getBaseInfo" />
  56. </div>
  57. <!-- <div v-if="activeIndex == 2">
  58. <teamPayInfo @chiosetab="chiosetab"
  59. :getTeamList="getTeamList"
  60. :baseInfo="baseInfo" />
  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/teamSoundSet";
  69. import teamPayInfo from "@/views/teamBuild/components/teamPayInfo";
  70. export default {
  71. components: { teamBaseInfo, teamSoundMoney, teamPayInfo },
  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. };
  84. },
  85. created () {
  86. // 判断 是新建乐团还是修改乐团
  87. this.activeIndex = 0;
  88. this.init();
  89. },
  90. activated () {
  91. this.init();
  92. },
  93. methods: {
  94. init () {
  95. this.teamStatus = this.$route.query.type;
  96. if (this.$route.query.teamList) {
  97. this.getTeamList = this.$route.query.teamList;
  98. }
  99. if (this.teamStatus == "newTeam") {
  100. // 新建团
  101. this.pageName = "建团申请";
  102. this.activeIndex = 0;
  103. } else {
  104. this.pageName = "乐团修改";
  105. this.activeIndex = 0;
  106. }
  107. },
  108. chiosetab (val) {
  109. this.activeIndex = val;
  110. if (val == 0 && this.teamStatus != "newTeam" || val == 0 && this.teamStatus != "feeAudit") {
  111. this.$refs.teamBaseInfo.init()
  112. }
  113. },
  114. goBack () {
  115. this.$router.push({
  116. path: "/business/teamDetail",
  117. });
  118. },
  119. getBaseInfo (baseInfo) {
  120. this.baseInfo = baseInfo
  121. this.pageName = baseInfo.musicGroup?.name
  122. },
  123. },
  124. computed: {
  125. showFlag () {
  126. return (this.teamStatus == 'newTeam' || this.teamStatus == 'teamList')
  127. }
  128. }
  129. };
  130. </script>
  131. <style lang="scss" scoped>
  132. .stepbox {
  133. display: flex;
  134. flex-direction: row;
  135. justify-content: flex-start;
  136. .stepspan {
  137. font-size: 14px;
  138. display: block;
  139. line-height: 40px;
  140. position: relative;
  141. z-index: 100;
  142. display: flex;
  143. flex-direction: row;
  144. justify-content: space-between;
  145. .sptep {
  146. width: 110px;
  147. height: 40px;
  148. border: 1px solid #dcdfe6;
  149. border-right: none;
  150. border-bottom: none;
  151. padding-left: 25px;
  152. border-radius: 4px 0 0 0;
  153. }
  154. .arrow {
  155. height: 40px;
  156. width: 17px;
  157. position: relative;
  158. top: 1px;
  159. z-index: 40;
  160. }
  161. }
  162. .stepspan.stepspan2 {
  163. position: relative;
  164. z-index: 20;
  165. left: -17px;
  166. .sptep {
  167. padding-left: 30px !important;
  168. border-radius: 0 !important;
  169. }
  170. }
  171. .stepspan.stepspan3 {
  172. position: relative;
  173. z-index: 10;
  174. left: -34px;
  175. background-color: #fff;
  176. .sptep {
  177. padding-left: 30px !important;
  178. border-radius: 0 !important;
  179. }
  180. }
  181. .sptep.activestep {
  182. color: #fff;
  183. font-weight: bold;
  184. background-color: #4eada7;
  185. }
  186. }
  187. .stepcontent {
  188. border-top: 1px solid #dcdfe6;
  189. padding-top: 30px;
  190. }
  191. </style>