#
whycq
2022-08-15 5050b42e880beb308e51ec40d4f9bc8f643e264d
#
1个文件已修改
26 ■■■■ 已修改文件
pages/basics/test.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/test.vue
@@ -19,7 +19,8 @@
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input readonly="value" v-model="locNo" type="text" placeholder="扫码 / 输入" >
                        <input readonly="value" v-model="locNo" type="text" placeholder="扫码 / 输入"
                        :focus="locNoFocus" >
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locNo')"></uni-icons>
                    </view>
                </view>
@@ -31,7 +32,8 @@
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input v-model="userId" type="text" placeholder="扫码 / 输入">
                        <input v-model="userId" type="text" placeholder="扫码 / 输入"
                        :focus="userIdFocus">
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('userId')"></uni-icons>
                    </view>
                </view>
@@ -43,7 +45,8 @@
                </view>
                <view class="square-content">
                    <view class="content-input">
                        <input v-model="barcode" type="text" placeholder="扫码 / 输入">
                        <input v-model="barcode" type="text" placeholder="扫码 / 输入"
                        :focus="barcodeFocus">
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('barcode')"></uni-icons>
                    </view>
                </view>
@@ -81,7 +84,10 @@
                msgType: 'success',
                messageText: '这是一条成功提示',
                staNoList:[1,2,3,4,5,6],
                staNo:''
                staNo:'',
                locNoFocus:true,
                userIdFocus:false,
                barcodeFocus:false
            }
        },
        mounted(){
@@ -105,6 +111,18 @@
            getUrl() {
                this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
            },
            locNoFocuss() {
                // #ifdef APP
                let that = this;
                that.locNoFocus = false;
                setTimeout(()=>{
                    that.remove('locNo')
                    that.locNoFocus = true;
                }, 100);
                // #endif
            },
            // 清空input
            remove(e) {
                this[e] = ''