mine.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <view class="page-mine" :style="{'backgroundImage': 'url('+bg+')'}">
  3. <view class="status_bar"></view>
  4. <view class="user-info">
  5. <view class="title">个人中心</view>
  6. <div class="user">
  7. <img class="head" src="./image/head.png" alt="">
  8. <text class="name">李飞翔</text>
  9. </div>
  10. </view>
  11. <div class="form">
  12. <div class="item">
  13. <div class="item-title">
  14. <image class="icon" src="/static/icon/location.png" mode="widthFix"></image>
  15. <div class="namme">行政区划</div>
  16. </div>
  17. <div class="cont">行政区划</div>
  18. </div>
  19. <div class="item">
  20. <div class="item-title">
  21. <image class="icon" src="/static/icon/user-group.png" mode="widthFix"></image>
  22. <div class="namme">所属部门</div>
  23. </div>
  24. <div class="cont">所属部门</div>
  25. </div>
  26. <div class="item" @click="linkTo">
  27. <div class="item-title">
  28. <image class="icon" src="/static/icon/unlock.png" mode="widthFix"></image>
  29. <div class="name">修改密码</div>
  30. </div>
  31. <div class="cont"><image class="rt-icon" src="/static/icon/rt_icon.png" mode="widthFix"></image></div>
  32. </div>
  33. </div>
  34. <button type="default" class="btn-submit">退出登陆</button>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. bg:require('./image/bg.png')
  42. }
  43. },
  44. methods: {
  45. linkTo(){
  46. uni.navigateTo({
  47. url:'/pages/mine/password/password'
  48. })
  49. }
  50. }
  51. }
  52. </script>
  53. <style lang="scss" scoped>
  54. .page-mine{
  55. background-size: 100% 504rpx;
  56. background-repeat: no-repeat;
  57. background-color: #fff;
  58. height: 100vh;
  59. /* #ifdef H5 */
  60. height: calc(100vh - 50px);
  61. /* #endif */
  62. box-sizing: border-box;
  63. position: relative;
  64. .user-info{
  65. padding-left:30upx;
  66. .user{
  67. display: flex;
  68. align-items: center;
  69. padding:106upx 0 140upx;
  70. .head{
  71. display: block;
  72. width: 112upx;
  73. height: 112upx;
  74. }
  75. .name{
  76. font-family: 'Abhaya Libre';
  77. font-style: normal;
  78. font-weight: 700;
  79. font-size: 38rpx;
  80. line-height: 54upx;
  81. color: #151515;
  82. padding-left: 30upx;
  83. }
  84. }
  85. }
  86. .form{
  87. padding: 0 48upx 0 36upx;
  88. background-color: #fff;
  89. .item{
  90. height: 120upx;
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: center;
  94. .item-title{
  95. display: flex;
  96. align-items: center;
  97. .icon{
  98. display: block;
  99. width: 48upx;
  100. height: 48upx;
  101. }
  102. .name{
  103. font-family: 'Abhaya Libre';
  104. font-style: normal;
  105. font-weight: 400;
  106. font-size: 32upx;
  107. line-height:48upx;
  108. text-align: center;
  109. color: #151515;
  110. margin-left: 10upx;
  111. }
  112. }
  113. .cont{
  114. font-family: 'Abhaya Libre';
  115. font-style: normal;
  116. font-weight: 400;
  117. font-size: 32upx;
  118. line-height:48upx;
  119. text-align: center;
  120. color: #151515;
  121. margin-left: 10upx;
  122. .rt-icon{
  123. display: block;
  124. width: 15upx;
  125. height: 15upx;
  126. }
  127. }
  128. }
  129. }
  130. .title{
  131. font-family: 'Abhaya Libre';
  132. font-style: normal;
  133. font-weight: 700;
  134. font-size: 34upx;
  135. line-height: 40upx;
  136. color: #151515;
  137. }
  138. .btn-submit{
  139. width: 654upx;
  140. height: 88upx;
  141. font-family: 'Abhaya Libre';
  142. font-style: normal;
  143. font-weight: 400;
  144. font-size: 32upx;
  145. line-height: 88upx;
  146. text-align: center;
  147. color: #999999;
  148. background: #F2F2F2;
  149. border-radius: 4px;
  150. text-align: center;
  151. position: absolute;
  152. bottom: 150upx;
  153. margin-left: 50%;
  154. transform: translateX(-50%);
  155. }
  156. }
  157. </style>