ptsbuscode
v1.1.0
Published
`乘车码插件 使用方法: ```declare let cordova: any; //授权 auth() { cordova.plugins.PTSBusCode.auth({'authBizData':'','pushDeviceId':''}}, success => { //返回值处理 this.nativeService.showToast(success); }, error => { //错误处理 this.nativeServ
Downloads
0
Readme
`乘车码插件 使用方法:
declare let cordova: any;
//授权
auth() {
cordova.plugins.PTSBusCode.auth({'authBizData':'','pushDeviceId':''}}, success => {
//返回值处理
this.nativeService.showToast(success);
}, error => {
//错误处理
this.nativeService.showToast(error);
});
}
//领卡
receive() {
cordova.plugins.PTSBusCode.receive({'authBizData':'','pushDeviceId':'','alipayUserId':'','authToken':''}, success => {
//返回值处理
this.nativeService.showToast(success);
}, error => {
//错误处理
this.nativeService.showToast(error);
});
}
//生码
gen() {
cordova.plugins.PTSBusCode.gen({'authBizData':'','pushDeviceId':'','alipayUserId':'','authToken':''}, success => {
//返回值处理
this.nativeService.showToast(success);
}, error => {
//错误处理
this.nativeService.showToast(error);
});
}
//取消授权
unauth() {
cordova.plugins.PTSBusCode.unauth({'alipayUserId':'','authToken':''}, success => {
//返回值处理
this.nativeService.showToast(success);
}, error => {
//错误处理
this.nativeService.showToast(error);
});
}
`