cordova-plugin-meice-camera

4.2.2 • Public • Published

cordova-plugin-meice-camera

安装插件

cordova plugin add http://192.168.1.137/mezeron/front-group/cordova-plugin-meice-camera.git

使用方法

使用案例  http://192.168.1.137/mezeron/front-group/mc-demo.git
      var isProd = false

 			var params = {
                         "deviceNumber":"MC680-C4C7DF290EF4",
                         "isProd":true,
                         "imgDir":"123",
                         "customerPicId_left":"1",
                         "customerPicId_right":"2",
                         "customerPicId_mid":"3",
                         "leftSuccess":false,
                         "rightSuccess":true,
                         "midSuccess":false,
                     }
            var customer ={
                           "name": "Al",
                           "phone": "18511111111",
                           "sex": "0",
                           "year": "1991",
                           "month": "11",
                           "day": "08",
                           "age": "27",
                           "extra": "deviceId=MC680-C4C7DF290EF4&custId=402881f167721fe70167ba816f105020",
                           "unionid": "402881f167721fe70167ba816f105020"
                       };
                 window.MCCamera.shoot(params,customer,
                                             function(data){
                                            "js success->customerPicId_left:"+data.customerPicId_left+",customerPicId_right:"+data.customerPicId_right+",customerPicId_mid:"+data.customerPicId_mid+",imgDir:"+data.imgDir
                                             },
                                             function(errMsg){
                                             console.log(" error: "+errMsg)
                                             }
                                             
                                             );
        
    

返回结果

 {
   "customerPicId_left":"",
   "customerPicId_right":"",
   "customerPicId_mid":"",
   "imgDir":"",
 }

npm publish --registry=https://registry.npmjs.org/

Package Sidebar

Install

npm i cordova-plugin-meice-camera

Weekly Downloads

21

Version

4.2.2

License

MIT

Unpacked Size

5.13 MB

Total Files

29

Last publish

Collaborators

  • happyi
  • breezee