#
whycq
2022-08-15 502fd61b98b1d834cc3d10847443a7e432d3b2b3
#
1个文件已修改
11 ■■■■■ 已修改文件
pages/basics/test.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/basics/test.vue
@@ -20,7 +20,7 @@
                <view class="square-content">
                    <view class="content-input">
                        <input readonly="value" v-model="locNo" type="text" placeholder="扫码 / 输入" 
                        :focus="locNoFocus" >
                        :focus="locNoFocus" @input="nextInput('locNo')">
                        <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locNo')"></uni-icons>
                    </view>
                </view>
@@ -112,17 +112,19 @@
                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
                
            },
            nextInput(e) {
                switch (e) {
                }
            },
            // 清空input
            remove(e) {
                this[e] = ''
@@ -133,6 +135,7 @@
                this.locNo = ''
                this.userId = ''
                this.barcode = ''
                this.locNoFocuss()
            },
            // 确认
            confirm() {