From f681b210692b079455a53afd5bd83b4401ef9320 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期五, 10 二月 2023 10:42:23 +0800 Subject: [PATCH] # --- pages/basics/demo.vue | 53 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 49 insertions(+), 4 deletions(-) diff --git a/pages/basics/demo.vue b/pages/basics/demo.vue index fe66283..1c9c48a 100644 --- a/pages/basics/demo.vue +++ b/pages/basics/demo.vue @@ -8,12 +8,18 @@ </view> <view class="square-content"> <view class="content-input"> - <input type="text" placeholder="鎵爜 / 杈撳叆"> + <input type="text" v-model="yyds" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus"> <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> </view> </view> </view> - + <checkbox-group > + <view v-for="(item,index) in staNoList" :key="index" class="data-list " > + <view class="data-list-left"> + <view class="matnr">{{item}}</view> + </view> + </view> + </checkbox-group> <view class="square-2"> <view class="square-title"> <view class="title-sign"><view class="sign"></view></view> @@ -60,11 +66,27 @@ <view class="square-none"> <view class="v-show">鏆傛棤鏇村鏁版嵁...</view> </view> - - <!-- 鍟嗗搧鍒楄〃 --> <view> <view></view> + </view> + <!-- 琛ㄥ崟 --> + <view class="square-form"> + <view class="form-title"> + <text>缁撴潫鏃堕棿</text> + </view> + <view class="form-input"> + <input type="text" placeholder="璇疯緭鍏�..."> + </view> + </view> + <!-- 琛ㄥ崟蹇呭~ --> + <view class="square-form"> + <view class="form-title"> + <text>缁撴潫鏃堕棿</text> + </view> + <view class="form-input"> + <input type="text" placeholder="璇疯緭鍏�..."> + </view> </view> </view> </template> @@ -75,9 +97,32 @@ return { staNoList:[], staNo:'', + yyds:'', + focus:'' } }, + onLoad() { + // #ifdef APP + setInterval(()=>{ + uni.hideKeyboard() + },20) + // #endif + }, + methods:{ + find(){ + this.staNoList.push(this.yyds); + + + this.focus = false; + setTimeout(()=>{ + this.yyds =''; + this.focus = true; + console.log(this.yyds ,'1') + }, 50); + } + } } + </script> <style> -- Gitblit v1.9.1