综合办公系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

studyHead.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!--
  2. * @Author: ysh
  3. * @Date: 2025-03-05 14:19:02
  4. * @LastEditors: Please set LastEditors
  5. * @LastEditTime: 2025-03-06 14:26:32
  6. -->
  7. <template>
  8. <div class="head-bg">
  9. <div class="user-info">
  10. <div class="user-pic" data-is-fans="0" data-is-follows="">
  11. <div class="user-pic-bg">
  12. <img class="img" :src="$store.getters.avatar">
  13. </div>
  14. </div>
  15. <div class="user-name">
  16. {{ $store.getters.name }}
  17. </div>
  18. <div class="user-dept">
  19. {{ getDeptName($store.getters.deptId) }}
  20. </div>
  21. <div class="user-study">
  22. <div class="user-item">
  23. <div class="u-info-learn" style="cursor:pointer;">
  24. <em>{{ hours }}h</em>
  25. <span>2025学时</span>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. data() {
  35. return {
  36. hours: 0,
  37. }
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .head-bg {
  43. background: url('~@/assets/images/temp1.png') no-repeat center top #000;
  44. background-size: cover;
  45. height: 100px;
  46. .user-info {
  47. display: flex;
  48. position: relative;
  49. width: 1200px;
  50. margin: 0 auto;
  51. .user-pic {
  52. float: left;
  53. width: 148px;
  54. height: 148px;
  55. .user-pic-bg {
  56. border: 4px solid #fff;
  57. box-shadow: 0 4px 8px 0 rgba(7, 17, 27, .1);
  58. width: 120px;
  59. height: 120px;
  60. position: relative;
  61. border-radius: 50%;
  62. background: #fff;
  63. top: 24px;
  64. img {
  65. text-align: center;
  66. width: 115px;
  67. height: 115px;
  68. border-radius: 50%;
  69. }
  70. }
  71. }
  72. .user-name {
  73. font-weight: 600;
  74. text-align: left;
  75. font-size: 24px;
  76. color: #fff;
  77. line-height: 28px;
  78. margin-top: 48px;
  79. }
  80. .user-dept {
  81. font-weight: 600;
  82. text-align: left;
  83. font-size: 16px;
  84. color: #ebe7e7;
  85. font-family: 'puhuiti';
  86. line-height: 28px;
  87. margin-top: 52px;
  88. margin-left:20px;
  89. }
  90. .user-study {
  91. position: absolute;
  92. top: 31px;
  93. right: 185px;
  94. min-width: 200px;
  95. text-align: right;
  96. .user-item {
  97. line-height: 48px;
  98. vertical-align: middle;
  99. height: 48px;
  100. float: left;
  101. em {
  102. display: block;
  103. text-align: center;
  104. font-weight: 700;
  105. font-size: 24px;
  106. color: rgba(255, 255, 255, .8);
  107. line-height: 28px;
  108. }
  109. span {
  110. display: block;
  111. text-align: center;
  112. font-size: 14px;
  113. color: rgba(255, 255, 255, .8);
  114. line-height: 20px;
  115. margin-top: 4px;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. </style>