更新记录

1.0.2(2024-07-09) 下载此版本

增加手电筒图片

1.0.1(2024-05-13) 下载此版本

  1. 修复调用失败,扫http失败问题

1.0.0(2024-04-17) 下载此版本

1.自定义扫码组件(支持相册扫码,自定义扫码类型)

查看更多

平台兼容性

ev-scanCode 自定义扫码组件(与uni.scanCode字段、调用方式一致,已多端适配)

替换APP端的uni.scanCode模态框,其他端使用原生uni.scanCode
解决现有uni.scanCode限制条码类型失效,条码类型过于宽泛的问题

调用示例

// index.vue
export default {
    methods: {
        handlerClick() {
            uni.$scanCode();
        }
    }
}
// App.vue
import '@/js_sdk/ev-scanCode/index.js';

属性说明

属性名 类型 默认值 说明
scanType Array 全部 支持的扫码类型
onlyFromCamera Boolean false 仅支持相机
success Function 接口调用成功的回调函数

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT License

Copyright (c) 2024 Evelyn0910

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问