【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.

147 lines
3.6 KiB

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