change.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view>
  3. <car-common mytitle="更换绑定账号" ref="common" ></car-common>
  4. <view class="phone-form">
  5. <view class="phone-form-row">
  6. <view class="phone-form-input">
  7. <u-field v-model="subFormCode.phone" placeholder="请输入新的手机号" label-width="0"></u-field>
  8. </view>
  9. </view>
  10. <view class="phone-form-row">
  11. <view class="phone-form-input">
  12. <u-field maxlength="6" placeholder="请输入验证码" v-model="subFormCode.code" type="number" label-width="0"></u-field>
  13. </view>
  14. <view class="phone-form-code">
  15. <u-button shape="circle" size="mini" @click="sendMsg" v-text="isSendMsgIng?(sendMsgSecond+'秒'):'发送验证码'" >发送验证码</u-button>
  16. </view>
  17. </view>
  18. <view class="phone-button">
  19. <u-button type="primary" shape="circle" @click="login">立即绑定</u-button>
  20. </view>
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import api from './change.js'
  26. export default api;
  27. </script>
  28. <style scoped lang="scss">
  29. .phone-form-row{
  30. position: relative;
  31. .phone-form-code{
  32. position: absolute;
  33. right: 0;
  34. top:10px;
  35. }
  36. }
  37. .phone-button{
  38. margin: 10px;
  39. }
  40. </style>