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

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