| | |
| | | <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> |
| | |
| | | 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() { |
| | | var temp = this.ck1 |