my.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view>
  3. <view class="text-center" @tap="handleLogin">
  4. <img src="https://minio.citupro.com/dev/menduner/7.png" alt="" class="img-box">
  5. <view class="font-weight-bold font-size-20">点击登录</view>
  6. </view>
  7. <view style="margin-top: 80rpx;">
  8. <uni-grid :column="4" :show-border="false">
  9. <uni-grid-item :index="0" v-for="(val, index) in grid" :key="index" class="text-center">
  10. <uni-icons :type="val.icon" size="40" color="#00897B"></uni-icons>
  11. <text class="font-size-13 color-999 mt-5">{{ val.title }}</text>
  12. </uni-grid-item>
  13. </uni-grid>
  14. </view>
  15. <view style="height: 10rpx; background-color: #f8f8fa;"></view>
  16. <view class="card">
  17. <uni-list>
  18. <uni-list-item v-for="item in list" :key="item.title" :title="item.title" link showArrow :rightText="item.rightTex || ''"></uni-list-item>
  19. </uni-list>
  20. </view>
  21. <AuthModal ref="authModal"></AuthModal>
  22. </view>
  23. </template>
  24. <script setup>
  25. import { ref } from 'vue'
  26. import AuthModal from '@/components/AuthModal'
  27. const authModal = ref()
  28. const grid = [
  29. { title: '全部', icon: 'list' },
  30. { title: '被查看', icon: 'eye-filled' },
  31. { title: '面试邀约', icon: 'auth-filled' },
  32. { title: '不合适', icon: 'closeempty' }
  33. ]
  34. const list = [
  35. { title:'我的简历', path:'' },
  36. { title:'职位订阅', path:'' },
  37. { title:'意见反馈', path:'' },
  38. { title:'切换为招聘者', path:'', rightTex: '我要招人' }
  39. ]
  40. const handleLogin = () => {
  41. authModal.value.open()
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. .img-box {
  46. width: 150rpx;
  47. height: 150rpx;
  48. border: 2rpx solid #ccc;
  49. border-radius: 50%;
  50. }
  51. ::v-deep .uni-list-item{
  52. height: 140rpx !important;
  53. line-height: 140rpx !important;
  54. }
  55. ::v-deep .uni-list-item__content-title{
  56. font-size: 32rpx !important;
  57. font-weight: 500;
  58. }
  59. </style>