cordova-plugin-scancodeplugin

1.0.0 • Public • Published

scanCodePlugin

ionic3 二维码扫描插件,安卓及iOS平台皆可用.

clone from https://github.com/YQianIOS/scanCodePlugin

Usage

ionic cordova plugin add cordova-plugin-scancodeplugin

 
     cordova.plugins.ScanCodePlugin.scan("扫描二维码", function (msg) {
            if (!msg) {
                return
            }
            if (that.homeModel.mobile === msg) {
                that.alert.showAlert('不能添加自己为好友');
                return;
            }
 
            that.searchWorker(msg);
        }, function (msg) {
            that.alert.showAlert("扫描二维码失败");
        });
 
 

/cordova-plugin-scancodeplugin/

    Package Sidebar

    Install

    npm i cordova-plugin-scancodeplugin

    Weekly Downloads

    10

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • yztnpm
    • wuyuxing
    • xinzhenyong
    • giscafer
    • yang__329