position.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="box defaultBgc">
  3. <uni-segmented-control :current="current" :values="controlList" @clickItem="handleChange" styleType="text" activeColor="#00897B" style="background-color: #fff"></uni-segmented-control>
  4. <scroll-view class="scrollBox" scroll-y="true" @scrolltolower="loadingMore">
  5. <view v-if="position.length"></view>
  6. <view v-else class="text-center">
  7. <view class="nodata-img-parent">
  8. <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
  9. </view>
  10. <view class="color-999">暂无职位</view>
  11. </view>
  12. <uni-fab ref="fab" :pattern="{ iconColor: '#fff', buttonColor : '#00897B' }" :popMenu="false" vertical="bottom" horizontal="right" @fabClick="fabClick" />
  13. </scroll-view>
  14. </view>
  15. </template>
  16. <script setup>
  17. import { ref } from 'vue'
  18. const current = ref(0)
  19. const controlList = ['招聘中', '已关闭']
  20. const position = ref([])
  21. const fab = ref()
  22. const handleChange = (e) => {
  23. current.value = e.currentIndex
  24. }
  25. const loadingMore = () => {}
  26. // 发布职位
  27. const fabClick = () => {
  28. }
  29. </script>
  30. <style scoped lang="scss">
  31. .box {
  32. height: 100vh;
  33. overflow: hidden;
  34. padding-bottom: 120rpx;
  35. box-sizing: border-box;
  36. display: flex;
  37. flex-direction: column;
  38. }
  39. </style>