search.vue 705 B

12345678910111213141516171819202122232425262728293031323334
  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. // // 测试数据
  10. // uni.switchTab({
  11. // url: '/pages/index/position'
  12. // })
  13. // 设置自定义tabbar选中值
  14. onShow(() => {
  15. const currentPage = getCurrentPages()[0]; // 获取当前页面实例
  16. const currentTabBar = currentPage?.getTabBar?.();
  17. // 设置当前tab页的下标index
  18. currentTabBar?.setData({ selected: 0 });
  19. })
  20. const handleTo = () => {
  21. uni.navigateTo({
  22. url: '/pagesB/personnelDetails/index?id=1'
  23. })
  24. }
  25. </script>
  26. <style scoped lang="scss">
  27. </style>