my.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <bgImg />
  3. <view class="header">
  4. <view class="personal">
  5. <view class="picture">
  6. {{ userInfo?.realName }}
  7. </view>
  8. <view class="center">
  9. <view class="classname">{{ userInfo?.realName }}</view>
  10. <text class="text">岗位:{{ userInfo?.post }}</text>
  11. </view>
  12. <view style="margin-right: 18rpx;">
  13. <up-icon name="arrow-right" size="15"></up-icon>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="content">
  18. <view class="cell">
  19. <view class="box">
  20. <image class="img" src="@/static/我的客户.png" mode=""></image>
  21. <text>我的客户</text>
  22. </view>
  23. <view style="margin-right: 18rpx;">
  24. <up-icon name="arrow-right" size="15"></up-icon>
  25. </view>
  26. </view>
  27. <view class="cell">
  28. <view class="box">
  29. <image class="img" src="@/static/SVG/意见反馈.svg" mode=""></image>
  30. <text>问题&建议</text>
  31. </view>
  32. <view style="margin-right: 18rpx;">
  33. <up-icon name="arrow-right" size="15"></up-icon>
  34. </view>
  35. </view>
  36. <view class="cell">
  37. <view class="box">
  38. <image class="img" src="@/static/SVG/设置.svg" mode=""></image>
  39. <text>设置</text>
  40. </view>
  41. <view style="margin-right: 18rpx;">
  42. <up-icon name="arrow-right" size="15"></up-icon>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script setup>
  48. import {
  49. ref,
  50. getCurrentInstance,
  51. reactive
  52. } from 'vue';
  53. import {
  54. onReady,
  55. onShow
  56. } from '@dcloudio/uni-app'
  57. const customStyle = reactive({
  58. padding: '10rpx 0',
  59. borderBottom: "2rpx solid #ecedef"
  60. })
  61. const userInfo = reactive(uni.getStorageSync('userInfo'))
  62. </script>
  63. <style lang="scss" scoped>
  64. .header {
  65. width: 100%;
  66. .personal {
  67. height: 140rpx;
  68. width: 92%;
  69. margin: auto;
  70. // background-color: red;
  71. display: flex;
  72. align-items: center;
  73. justify-content: space-between;
  74. // position: absolute;
  75. // z-index: 1;
  76. .picture {
  77. width: 120rpx;
  78. height: 120rpx;
  79. border-radius: 60rpx;
  80. background-color: #038CFF;
  81. color: white;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. }
  86. .center {
  87. width: 70%;
  88. height: 70%;
  89. // background-color: green;
  90. display: flex;
  91. flex-wrap: wrap;
  92. // align-items: center;
  93. .classname {
  94. width: 100%;
  95. font-size: 32rpx;
  96. font-weight: bold;
  97. }
  98. .text {
  99. color: #98A4B2;
  100. font-size: 24rpx;
  101. }
  102. }
  103. }
  104. }
  105. .content {
  106. width: 95%;
  107. margin: 20rpx auto;
  108. font-weight: bold;
  109. .cell {
  110. height: 120rpx;
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. width: 95%;
  115. margin: 0 auto;
  116. border-bottom: 2rpx solid #ecedef;
  117. }
  118. .box {
  119. display: flex;
  120. align-items: center;
  121. padding: 20rpx 0;
  122. }
  123. .img {
  124. width: 40rpx;
  125. height: 40rpx;
  126. margin-right: 20rpx;
  127. }
  128. }
  129. </style>