updateinfo.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <view>
  3. <car-common :login="true" mytitle="修改个人资料" ref="common"></car-common>
  4. <!-- <view class="u-flex user-box u-p-l-30 u-p-r-20 u-p-b-30 u-p-t-30">
  5. <view class="u-m-r-20">
  6. <u-avatar :src="pic" size="100"></u-avatar>
  7. </view>
  8. <view class="u-flex-1">
  9. <view class="u-font-18 u-p-b-20">登录/注册</view>
  10. </view>
  11. </view> -->
  12. <u-cell-group>
  13. <u-field style="color: #606266;"
  14. v-model="user.name"
  15. label="用户名"
  16. placeholder="请填写用户名"
  17. input-align="right"
  18. ></u-field>
  19. <u-cell-item title="手机号码" :arrow="false" >{{showphone(user.phone)}}</u-cell-item>
  20. <u-cell-item title="人脸识别照片" >
  21. <u-avatar :src="pic" size="50" @click="upload"></u-avatar>
  22. </u-cell-item>
  23. </u-cell-group>
  24. <view class="u-m-t-20">
  25. <u-cell-group>
  26. <u-cell-item title="是否接收乘车消息" :arrow="false" >
  27. <u-checkbox
  28. shape="circle"
  29. v-model="user.acceptMessage"
  30. ></u-checkbox>
  31. </u-cell-item>
  32. </u-cell-group>
  33. </view>
  34. <view class="upload-button">
  35. <u-button type="primary" shape="circle" @click="submit()">提交</u-button>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import api from './updateinfo.js'
  41. export default api;
  42. </script>
  43. <style lang="scss">
  44. page{
  45. background-color: #ededed;
  46. }
  47. .camera{
  48. width: 54px;
  49. height: 44px;
  50. &:active{
  51. background-color: #ededed;
  52. }
  53. }
  54. .user-box{
  55. background-color: #fff;
  56. }
  57. .signOut{
  58. height: 50px;
  59. background-color: #fff;
  60. text-align: center;
  61. line-height: 50px;
  62. }
  63. .upload-button{
  64. position: fixed;
  65. left: 30rpx;
  66. bottom:30rpx;
  67. right: 30rpx;
  68. }
  69. </style>