editName.vue 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="page">
  3. <view class="inp">
  4. <view class="">
  5. <u--input placeholder="请输入内容" border="none" v-model="name"></u--input>
  6. </view>
  7. <text style="color: rgba(34, 34, 34, 0.3);">{{name.length}}</text>
  8. </view>
  9. <view class="prompt">
  10. {{i18n.prompt}}
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. name: '张三'
  19. }
  20. },
  21. computed: {
  22. i18n() {
  23. return this.$t('index')
  24. }
  25. },
  26. mounted() {
  27. uni.setNavigationBarTitle({
  28. title: this.i18n.editNextname
  29. })
  30. },
  31. methods: {
  32. }
  33. }
  34. </script>
  35. <style lang="scss" scoped>
  36. .page {
  37. padding: 20rpx 24rpx;
  38. .inp{
  39. background-color: #fff;
  40. border-radius: 16rpx;
  41. height: 96rpx;
  42. display: flex;
  43. justify-content: space-between;
  44. padding: 0 20px;
  45. align-items: center;
  46. }
  47. }
  48. .prompt {
  49. margin-top: 16rpx;
  50. font-size: 26rpx;
  51. color: rgba(34, 34, 34, 0.6);
  52. }
  53. </style>