index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!-- 校验是否完善人才必填信息 -->
  2. <template>
  3. <view class="card">
  4. <uni-list>
  5. <uni-list-item
  6. v-for="item in list"
  7. :clickable="true"
  8. :key="item.title"
  9. :title="item.title"
  10. :showArrow="item.hideArrow ? false : item.rightTex === '未开放' ? false : true"
  11. :rightText="item.rightTex || ''"
  12. @click="handleToLink(item)"
  13. >
  14. </uni-list-item>
  15. </uni-list>
  16. </view>
  17. </template>
  18. <script setup>
  19. import { ref } from 'vue'
  20. const defaultList = [
  21. { title: '学生信息', path: '/pagesA/student/information' },
  22. { title: '实习企业', path: '/pagesA/student/internshipCompany', rightTex: '未开放' },
  23. { title: '实习报告', path: '/pagesA/student/internshipReport', rightTex: '未开放' },
  24. { title: '实习证书', path: '/pagesA/student/internshipCertificate', rightTex: '未开放' },
  25. { title: '企业推荐信', path: '/pagesA/student/enterpriseRecommendationLetter', rightTex: '未开放' },
  26. { title: '实习管家', path: '/pagesA/student/internshipButler' },
  27. ]
  28. const list = ref(defaultList.filter(e => !e.hide))
  29. const handleToLink = (item) => {
  30. if (item.rightTex === '未开放') return
  31. if (item.path) return uni.navigateTo({ url: item.path })
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. :deep(.uni-list-item) {
  36. height: 120rpx !important;
  37. line-height: 120rpx !important;
  38. }
  39. :deep(.uni-list-item__content-title) {
  40. font-size: 32rpx !important;
  41. font-weight: 500;
  42. }
  43. </style>