data.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view>
  3. <u-navbar title="个人资料"></u-navbar>
  4. <view class="data">
  5. <view class="data-img">
  6. <view class="data-icon">
  7. <u-icon name="camera-fill" custom-prefix="custom-icon" color="#fff" size="32"></u-icon>
  8. </view>
  9. <u-avatar src="/static/img/head.png" size="216"></u-avatar>
  10. </view>
  11. <view class="data-input">
  12. <u-form :model="form" ref="uForm" >
  13. <u-form-item label-position="top" label="昵称"><u-input v-model="form.name" /></u-form-item>
  14. </u-form>
  15. </view>
  16. <u-button class="login-btn" type="success" shape="circle" @click="submit">提交</u-button>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. form: {
  25. name: '',
  26. },
  27. }
  28. },
  29. methods: {
  30. }
  31. }
  32. </script>
  33. <style>
  34. page{
  35. background: #fff;
  36. }
  37. </style>
  38. <style lang="scss" scoped>
  39. .data-icon{
  40. height: 28px;
  41. width: 28px;
  42. background-color: #00B962;
  43. border-radius: 14px;
  44. border: 2px solid #fff;
  45. text-align: center;
  46. line-height: 24px;
  47. position: absolute;
  48. z-index: 999;
  49. right: 0;
  50. bottom:0px
  51. }
  52. .data-img{
  53. margin: 30px auto;
  54. height: 108px;
  55. width: 108px;
  56. position: relative;
  57. }
  58. .data-input{
  59. margin: 0 40px;
  60. }
  61. .login-btn {
  62. margin: 28px ;
  63. background-color:#00B962!important;
  64. border-color: #00B962!important;
  65. color:#fff!important;
  66. }
  67. </style>