| | |
| | | <view class="item"> |
| | | <view class="code-decs">订单号:</view> |
| | | <view style="flex: 1;"> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus"> |
| | | <input type="text" placeholder=" 扫码 / 输入" v-model="orderNo" :focus="orderNoFocus" |
| | | @input="orderNoInput()"> |
| | | </view> |
| | | <view style="height:100%;line-height:2;width:40rpx;margin-right: 20rpx;"> |
| | | <uni-icons type="clear" color="#c1c1c1" @click="clearOrderNo()"></uni-icons> |
| | |
| | | }, 100); |
| | | }, |
| | | orderNoInput() { |
| | | this.orderNo = this.orderNo.replace(/^\{|\}$/g, '') |
| | | // 不设置定时器 会出现扫入的字符串不全 |
| | | setTimeout(() => { |
| | | var len = this.orderNo.length |
| | |
| | | }, |
| | | // barcode input 事件 |
| | | barcodeInput() { |
| | | this.barcode = this.barcode.replace(/^\{|\}$/g, '') |
| | | // 不设置定时器 会出现扫入的字符串不全 |
| | | setTimeout(() => { |
| | | var len = this.barcode.length |