userInfo.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template>
  2. <view class="content">
  3. <view class="row1">
  4. <text class="tit">头像</text>
  5. <view class="background-img"><image class="background-img" mode="aspectFill"></image></view>
  6. </view>
  7. <view class="row">
  8. <text class="tit">家长</text>
  9. <input class="input" type="text" placeholder-class="placeholder" />
  10. </view>
  11. <view class="row">
  12. <text class="tit">学生</text>
  13. <input class="input" type="text" placeholder-class="placeholder" />
  14. </view>
  15. <view class="row">
  16. <text class="tit">手机号</text>
  17. <input class="input" type="text" placeholder-class="placeholder" />
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. </script>
  23. <style lang="scss">
  24. .row1 {
  25. display: flex;
  26. align-items: center;
  27. justify-content: space-between;
  28. position: relative;
  29. padding: 0 30upx;
  30. height: 110upx;
  31. background: #fff;
  32. margin-bottom: 20upx;
  33. .tit {
  34. flex-shrink: 0;
  35. width: 120upx;
  36. font-size: $font-lg;
  37. color: $font-color-dark;
  38. }
  39. .background-img {
  40. width: 80rpx;
  41. height: 80rpx;
  42. border-radius: 50%;
  43. background: #f2f2f2;
  44. }
  45. }
  46. .row {
  47. display: flex;
  48. align-items: center;
  49. justify-content: space-between;
  50. position: relative;
  51. padding: 0 30upx;
  52. height: 110upx;
  53. background: #fff;
  54. .tit {
  55. flex-shrink: 0;
  56. width: 120upx;
  57. font-size: $font-lg;
  58. color: $font-color-dark;
  59. }
  60. .tit1 {
  61. flex-shrink: 0;
  62. width: 150upx;
  63. font-size: $font-lg;
  64. color: $font-color-dark;
  65. }
  66. .input {
  67. flex: 1;
  68. font-size: $font-base;
  69. color: $color-gray;
  70. }
  71. }
  72. </style>