index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <template>
  2. <view class="pb-120">
  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
  11. :rightText="item.rightTex || ''"
  12. @click="handleToLink(item)"
  13. >
  14. </uni-list-item>
  15. </uni-list>
  16. </view>
  17. </view>
  18. </template>
  19. <script setup>
  20. const list = [
  21. { title: '用户协议', path: '/pagesB/agreement/user' },
  22. { title: '隐私协议', path: '/pagesB/agreement/privacy' },
  23. { title: '版权政策', path: '/pagesB/agreement/CopyrightPolicy' },
  24. { title: '职场社区政策', path: '/pagesB/agreement/WorkplaceCommunityPolicy' },
  25. { title: '用户行为规范', path: '/pagesB/agreement/UserBehaviorNorms' },
  26. ]
  27. const handleToLink = (item) => {
  28. uni.navigateTo({
  29. url: item.path
  30. })
  31. }
  32. </script>
  33. <style scoped lang="scss">
  34. :deep(.uni-list-item) {
  35. height: 120rpx !important;
  36. line-height: 120rpx !important;
  37. }
  38. :deep(.uni-list-item__content-title) {
  39. font-size: 32rpx !important;
  40. font-weight: 500;
  41. }
  42. </style>