my.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. </view>
  22. </template>
  23. <script setup>
  24. const grid = [
  25. { title: '全部', icon: 'list' },
  26. { title: '被查看', icon: 'eye-filled' },
  27. { title: '面试邀约', icon: 'auth-filled' },
  28. { title: '不合适', icon: 'closeempty' }
  29. ]
  30. const list = [
  31. { title:'我的简历', path:'' },
  32. { title:'职位订阅', path:'' },
  33. { title:'意见反馈', path:'' },
  34. { title:'切换为招聘者', path:'', rightTex: '我要招人' }
  35. ]
  36. const handleLogin = () => {
  37. uni.navigateTo({
  38. url: '/pages/login/index'
  39. })
  40. }
  41. </script>
  42. <style scoped lang="scss">
  43. .img-box {
  44. width: 150rpx;
  45. height: 150rpx;
  46. border: 2rpx solid #ccc;
  47. border-radius: 50%;
  48. }
  49. ::v-deep .uni-list-item{
  50. height: 140rpx !important;
  51. line-height: 140rpx !important;
  52. }
  53. ::v-deep .uni-list-item__content-title{
  54. font-size: 32rpx !important;
  55. font-weight: 500;
  56. }
  57. </style>