1234567891011121314151617181920212223242526 |
- <template>
- <view>
- <uni-segmented-control :current="current" :values="controlList" @clickItem="handleChange" styleType="text" activeColor="#00897B"></uni-segmented-control>
- <Position v-if="current === 0"></Position>
- <Company v-else></Company>
- </view>
- </template>
- <script setup>
- import { ref } from 'vue'
- import Position from './position.vue'
- import Company from './company.vue'
- const current = ref(0)
- const controlList = ['职位', '企业']
- const handleChange = (e) => {
- current.value = e.currentIndex
- }
- const loadingMore = () => {}
- </script>
- <style scoped lang="scss">
- </style>
|