editProfile.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <view>
  3. <u-navbar title="编辑个人信息" >
  4. <slot name="right">保存</slot>
  5. </u-navbar>
  6. <view class="photo">
  7. <img src="../../../assets/img/editPhoto.png" alt="">
  8. <view class="edit-photo">
  9. <img src="../../../assets/img/md-camera_alt@1x(1).png" alt="">
  10. </view>
  11. </view>
  12. <view class="change">
  13. 点击更换头像
  14. </view>
  15. <view class="pet-name">
  16. <view class="title">
  17. 昵称
  18. </view>
  19. <view class="name">
  20. <input type="text" name="" id="" placeholder="用户191012" style="text-align: right;">
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. data() {
  28. return {
  29. }
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. page{
  37. background-color: #fff;
  38. }
  39. /deep/.u-slot-content{
  40. justify-content: end;
  41. margin-right: 32rpx;
  42. color: rgba(13, 186, 199, 1);
  43. }
  44. .photo{
  45. margin: 20px auto 8px;
  46. width: 160rpx;
  47. height: 160rpx;
  48. position: relative;
  49. img{
  50. width: 100%;
  51. height: 100%;
  52. border-radius: 999px;
  53. }
  54. }
  55. .edit-photo{
  56. width: 56rpx;
  57. height: 56rpx;
  58. background-color: rgba(78, 141, 246, 1);
  59. border: 4rpx solid rgba(255, 255, 255, 1);
  60. text-align: center;
  61. border-radius: 999px;
  62. z-index: 999;
  63. position: absolute;
  64. right: 0;
  65. bottom: 0;
  66. img{
  67. width: 32rpx;
  68. height: 32rpx;
  69. margin-top: 8rpx;
  70. }
  71. }
  72. .change{
  73. color: rgba(13, 186, 199, 1);
  74. text-align: center;
  75. }
  76. .pet-name{
  77. margin-top: 20px;
  78. padding: 15px;
  79. border-bottom: 1px solid rgba(244, 244, 244, 1);
  80. display: flex;
  81. justify-content: space-between;
  82. .title{
  83. color: rgba(16, 16, 16, 1);
  84. font-weight: bold;
  85. }
  86. .name{
  87. color: rgba(136, 136, 136, 1);
  88. }
  89. }
  90. </style>