home.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <view class="home-page">
  3. <view class="content-info">
  4. <view class="top-box">
  5. <image class="bgpic" src="/static/images/个人中心背景.png"></image>
  6. </view>
  7. <view class="avatar-box">
  8. <image class="avatar" src="/static/images/小哥哥.png"></image>
  9. </view>
  10. <view class="info-box">
  11. <text class="">
  12. 毛之易
  13. </text>
  14. </view>
  15. <view class="function-box">
  16. <view class="role-switch">
  17. <text class="func-text">角色切换</text>
  18. <image class="msgbubble" src="/static/images/消息气泡.png"></image>
  19. <image class="icon-more" src="/static/images/icon更多.png"></image>
  20. <text class="role">管理员</text>
  21. </view>
  22. <view class="sys-setting">
  23. <text class="func-text">系统设置</text>
  24. <image class="icon-more" src="/static/images/icon更多.png"></image>
  25. </view>
  26. </view>
  27. <view class="bg-box">
  28. <view class="logout-box">
  29. <text class=""></text>
  30. </view>
  31. </view>
  32. </view>
  33. <tm-tabbar :permission="1" />
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. nowPermission:'',//用户当前第一权限
  41. }
  42. },
  43. methods: {
  44. }
  45. }
  46. </script>
  47. <style lang="less">
  48. .top-box{
  49. position: relative;
  50. height: 350rpx;
  51. }
  52. .bgpic{
  53. width: 750rpx;
  54. height: 350rpx;
  55. }
  56. .info-box{
  57. width: 700rpx;
  58. height: 250rpx;
  59. border-radius: 15rpx;
  60. background-color: #FFFFFF;
  61. position: absolute;
  62. left: 25rpx;
  63. right: 25rpx;
  64. top: 226.25rpx;
  65. box-shadow: 0px 10px 30px 0px rgba(0, 13, 51, 0.1);
  66. }
  67. .avatar-box{
  68. width: 125rpx;
  69. height: 125rpx;
  70. position: absolute;
  71. right: 75rpx;
  72. top: 187.5rpx;
  73. background: #FFFFFF;
  74. z-index: 2;
  75. border-radius:50%
  76. }
  77. .avatar{
  78. width: 112.5rpx;
  79. height: 112.5rpx;
  80. margin-left: 6.25rpx;
  81. margin-top: 6.25rpx;
  82. border-radius:50%
  83. }
  84. .function-box{
  85. position: absolute;
  86. top: 496.25rpx;
  87. width: 750rpx;
  88. }
  89. .role-switch{
  90. height: 100rpx;
  91. width: 725rpx;
  92. margin-left: 25rpx;
  93. background: #FFFFFF;
  94. border-bottom: 0.62rpx solid #DADEE6;
  95. }
  96. .sys-setting{
  97. height: 100rpx;
  98. width: 725rpx;
  99. margin-left: 25rpx;
  100. background: #FFFFFF;
  101. }
  102. .func-text{
  103. font-size: 22.5rpx;
  104. font-family: SourceHanSansCN-Medium, SourceHanSansCN;
  105. font-weight: 500;
  106. color: #292C33;
  107. line-height: 100rpx;
  108. float: left;
  109. }
  110. .icon-more{
  111. width: 12.37rpx;
  112. height: 21.21rpx;
  113. line-height: 100rpx;
  114. float: right;
  115. margin-top: 39.37rpx;
  116. margin-right: 25rpx;
  117. }
  118. .msgbubble{
  119. width: 50rpx;
  120. height: 30rpx;
  121. background: #FF4060;
  122. border-radius: 24px;
  123. float: left;
  124. margin-top: 35rpx;
  125. margin-left: 15rpx;
  126. }
  127. .bg-box{
  128. width: 750rpx;
  129. height: 416.25rpx;
  130. position: absolute;
  131. bottom: 87.5rpx;
  132. background-color: #F5F6FA;
  133. z-index: -1;
  134. }
  135. .role{
  136. font-size: 22.5rpx;
  137. font-family: SourceHanSansCN-Normal, SourceHanSansCN;
  138. font-weight: 400;
  139. color: #7A8599;
  140. line-height: 100rpx;
  141. float: right;
  142. margin-right: 25rpx;
  143. }
  144. </style>