| | |
| | | <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()" placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons> |
| | | </view> |
| | | </view> |
| | |
| | | // 获取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) { |
| | | var res = result.data |
| | | if (res.code === 500) { |
| | | that.barcodeFocuss() |
| | | uni.showToast({title: res.msg, icon: "none", position: 'top'}); |
| | | } else if(res.code === 200) { |
| | | that.barcodeInput() |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // 冻结 |
| | | isFrozen() { |
| | |
| | | min-height: 320rpx; |
| | | margin: 15rpx; |
| | | border-radius: 20rpx; |
| | | display: flex; |
| | | } |
| | | .data-list:first-child { |
| | | margin-top: 20rpx; |
| | |
| | | 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; |