2.0.4 • Published 3 years ago

@digitalzz/jssdk v2.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

JSSDK

数字郑州前端 JSSDK

安装

# yarn
yarn add @digitalzz/jssdk
# npm
npm install -S @digitalzz/jssdk

使用

import ZHBJSBridge from '@digitalzz/jssdk'

ZHBJSBridge.login().then(
  (res) => {
    // 登录成功
  },
  (res) => {
    // 登录失败
  }
)

API 列表

方法功能备注对应 app 方法
authIdCard验证用户身份3.0faceAuthIdcard
checkOperatorPermission检查经办人权限3.0checkOperatorPermission
checkPermission检查用户是否授权3.1permissionCheck
downloadFile下载文件3.1downloadFile
gatewayRequest网关请求3.0httpRequest
getAppInfo获取app基本信息appbasicinfo
getAppUserInfo获取登录用户信息getAppUserInfo
getAppZid获取zidgetAppZUser
getAreaCode获取分厅信息areaCode
getCompanyList获取企业列表3.0getEnterprise
getLocation获取经纬度location
getUserId获取userIdgetuserid
gotoAppStoreComment跳转应用市场评价页面3.3.0gotoAppStoreComment
isInstalledApp是否已安装某个appdetermineApp
login调用郑好办登录login
noticeUpdateUserInfo通知修改用户信息usersmodify
openAliPay支付宝支付aliPay
openApp打开app应用schema
openAppStore打开应用市场评价gotomarketeva
openAuthUser打开用户认证getonverified
openCorporateAuth打开法人认证corporateCertification
openDeviceLock指纹识别devicelock
openFaceCertification人脸识别rpFaceCertification
openFaceCertificationOld人脸识别rpCertification
openMap打开地图showmapinfo
openMapNavigation打开地图导航3.1openMapNavigation
openMatterDetail打开办事指南pushMatterDetail
openMiniProgram打开微信小程序wxLaunchMiniProgram
openNativeNews打开办事主页或者资讯主页undefined
openOneCardApp打开绿城一卡通yearAudit
openSafari打开Safari浏览器opensafari
openScanCode打开扫一扫scanQRCode
openShare分享3.0shareTinyAppMsg
openSystemSetting打开系统设置3.1openAppSystemSetting
openWebview打开新的webView3.0openWebPage
openWxPay打开微信支付wxPay
openZhbMiniProgram打开小程序openApplet
request发起网络请求getAppRequest
saveImage保存图片saveImageToAlbum
selectImage选择图片3.0.2getImageBase64
startRecord开始录音intelligentVoice
stopRecord停止录音intelligentVoice
telephone拨打电话3.1telephone
track埋点buriedAppliet

开发流程

  • 基于 dev 分支开发新功能
  • 编写文档
  • 发起分支合并请求
  • 代码评审
  • 部署

代码提交规范

项目配置了 commitizen

git commit

# or

yarn cz
npm run cz
2.0.4

3 years ago

2.0.3

3 years ago

2.0.1

4 years ago