From 659f07e1a25e0c307a2984ee592a6610534c1301 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 16 六月 2023 16:43:30 +0800 Subject: [PATCH] # --- pages/basics/pakin.vue | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue index 68f5a8d..d719a88 100644 --- a/pages/basics/pakin.vue +++ b/pages/basics/pakin.vue @@ -9,7 +9,7 @@ <view class="square-content"> <view class="content-input"> <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" - :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;"> + :focus="barcodeFocus" @input="checkedBarcode()" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;"> <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> </view> </view> @@ -196,6 +196,22 @@ // 鑾峰彇url getUrl() { this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl + }, + // 妫�鏌ユ潯鐮� + checkedBarcode() { + let that = this + uni.request({ + url: that.commonUrl + '/mobile/barcode/auth', + data: { + barcode: that.barcode, + }, + header: { + 'token':uni.getStorageSync('token') + }, + success(result) { + console.log(result); + } + }) }, // 鍐荤粨 isFrozen() { @@ -639,6 +655,7 @@ min-height: 320rpx; margin: 15rpx; border-radius: 20rpx; + display: flex; } .data-list:first-child { margin-top: 20rpx; @@ -655,12 +672,12 @@ line-height: 180rpx; } */ .data-list-left { - display: inline-block; - float: left; margin-left: 6%; min-height: 320rpx; color: #676767; width: 500rpx; + color: #676767; + max-width: 450rpx; } .matnr { padding-top: 10rpx; -- Gitblit v1.9.1