1.0.9 • Published 4 years ago

digital-jsapi v1.0.9

Weekly downloads
17
License
ISC
Repository
-
Last release
4 years ago

包信息描述

数字郑州前端工具类库

安装依赖环境

yarn add -D digital-jsapi npm install -S digital-jsapi

引入方式

import digital from 'digital-jsapi'

郑好办jsapi使用方式(ex:获取郑好办用户信息)

digital.zhbapi.getZhbUserInfo(res=>{ console.log('郑好办用户信息',res) })

郑好办JSAPI功能列表

  getZhbFaceCertifyWithUserInfo(realName:真实姓名,idCard:身份证号,callback): 郑好办其他人进行人脸识别认证,
  getUserCompanyList(callback): 获取用户下面的企业列表,
  openZhbSharePanel(callback): 打开郑好办分享面板,
  openNewWebView(url:页面地址,pageTitle:页面标题,callback): 开启一个新的webview窗口,
  getCorporateCertification(callback): 法人认证,
  openScanQRCode(callback): 打开郑好办扫码功能,
  openThirdApp(url:第三方应用schema信息,callback): 打开第三方app,
  getAppDeviceInfo(callback): 获取app以及设备版本信息等,
  setAppBuried(bizType,eventId,extParams,callback): 设置h5或者小程序埋点信息,
  openMiniApp(appId:应用id(20211523001),params:参数信息(k=v&k=v),route:路由地址(pages/index),callback): 打开mapaas小程序,
  saveImage(url,callback): 保存图片到手机,
  getZhbFaceCertification(callback): 打开郑好办人脸识别认证,
  getZhbCertification(callback): 打开郑好办实人认证,
  getZhbAreaInfo(callback): 获取郑好办分厅信息,
  getZhbUserInfo(callback): 获取郑好办用户信息,
  getZhbZUser(appid,callback): 获取郑好办ZUser用户线信息(zid等),
  getZhbUserId(callback): 获取用户id(userId),
  getLocationInfo(callback): 获取当前位置的经纬度信息,
  getNetworkRequest(url:地址,method:请求类型,headers:请求头对象,params:参数对象,callback): 发起网络请求

mpaas小程序jsapi使用方式(ex:获取appID)

digital.mpaasapi.getAppId(res=>{ console.log('小程序编号',res) })

mpaas小程序JSAPI功能列表

  getAppId: 获取应用id
  getAppLaunchOptions: 获取应用启动参数信息,
  getAppRunVersion: 获取应用运行参数信息,
  getSDKVersion: 获取运行SDK版本信息,
  navigateTo(url:页面路由地址): 小程序内部跳转,
  dialog,
    alert: (title, content, buttonText, callback),
    confirm: (title, content, confirmButtonText, cancelButtonText, callback),
    toast: (type, content, duration, callback),
    loading: (content, delay)
  storage,
    set: (key, data),
    get: key,
    clear: ()
  location,
    choose: (success, fail),
    get: (success, fail),
    open: (longitude, latitude, name, address)
  network,
    connectSocket: (socketServer, data, success, fail),
    closeSocket: (success, fail),
    request: (url, method, data, headers, dataType, success, fail)
  device
    systemInfo: callback,
    networkType: callback,
    phoneCall: number,
    serverTime: callback,
    getScreenBrightness: callback,
    setScreenBrightness: brightness,
    scan: callback

版权所有

数字郑州前端团队

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago