From 99c8fdd5bae73e35eb9e8e5814013aa31c60dd95 Mon Sep 17 00:00:00 2001 From: whycq <123456> Date: 星期三, 11 五月 2022 23:04:37 +0800 Subject: [PATCH] # --- pages/basics/checkout.vue | 19 ++++++------------- 1 files changed, 6 insertions(+), 13 deletions(-) diff --git a/pages/basics/checkout.vue b/pages/basics/checkout.vue index f1114e4..ed0eb69 100644 --- a/pages/basics/checkout.vue +++ b/pages/basics/checkout.vue @@ -9,8 +9,7 @@ <view class="square-content"> <view class="content-input"> <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8" - @input="findBarcode()" :focus="barcodeFocus" > - <!-- @focus="focuss" --> + @input="findBarcode()" :focus="barcodeFocus" @focus="focuss" > <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> </view> </view> @@ -30,8 +29,8 @@ <view class="square-content"> <text>璐у搧鏉$爜锛�</text> <view class="content-input-combox"> - <input type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="findMat()" - :focus="focus" > + <input type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="findMat()":focus="focus" + @focus="focuss"> <!-- @focus="focuss" --> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons> </view> @@ -88,6 +87,7 @@ desc:'', staNoList:[], satNo:'', + listLen:0, } }, mounted(){ @@ -106,7 +106,7 @@ } }, focuss() { - uni.hideKeyboard() + // uni.hideKeyboard() }, resst() { this.matList = [] @@ -138,14 +138,6 @@ comb() { uni.vibrateShort(); let that = this; - // if (that.barcode === '') { - // uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'}); - // return; - // } - // if (that.matList.length === 0) { - // uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'}); - // return; - // } uni.showLoading(); uni.request({ url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/auth', @@ -223,6 +215,7 @@ } } that.matList = res.data.concat(that.matList) + that.listLen = that.matList.length; // that.matList = that.matList.concat(res.data) } } -- Gitblit v1.9.1