my.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view>
  3. <u-navbar :is-back="false" title="我的" :background="background" title-color="#fff" :border-bottom="false">
  4. <view class="slot-wrap" v-if="false">
  5. <u-icon name="mb-cog" custom-prefix="custom-icon" size="44" color="#fff"></u-icon>
  6. </view>
  7. </u-navbar>
  8. <view class="user-head">
  9. <view class="user-head-img">
  10. <!-- <view class="head-state">已认证</view> -->
  11. <u-avatar :src="src" size="140"></u-avatar>
  12. </view>
  13. <view class="user-head-text">
  14. <h3 v-text="hr.realName"></h3>
  15. <p v-text="hr.companyName"></p>
  16. </view>
  17. </view>
  18. <view class="user-main">
  19. <view class="title">招聘统计</view>
  20. <view class="main">
  21. <view class="main-item" @click="gotoUrl('pages/hr/my/position/position')">
  22. <span>我的职位</span>
  23. <h3>{{info.jobCount?info.jobCount:0}}</h3>
  24. </view>
  25. <u-line color="#ccc" length="40" direction="col" margin="0 20rpx"/>
  26. <view class="main-item" @click="gotoUrl('pages/hr/my/look/look')">
  27. <span>看过的人才</span>
  28. <h3>{{info.browseResumeCount?info.browseResumeCount:0}}</h3>
  29. </view>
  30. <u-line color="#ccc" length="40" direction="col" margin="0 20rpx"/>
  31. <view class="main-item" @click="gotoUrl('pages/hr/my/follow/follow')">
  32. <span>对您感兴趣</span>
  33. <h3>{{info.interestTimes?info.interestTimes:0}}</h3>
  34. </view>
  35. </view>
  36. </view>
  37. <u-cell-group>
  38. <u-cell-item title="职位管理" @click="gotoUrl('pages/hr/my/position/position')" ></u-cell-item>
  39. <u-cell-item title="求职管理" @click="gotoUrl('pages/hr/my/enroll/enroll')"></u-cell-item>
  40. <u-cell-item title="收藏简历" @click="gotoUrl('pages/hr/my/collection/collection')"></u-cell-item>
  41. </u-cell-group>
  42. <u-cell-group class="u-m-t-20">
  43. <u-cell-item title="关于我们" ></u-cell-item>
  44. <u-cell-item title="联系客服" value="400-1231-122"></u-cell-item>
  45. </u-cell-group>
  46. <view class="signOut">
  47. 退出登录
  48. </view>
  49. <Tabbar-Hr :current="2" ></Tabbar-Hr>
  50. </view>
  51. </template>
  52. <script>
  53. import api from './index.js'
  54. export default api;
  55. </script>
  56. <style>
  57. page{
  58. background-color: #f7f7f7;
  59. }
  60. </style>
  61. <style scoped lang="scss">
  62. .slot-wrap{
  63. display: flex;
  64. justify-content: flex-end;
  65. flex: 1;
  66. padding-right: 24rpx;
  67. }
  68. .user-head{
  69. background: #2e99fa;
  70. height: 110px;
  71. display: flex;
  72. align-items: center;
  73. padding: 0 30rpx;
  74. position: relative;
  75. overflow: hidden;
  76. &::after{
  77. content: '';
  78. position: absolute;
  79. background:linear-gradient(70deg, #3298fb, #45a6fd);
  80. height:360rpx;
  81. width: 360rpx;
  82. border-radius: 50%;
  83. right: -60rpx;
  84. z-index:0;
  85. }
  86. .user-head-text{
  87. color:#fff;
  88. margin-left: 20rpx;
  89. position: relative;
  90. z-index: 1;
  91. h3{
  92. font-size: 40rpx;
  93. margin-bottom: 20rpx;
  94. }
  95. }
  96. .user-head-img{
  97. position: relative;
  98. .head-state{
  99. height:36rpx;
  100. width: 100rpx;
  101. background-color: #fff;
  102. border-radius: 8rpx;
  103. text-align: center;
  104. line-height: 36rpx;
  105. position: absolute;
  106. z-index: 99;
  107. bottom:0;
  108. left: 50%;
  109. margin-left: -50rpx;
  110. font-size: 24rpx;
  111. color:#1677FF;
  112. }
  113. }
  114. }
  115. .user-main{
  116. background-color: #fff;
  117. margin-top: 20rpx;
  118. margin-bottom: 20rpx;
  119. .title{
  120. margin:0 30rpx;
  121. border-bottom: 1px solid #f7f7f7;
  122. padding: 20rpx 0;
  123. font-size: 32rpx;
  124. }
  125. .main{
  126. display: flex;
  127. padding: 30rpx;
  128. justify-content: space-between;
  129. align-items: center;
  130. .main-item{
  131. display: flex;
  132. flex-direction: column;
  133. align-items: center;
  134. span{
  135. color:#999;
  136. font-size: 24rpx;
  137. }
  138. h3{
  139. margin-top: 10rpx;
  140. font-size: 40rpx;
  141. }
  142. }
  143. }
  144. }
  145. .signOut{
  146. height: 100rpx;
  147. line-height: 100rpx;
  148. text-align: center;
  149. background-color: #fff;
  150. margin-top: 20rpx;
  151. border-bottom: 1px solid #f3f4f7;
  152. border-top: 1px solid #f3f4f7;
  153. }
  154. </style>