【PT.SCC实名制管理系统】24.10.01 -30天,考勤打卡小程序
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.

146 lines
3.5 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. <template>
  2. <div class="center">
  3. <!-- 用户信息 -->
  4. <div class="user-info">
  5. <div class="user-box">
  6. <div class="user-img">
  7. <image :src="userInfo.headImage" mode="widthFix"></image>
  8. </div>
  9. <div class="base">
  10. <div class="user-name">{{ userInfo.nickName }}</div>
  11. <!-- <div class="user-project">高新区项目一队项目1</div> -->
  12. <view class="user-project"
  13. v-if="userInfo.team">{{ userInfo.team.name }}</view>
  14. </div>
  15. </div>
  16. <image class="user-bg" src="https://tennis-oss.xzaiyp.top/2024-10-22/b51d97b2-f2a1-4471-9b6d-7fbc2f3f774a.png" mode="widthFix"></image>
  17. </div>
  18. <!-- 菜单 -->
  19. <div class="menus">
  20. <uv-cell-group :border="false">
  21. <uv-cell @click="clickMenu(1)" title="打卡记录" isLink arrow-direction="right" center>
  22. <template v-slot:icon>
  23. <image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a57869c1-1451-47db-805d-8e29f5c37637.png" mode="widthFix"></image>
  24. </template>
  25. </uv-cell>
  26. <uv-cell @click="clickMenu(2)" icon="setting-fill" isLink arrow-direction="right" title="实名认证" center>
  27. <template v-slot:icon>
  28. <image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png" mode="widthFix"></image>
  29. </template>
  30. </uv-cell>
  31. <uv-cell @click="$store.commit('logout')" icon="setting-fill" isLink arrow-direction="right" title="退出登录" center>
  32. <template v-slot:icon>
  33. <image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/a7f27701-49fe-4a1f-8171-19efb1af1102.png" mode="widthFix"></image>
  34. </template>
  35. </uv-cell>
  36. <uv-cell @click="clickMenu" icon="integral-fill" title="版本" value="版本1.0" center>
  37. <template v-slot:icon>
  38. <image style="width: 30rpx;" src="https://tennis-oss.xzaiyp.top/2024-10-22/6878084d-4c1e-4577-8c8b-dd92aebbe2a2.png" mode="widthFix"></image>
  39. </template>
  40. </uv-cell>
  41. </uv-cell-group>
  42. </div>
  43. <tabbar :select="1"></tabbar>
  44. </div>
  45. </template>
  46. <script>
  47. import tabbar from '../../components/base/tabbar.vue'
  48. import { mapState } from 'vuex'
  49. export default {
  50. name: "Center",
  51. components: {
  52. tabbar
  53. },
  54. data() {
  55. return {
  56. }
  57. },
  58. onShow() {
  59. this.$store.commit('getUserInfo')
  60. },
  61. computed : {
  62. ...mapState(['teamList', 'userInfo']),
  63. },
  64. methods: {
  65. clickMenu(index){
  66. if(index == 1){
  67. uni.navigateTo({
  68. url: "/pages/subPack/record/record"
  69. })
  70. }else if(index == 2){
  71. uni.navigateTo({
  72. url: "/pages/subPack/autonym/autonym"
  73. })
  74. }
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .center {
  81. // 用户信息
  82. .user-info {
  83. display: flex;
  84. align-items: center;
  85. position: relative;
  86. height: 325rpx;
  87. overflow: hidden;
  88. padding-top: var(--status-bar-height);
  89. .user-box {
  90. display: flex;
  91. width: 90%;
  92. position: absolute;
  93. left: 50%;
  94. transform: translateX(-50%);
  95. z-index: 10;
  96. color: white;
  97. .user-img {
  98. width: 130rpx;
  99. height: 130rpx;
  100. overflow: hidden;
  101. image {
  102. width: 100%;
  103. }
  104. }
  105. .base {
  106. width: calc(100% - 150rpx);
  107. display: flex;
  108. flex-direction: column;
  109. justify-content: space-around;
  110. box-sizing: border-box;
  111. padding: 10rpx 0rpx 10rpx 10rpx;
  112. .user-name {
  113. font-size: 36rpx;
  114. }
  115. .user-project {
  116. font-size: 30rpx;
  117. }
  118. }
  119. }
  120. .user-bg {
  121. width: 750rpx;
  122. position: absolute;
  123. left: 0;
  124. top: 0;
  125. }
  126. }
  127. // 菜单
  128. .menus {
  129. width: 90%;
  130. margin: 0rpx auto;
  131. }
  132. }
  133. </style>