completeInfo.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view>
  3. <u-navbar title="完善信息"><view class="skip">
  4. 跳过
  5. </view></u-navbar>
  6. <view class="data">
  7. <view class="data-img">
  8. <view class="data-icon">
  9. <u-icon name="camera-fill" custom-prefix="custom-icon" color="#fff" size="32"></u-icon>
  10. </view>
  11. <u-avatar :src="form.headImg+'?x-oss-process=image/resize,m_fill,w_256,h_256'" size="216"/></u-avatar>
  12. </view>
  13. <view class="data-input">
  14. <u-form :model="form" ref="uForm" >
  15. <u-form-item label-position="top" label="昵称"><u-input v-model="form.nickName" placeholder="请填写昵称"/></u-form-item>
  16. </u-form>
  17. </view>
  18. <p class="car-num">车牌号码</p>
  19. <view class="key-input">
  20. <u-message-input :focus="true" :value="form.carNum" :maxlength="maxlength" :disabled-keyboard="true"></u-message-input>
  21. </view>
  22. <view class="default">
  23. <u-checkbox-group>
  24. <u-checkbox class="tips" v-model="form.defaultFlag" shape="circle" >设为默认车辆</u-checkbox>
  25. </u-checkbox-group>
  26. </view>
  27. <u-button class="login-btn" type="success" shape="circle" >完成</u-button>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. maxlength:8,
  36. keyShow: true,
  37. form: {
  38. nickName: '',
  39. headImg: '',
  40. },
  41. }
  42. },
  43. }
  44. </script>
  45. <style>
  46. page{
  47. background: #fff;
  48. }
  49. </style>
  50. <style lang="scss" scoped>
  51. .skip{
  52. margin-left: 81.3%;
  53. }
  54. .data-icon{
  55. height: 28px;
  56. width: 28px;
  57. background-color: #00B962;
  58. border-radius: 14px;
  59. border: 2px solid #fff;
  60. text-align: center;
  61. line-height: 24px;
  62. position: absolute;
  63. z-index: 999;
  64. right: 0;
  65. bottom:0px
  66. }
  67. .data-img{
  68. margin: 30px auto;
  69. height: 108px;
  70. width: 108px;
  71. position: relative;
  72. }
  73. .data-input{
  74. margin: 0 40px;
  75. }
  76. .login-btn {
  77. margin: 28px ;
  78. background-color:#00B962!important;
  79. border-color: #00B962!important;
  80. color:#fff!important;
  81. }
  82. .car-num{
  83. padding: 40px 0 0 40px;
  84. line-height: 18px;
  85. }
  86. .key-input {
  87. padding-top: 19px;
  88. }
  89. .default {
  90. margin: 16px 28px;
  91. }
  92. /deep/.u-char-item {
  93. width: 30px !important;
  94. height: 40px !important;
  95. font-size: 18px !important;
  96. }
  97. </style>