apply-clients 3.3.110-40 → 3.3.110-41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<button type="button" class="btn btn-primary" @click="scan" >开始扫码</button>
|
|
3
|
+
<button type="button" name="button" class="btn btn-primary" @click="scan" >开始扫码</button>
|
|
4
4
|
<div>这是扫码结果:{{ results }}</div>
|
|
5
5
|
<div>这是错误信息:{{ errors }}</div>
|
|
6
6
|
</div>
|
|
@@ -8,26 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
10
|
export default {
|
|
11
|
-
name: 'ocrscan',
|
|
12
11
|
data() {
|
|
13
12
|
return {
|
|
14
13
|
results: "",
|
|
15
14
|
errors: ""
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
|
-
created() {
|
|
19
|
-
},
|
|
20
17
|
methods: {
|
|
21
18
|
async downScan() {
|
|
22
19
|
|
|
23
20
|
},
|
|
24
|
-
|
|
21
|
+
scan() {
|
|
25
22
|
HostApp.__this__ = this
|
|
26
23
|
HostApp.scanCode({callback: "javascript:HostApp.__this__.scanCallback();"})
|
|
27
24
|
},
|
|
28
25
|
scanCallback() {
|
|
29
26
|
let response = HostApp.getCode()
|
|
30
|
-
this.results = response
|
|
27
|
+
this.results = response.data
|
|
31
28
|
console.log(`扫码返回值:${response}`)
|
|
32
29
|
if (response.code == 200) {
|
|
33
30
|
this.results = response.data
|