editUserName.vue 759 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <view class="pages">
  3. <div class="input-back">
  4. <u--input :customStyle="{height: '40px'}" placeholder="请输入内容" border="surround" v-model="value" @change="change"></u--input>
  5. </div>
  6. <div class="save-btn">
  7. <u-button type="primary">保存</u-button>
  8. </div>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. data() {
  14. return {
  15. value:''
  16. };
  17. },
  18. methods:{
  19. change(){
  20. console.log(this.value);
  21. }
  22. }
  23. }
  24. </script>
  25. <style lang="scss">
  26. .pages{
  27. background: #f5f5f5;
  28. width: 100vw;
  29. height: 100vh;
  30. }
  31. .input-back{
  32. width: 100%;
  33. // height: 100px;
  34. background: #fff;
  35. }
  36. .save-btn{
  37. text-align:center;
  38. // margin-top:20px;
  39. position: fixed;
  40. bottom: 0;
  41. width: 100%;
  42. padding: 30px;
  43. box-sizing: border-box;
  44. }
  45. </style>