search.vue 619 B

1234567891011121314151617181920212223242526272829
  1. <template>
  2. <layout-page>
  3. <view @tap="handleTo">企业-找人</view>
  4. </layout-page>
  5. </template>
  6. <script setup>
  7. import layoutPage from '@/layout'
  8. import { onShow } from '@dcloudio/uni-app'
  9. // 设置自定义tabbar选中值
  10. onShow(() => {
  11. const currentPage = getCurrentPages()[0]; // 获取当前页面实例
  12. const currentTabBar = currentPage?.getTabBar?.();
  13. // 设置当前tab页的下标index
  14. currentTabBar?.setData({ selected: 0 });
  15. })
  16. const handleTo = () => {
  17. uni.navigateTo({
  18. url: '/pagesB/personnelDetails/index?id=1'
  19. })
  20. }
  21. </script>
  22. <style scoped lang="scss">
  23. </style>