newPhone.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="box">
  3. <cu-custom bgColor="bg-blue" :isBack="true">
  4. <block slot="backText">修改绑定手机</block>
  5. <block slot="content"></block>
  6. <block slot="right">
  7. <view class=" flex justify-center">
  8. <button class="margin-top-ssm cu-btn round bg-blue text-blue"><text class="cuIcon-add"></text></button>
  9. </view>
  10. </block>
  11. </cu-custom>
  12. <view class="cu-list menu shadow-lg">
  13. <form>
  14. <!-- <view class="cu-form-group">
  15. <view class="title">登录账号</view>
  16. <input placeholder="输入账号" v-model="userInfo.account" name="input" disabled=""></input>
  17. </view> -->
  18. <view class="cu-form-group">
  19. <view class="title">新手机</view>
  20. <input placeholder="请输入新手机号码" disabled="" maxlength="11" name="input"></input>
  21. </view>
  22. <view class="cu-form-group">
  23. <view class="title">验证码</view>
  24. <input placeholder="请输入短信验证码" name="input"></input>
  25. <button class='cu-btn round line-blue'>获取验证码</button>
  26. </view>
  27. </form>
  28. </view>
  29. <view class="margin-top flex justify-center" >
  30. <button @click="submit" style="width: 400rpx;" class="cu-btn bg-blue lg round" >提交</button>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. userInfo:""
  39. }
  40. },
  41. onLoad() {
  42. var userInfo = uni.getStorageSync("userInfo")
  43. if(userInfo!=null){
  44. if(userInfo.phone=='null'|| userInfo.phone==null){
  45. userInfo.phone=""
  46. }
  47. this.userInfo = userInfo;
  48. }
  49. },
  50. methods: {
  51. submit(){
  52. }
  53. }
  54. }
  55. </script>
  56. <style>
  57. </style>