yangan
2025-02-27 ea7457be6870e35cd385e163ca9bba26d7621d66
pages/tabbar-page/myPage-tabbar/myPage-tabbar.vue
@@ -10,7 +10,8 @@
         v-if="roleType == 5"></unload-mypage>
         <sampling-myPage ref="samplingRef"
         v-if="roleType == 6"></sampling-myPage>
      <tab-bar :current="(roleType==5 || roleType == 6 )?1:2"></tab-bar>
         <entranceGuardMypage ref='entranceGuardRef' v-if="roleType == 7"/>
      <tab-bar :current="(roleType==5 || roleType == 6 || roleType == 7)?1:2"></tab-bar>
   </view>
</template>
@@ -20,13 +21,15 @@
   import freightForwarderMyPage from '@/pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue';
   import UnloadMypage from '@/pages/loadUnload-page/my-page/my-page.vue';
   import samplingMyPage from '@/pages/sampling-page/sampling-my.vue';
   import entranceGuardMypage from '@/pages/entranceGuard/entranceGuard'
   export default {
      components: {
         customerMyPage,
         driverMyPage,
         freightForwarderMyPage,
         UnloadMypage,
         samplingMyPage
         samplingMyPage,
         entranceGuardMypage
      },
      onLoad() {
         this.init();
@@ -87,7 +90,10 @@
                     this.$nextTick(()=>{
                        this.$refs.samplingRef.init();
                     })
                     case 7:
                     this.$nextTick(()=>{
                        this.$refs.entranceGuardRef.init();
                     })
                  break;
               default:
                  break;