set.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view class="container">
  3. <view class="body">
  4. <!-- 个人头像区域 -->
  5. <view class="body_box">
  6. 个人头像
  7. <view class="box_right" @click="handleClickPhoto">
  8. <img class="img" src="../../static/my/portrait.png" />
  9. <img class="img2" src="../../static/my/right.png" />
  10. </view>
  11. </view>
  12. <!-- 账号名区域 -->
  13. <view class="body_box">
  14. 账号名
  15. <view class="box_right">
  16. <view class="msg">张三</view>
  17. <img class="img2" src="../../static/my/right.png" />
  18. </view>
  19. </view>
  20. <!-- ID区域 -->
  21. <view class="body_box">
  22. ID
  23. <view class="box_right">
  24. <view class="msg">1925689</view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {}
  34. },
  35. methods: {
  36. handleClickPhoto() {
  37. uni.navigateTo({
  38. url: '/pages/photo/photo'
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .container {
  46. display: flex;
  47. flex-direction: column;
  48. min-height: 100vh;
  49. background-color: #ebeced;
  50. .body {
  51. box-sizing: border-box;
  52. margin-top: 20rpx;
  53. padding: 0 30rpx;
  54. height: calc(100vh - 20rpx);
  55. background-color: #fff;
  56. .body_box {
  57. display: flex;
  58. justify-content: space-between;
  59. align-items: center;
  60. height: 100rpx;
  61. font-size: 28rpx;
  62. border-bottom: 1rpx solid #e6e6e6;
  63. .box_right {
  64. display: flex;
  65. justify-content: flex-end;
  66. align-items: center;
  67. height: 100rpx;
  68. .img {
  69. width: 64rpx;
  70. height: 64rpx;
  71. }
  72. .img2 {
  73. margin-left: 7rpx;
  74. width: 47rpx;
  75. height: 47rpx;
  76. }
  77. .msg {
  78. color: #808080;
  79. }
  80. }
  81. }
  82. }
  83. }
  84. </style>