jiazhengUserManager.vue 1.5 KB

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