jiazhengUserManager.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <view class="jiazheng-uni-list">
  3. <v-tabs v-model="current" :tabs="tabs" :scroll="false" @change="changeTab"></v-tabs>
  4. <view v-show="current ==0">
  5. <gerenZiliao></gerenZiliao>
  6. </view>
  7. <view v-show="current ==1">
  8. <qiuzhiXinxi></qiuzhiXinxi>
  9. </view>
  10. <view v-show="current ==2">
  11. <zhaopianZiliao></zhaopianZiliao>
  12. </view>
  13. <view v-show="current ==3">
  14. <banzhengXinxi></banzhengXinxi>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import {
  20. ref
  21. } from "vue";
  22. import banzhengXinxi from './banzhengXinxi.vue';
  23. import qiuzhiXinxi from './qiuzhiXinxi.vue';
  24. import zhaopianZiliao from './zhaopianZiliao.vue';
  25. import gerenZiliao from './gerenZiliao.vue';
  26. export default {
  27. data() {
  28. return {
  29. current: 0,
  30. tabs: ['个人资料', '求职信息', '照片资料', '办证信息']
  31. }
  32. },
  33. components: {
  34. banzhengXinxi,
  35. qiuzhiXinxi,
  36. gerenZiliao,
  37. zhaopianZiliao,
  38. },
  39. methods: {
  40. changeTab(index) {
  41. console.log('当前选中的项:' + index)
  42. }
  43. }
  44. }
  45. </script>
  46. <style>
  47. .jiazheng-uni-list {
  48. display: flex;
  49. width: 100%;
  50. flex-direction: column;
  51. }
  52. .jiazheng-uni-list-left {
  53. position: relative;
  54. display: flex;
  55. flex-direction: row;
  56. justify-content: space-between;
  57. align-items: center;
  58. }
  59. </style>