123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <template>
- <view class="page">
- <view class="inp">
- <view class="">
- <u--input placeholder="请输入内容" border="none" v-model="name"></u--input>
- </view>
- <text style="color: rgba(34, 34, 34, 0.3);">{{name.length}}</text>
- </view>
- <view class="prompt">
- {{i18n.prompt}}
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- name: '张三'
- }
- },
- computed: {
- i18n() {
- return this.$t('index')
- }
- },
- mounted() {
- uni.setNavigationBarTitle({
- title: this.i18n.editNextname
- })
- },
- methods: {
- }
- }
- </script>
- <style lang="scss" scoped>
- .page {
- padding: 20rpx 24rpx;
- .inp{
- background-color: #fff;
- border-radius: 16rpx;
- height: 96rpx;
- display: flex;
- justify-content: space-between;
- padding: 0 20px;
- align-items: center;
- }
- }
- .prompt {
- margin-top: 16rpx;
- font-size: 26rpx;
- color: rgba(34, 34, 34, 0.6);
- }
- </style>
|