Merge branch 'master' of http://114.132.189.42:9002/r/mes-ocea-before
| | |
| | | data() { |
| | | return { |
| | | isShow: true, |
| | | camera: "front", |
| | | camera: "rear", |
| | | result: "", // 扫码结果信息 |
| | | error: "" // 错误信息 |
| | | }; |
| | |
| | | // 相机反转 |
| | | switchCamera() { |
| | | switch (this.camera) { |
| | | //前置 |
| | | case 'front': |
| | | //转后置 |
| | | this.camera = 'rear' |
| | | break |
| | | //反之 |
| | | //反之 |
| | | case 'rear': |
| | | this.camera = 'front' |
| | | this.camera = 'front' |
| | | break |
| | | case 'front': |
| | | //后置 |
| | | this.camera = 'rear' |
| | | break |
| | | default: |
| | | this.$toast('错误') |
| | |
| | | |
| | | |
| | | // const url = 'http://192.168.32.45:9999' |
| | | // const url = 'http://192.168.2.7:9999' |
| | | const url = 'http://192.168.2.7:9999' |
| | | |
| | | const url = 'http://localhost:9999' |
| | | // const url = 'http://localhost:9999' |
| | | |
| | | |
| | | const localUrl = 'http://localhost:8089' |