主要HTML代码
<input class="scan-input" v-model="code" type="text" placeholder="波次号、容器号或面单号" @blur="searchCode" />
###主要JS代码
```JavaScript
//scan code
scanCode() {
var that =this
uni.scanCode({
onlyFromCamera: false,
success: function (res) {
that.code=res.result;
},
fail:function(err){
console.log('调用扫码API异常:',err);
that.code="";
}
});
},