IntroductionMemberProfile.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <div>
  3. <div class="autoBox box">
  4. <div class="crumbs">
  5. <div style="height: 30px;padding-top: 15px;">
  6. <el-breadcrumb separator="/" style="float: left;margin: 0 15px ">
  7. <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
  8. <el-breadcrumb-item >{{$t('common.CooperationNetwork')}}</el-breadcrumb-item>
  9. <el-breadcrumb-item >{{$t(Screens)}}</el-breadcrumb-item>
  10. </el-breadcrumb>
  11. <el-breadcrumb separator="/" style="float: right;margin:0px 15px 0 0">
  12. <span class="cursor" :class="screenIndex==item.value?'screen1':'screen2'"
  13. @click="realTimeInfoScreen(item,item.value)" v-for="(item,index) in realTimeInfoScreens">
  14. &nbsp;&nbsp;{{$t(item.lable)}} &nbsp;&nbsp;
  15. </span>
  16. </el-breadcrumb>
  17. </div>
  18. <!-- 会员介绍 -->
  19. <!-- 联盟介绍 -->
  20. <!-- <el-breadcrumb separator="/" style="float: right;margin:0px 15px 0 0" v-if="screenIndex=='union'">
  21. <span class="cursor" :class="screenIndex==index?'screen1':'screen2'" @click="realTimeInfoScreen(item,item.value)" v-for="(item,index) in realTimeInfoScreens2">
  22. &nbsp;&nbsp;{{$t(item.lable)}} &nbsp;&nbsp; <span v-if="(index+1)!==realTimeInfoScreens.length">/</span>
  23. </span>
  24. </el-breadcrumb> -->
  25. <!-- 合作单位介绍 -->
  26. <!-- <el-breadcrumb separator="/" style="float: right;margin:0px 15px 0 0" v-if="screenIndex=='cooperation'">
  27. <span class="cursor" :class="screenIndex==index?'screen1':'screen2'" @click="realTimeInfoScreen(item,item.value)" v-for="(item,index) in realTimeInfoScreens3">
  28. &nbsp;&nbsp;{{$t(item.lable)}} &nbsp;&nbsp; <span v-if="(index+1)!==realTimeInfoScreens.length">/</span>
  29. </span>
  30. </el-breadcrumb> -->
  31. <!-- 定制服务 -->
  32. <!-- <el-breadcrumb separator="/" style="float: right;margin:0px 15px 0 0" v-if="screenIndex=='custom'">
  33. <span class="cursor" :class="screenIndex==index?'screen1':'screen2'" @click="realTimeInfoScreen(item,item.value)" v-for="(item,index) in realTimeInfoScreens4">
  34. &nbsp;&nbsp;{{$t(item.lable)}} &nbsp;&nbsp; <span v-if="(index+1)!==realTimeInfoScreens.length">/</span>
  35. </span>
  36. </el-breadcrumb> -->
  37. </div>
  38. <IntroductionMemberIntroduction v-if="screenIndex=='member'" style="background: #fff;"></IntroductionMemberIntroduction>
  39. <IntroductionAllianceOverview v-if="screenIndex=='union'" style="background: #fff;"></IntroductionAllianceOverview>
  40. <IntroductionCustomService v-if="screenIndex=='custom'" style="background: #fff;"></IntroductionCustomService>
  41. <IntroductionPartnerInformation v-if="screenIndex=='cooperation'" style="background: #fff;"></IntroductionPartnerInformation>
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. import IntroductionMemberIntroduction from './IntroductionMemberIntroduction'// 会员介绍
  47. import IntroductionAllianceOverview from './IntroductionAllianceOverview'// 联盟介绍
  48. import IntroductionCustomService from './IntroductionCustomService'// 定制服务
  49. import IntroductionPartnerInformation from './IntroductionPartnerInformation'// 合作单位介绍
  50. export default {
  51. name: 'IntroductionMemberProfile',
  52. components:{IntroductionMemberIntroduction,IntroductionAllianceOverview,IntroductionCustomService,IntroductionPartnerInformation},
  53. data () {
  54. return {
  55. screenIndex:'member',
  56. Screens:'common.MemberIntroduction',
  57. realTimeInfoScreens:[{
  58. lable:"common.MemberIntroduction",
  59. value:'member'
  60. },{
  61. lable:"common.AllianceIntroduction",
  62. value:'union'
  63. },{
  64. lable:"common.CooperativeUnitIntroduction",
  65. value:'cooperation'
  66. },{
  67. lable:"common.CustomizedService",
  68. value:'custom'
  69. }],
  70. realTimeInfoScreens2:[{
  71. lable:"common.MemberIntroduction",
  72. value:'member'
  73. },{
  74. lable:"common.CooperativeUnitIntroduction",
  75. value:'cooperation'
  76. },{
  77. lable:"common.CustomizedService",
  78. value:'custom'
  79. }],
  80. realTimeInfoScreens3:[{
  81. lable:"common.MemberIntroduction",
  82. value:'member'
  83. },{
  84. lable:"common.AllianceIntroduction",
  85. value:'union'
  86. },{
  87. lable:"common.CustomizedService",
  88. value:'custom'
  89. }],
  90. realTimeInfoScreens4:[{
  91. lable:"common.MemberIntroduction",
  92. value:'member'
  93. },{
  94. lable:"common.AllianceIntroduction",
  95. value:'union'
  96. },{
  97. lable:"common.CooperativeUnitIntroduction",
  98. value:'cooperation'
  99. }],
  100. }
  101. },
  102. created(){
  103. if(this.$route.query.key){
  104. this.screenIndex=this.$route.query.key;
  105. if(this.screenIndex=='member'){
  106. return this.Screens='common.MemberIntroduction'
  107. }else if(this.screenIndex=='union'){
  108. return this.Screens='common.AllianceIntroduction'
  109. }else if(this.screenIndex=='cooperation'){
  110. return this.Screens='common.CooperativeUnitIntroduction'
  111. }else if(this.screenIndex=='custom'){
  112. return this.Screens='common.CustomizedService'
  113. }
  114. }
  115. },
  116. mounted(){
  117. },
  118. methods:{
  119. getIconUrl(url){
  120. return require("@/assets/img/introductionCooperation/"+url);
  121. },
  122. getIconUrl2(url){
  123. return require("@/assets/img/introductionCooperation/industry/"+url);
  124. },
  125. toView(router,json){
  126. this.$router.push({name:router,params:json})
  127. },
  128. screenBack(data){
  129. console.log(data,'screenBackscreenBackscreenBackscreenBack')
  130. },
  131. realTimeInfoScreen(i,index){
  132. this.screenIndex=index
  133. this.Screens=i.lable
  134. },
  135. screen(i){
  136. this.index=i
  137. }
  138. }
  139. }
  140. </script>
  141. <!-- Add "scoped" attribute to limit CSS to this component only -->
  142. <style scoped>
  143. .box {
  144. margin-top: 10px;
  145. /* background: #fff; */
  146. /* height: 500px; */
  147. padding-bottom: 10px;
  148. }
  149. .crumbs {
  150. /* margin-left: 20px; */
  151. background: #fff;
  152. }
  153. body {
  154. margin: 0;
  155. }
  156. .screen1 {
  157. background: linear-gradient(180deg, #3280E2 0%, #144E97 100%);
  158. border-radius: 20px 20px 20px 20px;
  159. padding: 8px 12px;
  160. color: #F0F3F8;
  161. margin-left: 10px;
  162. }
  163. .screen2 {
  164. font-size: 14px;
  165. background: linear-gradient(180deg, #B4D5FF 0%, #4F81BF 100%);
  166. border-radius: 20px;
  167. padding: 8px 12px;
  168. color: #165099;
  169. margin-left: 10px;
  170. }
  171. </style>