jiazhengUserManager.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="admin-jiazheng-page">
  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" field="name" class="admin-tab-box"></v-tabs>
  8. <gerenZiliao ref="gerenZiliao" @goNext="gerenziliaoNext" v-show="current ==0"></gerenZiliao>
  9. <qiuzhiXinxi ref="qiuzhiXinxi" @goUp="goUpQiuzhixinxi" @goNext="goNextQiuzhixinxi" v-show="current ==1"></qiuzhiXinxi>
  10. <zhaopianZiliao ref="zhaopianZiliao" @goUp="goUpZhaopianZiliao" @goNext="goNextZhaopianZiliao" v-show="current ==2"></zhaopianZiliao>
  11. <banzhengXinxi ref="banzhengXinxi" v-show="current ==3"></banzhengXinxi>
  12. </view>
  13. </template>
  14. <script>
  15. import {
  16. ref
  17. } from "vue";
  18. import banzhengXinxi from './banzhengXinxi.vue';
  19. import qiuzhiXinxi from './qiuzhiXinxi.vue';
  20. import zhaopianZiliao from './zhaopianZiliao.vue';
  21. import gerenZiliao from './gerenZiliao.vue';
  22. export default {
  23. data() {
  24. return {
  25. current:3,
  26. // tabs: ['个人资料', '求职信息', '照片资料', '办证信息']
  27. tabs: [
  28. { id: 1, name: '个人资料', disabled: false },
  29. { id: 2, name: '求职信息', disabled: true },
  30. { id: 3, name: '照片资料', disabled: true },
  31. { id: 4, name: '办证信息', disabled: true },
  32. ],
  33. }
  34. },
  35. components: {
  36. banzhengXinxi,
  37. qiuzhiXinxi,
  38. gerenZiliao,
  39. zhaopianZiliao,
  40. },
  41. methods: {
  42. changeTab(data) {
  43. console.log('data',data);
  44. },
  45. goUpPage() {
  46. uni.redirectTo({
  47. url: `/pages/admin/Jiazheng/jiazhengUserInfo`
  48. })
  49. },
  50. gerenziliaoNext(data,num) {
  51. console.log('data',data);
  52. console.log('num',num);
  53. this.current = num + 1
  54. this.tabs[this.current].disabled = false
  55. },
  56. goUpQiuzhixinxi(data,num){
  57. this.current = num - 1
  58. },
  59. goNextQiuzhixinxi(data,num){
  60. this.current = num + 1
  61. this.tabs[this.current].disabled = false
  62. },
  63. goUpZhaopianZiliao(data,num){
  64. this.current = num - 1
  65. },
  66. goNextZhaopianZiliao(data,num){
  67. this.current = num + 1
  68. this.tabs[this.current].disabled = false
  69. },
  70. }
  71. }
  72. </script>