0.1.9 • Published 11 months ago

ybs-fy-remote-utils v0.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

YBS公司特有硬件对接集成依赖

VUE 项目使用

   // 入口文件
   import YBSFYUtil from "ybs-fy-remote-utils"
   Vue.use(YBSFYUtil,{
       getAntd
   });
   // 使用
   import {Interface} from "ybs-fy-remote-utils";
   // 使用方法同下方
   Interface.SignatureBoardInterface.beginSign().then(file=>{
       console.log(file);
   });

功能包括:

  • 高拍仪
    /**
     * @description // 调用主摄像头(A4纸大小) 
     * @param {function} callback
     * @param {blob} callback.image 拍照生成blob图片对象
     * @param {0|1} callback.type 当前返回图片回调执行类型 0 为默认 执行操作刷新,不关闭交互  1 为 操作完成关闭交互
     * @param {boolean} isOnce 默认为false  是否执行一次拍照即关闭 
    */
    
    CameraInterface.initPrimaryCameraScan((image,type)=>{
        console.log(image, type);
    });
    // 调用副摄像头(头像拍照) 其他参数同上
    CameraInterface.initAssistantCameraScan(callback,isOnce);
    // 例:
    CameraInterface.initAssistantCameraScan((image,type)=>{
        console.log(image, type);
    });
  • 手写板功能
    /**
     * @description 调用写字板(页面)
     * @param url 弹窗签字版页面地址
    */
    SignatureBoardInterface.PopupSignatureHtml(url).then(file=>{}).catch();
    // 调用写字板(单独签名框)
    SignatureBoardInterface.beginSign().then(file=>{}).catch();
0.1.8

11 months ago

0.1.7

11 months ago

0.1.9

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago