江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
1.4 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="学员详情"></topNavbar>
  4. <view class="pad">
  5. <cardNav :navData="navData" :currentNav="currentNav" @changeNav="changeNav"></cardNav>
  6. </view>
  7. <scrollNav @changeTab="changeTab" :currentTab="currentTab" :tabData="tabData" />
  8. <view class="pad">
  9. <view class="con" v-if="currentNav==1">
  10. <list></list>
  11. </view>
  12. <view class="con" v-else>
  13. <info :id="studentId"/>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import list from './comp/list'
  20. import info from './comp/info'
  21. export default {
  22. components: {
  23. list,
  24. info
  25. },
  26. data() {
  27. return {
  28. currentTab: 1,
  29. currentNav: 1,
  30. tabData: [{
  31. text: '全部',
  32. id: 10
  33. },
  34. {
  35. text: '阶段一',
  36. id: 0
  37. },
  38. {
  39. text: '阶段二',
  40. id: 1
  41. },
  42. {
  43. text: '阶段三',
  44. id: 2
  45. },
  46. {
  47. text: '阶段四',
  48. id: 3
  49. },
  50. {
  51. text: '阶段五',
  52. id: 4
  53. },
  54. {
  55. text: '阶段六',
  56. id: 5
  57. },
  58. ],
  59. navData: [{
  60. text: '学车进展',
  61. id: 1
  62. },
  63. {
  64. text: '个人及报名信息',
  65. id: 2
  66. },
  67. ],
  68. studentId: ''
  69. }
  70. },
  71. onLoad(options) {
  72. this.studentId = options.id
  73. },
  74. methods: {
  75. changeTab(id) {
  76. this.currentTab = id
  77. },
  78. changeNav(id) {
  79. this.currentNav = id
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. </style>