fix
This commit is contained in:
@@ -44,16 +44,15 @@ if (window.IScan) {
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
IScan.config({
|
IScan.config({
|
||||||
webScanCanvasEnabled: true,
|
|
||||||
webScanBeepEnabled: true,
|
|
||||||
initWechatJssdk: {
|
initWechatJssdk: {
|
||||||
apiUrl: "https://your-domain.com/wechat/jssdk-config"
|
apiUrl: "https://your-domain.com/wechat/jssdk-config"
|
||||||
}
|
}
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
// 监听识别状态
|
||||||
IScan.setStatusListener(function (status) {
|
IScan.setStatusListener(function (status) {
|
||||||
console.log("status:", status);
|
console.log("status:", status);
|
||||||
});
|
});
|
||||||
|
// 监听识别结果
|
||||||
IScan.onScanListener(function (res) {
|
IScan.onScanListener(function (res) {
|
||||||
console.log("scan result:", res.result, res.key);
|
console.log("scan result:", res.result, res.key);
|
||||||
}, "scan", null, 100);
|
}, "scan", null, 100);
|
||||||
@@ -78,8 +77,10 @@ IScan.stopScan();
|
|||||||
|
|
||||||
```ts
|
```ts
|
||||||
interface ScanConfigOptions {
|
interface ScanConfigOptions {
|
||||||
|
scanRestartDelay?: number,
|
||||||
bridgeEnabled?: boolean;
|
bridgeEnabled?: boolean;
|
||||||
bridgeName?: string;
|
bridgeName?: string;
|
||||||
|
webScanEnabled?: boolean,
|
||||||
webScanCanvasEnabled?: boolean;
|
webScanCanvasEnabled?: boolean;
|
||||||
webScanCanvasStyle?: string;
|
webScanCanvasStyle?: string;
|
||||||
webScanType?: ("qrCode" | "barCode")[];
|
webScanType?: ("qrCode" | "barCode")[];
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user