This commit is contained in:
iqudoo
2026-04-30 18:14:24 +08:00
parent 46bd158b93
commit 9cb965b190
2 changed files with 5 additions and 4 deletions

View File

@@ -44,16 +44,15 @@ if (window.IScan) {
```js
IScan.config({
webScanCanvasEnabled: true,
webScanBeepEnabled: true,
initWechatJssdk: {
apiUrl: "https://your-domain.com/wechat/jssdk-config"
}
}).then(function () {
// 监听识别状态
IScan.setStatusListener(function (status) {
console.log("status:", status);
});
// 监听识别结果
IScan.onScanListener(function (res) {
console.log("scan result:", res.result, res.key);
}, "scan", null, 100);
@@ -78,8 +77,10 @@ IScan.stopScan();
```ts
interface ScanConfigOptions {
scanRestartDelay?: number,
bridgeEnabled?: boolean;
bridgeName?: string;
webScanEnabled?: boolean,
webScanCanvasEnabled?: boolean;
webScanCanvasStyle?: string;
webScanType?: ("qrCode" | "barCode")[];

2
dist/index.js vendored

File diff suppressed because one or more lines are too long