@dcloudio/uni-app-x 0.7.111 → 0.7.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/dom2-internal/UniNativeView.d.ts +1 -0
- package/types/dom2-internal/UniPage.d.ts +16 -0
- package/types/dom2-internal/sharedData.d.ts +9 -14
- package/types/native/CSSStyleDeclaration.d.ts +172 -172
- package/types/native/CanvasRenderingContext2D.d.ts +4720 -4720
- package/types/native/DrawableContext.d.ts +1893 -1893
- package/types/native/IUniElement.d.ts +7468 -7461
- package/types/native/IUniNativeViewElement.d.ts +327 -327
- package/types/native/SnapshotOptions.d.ts +337 -62
- package/types/native/UniPage.d.ts +1305 -1305
- package/types/native/UniResizeObserver.d.ts +749 -749
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +59 -59
- package/types/native/UniSwiperChangeEvent.d.ts +58 -58
- package/types/page.d.ts +3154 -3112
- package/types/uni/uts-plugin-api/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +1672 -911
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +126 -126
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +154 -154
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +14 -14
- package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/global.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/index.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-camera/utssdk/interface.d.ts +1155 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +978 -972
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -0
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +358 -358
- package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +8 -8
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +78 -78
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +490 -479
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -214
- package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +126 -126
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +30 -30
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +39 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +856 -0
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +147 -147
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +397 -397
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +6363 -6359
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +554 -554
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2149 -2149
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1340 -1340
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1707 -1707
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +307 -307
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +310 -310
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +5 -5
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +129 -129
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +757 -757
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +5881 -5879
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +442 -442
- package/types/uni/uts-plugin-api/lib/uni-input/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-input/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-input/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +171 -171
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +536 -536
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +2914 -2910
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +24 -24
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +208 -208
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +785 -785
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4243 -4243
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1979 -1963
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +5 -3
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +229 -229
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +753 -753
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +84 -84
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +790 -788
- package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +447 -447
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +498 -498
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +1552 -1548
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +58 -58
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +30 -30
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2513 -2513
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +81 -81
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +351 -351
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +107 -107
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +584 -584
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -722
- package/types/uni/uts-plugin-api/lib/uni-showLoading/utssdk/interface.d.ts +292 -292
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +358 -358
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +657 -657
- package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-textarea/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1010 -1010
- package/types/uni/uts-plugin-api/lib/uni-video/utssdk/global.d.ts +47 -0
- package/types/uni/uts-plugin-api/lib/uni-video/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-api/lib/uni-video/utssdk/interface.d.ts +926 -0
- package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-api/lib/uni-web-view/utssdk/interface.d.ts +452 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1442 -1442
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +220 -220
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +65 -65
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +981 -981
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +26 -26
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +1155 -0
- package/types/uni/uts-plugin-component/.temp/uni-camera.d.ts +38 -0
- package/types/uni/uts-plugin-component/.temp/uni-camera.ts +52 -0
- package/types/uni/uts-plugin-component/.temp/uni-canvas/utssdk/interface.uts +976 -0
- package/types/uni/uts-plugin-component/.temp/uni-canvas-dom2/utssdk/interface.uts +976 -0
- package/types/uni/uts-plugin-component/.temp/uni-editor.d.ts +171 -0
- package/types/uni/uts-plugin-component/.temp/uni-editor.ts +237 -0
- package/types/uni/uts-plugin-component/.temp/uni-form.d.ts +2 -0
- package/types/uni/uts-plugin-component/.temp/uni-form.ts +1 -0
- package/types/uni/uts-plugin-component/.temp/uni-input/utssdk/interface.uts +0 -0
- package/types/uni/uts-plugin-component/.temp/uni-map-tencent.d.ts +56 -0
- package/types/uni/uts-plugin-component/.temp/uni-map-tencent.ts +88 -0
- package/types/uni/uts-plugin-component/.temp/uni-match-media.d.ts +2 -0
- package/types/uni/uts-plugin-component/.temp/uni-match-media.ts +2 -0
- package/types/uni/uts-plugin-component/.temp/uni-navigator.d.ts +2 -0
- package/types/uni/uts-plugin-component/.temp/uni-navigator.ts +1 -0
- package/types/uni/uts-plugin-component/.temp/uni-page-container.d.ts +0 -0
- package/types/uni/uts-plugin-component/.temp/uni-page-container.ts +2 -0
- package/types/uni/uts-plugin-component/.temp/uni-progress.d.ts +2 -0
- package/types/uni/uts-plugin-component/.temp/uni-progress.ts +1 -0
- package/types/uni/uts-plugin-component/.temp/uni-rich-text.d.ts +7 -0
- package/types/uni/uts-plugin-component/.temp/uni-rich-text.ts +12 -0
- package/types/uni/uts-plugin-component/.temp/uni-textarea/utssdk/interface.uts +0 -0
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +936 -0
- package/types/uni/uts-plugin-component/.temp/uni-video.d.ts +134 -0
- package/types/uni/uts-plugin-component/.temp/uni-video.ts +180 -0
- package/types/uni/uts-plugin-component/.temp/uni-web-view/utssdk/interface.uts +452 -0
- package/types/uni/uts-plugin-component/.temp/uni-web-view.d.ts +51 -0
- package/types/uni/uts-plugin-component/.temp/uni-web-view.ts +86 -0
- package/types/uni/uts-plugin-component/global.d.ts +79 -0
- package/types/uni/uts-plugin-component/index.d.ts +79 -0
- package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-actionSheet/utssdk/interface.d.ts +1673 -0
- package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-addPhoneContact/utssdk/interface.d.ts +226 -0
- package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +79 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +371 -0
- package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +79 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +978 -976
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +978 -976
- package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-chooseLocation/utssdk/interface.d.ts +423 -0
- package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/global.d.ts +33 -0
- package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-chooseMedia/utssdk/interface.d.ts +499 -0
- package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/global.d.ts +45 -0
- package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/index.d.ts +22 -0
- package/types/uni/uts-plugin-component/lib/uni-clipboard/utssdk/interface.d.ts +217 -0
- package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/global.d.ts +33 -0
- package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +3379 -0
- package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +153 -0
- package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +19 -0
- package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -0
- package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-createSelectorQuery/utssdk/interface.d.ts +560 -0
- package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/index.d.ts +7 -0
- package/types/uni/uts-plugin-component/lib/uni-createWebviewContext/utssdk/interface.d.ts +214 -0
- package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-createWorker/utssdk/interface.d.ts +158 -0
- package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-dialogPage/utssdk/interface.d.ts +2304 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +39 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +856 -0
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +181 -0
- package/types/uni/uts-plugin-component/lib/uni-event/utssdk/global.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-event/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-event/utssdk/interface.d.ts +338 -0
- package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-exit/utssdk/interface.d.ts +147 -0
- package/types/uni/uts-plugin-component/lib/uni-file/utssdk/global.d.ts +81 -0
- package/types/uni/uts-plugin-component/lib/uni-file/utssdk/index.d.ts +40 -0
- package/types/uni/uts-plugin-component/lib/uni-file/utssdk/interface.d.ts +397 -0
- package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/global.d.ts +151 -0
- package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -0
- package/types/uni/uts-plugin-component/lib/uni-fileSystemManager/utssdk/interface.d.ts +6428 -0
- package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +37 -0
- package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +6 -0
- package/types/uni/uts-plugin-component/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +620 -0
- package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/index.d.ts +7 -0
- package/types/uni/uts-plugin-component/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2220 -0
- package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1406 -0
- package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/global.d.ts +15 -0
- package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/index.d.ts +7 -0
- package/types/uni/uts-plugin-component/lib/uni-getDeviceInfo/utssdk/interface.d.ts +1774 -0
- package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-getElementById/utssdk/interface.d.ts +82 -0
- package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +6 -0
- package/types/uni/uts-plugin-component/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +374 -0
- package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +6 -0
- package/types/uni/uts-plugin-component/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +377 -0
- package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -0
- package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/global.d.ts +33 -0
- package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-getNetworkType/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-getPerformance/utssdk/interface.d.ts +199 -0
- package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/global.d.ts +37 -0
- package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/index.d.ts +18 -0
- package/types/uni/uts-plugin-component/lib/uni-getProvider/utssdk/interface.d.ts +757 -0
- package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/global.d.ts +33 -0
- package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-getSystemInfo/utssdk/interface.d.ts +6084 -0
- package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/index.d.ts +6 -0
- package/types/uni/uts-plugin-component/lib/uni-getSystemSetting/utssdk/interface.d.ts +508 -0
- package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-installApk/utssdk/interface.d.ts +125 -0
- package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/global.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-interceptor/utssdk/interface.d.ts +171 -0
- package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/global.d.ts +45 -0
- package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/index.d.ts +22 -0
- package/types/uni/uts-plugin-component/lib/uni-keyboard/utssdk/interface.d.ts +234 -0
- package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-loadFontFace/utssdk/interface.d.ts +603 -0
- package/types/uni/uts-plugin-component/lib/uni-location/utssdk/global.d.ts +61 -0
- package/types/uni/uts-plugin-component/lib/uni-location/utssdk/index.d.ts +30 -0
- package/types/uni/uts-plugin-component/lib/uni-location/utssdk/interface.d.ts +3443 -0
- package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-location-system/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-location-tencent/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-makePhoneCall/utssdk/interface.d.ts +386 -0
- package/types/uni/uts-plugin-component/lib/uni-media/utssdk/global.d.ts +157 -0
- package/types/uni/uts-plugin-component/lib/uni-media/utssdk/index.d.ts +78 -0
- package/types/uni/uts-plugin-component/lib/uni-media/utssdk/interface.d.ts +5245 -0
- package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/global.d.ts +43 -0
- package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/index.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-modal/utssdk/interface.d.ts +291 -0
- package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/global.d.ts +69 -0
- package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/index.d.ts +34 -0
- package/types/uni/uts-plugin-component/lib/uni-navigationBar/utssdk/interface.d.ts +1047 -0
- package/types/uni/uts-plugin-component/lib/uni-network/utssdk/global.d.ts +109 -0
- package/types/uni/uts-plugin-component/lib/uni-network/utssdk/index.d.ts +54 -0
- package/types/uni/uts-plugin-component/lib/uni-network/utssdk/interface.d.ts +4462 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/global.d.ts +71 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/index.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth/utssdk/interface.d.ts +2142 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/global.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-oauth-weixin/utssdk/interface.d.ts +48 -0
- package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +256 -0
- package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-openDocument/utssdk/interface.d.ts +823 -0
- package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-pageScrollTo/utssdk/interface.d.ts +155 -0
- package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/global.d.ts +33 -0
- package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-payment/utssdk/interface.d.ts +856 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-alipay/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-payment-wxpay/utssdk/interface.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/global.d.ts +19 -0
- package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-picker-global/utssdk/interface.d.ts +26 -0
- package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/global.d.ts +47 -0
- package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-previewImage/utssdk/interface.d.ts +520 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +31 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +15 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +568 -0
- package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/global.d.ts +33 -0
- package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/index.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-prompt/utssdk/interface.d.ts +1693 -0
- package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/global.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-component/lib/uni-pullDownRefresh/utssdk/interface.d.ts +191 -0
- package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-recorder/utssdk/interface.d.ts +2999 -0
- package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +713 -0
- package/types/uni/uts-plugin-component/lib/uni-route/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-component/lib/uni-route/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-route/utssdk/interface.d.ts +2731 -0
- package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/global.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-rpx2px/utssdk/interface.d.ts +81 -0
- package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/global.d.ts +25 -0
- package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-component/lib/uni-scanCode/utssdk/interface.d.ts +429 -0
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +314 -0
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/global.d.ts +41 -0
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/index.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-share/utssdk/interface.d.ts +584 -0
- package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/global.d.ts +9 -0
- package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-component/lib/uni-share-weixin/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-shareWithSystem/utssdk/interface.d.ts +722 -0
- package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/global.d.ts +47 -0
- package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-showLoading/utssdk/interface.d.ts +446 -0
- package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-sse/utssdk/interface.d.ts +330 -0
- package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/global.d.ts +79 -0
- package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/index.d.ts +39 -0
- package/types/uni/uts-plugin-component/lib/uni-storage/utssdk/interface.d.ts +1030 -0
- package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/global.d.ts +149 -0
- package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/index.d.ts +74 -0
- package/types/uni/uts-plugin-component/lib/uni-tabBar/utssdk/interface.d.ts +1221 -0
- package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/global.d.ts +53 -0
- package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/index.d.ts +26 -0
- package/types/uni/uts-plugin-component/lib/uni-theme/utssdk/interface.d.ts +1141 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +0 -22
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +0 -11
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +862 -872
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/global.d.ts +4 -14
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/index.d.ts +2 -7
- package/types/uni/uts-plugin-component/lib/uni-video-global/utssdk/interface.d.ts +14 -51
- package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/global.d.ts +113 -0
- package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/index.d.ts +56 -0
- package/types/uni/uts-plugin-component/lib/uni-virtualPayment/utssdk/interface.d.ts +1661 -0
- package/types/uni/uts-plugin-component/lib/uni-web-view/utssdk/interface.d.ts +17 -17
- package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-component/lib/uni-websocket/utssdk/interface.d.ts +1939 -0
- package/types/vue/LifeCycle.d.ts +865 -854
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface Uni {
|
|
2
|
-
/**
|
|
3
|
-
* 登录
|
|
4
|
-
*
|
|
5
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
|
|
6
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
|
|
7
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
|
|
8
|
-
*
|
|
1
|
+
export interface Uni {
|
|
2
|
+
/**
|
|
3
|
+
* 登录
|
|
4
|
+
*
|
|
5
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
|
|
6
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
|
|
7
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
|
|
8
|
+
*
|
|
9
9
|
* @uniPlatform {
|
|
10
10
|
* "app": {
|
|
11
11
|
* "android": {
|
|
12
12
|
* "osVer": "5.0",
|
|
13
13
|
* "uniVer": "√",
|
|
14
|
-
* "unixVer": "
|
|
14
|
+
* "unixVer": "5.03"
|
|
15
15
|
* },
|
|
16
16
|
* "ios": {
|
|
17
17
|
* "osVer": "12.0",
|
|
18
18
|
* "uniVer": "√",
|
|
19
|
-
* "unixVer": "
|
|
19
|
+
* "unixVer": "5.03"
|
|
20
20
|
* },
|
|
21
21
|
* "harmony": {
|
|
22
22
|
* "osVer": "3.0",
|
|
23
23
|
* "uniVer": "4.31",
|
|
24
24
|
* "unixVer": "4.61",
|
|
25
|
-
* "
|
|
25
|
+
* "unixVaporVer": "5.0"
|
|
26
26
|
* }
|
|
27
27
|
* },
|
|
28
28
|
* "mp": {
|
|
@@ -82,15 +82,15 @@ export interface Uni {
|
|
|
82
82
|
* }
|
|
83
83
|
* }
|
|
84
84
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html
|
|
85
|
-
*/
|
|
86
|
-
login(options: LoginOptions): void;
|
|
87
|
-
/**
|
|
88
|
-
* 获取用户信息
|
|
89
|
-
*
|
|
90
|
-
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
|
|
91
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
|
|
92
|
-
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
|
|
93
|
-
*
|
|
85
|
+
*/
|
|
86
|
+
login(options: LoginOptions): void;
|
|
87
|
+
/**
|
|
88
|
+
* 获取用户信息
|
|
89
|
+
*
|
|
90
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
|
|
91
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
|
|
92
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
|
|
93
|
+
*
|
|
94
94
|
* @uniPlatform {
|
|
95
95
|
* "app": {
|
|
96
96
|
* "android": {
|
|
@@ -107,7 +107,7 @@ export interface Uni {
|
|
|
107
107
|
* "osVer": "3.0",
|
|
108
108
|
* "uniVer": "4.31",
|
|
109
109
|
* "unixVer": "4.61",
|
|
110
|
-
* "
|
|
110
|
+
* "unixVaporVer": "5.0"
|
|
111
111
|
* }
|
|
112
112
|
* },
|
|
113
113
|
* "mp": {
|
|
@@ -167,39 +167,44 @@ export interface Uni {
|
|
|
167
167
|
* }
|
|
168
168
|
* }
|
|
169
169
|
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html
|
|
170
|
-
*/
|
|
171
|
-
getUserInfo(options: GetUserInfoOptions): void;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
170
|
+
*/
|
|
171
|
+
getUserInfo(options: GetUserInfoOptions): void;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
export interface UniOAuthProvider extends UniProvider {
|
|
176
|
+
login(options: LoginOptions): void;
|
|
177
|
+
getUserInfo(options: GetUserInfoOptions): void;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
export type Login = (options: LoginOptions) => void;
|
|
183
|
+
|
|
184
|
+
export type AppleLoginAppleInfo = {
|
|
185
|
+
/**
|
|
186
|
+
* 应用程序用来与服务器交互的令牌
|
|
187
|
+
*/
|
|
188
|
+
authorizationCode?: string | null,
|
|
189
|
+
/**
|
|
190
|
+
* 返回身份的全名
|
|
191
|
+
*/
|
|
192
|
+
fullName?: any | null,
|
|
193
|
+
/**
|
|
194
|
+
* 一个JSON Web令牌(JWT),可以安全地将用户信息传递给应用程序
|
|
195
|
+
*/
|
|
196
|
+
identityToken?: string | null,
|
|
197
|
+
/**
|
|
198
|
+
* 指示用户是否为真人
|
|
199
|
+
*/
|
|
200
|
+
realUserStatus?: number | null,
|
|
201
|
+
/**
|
|
202
|
+
* 验证用户的标识符
|
|
203
|
+
*/
|
|
204
|
+
user?: string | null
|
|
205
|
+
};
|
|
206
|
+
export type LoginSuccess = {
|
|
207
|
+
/**
|
|
203
208
|
* 描述信息
|
|
204
209
|
* @uniPlatform {
|
|
205
210
|
* "mp": {
|
|
@@ -245,499 +250,499 @@ export type LoginSuccess = {
|
|
|
245
250
|
* }
|
|
246
251
|
* }
|
|
247
252
|
* }
|
|
248
|
-
*/
|
|
249
|
-
errMsg?: string | null,
|
|
250
|
-
/**
|
|
251
|
-
* 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
|
|
252
|
-
* @uniPlatform {
|
|
253
|
-
* "app": {
|
|
254
|
-
* "android": {
|
|
255
|
-
* "osVer": "5.0",
|
|
256
|
-
* "uniVer": "√",
|
|
257
|
-
* "unixVer": "
|
|
258
|
-
* },
|
|
259
|
-
* "ios": {
|
|
260
|
-
* "osVer": "12.0",
|
|
261
|
-
* "uniVer": "√",
|
|
262
|
-
* "unixVer": "
|
|
263
|
-
* },
|
|
264
|
-
* "harmony": {
|
|
265
|
-
* "osVer": "3.0",
|
|
266
|
-
* "uniVer": "4.31",
|
|
267
|
-
* "unixVer": "4.61",
|
|
268
|
-
* "
|
|
269
|
-
* }
|
|
270
|
-
* }
|
|
271
|
-
* }
|
|
272
|
-
*/
|
|
273
|
-
authResult: any,
|
|
274
|
-
/**
|
|
275
|
-
* 小程序用户临时登录凭证
|
|
276
|
-
* @uniPlatform {
|
|
277
|
-
* "app": {
|
|
278
|
-
* "android": {
|
|
279
|
-
* "osVer": "5.0",
|
|
280
|
-
* "uniVer": "√",
|
|
281
|
-
* "unixVer": "
|
|
282
|
-
* },
|
|
283
|
-
* "ios": {
|
|
284
|
-
* "osVer": "12.0",
|
|
285
|
-
* "uniVer": "√",
|
|
286
|
-
* "unixVer": "
|
|
287
|
-
* },
|
|
288
|
-
* "harmony": {
|
|
289
|
-
* "osVer": "3.0",
|
|
290
|
-
* "uniVer": "4.31",
|
|
291
|
-
* "unixVer": "4.61",
|
|
292
|
-
* "
|
|
293
|
-
* }
|
|
294
|
-
* }
|
|
295
|
-
* }
|
|
296
|
-
*/
|
|
297
|
-
code: string,
|
|
298
|
-
/**
|
|
299
|
-
* 头条小程序当前设备标识
|
|
300
|
-
* @uniPlatform {
|
|
301
|
-
* "app": {
|
|
302
|
-
* "android": {
|
|
303
|
-
* "osVer": "x",
|
|
304
|
-
* "uniVer": "x",
|
|
305
|
-
* "unixVer": "x"
|
|
306
|
-
* },
|
|
307
|
-
* "ios": {
|
|
308
|
-
* "osVer": "x",
|
|
309
|
-
* "uniVer": "x",
|
|
310
|
-
* "unixVer": "x"
|
|
311
|
-
* },
|
|
312
|
-
* "harmony": {
|
|
313
|
-
* "osVer": "x",
|
|
314
|
-
* "uniVer": "x",
|
|
315
|
-
* "unixVer": "x"
|
|
316
|
-
* }
|
|
317
|
-
* }
|
|
318
|
-
* }
|
|
319
|
-
*/
|
|
320
|
-
anonymousCode?: string | null,
|
|
321
|
-
/**
|
|
322
|
-
* 支付宝小程序授权码
|
|
323
|
-
* @uniPlatform {
|
|
324
|
-
* "app": {
|
|
325
|
-
* "android": {
|
|
326
|
-
* "osVer": "x",
|
|
327
|
-
* "uniVer": "x",
|
|
328
|
-
* "unixVer": "x"
|
|
329
|
-
* },
|
|
330
|
-
* "ios": {
|
|
331
|
-
* "osVer": "x",
|
|
332
|
-
* "uniVer": "x",
|
|
333
|
-
* "unixVer": "x"
|
|
334
|
-
* },
|
|
335
|
-
* "harmony": {
|
|
336
|
-
* "osVer": "x",
|
|
337
|
-
* "uniVer": "x",
|
|
338
|
-
* "unixVer": "x"
|
|
339
|
-
* }
|
|
340
|
-
* }
|
|
341
|
-
* }
|
|
342
|
-
*/
|
|
343
|
-
authCode?: string | null,
|
|
344
|
-
/**
|
|
345
|
-
* 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
|
|
346
|
-
* @uniPlatform {
|
|
347
|
-
* "app": {
|
|
348
|
-
* "android": {
|
|
349
|
-
* "osVer": "x",
|
|
350
|
-
* "uniVer": "x",
|
|
351
|
-
* "unixVer": "x"
|
|
352
|
-
* },
|
|
353
|
-
* "ios": {
|
|
354
|
-
* "osVer": "x",
|
|
355
|
-
* "uniVer": "x",
|
|
356
|
-
* "unixVer": "x"
|
|
357
|
-
* },
|
|
358
|
-
* "harmony": {
|
|
359
|
-
* "osVer": "x",
|
|
360
|
-
* "uniVer": "x",
|
|
361
|
-
* "unixVer": "x"
|
|
362
|
-
* }
|
|
363
|
-
* }
|
|
364
|
-
* }
|
|
365
|
-
*/
|
|
366
|
-
authErrorScope?: any | null,
|
|
367
|
-
/**
|
|
368
|
-
* 支付宝小程序登录成功的授权 scope
|
|
369
|
-
* @uniPlatform {
|
|
370
|
-
* "app": {
|
|
371
|
-
* "android": {
|
|
372
|
-
* "osVer": "x",
|
|
373
|
-
* "uniVer": "x",
|
|
374
|
-
* "unixVer": "x"
|
|
375
|
-
* },
|
|
376
|
-
* "ios": {
|
|
377
|
-
* "osVer": "x",
|
|
378
|
-
* "uniVer": "x",
|
|
379
|
-
* "unixVer": "x"
|
|
380
|
-
* },
|
|
381
|
-
* "harmony": {
|
|
382
|
-
* "osVer": "x",
|
|
383
|
-
* "uniVer": "x",
|
|
384
|
-
* "unixVer": "x"
|
|
385
|
-
* }
|
|
386
|
-
* }
|
|
387
|
-
* }
|
|
388
|
-
*/
|
|
389
|
-
authSucessScope?: (string[]) | null,
|
|
390
|
-
/**
|
|
391
|
-
* 苹果登录成功返回的信息
|
|
392
|
-
* @uniPlatform {
|
|
393
|
-
* "app": {
|
|
394
|
-
* "android": {
|
|
395
|
-
* "osVer": "x",
|
|
396
|
-
* "uniVer": "x",
|
|
397
|
-
* "unixVer": "x"
|
|
398
|
-
* },
|
|
399
|
-
* "ios": {
|
|
400
|
-
* "osVer": "x",
|
|
401
|
-
* "uniVer": "x",
|
|
402
|
-
* "unixVer": "x"
|
|
403
|
-
* },
|
|
404
|
-
* "harmony": {
|
|
405
|
-
* "osVer": "x",
|
|
406
|
-
* "uniVer": "x",
|
|
407
|
-
* "unixVer": "x"
|
|
408
|
-
* }
|
|
409
|
-
* }
|
|
410
|
-
* }
|
|
411
|
-
*/
|
|
412
|
-
appleInfo?: AppleLoginAppleInfo | null
|
|
413
|
-
};
|
|
414
|
-
export type LoginSuccessCallback = (result: LoginSuccess) => void;
|
|
415
|
-
export type LoginFail = IOauthFail;
|
|
416
|
-
export type LoginFailCallback = (result: LoginFail) => void;
|
|
417
|
-
export type LoginComplete = any;
|
|
418
|
-
export type LoginCompleteCallback = (result: LoginComplete) => void;
|
|
419
|
-
export type LoginOptions = {
|
|
420
|
-
/**
|
|
421
|
-
* 授权登录服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
|
|
422
|
-
*
|
|
423
|
-
* @uniPlatform {
|
|
424
|
-
* "app": {
|
|
425
|
-
* "android": {
|
|
426
|
-
* "osVer": "5.0",
|
|
427
|
-
* "uniVer": "√",
|
|
428
|
-
* "unixVer": "
|
|
429
|
-
* },
|
|
430
|
-
* "ios": {
|
|
431
|
-
* "osVer": "12.0",
|
|
432
|
-
* "uniVer": "√",
|
|
433
|
-
* "unixVer": "
|
|
434
|
-
* },
|
|
435
|
-
* "harmony": {
|
|
436
|
-
* "osVer": "3.0",
|
|
437
|
-
* "uniVer": "4.31",
|
|
438
|
-
* "unixVer": "4.61",
|
|
439
|
-
* "
|
|
440
|
-
* }
|
|
441
|
-
* },
|
|
442
|
-
* "mp": {
|
|
443
|
-
* "weixin": {
|
|
444
|
-
* "hostVer": "x",
|
|
445
|
-
* "uniVer": "x",
|
|
446
|
-
* "unixVer": "x"
|
|
447
|
-
* },
|
|
448
|
-
* "alipay": {
|
|
449
|
-
* "hostVer": "x",
|
|
450
|
-
* "uniVer": "x",
|
|
451
|
-
* "unixVer": "x"
|
|
452
|
-
* },
|
|
453
|
-
* "baidu": {
|
|
454
|
-
* "hostVer": "x",
|
|
455
|
-
* "uniVer": "x",
|
|
456
|
-
* "unixVer": "x"
|
|
457
|
-
* },
|
|
458
|
-
* "toutiao": {
|
|
459
|
-
* "hostVer": "x",
|
|
460
|
-
* "uniVer": "x",
|
|
461
|
-
* "unixVer": "x"
|
|
462
|
-
* },
|
|
463
|
-
* "lark": {
|
|
464
|
-
* "hostVer": "x",
|
|
465
|
-
* "uniVer": "x",
|
|
466
|
-
* "unixVer": "x"
|
|
467
|
-
* },
|
|
468
|
-
* "qq": {
|
|
469
|
-
* "hostVer": "x",
|
|
470
|
-
* "uniVer": "x",
|
|
471
|
-
* "unixVer": "x"
|
|
472
|
-
* },
|
|
473
|
-
* "kuaishou": {
|
|
474
|
-
* "hostVer": "x",
|
|
475
|
-
* "uniVer": "x",
|
|
476
|
-
* "unixVer": "x"
|
|
477
|
-
* },
|
|
478
|
-
* "jd": {
|
|
479
|
-
* "hostVer": "x",
|
|
480
|
-
* "uniVer": "x",
|
|
481
|
-
* "unixVer": "x"
|
|
482
|
-
* },
|
|
483
|
-
* "360": {
|
|
484
|
-
* "hostVer": "x",
|
|
485
|
-
* "uniVer": "x",
|
|
486
|
-
* "unixVer": "x"
|
|
487
|
-
* }
|
|
488
|
-
* },
|
|
489
|
-
* "quickapp": {
|
|
490
|
-
* "uniVer": "x",
|
|
491
|
-
* "unixVer": "x"
|
|
492
|
-
* },
|
|
493
|
-
* "web": {
|
|
494
|
-
* "uniVer": "x",
|
|
495
|
-
* "unixVer": "x"
|
|
496
|
-
* }
|
|
497
|
-
* }
|
|
498
|
-
*/
|
|
499
|
-
provider?:
|
|
500
|
-
/**
|
|
501
|
-
* 微信登录
|
|
502
|
-
* @uniPlatform {
|
|
503
|
-
* "app": {
|
|
504
|
-
* "android": {
|
|
505
|
-
* "osVer": "x",
|
|
506
|
-
* "uniVer": "x",
|
|
507
|
-
* "unixVer": "
|
|
508
|
-
* },
|
|
509
|
-
* "ios": {
|
|
510
|
-
* "osVer": "x",
|
|
511
|
-
* "uniVer": "x",
|
|
512
|
-
* "unixVer": "
|
|
513
|
-
* },
|
|
514
|
-
* "harmony": {
|
|
515
|
-
* "osVer": "5.0.0",
|
|
516
|
-
* "uniVer": "4.76",
|
|
517
|
-
* "unixVer": "4.81",
|
|
518
|
-
* "
|
|
519
|
-
* }
|
|
520
|
-
* }
|
|
521
|
-
* }
|
|
522
|
-
*/
|
|
523
|
-
'weixin' |
|
|
524
|
-
/**
|
|
525
|
-
* QQ登录
|
|
526
|
-
* @uniPlatform {
|
|
527
|
-
* "app": {
|
|
528
|
-
* "android": {
|
|
529
|
-
* "osVer": "x",
|
|
530
|
-
* "uniVer": "x",
|
|
531
|
-
* "unixVer": "x"
|
|
532
|
-
* },
|
|
533
|
-
* "ios": {
|
|
534
|
-
* "osVer": "x",
|
|
535
|
-
* "uniVer": "x",
|
|
536
|
-
* "unixVer": "x"
|
|
537
|
-
* },
|
|
538
|
-
* "harmony": {
|
|
539
|
-
* "osVer": "x",
|
|
540
|
-
* "uniVer": "x",
|
|
541
|
-
* "unixVer": "x"
|
|
542
|
-
* }
|
|
543
|
-
* }
|
|
544
|
-
* }
|
|
545
|
-
*/
|
|
546
|
-
'qq' |
|
|
547
|
-
/**
|
|
548
|
-
* 新浪微博登录
|
|
549
|
-
* @uniPlatform {
|
|
550
|
-
* "app": {
|
|
551
|
-
* "android": {
|
|
552
|
-
* "osVer": "x",
|
|
553
|
-
* "uniVer": "x",
|
|
554
|
-
* "unixVer": "x"
|
|
555
|
-
* },
|
|
556
|
-
* "ios": {
|
|
557
|
-
* "osVer": "x",
|
|
558
|
-
* "uniVer": "x",
|
|
559
|
-
* "unixVer": "x"
|
|
560
|
-
* },
|
|
561
|
-
* "harmony": {
|
|
562
|
-
* "osVer": "x",
|
|
563
|
-
* "uniVer": "x",
|
|
564
|
-
* "unixVer": "x"
|
|
565
|
-
* }
|
|
566
|
-
* }
|
|
567
|
-
* }
|
|
568
|
-
*/
|
|
569
|
-
'sinaweibo' |
|
|
570
|
-
/**
|
|
571
|
-
* 小米登录
|
|
572
|
-
* @uniPlatform {
|
|
573
|
-
* "app": {
|
|
574
|
-
* "android": {
|
|
575
|
-
* "osVer": "x",
|
|
576
|
-
* "uniVer": "x",
|
|
577
|
-
* "unixVer": "x"
|
|
578
|
-
* },
|
|
579
|
-
* "ios": {
|
|
580
|
-
* "osVer": "x",
|
|
581
|
-
* "uniVer": "x",
|
|
582
|
-
* "unixVer": "x"
|
|
583
|
-
* },
|
|
584
|
-
* "harmony": {
|
|
585
|
-
* "osVer": "x",
|
|
586
|
-
* "uniVer": "x",
|
|
587
|
-
* "unixVer": "x"
|
|
588
|
-
* }
|
|
589
|
-
* }
|
|
590
|
-
* }
|
|
591
|
-
*/
|
|
592
|
-
'xiaomi' |
|
|
593
|
-
/**
|
|
594
|
-
* Apple登录
|
|
595
|
-
* @uniPlatform {
|
|
596
|
-
* "app": {
|
|
597
|
-
* "android": {
|
|
598
|
-
* "osVer": "x",
|
|
599
|
-
* "uniVer": "x",
|
|
600
|
-
* "unixVer": "x"
|
|
601
|
-
* },
|
|
602
|
-
* "ios": {
|
|
603
|
-
* "osVer": "x",
|
|
604
|
-
* "uniVer": "x",
|
|
605
|
-
* "unixVer": "x"
|
|
606
|
-
* },
|
|
607
|
-
* "harmony": {
|
|
608
|
-
* "osVer": "x",
|
|
609
|
-
* "uniVer": "x",
|
|
610
|
-
* "unixVer": "x"
|
|
611
|
-
* }
|
|
612
|
-
* }
|
|
613
|
-
* }
|
|
614
|
-
*/
|
|
615
|
-
'apple' |
|
|
616
|
-
/**
|
|
617
|
-
* 华为 HarmonyOS 华为账号登录
|
|
618
|
-
* @uniPlatform {
|
|
619
|
-
* "app": {
|
|
620
|
-
* "android": {
|
|
621
|
-
* "osVer": "x",
|
|
622
|
-
* "uniVer": "x",
|
|
623
|
-
* "unixVer": "x"
|
|
624
|
-
* },
|
|
625
|
-
* "ios": {
|
|
626
|
-
* "osVer": "x",
|
|
627
|
-
* "uniVer": "x",
|
|
628
|
-
* "unixVer": "x"
|
|
629
|
-
* },
|
|
630
|
-
* "harmony": {
|
|
631
|
-
* "osVer": "3.0",
|
|
632
|
-
* "uniVer": "x",
|
|
633
|
-
* "unixVer": "4.61",
|
|
634
|
-
* "
|
|
635
|
-
* }
|
|
636
|
-
* }
|
|
637
|
-
* }
|
|
638
|
-
*/
|
|
639
|
-
'huawei' | null,
|
|
640
|
-
/**
|
|
641
|
-
* 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
|
|
642
|
-
*
|
|
643
|
-
* @uniPlatform {
|
|
644
|
-
* "app": {
|
|
645
|
-
* "android": {
|
|
646
|
-
* "osVer": "x",
|
|
647
|
-
* "uniVer": "x",
|
|
648
|
-
* "unixVer": "x"
|
|
649
|
-
* },
|
|
650
|
-
* "ios": {
|
|
651
|
-
* "osVer": "x",
|
|
652
|
-
* "uniVer": "x",
|
|
653
|
-
* "unixVer": "x"
|
|
654
|
-
* },
|
|
655
|
-
* "harmony": {
|
|
656
|
-
* "osVer": "x",
|
|
657
|
-
* "uniVer": "x",
|
|
658
|
-
* "unixVer": "x"
|
|
659
|
-
* }
|
|
660
|
-
* }
|
|
661
|
-
* "mp": {
|
|
662
|
-
* "alipay": {
|
|
663
|
-
* "hostVer": "√",
|
|
664
|
-
* "uniVer": "√",
|
|
665
|
-
* "unixVer": "x"
|
|
666
|
-
* }
|
|
667
|
-
* }
|
|
668
|
-
* }
|
|
669
|
-
*/
|
|
670
|
-
scopes?: any | null,
|
|
671
|
-
/**
|
|
672
|
-
* 超时时间,单位 ms
|
|
673
|
-
* @uniPlatform {
|
|
674
|
-
* "app": {
|
|
675
|
-
* "android": {
|
|
676
|
-
* "osVer": "x",
|
|
677
|
-
* "uniVer": "x",
|
|
678
|
-
* "unixVer": "x"
|
|
679
|
-
* },
|
|
680
|
-
* "ios": {
|
|
681
|
-
* "osVer": "x",
|
|
682
|
-
* "uniVer": "x",
|
|
683
|
-
* "unixVer": "x"
|
|
684
|
-
* },
|
|
685
|
-
* "harmony": {
|
|
686
|
-
* "osVer": "x",
|
|
687
|
-
* "uniVer": "x",
|
|
688
|
-
* "unixVer": "x"
|
|
689
|
-
* }
|
|
690
|
-
* }
|
|
691
|
-
* "mp": {
|
|
692
|
-
* "weixin": {
|
|
693
|
-
* "hostVer": "√",
|
|
694
|
-
* "uniVer": "√",
|
|
695
|
-
* "unixVer": "2.35"
|
|
696
|
-
* },
|
|
697
|
-
* "baidu": {
|
|
698
|
-
* "hostVer": "√",
|
|
699
|
-
* "uniVer": "√",
|
|
700
|
-
* "unixVer": "x"
|
|
701
|
-
* },
|
|
702
|
-
* "jd": {
|
|
703
|
-
* "hostVer": "√",
|
|
704
|
-
* "uniVer": "√",
|
|
705
|
-
* "unixVer": "x"
|
|
706
|
-
* }
|
|
707
|
-
* }
|
|
708
|
-
* }
|
|
709
|
-
*/
|
|
710
|
-
timeout?: number | null,
|
|
711
|
-
/**
|
|
712
|
-
* 微信登录仅请求授权认证
|
|
713
|
-
*
|
|
714
|
-
* @uniPlatform {
|
|
715
|
-
* "app": {
|
|
716
|
-
* "android": {
|
|
717
|
-
* "osVer": "5.0",
|
|
718
|
-
* "uniVer": "3.2.6",
|
|
719
|
-
* "unixVer": "x"
|
|
720
|
-
* },
|
|
721
|
-
* "ios": {
|
|
722
|
-
* "osVer": "12.0",
|
|
723
|
-
* "uniVer": "3.2.6",
|
|
724
|
-
* "unixVer": "x"
|
|
725
|
-
* },
|
|
726
|
-
* "harmony": {
|
|
727
|
-
* "osVer": "5.0.0",
|
|
728
|
-
* "uniVer": "4.76",
|
|
729
|
-
* "unixVer": "4.81",
|
|
730
|
-
* "
|
|
731
|
-
* }
|
|
732
|
-
* },
|
|
733
|
-
* "web": {
|
|
734
|
-
* "uniVer": "x",
|
|
735
|
-
* "unixVer": "x"
|
|
736
|
-
* }
|
|
737
|
-
* }
|
|
738
|
-
*/
|
|
739
|
-
onlyAuthorize?: boolean | null,
|
|
740
|
-
/**
|
|
253
|
+
*/
|
|
254
|
+
errMsg?: string | null,
|
|
255
|
+
/**
|
|
256
|
+
* 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
|
|
257
|
+
* @uniPlatform {
|
|
258
|
+
* "app": {
|
|
259
|
+
* "android": {
|
|
260
|
+
* "osVer": "5.0",
|
|
261
|
+
* "uniVer": "√",
|
|
262
|
+
* "unixVer": "5.03"
|
|
263
|
+
* },
|
|
264
|
+
* "ios": {
|
|
265
|
+
* "osVer": "12.0",
|
|
266
|
+
* "uniVer": "√",
|
|
267
|
+
* "unixVer": "5.03"
|
|
268
|
+
* },
|
|
269
|
+
* "harmony": {
|
|
270
|
+
* "osVer": "3.0",
|
|
271
|
+
* "uniVer": "4.31",
|
|
272
|
+
* "unixVer": "4.61",
|
|
273
|
+
* "unixVaporVer": "5.0"
|
|
274
|
+
* }
|
|
275
|
+
* }
|
|
276
|
+
* }
|
|
277
|
+
*/
|
|
278
|
+
authResult: any,
|
|
279
|
+
/**
|
|
280
|
+
* 小程序用户临时登录凭证
|
|
281
|
+
* @uniPlatform {
|
|
282
|
+
* "app": {
|
|
283
|
+
* "android": {
|
|
284
|
+
* "osVer": "5.0",
|
|
285
|
+
* "uniVer": "√",
|
|
286
|
+
* "unixVer": "5.03"
|
|
287
|
+
* },
|
|
288
|
+
* "ios": {
|
|
289
|
+
* "osVer": "12.0",
|
|
290
|
+
* "uniVer": "√",
|
|
291
|
+
* "unixVer": "5.03"
|
|
292
|
+
* },
|
|
293
|
+
* "harmony": {
|
|
294
|
+
* "osVer": "3.0",
|
|
295
|
+
* "uniVer": "4.31",
|
|
296
|
+
* "unixVer": "4.61",
|
|
297
|
+
* "unixVaporVer": "5.0"
|
|
298
|
+
* }
|
|
299
|
+
* }
|
|
300
|
+
* }
|
|
301
|
+
*/
|
|
302
|
+
code: string,
|
|
303
|
+
/**
|
|
304
|
+
* 头条小程序当前设备标识
|
|
305
|
+
* @uniPlatform {
|
|
306
|
+
* "app": {
|
|
307
|
+
* "android": {
|
|
308
|
+
* "osVer": "x",
|
|
309
|
+
* "uniVer": "x",
|
|
310
|
+
* "unixVer": "x"
|
|
311
|
+
* },
|
|
312
|
+
* "ios": {
|
|
313
|
+
* "osVer": "x",
|
|
314
|
+
* "uniVer": "x",
|
|
315
|
+
* "unixVer": "x"
|
|
316
|
+
* },
|
|
317
|
+
* "harmony": {
|
|
318
|
+
* "osVer": "x",
|
|
319
|
+
* "uniVer": "x",
|
|
320
|
+
* "unixVer": "x"
|
|
321
|
+
* }
|
|
322
|
+
* }
|
|
323
|
+
* }
|
|
324
|
+
*/
|
|
325
|
+
anonymousCode?: string | null,
|
|
326
|
+
/**
|
|
327
|
+
* 支付宝小程序授权码
|
|
328
|
+
* @uniPlatform {
|
|
329
|
+
* "app": {
|
|
330
|
+
* "android": {
|
|
331
|
+
* "osVer": "x",
|
|
332
|
+
* "uniVer": "x",
|
|
333
|
+
* "unixVer": "x"
|
|
334
|
+
* },
|
|
335
|
+
* "ios": {
|
|
336
|
+
* "osVer": "x",
|
|
337
|
+
* "uniVer": "x",
|
|
338
|
+
* "unixVer": "x"
|
|
339
|
+
* },
|
|
340
|
+
* "harmony": {
|
|
341
|
+
* "osVer": "x",
|
|
342
|
+
* "uniVer": "x",
|
|
343
|
+
* "unixVer": "x"
|
|
344
|
+
* }
|
|
345
|
+
* }
|
|
346
|
+
* }
|
|
347
|
+
*/
|
|
348
|
+
authCode?: string | null,
|
|
349
|
+
/**
|
|
350
|
+
* 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
|
|
351
|
+
* @uniPlatform {
|
|
352
|
+
* "app": {
|
|
353
|
+
* "android": {
|
|
354
|
+
* "osVer": "x",
|
|
355
|
+
* "uniVer": "x",
|
|
356
|
+
* "unixVer": "x"
|
|
357
|
+
* },
|
|
358
|
+
* "ios": {
|
|
359
|
+
* "osVer": "x",
|
|
360
|
+
* "uniVer": "x",
|
|
361
|
+
* "unixVer": "x"
|
|
362
|
+
* },
|
|
363
|
+
* "harmony": {
|
|
364
|
+
* "osVer": "x",
|
|
365
|
+
* "uniVer": "x",
|
|
366
|
+
* "unixVer": "x"
|
|
367
|
+
* }
|
|
368
|
+
* }
|
|
369
|
+
* }
|
|
370
|
+
*/
|
|
371
|
+
authErrorScope?: any | null,
|
|
372
|
+
/**
|
|
373
|
+
* 支付宝小程序登录成功的授权 scope
|
|
374
|
+
* @uniPlatform {
|
|
375
|
+
* "app": {
|
|
376
|
+
* "android": {
|
|
377
|
+
* "osVer": "x",
|
|
378
|
+
* "uniVer": "x",
|
|
379
|
+
* "unixVer": "x"
|
|
380
|
+
* },
|
|
381
|
+
* "ios": {
|
|
382
|
+
* "osVer": "x",
|
|
383
|
+
* "uniVer": "x",
|
|
384
|
+
* "unixVer": "x"
|
|
385
|
+
* },
|
|
386
|
+
* "harmony": {
|
|
387
|
+
* "osVer": "x",
|
|
388
|
+
* "uniVer": "x",
|
|
389
|
+
* "unixVer": "x"
|
|
390
|
+
* }
|
|
391
|
+
* }
|
|
392
|
+
* }
|
|
393
|
+
*/
|
|
394
|
+
authSucessScope?: (string[]) | null,
|
|
395
|
+
/**
|
|
396
|
+
* 苹果登录成功返回的信息
|
|
397
|
+
* @uniPlatform {
|
|
398
|
+
* "app": {
|
|
399
|
+
* "android": {
|
|
400
|
+
* "osVer": "x",
|
|
401
|
+
* "uniVer": "x",
|
|
402
|
+
* "unixVer": "x"
|
|
403
|
+
* },
|
|
404
|
+
* "ios": {
|
|
405
|
+
* "osVer": "x",
|
|
406
|
+
* "uniVer": "x",
|
|
407
|
+
* "unixVer": "x"
|
|
408
|
+
* },
|
|
409
|
+
* "harmony": {
|
|
410
|
+
* "osVer": "x",
|
|
411
|
+
* "uniVer": "x",
|
|
412
|
+
* "unixVer": "x"
|
|
413
|
+
* }
|
|
414
|
+
* }
|
|
415
|
+
* }
|
|
416
|
+
*/
|
|
417
|
+
appleInfo?: AppleLoginAppleInfo | null
|
|
418
|
+
};
|
|
419
|
+
export type LoginSuccessCallback = (result: LoginSuccess) => void;
|
|
420
|
+
export type LoginFail = IOauthFail;
|
|
421
|
+
export type LoginFailCallback = (result: LoginFail) => void;
|
|
422
|
+
export type LoginComplete = any;
|
|
423
|
+
export type LoginCompleteCallback = (result: LoginComplete) => void;
|
|
424
|
+
export type LoginOptions = {
|
|
425
|
+
/**
|
|
426
|
+
* 授权登录服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
|
|
427
|
+
*
|
|
428
|
+
* @uniPlatform {
|
|
429
|
+
* "app": {
|
|
430
|
+
* "android": {
|
|
431
|
+
* "osVer": "5.0",
|
|
432
|
+
* "uniVer": "√",
|
|
433
|
+
* "unixVer": "5.03"
|
|
434
|
+
* },
|
|
435
|
+
* "ios": {
|
|
436
|
+
* "osVer": "12.0",
|
|
437
|
+
* "uniVer": "√",
|
|
438
|
+
* "unixVer": "5.03"
|
|
439
|
+
* },
|
|
440
|
+
* "harmony": {
|
|
441
|
+
* "osVer": "3.0",
|
|
442
|
+
* "uniVer": "4.31",
|
|
443
|
+
* "unixVer": "4.61",
|
|
444
|
+
* "unixVaporVer": "5.0"
|
|
445
|
+
* }
|
|
446
|
+
* },
|
|
447
|
+
* "mp": {
|
|
448
|
+
* "weixin": {
|
|
449
|
+
* "hostVer": "x",
|
|
450
|
+
* "uniVer": "x",
|
|
451
|
+
* "unixVer": "x"
|
|
452
|
+
* },
|
|
453
|
+
* "alipay": {
|
|
454
|
+
* "hostVer": "x",
|
|
455
|
+
* "uniVer": "x",
|
|
456
|
+
* "unixVer": "x"
|
|
457
|
+
* },
|
|
458
|
+
* "baidu": {
|
|
459
|
+
* "hostVer": "x",
|
|
460
|
+
* "uniVer": "x",
|
|
461
|
+
* "unixVer": "x"
|
|
462
|
+
* },
|
|
463
|
+
* "toutiao": {
|
|
464
|
+
* "hostVer": "x",
|
|
465
|
+
* "uniVer": "x",
|
|
466
|
+
* "unixVer": "x"
|
|
467
|
+
* },
|
|
468
|
+
* "lark": {
|
|
469
|
+
* "hostVer": "x",
|
|
470
|
+
* "uniVer": "x",
|
|
471
|
+
* "unixVer": "x"
|
|
472
|
+
* },
|
|
473
|
+
* "qq": {
|
|
474
|
+
* "hostVer": "x",
|
|
475
|
+
* "uniVer": "x",
|
|
476
|
+
* "unixVer": "x"
|
|
477
|
+
* },
|
|
478
|
+
* "kuaishou": {
|
|
479
|
+
* "hostVer": "x",
|
|
480
|
+
* "uniVer": "x",
|
|
481
|
+
* "unixVer": "x"
|
|
482
|
+
* },
|
|
483
|
+
* "jd": {
|
|
484
|
+
* "hostVer": "x",
|
|
485
|
+
* "uniVer": "x",
|
|
486
|
+
* "unixVer": "x"
|
|
487
|
+
* },
|
|
488
|
+
* "360": {
|
|
489
|
+
* "hostVer": "x",
|
|
490
|
+
* "uniVer": "x",
|
|
491
|
+
* "unixVer": "x"
|
|
492
|
+
* }
|
|
493
|
+
* },
|
|
494
|
+
* "quickapp": {
|
|
495
|
+
* "uniVer": "x",
|
|
496
|
+
* "unixVer": "x"
|
|
497
|
+
* },
|
|
498
|
+
* "web": {
|
|
499
|
+
* "uniVer": "x",
|
|
500
|
+
* "unixVer": "x"
|
|
501
|
+
* }
|
|
502
|
+
* }
|
|
503
|
+
*/
|
|
504
|
+
provider?:
|
|
505
|
+
/**
|
|
506
|
+
* 微信登录
|
|
507
|
+
* @uniPlatform {
|
|
508
|
+
* "app": {
|
|
509
|
+
* "android": {
|
|
510
|
+
* "osVer": "x",
|
|
511
|
+
* "uniVer": "x",
|
|
512
|
+
* "unixVer": "5.03"
|
|
513
|
+
* },
|
|
514
|
+
* "ios": {
|
|
515
|
+
* "osVer": "x",
|
|
516
|
+
* "uniVer": "x",
|
|
517
|
+
* "unixVer": "5.03"
|
|
518
|
+
* },
|
|
519
|
+
* "harmony": {
|
|
520
|
+
* "osVer": "5.0.0",
|
|
521
|
+
* "uniVer": "4.76",
|
|
522
|
+
* "unixVer": "4.81",
|
|
523
|
+
* "unixVaporVer": "5.0"
|
|
524
|
+
* }
|
|
525
|
+
* }
|
|
526
|
+
* }
|
|
527
|
+
*/
|
|
528
|
+
'weixin' |
|
|
529
|
+
/**
|
|
530
|
+
* QQ登录
|
|
531
|
+
* @uniPlatform {
|
|
532
|
+
* "app": {
|
|
533
|
+
* "android": {
|
|
534
|
+
* "osVer": "x",
|
|
535
|
+
* "uniVer": "x",
|
|
536
|
+
* "unixVer": "x"
|
|
537
|
+
* },
|
|
538
|
+
* "ios": {
|
|
539
|
+
* "osVer": "x",
|
|
540
|
+
* "uniVer": "x",
|
|
541
|
+
* "unixVer": "x"
|
|
542
|
+
* },
|
|
543
|
+
* "harmony": {
|
|
544
|
+
* "osVer": "x",
|
|
545
|
+
* "uniVer": "x",
|
|
546
|
+
* "unixVer": "x"
|
|
547
|
+
* }
|
|
548
|
+
* }
|
|
549
|
+
* }
|
|
550
|
+
*/
|
|
551
|
+
'qq' |
|
|
552
|
+
/**
|
|
553
|
+
* 新浪微博登录
|
|
554
|
+
* @uniPlatform {
|
|
555
|
+
* "app": {
|
|
556
|
+
* "android": {
|
|
557
|
+
* "osVer": "x",
|
|
558
|
+
* "uniVer": "x",
|
|
559
|
+
* "unixVer": "x"
|
|
560
|
+
* },
|
|
561
|
+
* "ios": {
|
|
562
|
+
* "osVer": "x",
|
|
563
|
+
* "uniVer": "x",
|
|
564
|
+
* "unixVer": "x"
|
|
565
|
+
* },
|
|
566
|
+
* "harmony": {
|
|
567
|
+
* "osVer": "x",
|
|
568
|
+
* "uniVer": "x",
|
|
569
|
+
* "unixVer": "x"
|
|
570
|
+
* }
|
|
571
|
+
* }
|
|
572
|
+
* }
|
|
573
|
+
*/
|
|
574
|
+
'sinaweibo' |
|
|
575
|
+
/**
|
|
576
|
+
* 小米登录
|
|
577
|
+
* @uniPlatform {
|
|
578
|
+
* "app": {
|
|
579
|
+
* "android": {
|
|
580
|
+
* "osVer": "x",
|
|
581
|
+
* "uniVer": "x",
|
|
582
|
+
* "unixVer": "x"
|
|
583
|
+
* },
|
|
584
|
+
* "ios": {
|
|
585
|
+
* "osVer": "x",
|
|
586
|
+
* "uniVer": "x",
|
|
587
|
+
* "unixVer": "x"
|
|
588
|
+
* },
|
|
589
|
+
* "harmony": {
|
|
590
|
+
* "osVer": "x",
|
|
591
|
+
* "uniVer": "x",
|
|
592
|
+
* "unixVer": "x"
|
|
593
|
+
* }
|
|
594
|
+
* }
|
|
595
|
+
* }
|
|
596
|
+
*/
|
|
597
|
+
'xiaomi' |
|
|
598
|
+
/**
|
|
599
|
+
* Apple登录
|
|
600
|
+
* @uniPlatform {
|
|
601
|
+
* "app": {
|
|
602
|
+
* "android": {
|
|
603
|
+
* "osVer": "x",
|
|
604
|
+
* "uniVer": "x",
|
|
605
|
+
* "unixVer": "x"
|
|
606
|
+
* },
|
|
607
|
+
* "ios": {
|
|
608
|
+
* "osVer": "x",
|
|
609
|
+
* "uniVer": "x",
|
|
610
|
+
* "unixVer": "x"
|
|
611
|
+
* },
|
|
612
|
+
* "harmony": {
|
|
613
|
+
* "osVer": "x",
|
|
614
|
+
* "uniVer": "x",
|
|
615
|
+
* "unixVer": "x"
|
|
616
|
+
* }
|
|
617
|
+
* }
|
|
618
|
+
* }
|
|
619
|
+
*/
|
|
620
|
+
'apple' |
|
|
621
|
+
/**
|
|
622
|
+
* 华为 HarmonyOS 华为账号登录
|
|
623
|
+
* @uniPlatform {
|
|
624
|
+
* "app": {
|
|
625
|
+
* "android": {
|
|
626
|
+
* "osVer": "x",
|
|
627
|
+
* "uniVer": "x",
|
|
628
|
+
* "unixVer": "x"
|
|
629
|
+
* },
|
|
630
|
+
* "ios": {
|
|
631
|
+
* "osVer": "x",
|
|
632
|
+
* "uniVer": "x",
|
|
633
|
+
* "unixVer": "x"
|
|
634
|
+
* },
|
|
635
|
+
* "harmony": {
|
|
636
|
+
* "osVer": "3.0",
|
|
637
|
+
* "uniVer": "x",
|
|
638
|
+
* "unixVer": "4.61",
|
|
639
|
+
* "unixVaporVer": "5.0"
|
|
640
|
+
* }
|
|
641
|
+
* }
|
|
642
|
+
* }
|
|
643
|
+
*/
|
|
644
|
+
'huawei' | null,
|
|
645
|
+
/**
|
|
646
|
+
* 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
|
|
647
|
+
*
|
|
648
|
+
* @uniPlatform {
|
|
649
|
+
* "app": {
|
|
650
|
+
* "android": {
|
|
651
|
+
* "osVer": "x",
|
|
652
|
+
* "uniVer": "x",
|
|
653
|
+
* "unixVer": "x"
|
|
654
|
+
* },
|
|
655
|
+
* "ios": {
|
|
656
|
+
* "osVer": "x",
|
|
657
|
+
* "uniVer": "x",
|
|
658
|
+
* "unixVer": "x"
|
|
659
|
+
* },
|
|
660
|
+
* "harmony": {
|
|
661
|
+
* "osVer": "x",
|
|
662
|
+
* "uniVer": "x",
|
|
663
|
+
* "unixVer": "x"
|
|
664
|
+
* }
|
|
665
|
+
* }
|
|
666
|
+
* "mp": {
|
|
667
|
+
* "alipay": {
|
|
668
|
+
* "hostVer": "√",
|
|
669
|
+
* "uniVer": "√",
|
|
670
|
+
* "unixVer": "x"
|
|
671
|
+
* }
|
|
672
|
+
* }
|
|
673
|
+
* }
|
|
674
|
+
*/
|
|
675
|
+
scopes?: any | null,
|
|
676
|
+
/**
|
|
677
|
+
* 超时时间,单位 ms
|
|
678
|
+
* @uniPlatform {
|
|
679
|
+
* "app": {
|
|
680
|
+
* "android": {
|
|
681
|
+
* "osVer": "x",
|
|
682
|
+
* "uniVer": "x",
|
|
683
|
+
* "unixVer": "x"
|
|
684
|
+
* },
|
|
685
|
+
* "ios": {
|
|
686
|
+
* "osVer": "x",
|
|
687
|
+
* "uniVer": "x",
|
|
688
|
+
* "unixVer": "x"
|
|
689
|
+
* },
|
|
690
|
+
* "harmony": {
|
|
691
|
+
* "osVer": "x",
|
|
692
|
+
* "uniVer": "x",
|
|
693
|
+
* "unixVer": "x"
|
|
694
|
+
* }
|
|
695
|
+
* }
|
|
696
|
+
* "mp": {
|
|
697
|
+
* "weixin": {
|
|
698
|
+
* "hostVer": "√",
|
|
699
|
+
* "uniVer": "√",
|
|
700
|
+
* "unixVer": "2.35"
|
|
701
|
+
* },
|
|
702
|
+
* "baidu": {
|
|
703
|
+
* "hostVer": "√",
|
|
704
|
+
* "uniVer": "√",
|
|
705
|
+
* "unixVer": "x"
|
|
706
|
+
* },
|
|
707
|
+
* "jd": {
|
|
708
|
+
* "hostVer": "√",
|
|
709
|
+
* "uniVer": "√",
|
|
710
|
+
* "unixVer": "x"
|
|
711
|
+
* }
|
|
712
|
+
* }
|
|
713
|
+
* }
|
|
714
|
+
*/
|
|
715
|
+
timeout?: number | null,
|
|
716
|
+
/**
|
|
717
|
+
* 微信登录仅请求授权认证
|
|
718
|
+
*
|
|
719
|
+
* @uniPlatform {
|
|
720
|
+
* "app": {
|
|
721
|
+
* "android": {
|
|
722
|
+
* "osVer": "5.0",
|
|
723
|
+
* "uniVer": "3.2.6",
|
|
724
|
+
* "unixVer": "x"
|
|
725
|
+
* },
|
|
726
|
+
* "ios": {
|
|
727
|
+
* "osVer": "12.0",
|
|
728
|
+
* "uniVer": "3.2.6",
|
|
729
|
+
* "unixVer": "x"
|
|
730
|
+
* },
|
|
731
|
+
* "harmony": {
|
|
732
|
+
* "osVer": "5.0.0",
|
|
733
|
+
* "uniVer": "4.76",
|
|
734
|
+
* "unixVer": "4.81",
|
|
735
|
+
* "unixVaporVer": "5.0"
|
|
736
|
+
* }
|
|
737
|
+
* },
|
|
738
|
+
* "web": {
|
|
739
|
+
* "uniVer": "x",
|
|
740
|
+
* "unixVer": "x"
|
|
741
|
+
* }
|
|
742
|
+
* }
|
|
743
|
+
*/
|
|
744
|
+
onlyAuthorize?: boolean | null,
|
|
745
|
+
/**
|
|
741
746
|
* 接口调用成功的回调函数
|
|
742
747
|
* @uniPlatform {
|
|
743
748
|
* "mp": {
|
|
@@ -783,9 +788,9 @@ export type LoginOptions = {
|
|
|
783
788
|
* }
|
|
784
789
|
* }
|
|
785
790
|
* }
|
|
786
|
-
*/
|
|
787
|
-
success?: LoginSuccessCallback | null,
|
|
788
|
-
/**
|
|
791
|
+
*/
|
|
792
|
+
success?: LoginSuccessCallback | null,
|
|
793
|
+
/**
|
|
789
794
|
* 接口调用失败的回调函数
|
|
790
795
|
* @uniPlatform {
|
|
791
796
|
* "mp": {
|
|
@@ -831,9 +836,9 @@ export type LoginOptions = {
|
|
|
831
836
|
* }
|
|
832
837
|
* }
|
|
833
838
|
* }
|
|
834
|
-
*/
|
|
835
|
-
fail?: LoginFailCallback | null,
|
|
836
|
-
/**
|
|
839
|
+
*/
|
|
840
|
+
fail?: LoginFailCallback | null,
|
|
841
|
+
/**
|
|
837
842
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
838
843
|
* @uniPlatform {
|
|
839
844
|
* "mp": {
|
|
@@ -879,317 +884,318 @@ export type LoginOptions = {
|
|
|
879
884
|
* }
|
|
880
885
|
* }
|
|
881
886
|
* }
|
|
882
|
-
*/
|
|
883
|
-
complete?: LoginCompleteCallback | null
|
|
884
|
-
};
|
|
885
|
-
|
|
886
|
-
export type UniverifyIconStyles = {
|
|
887
|
-
/**
|
|
888
|
-
* 图标地址
|
|
889
|
-
*
|
|
890
|
-
* 仅支持本地路径,默认为应用图标。
|
|
891
|
-
*/
|
|
892
|
-
path: string,
|
|
893
|
-
/**
|
|
894
|
-
* 图标宽度
|
|
895
|
-
*
|
|
896
|
-
* 格式为“XXpx",默认值为"60px"。
|
|
897
|
-
*/
|
|
898
|
-
width?: string | null,
|
|
899
|
-
/**
|
|
900
|
-
* 图标高度
|
|
901
|
-
*
|
|
902
|
-
* 格式为“XXpx",默认值为"60px"。
|
|
903
|
-
*/
|
|
904
|
-
height?: string | null
|
|
905
|
-
};
|
|
906
|
-
export type UniverifyPhoneNumStyles = {
|
|
907
|
-
/**
|
|
908
|
-
* 字体颜色
|
|
909
|
-
*
|
|
910
|
-
* 格式为"#RRGGBB",默认值为"#000000"。
|
|
911
|
-
*/
|
|
912
|
-
color?: string | null,
|
|
913
|
-
/**
|
|
914
|
-
* 字体大小
|
|
915
|
-
*
|
|
916
|
-
* 格式为“XXpx",默认值为"18px"。注意:字体加粗显示。
|
|
917
|
-
*/
|
|
918
|
-
fontSize?: string | null
|
|
919
|
-
};
|
|
920
|
-
export type UniverifySloganStyles = {
|
|
921
|
-
/**
|
|
922
|
-
* 字体颜色
|
|
923
|
-
*
|
|
924
|
-
* 格式为"#RRGGBB",默认值为"#8a8b90"。
|
|
925
|
-
*/
|
|
926
|
-
color?: string | null,
|
|
927
|
-
/**
|
|
928
|
-
* 字体大小
|
|
929
|
-
*
|
|
930
|
-
* 格式为“XXpx",默认值为"12px"。
|
|
931
|
-
*/
|
|
932
|
-
fontSize?: string | null
|
|
933
|
-
};
|
|
934
|
-
export type UniverifyAuthButtonStyles = {
|
|
935
|
-
/**
|
|
936
|
-
* 正常状态按钮颜色
|
|
937
|
-
*
|
|
938
|
-
* 格式为"#RRGGBB",默认值为"#3479f5"。
|
|
939
|
-
*/
|
|
940
|
-
normalColor?: string | null,
|
|
941
|
-
/**
|
|
942
|
-
* 按下状态按钮颜色
|
|
943
|
-
*
|
|
944
|
-
* 格式为"#RRGGBB",默认值为"#2861c5"。
|
|
945
|
-
*/
|
|
946
|
-
highlightColor?: string | null,
|
|
947
|
-
/**
|
|
948
|
-
* 不可点击状态按钮颜色
|
|
949
|
-
*
|
|
950
|
-
* 格式为"#RRGGBB",默认值为"#73aaf5"。 注意:仅iOS平台支持。
|
|
951
|
-
*/
|
|
952
|
-
disabledColor?: string | null,
|
|
953
|
-
/**
|
|
954
|
-
* 按钮宽度
|
|
955
|
-
*
|
|
956
|
-
* 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
|
|
957
|
-
*/
|
|
958
|
-
width?: string | null,
|
|
959
|
-
/**
|
|
960
|
-
* 按钮高度
|
|
961
|
-
*
|
|
962
|
-
* 格式为“XXpx",默认值为"94px"。
|
|
963
|
-
*/
|
|
964
|
-
height?: string | null,
|
|
965
|
-
/**
|
|
966
|
-
* 按钮上文字颜色
|
|
967
|
-
*
|
|
968
|
-
* 格式为"#RRGGBB",默认值为"#ffffff"。
|
|
969
|
-
*/
|
|
970
|
-
textColor?: string | null,
|
|
971
|
-
/**
|
|
972
|
-
* 按钮上文字内容
|
|
973
|
-
*
|
|
974
|
-
* 默认值为"本机号码一键登录"。
|
|
975
|
-
*/
|
|
976
|
-
title?: string | null,
|
|
977
|
-
/**
|
|
978
|
-
* 授权按钮圆角
|
|
979
|
-
*
|
|
980
|
-
* 格式为“XXpx",默认值:"24px" (按钮高度的一半)
|
|
981
|
-
*/
|
|
982
|
-
borderRadius?: string | null
|
|
983
|
-
};
|
|
984
|
-
export type UniverifyOtherButtonStyles = {
|
|
985
|
-
/**
|
|
986
|
-
* 是否显示其它按钮
|
|
987
|
-
*
|
|
988
|
-
* 可取值: true - 显示其它按钮;false - 不显示其它按钮。 默认值为true。
|
|
989
|
-
* @type boolean
|
|
990
|
-
*/
|
|
991
|
-
visible?: boolean | null,
|
|
992
|
-
/**
|
|
993
|
-
* 正常状态按钮颜色
|
|
994
|
-
*
|
|
995
|
-
* 格式为"#RRGGBB",默认值为"#f8f8f8"。
|
|
996
|
-
*/
|
|
997
|
-
normalColor?: string | null,
|
|
998
|
-
/**
|
|
999
|
-
* 按下状态按钮颜色
|
|
1000
|
-
*
|
|
1001
|
-
* 格式为"#RRGGBB",默认值为"#dedede"。
|
|
1002
|
-
*/
|
|
1003
|
-
highlightColor?: string | null,
|
|
1004
|
-
/**
|
|
1005
|
-
* 按钮宽度
|
|
1006
|
-
*
|
|
1007
|
-
* 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
|
|
1008
|
-
*/
|
|
1009
|
-
width?: string | null,
|
|
1010
|
-
/**
|
|
1011
|
-
* 按钮高度
|
|
1012
|
-
*
|
|
1013
|
-
* 格式为“XXpx",默认值为"94px"。
|
|
1014
|
-
*/
|
|
1015
|
-
height?: string | null,
|
|
1016
|
-
/**
|
|
1017
|
-
* 按钮上文字颜色
|
|
1018
|
-
*
|
|
1019
|
-
* 格式为"#RRGGBB",默认值为"#000000"。
|
|
1020
|
-
*/
|
|
1021
|
-
textColor?: string | null,
|
|
1022
|
-
/**
|
|
1023
|
-
* 按钮上文字内容
|
|
1024
|
-
*
|
|
1025
|
-
* 默认值为"本机号码一键登录"。
|
|
1026
|
-
*/
|
|
1027
|
-
title?: string | null,
|
|
1028
|
-
/**
|
|
1029
|
-
* 按钮边框宽度
|
|
1030
|
-
*
|
|
1031
|
-
* 格式为“XXpx",默认值为"1px"。 注意:仅iOS平台支持。
|
|
1032
|
-
*/
|
|
1033
|
-
borderWidth?: string | null,
|
|
1034
|
-
/**
|
|
1035
|
-
* 按钮边框颜色
|
|
1036
|
-
*
|
|
1037
|
-
* 格式为"#RRGGBB",默认值为"#c5c5c5"。 注意:仅iOS平台支持。
|
|
1038
|
-
*/
|
|
1039
|
-
borderColor?: string | null,
|
|
1040
|
-
/**
|
|
1041
|
-
* 其他登录按钮圆角
|
|
1042
|
-
*
|
|
1043
|
-
* 格式为“XXpx",默认值:"24px" (按钮高度的一半)
|
|
1044
|
-
*/
|
|
1045
|
-
borderRadius?: string | null
|
|
1046
|
-
};
|
|
1047
|
-
export type UniverifyPrivacyItemStyles = {
|
|
1048
|
-
/**
|
|
1049
|
-
* 链接地址
|
|
1050
|
-
*
|
|
1051
|
-
* http/https开头的协议链接地址。
|
|
1052
|
-
*/
|
|
1053
|
-
url: string,
|
|
1054
|
-
/**
|
|
1055
|
-
* 协议链接文字
|
|
1056
|
-
*/
|
|
1057
|
-
title: string
|
|
1058
|
-
};
|
|
1059
|
-
export type UniverifyPrivacyTermsStyles = {
|
|
1060
|
-
/**
|
|
1061
|
-
* 默认是否勾选同意协议选择框
|
|
1062
|
-
*
|
|
1063
|
-
* ture表示勾选,false表示不勾选。默认值为true。
|
|
1064
|
-
* HBuilderX3.1.0+版本新增支持。
|
|
1065
|
-
* @type boolean
|
|
1066
|
-
*/
|
|
1067
|
-
defaultCheckBoxState?: boolean | null,
|
|
1068
|
-
/**
|
|
1069
|
-
* 普通文字颜色
|
|
1070
|
-
*
|
|
1071
|
-
* 格式为"#RRGGBB",默认值为"#8a8b90"。
|
|
1072
|
-
*/
|
|
1073
|
-
textColor?: string | null,
|
|
1074
|
-
/**
|
|
1075
|
-
* 协议链接文字颜色
|
|
1076
|
-
*
|
|
1077
|
-
* 格式为"#RRGGBB",默认值为"#1d4788"。
|
|
1078
|
-
*/
|
|
1079
|
-
termsColor?: string | null,
|
|
1080
|
-
/**
|
|
1081
|
-
* 服务协议前文本内容
|
|
1082
|
-
*
|
|
1083
|
-
* 默认值为"我已阅读并同意"。
|
|
1084
|
-
*/
|
|
1085
|
-
prefix?: string | null,
|
|
1086
|
-
/**
|
|
1087
|
-
* 服务协议后文本内容
|
|
1088
|
-
*
|
|
1089
|
-
* 默认值为"并使用本机号码登录"。
|
|
1090
|
-
*/
|
|
1091
|
-
suffix?: string | null,
|
|
1092
|
-
/**
|
|
1093
|
-
* 字体大小
|
|
1094
|
-
*
|
|
1095
|
-
* 格式为“XXpx",默认值为"12px"。
|
|
1096
|
-
*/
|
|
1097
|
-
fontSize?: string | null,
|
|
1098
|
-
/**
|
|
1099
|
-
* 服务协议
|
|
1100
|
-
*
|
|
1101
|
-
* 自定义服务协议,可设置使用手机号码登录的协议,最多可设置两个协议。 注意:运营商的服务协议链接会自动添加到自定义服务协议之前。
|
|
1102
|
-
*/
|
|
1103
|
-
privacyItems?: (UniverifyPrivacyItemStyles[]) | null
|
|
1104
|
-
};
|
|
1105
|
-
export type UniVerifyButtonListItem = {
|
|
1106
|
-
/**
|
|
1107
|
-
* 该按钮标识,会原样返回。
|
|
1108
|
-
*/
|
|
1109
|
-
provider: string,
|
|
1110
|
-
/**
|
|
1111
|
-
* 图片路径
|
|
1112
|
-
*
|
|
1113
|
-
* 仅支持本地图片
|
|
1114
|
-
*/
|
|
1115
|
-
iconPath: string
|
|
1116
|
-
};
|
|
1117
|
-
export type UniVerifyButtonsStyles = {
|
|
1118
|
-
/**
|
|
1119
|
-
* 自定义登录按钮图标宽度
|
|
1120
|
-
*
|
|
1121
|
-
* 单位为px,默认值为45px。
|
|
1122
|
-
* 按指定宽度缩放,高度等比例缩放。
|
|
1123
|
-
*/
|
|
1124
|
-
iconWidth?: string | null,
|
|
1125
|
-
/**
|
|
1126
|
-
* 自定义登录按钮列表
|
|
1127
|
-
*/
|
|
1128
|
-
list: UniVerifyButtonListItem[]
|
|
1129
|
-
};
|
|
1130
|
-
export type UniverifyStyle = {
|
|
1131
|
-
/**
|
|
1132
|
-
* 是否全屏模式。
|
|
1133
|
-
*
|
|
1134
|
-
* true表示全屏模式,false表示非全屏模式,默认值为false。
|
|
1135
|
-
* @type boolean
|
|
1136
|
-
*/
|
|
1137
|
-
fullScreen?: boolean | null,
|
|
1138
|
-
/**
|
|
1139
|
-
* 授权界面背景颜色。
|
|
1140
|
-
*
|
|
1141
|
-
* 格式为"#RRGGBB",默认值为"#FFFFF"。
|
|
1142
|
-
*/
|
|
1143
|
-
backgroundColor?: string | null,
|
|
1144
|
-
/**
|
|
1145
|
-
* 背景图片
|
|
1146
|
-
*/
|
|
1147
|
-
backgroundImage?: string | null,
|
|
1148
|
-
/**
|
|
1149
|
-
* 授权界面图标样式。
|
|
1150
|
-
*
|
|
1151
|
-
* 可设置自定义图标,默认为应用图标。
|
|
1152
|
-
*/
|
|
1153
|
-
icon?: UniverifyIconStyles | null,
|
|
1154
|
-
/**
|
|
1155
|
-
* 授权界面电话号码样式
|
|
1156
|
-
*
|
|
1157
|
-
* 可设置自定义电话号码文字颜色、大小等。
|
|
1158
|
-
*/
|
|
1159
|
-
phoneNum?: UniverifyPhoneNumStyles | null,
|
|
1160
|
-
/**
|
|
1161
|
-
* 授权界面服务说明样式
|
|
1162
|
-
*
|
|
1163
|
-
* 可设置自定义服务说明文字颜色、大小等。
|
|
1164
|
-
*/
|
|
1165
|
-
slogan?: UniverifySloganStyles | null,
|
|
1166
|
-
/**
|
|
1167
|
-
* 授权界面其他登录按钮样式
|
|
1168
|
-
*
|
|
1169
|
-
* 可设置自定义其他登录按钮背景颜色、文本内容、大小等。
|
|
1170
|
-
*/
|
|
1171
|
-
authButton?: UniverifyAuthButtonStyles | null,
|
|
1172
|
-
/**
|
|
1173
|
-
* 支付宝小程序登录成功的授权 scope
|
|
1174
|
-
*/
|
|
1175
|
-
otherLoginButton?: UniverifyOtherButtonStyles | null,
|
|
1176
|
-
/**
|
|
1177
|
-
* 授权界面服务协议样式
|
|
1178
|
-
*
|
|
1179
|
-
* 自定义设置服务器协议文字颜色、文本内容,添加自定义服务协议链接等。
|
|
1180
|
-
*/
|
|
1181
|
-
privacyTerms?: UniverifyPrivacyTermsStyles | null,
|
|
1182
|
-
/**
|
|
1183
|
-
* 自定义登录按钮列表样式
|
|
1184
|
-
*
|
|
1185
|
-
* 自定义设置更多登录按钮列表,如其它三方登录等。
|
|
1186
|
-
* 注意:HBuilderX3.1.14+版本支持。
|
|
1187
|
-
*/
|
|
1188
|
-
buttons?: UniVerifyButtonsStyles | null
|
|
1189
|
-
};
|
|
1190
|
-
|
|
1191
|
-
export type
|
|
1192
|
-
|
|
887
|
+
*/
|
|
888
|
+
complete?: LoginCompleteCallback | null
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
export type UniverifyIconStyles = {
|
|
892
|
+
/**
|
|
893
|
+
* 图标地址
|
|
894
|
+
*
|
|
895
|
+
* 仅支持本地路径,默认为应用图标。
|
|
896
|
+
*/
|
|
897
|
+
path: string,
|
|
898
|
+
/**
|
|
899
|
+
* 图标宽度
|
|
900
|
+
*
|
|
901
|
+
* 格式为“XXpx",默认值为"60px"。
|
|
902
|
+
*/
|
|
903
|
+
width?: string | null,
|
|
904
|
+
/**
|
|
905
|
+
* 图标高度
|
|
906
|
+
*
|
|
907
|
+
* 格式为“XXpx",默认值为"60px"。
|
|
908
|
+
*/
|
|
909
|
+
height?: string | null
|
|
910
|
+
};
|
|
911
|
+
export type UniverifyPhoneNumStyles = {
|
|
912
|
+
/**
|
|
913
|
+
* 字体颜色
|
|
914
|
+
*
|
|
915
|
+
* 格式为"#RRGGBB",默认值为"#000000"。
|
|
916
|
+
*/
|
|
917
|
+
color?: string | null,
|
|
918
|
+
/**
|
|
919
|
+
* 字体大小
|
|
920
|
+
*
|
|
921
|
+
* 格式为“XXpx",默认值为"18px"。注意:字体加粗显示。
|
|
922
|
+
*/
|
|
923
|
+
fontSize?: string | null
|
|
924
|
+
};
|
|
925
|
+
export type UniverifySloganStyles = {
|
|
926
|
+
/**
|
|
927
|
+
* 字体颜色
|
|
928
|
+
*
|
|
929
|
+
* 格式为"#RRGGBB",默认值为"#8a8b90"。
|
|
930
|
+
*/
|
|
931
|
+
color?: string | null,
|
|
932
|
+
/**
|
|
933
|
+
* 字体大小
|
|
934
|
+
*
|
|
935
|
+
* 格式为“XXpx",默认值为"12px"。
|
|
936
|
+
*/
|
|
937
|
+
fontSize?: string | null
|
|
938
|
+
};
|
|
939
|
+
export type UniverifyAuthButtonStyles = {
|
|
940
|
+
/**
|
|
941
|
+
* 正常状态按钮颜色
|
|
942
|
+
*
|
|
943
|
+
* 格式为"#RRGGBB",默认值为"#3479f5"。
|
|
944
|
+
*/
|
|
945
|
+
normalColor?: string | null,
|
|
946
|
+
/**
|
|
947
|
+
* 按下状态按钮颜色
|
|
948
|
+
*
|
|
949
|
+
* 格式为"#RRGGBB",默认值为"#2861c5"。
|
|
950
|
+
*/
|
|
951
|
+
highlightColor?: string | null,
|
|
952
|
+
/**
|
|
953
|
+
* 不可点击状态按钮颜色
|
|
954
|
+
*
|
|
955
|
+
* 格式为"#RRGGBB",默认值为"#73aaf5"。 注意:仅iOS平台支持。
|
|
956
|
+
*/
|
|
957
|
+
disabledColor?: string | null,
|
|
958
|
+
/**
|
|
959
|
+
* 按钮宽度
|
|
960
|
+
*
|
|
961
|
+
* 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
|
|
962
|
+
*/
|
|
963
|
+
width?: string | null,
|
|
964
|
+
/**
|
|
965
|
+
* 按钮高度
|
|
966
|
+
*
|
|
967
|
+
* 格式为“XXpx",默认值为"94px"。
|
|
968
|
+
*/
|
|
969
|
+
height?: string | null,
|
|
970
|
+
/**
|
|
971
|
+
* 按钮上文字颜色
|
|
972
|
+
*
|
|
973
|
+
* 格式为"#RRGGBB",默认值为"#ffffff"。
|
|
974
|
+
*/
|
|
975
|
+
textColor?: string | null,
|
|
976
|
+
/**
|
|
977
|
+
* 按钮上文字内容
|
|
978
|
+
*
|
|
979
|
+
* 默认值为"本机号码一键登录"。
|
|
980
|
+
*/
|
|
981
|
+
title?: string | null,
|
|
982
|
+
/**
|
|
983
|
+
* 授权按钮圆角
|
|
984
|
+
*
|
|
985
|
+
* 格式为“XXpx",默认值:"24px" (按钮高度的一半)
|
|
986
|
+
*/
|
|
987
|
+
borderRadius?: string | null
|
|
988
|
+
};
|
|
989
|
+
export type UniverifyOtherButtonStyles = {
|
|
990
|
+
/**
|
|
991
|
+
* 是否显示其它按钮
|
|
992
|
+
*
|
|
993
|
+
* 可取值: true - 显示其它按钮;false - 不显示其它按钮。 默认值为true。
|
|
994
|
+
* @type boolean
|
|
995
|
+
*/
|
|
996
|
+
visible?: boolean | null,
|
|
997
|
+
/**
|
|
998
|
+
* 正常状态按钮颜色
|
|
999
|
+
*
|
|
1000
|
+
* 格式为"#RRGGBB",默认值为"#f8f8f8"。
|
|
1001
|
+
*/
|
|
1002
|
+
normalColor?: string | null,
|
|
1003
|
+
/**
|
|
1004
|
+
* 按下状态按钮颜色
|
|
1005
|
+
*
|
|
1006
|
+
* 格式为"#RRGGBB",默认值为"#dedede"。
|
|
1007
|
+
*/
|
|
1008
|
+
highlightColor?: string | null,
|
|
1009
|
+
/**
|
|
1010
|
+
* 按钮宽度
|
|
1011
|
+
*
|
|
1012
|
+
* 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
|
|
1013
|
+
*/
|
|
1014
|
+
width?: string | null,
|
|
1015
|
+
/**
|
|
1016
|
+
* 按钮高度
|
|
1017
|
+
*
|
|
1018
|
+
* 格式为“XXpx",默认值为"94px"。
|
|
1019
|
+
*/
|
|
1020
|
+
height?: string | null,
|
|
1021
|
+
/**
|
|
1022
|
+
* 按钮上文字颜色
|
|
1023
|
+
*
|
|
1024
|
+
* 格式为"#RRGGBB",默认值为"#000000"。
|
|
1025
|
+
*/
|
|
1026
|
+
textColor?: string | null,
|
|
1027
|
+
/**
|
|
1028
|
+
* 按钮上文字内容
|
|
1029
|
+
*
|
|
1030
|
+
* 默认值为"本机号码一键登录"。
|
|
1031
|
+
*/
|
|
1032
|
+
title?: string | null,
|
|
1033
|
+
/**
|
|
1034
|
+
* 按钮边框宽度
|
|
1035
|
+
*
|
|
1036
|
+
* 格式为“XXpx",默认值为"1px"。 注意:仅iOS平台支持。
|
|
1037
|
+
*/
|
|
1038
|
+
borderWidth?: string | null,
|
|
1039
|
+
/**
|
|
1040
|
+
* 按钮边框颜色
|
|
1041
|
+
*
|
|
1042
|
+
* 格式为"#RRGGBB",默认值为"#c5c5c5"。 注意:仅iOS平台支持。
|
|
1043
|
+
*/
|
|
1044
|
+
borderColor?: string | null,
|
|
1045
|
+
/**
|
|
1046
|
+
* 其他登录按钮圆角
|
|
1047
|
+
*
|
|
1048
|
+
* 格式为“XXpx",默认值:"24px" (按钮高度的一半)
|
|
1049
|
+
*/
|
|
1050
|
+
borderRadius?: string | null
|
|
1051
|
+
};
|
|
1052
|
+
export type UniverifyPrivacyItemStyles = {
|
|
1053
|
+
/**
|
|
1054
|
+
* 链接地址
|
|
1055
|
+
*
|
|
1056
|
+
* http/https开头的协议链接地址。
|
|
1057
|
+
*/
|
|
1058
|
+
url: string,
|
|
1059
|
+
/**
|
|
1060
|
+
* 协议链接文字
|
|
1061
|
+
*/
|
|
1062
|
+
title: string
|
|
1063
|
+
};
|
|
1064
|
+
export type UniverifyPrivacyTermsStyles = {
|
|
1065
|
+
/**
|
|
1066
|
+
* 默认是否勾选同意协议选择框
|
|
1067
|
+
*
|
|
1068
|
+
* ture表示勾选,false表示不勾选。默认值为true。
|
|
1069
|
+
* HBuilderX3.1.0+版本新增支持。
|
|
1070
|
+
* @type boolean
|
|
1071
|
+
*/
|
|
1072
|
+
defaultCheckBoxState?: boolean | null,
|
|
1073
|
+
/**
|
|
1074
|
+
* 普通文字颜色
|
|
1075
|
+
*
|
|
1076
|
+
* 格式为"#RRGGBB",默认值为"#8a8b90"。
|
|
1077
|
+
*/
|
|
1078
|
+
textColor?: string | null,
|
|
1079
|
+
/**
|
|
1080
|
+
* 协议链接文字颜色
|
|
1081
|
+
*
|
|
1082
|
+
* 格式为"#RRGGBB",默认值为"#1d4788"。
|
|
1083
|
+
*/
|
|
1084
|
+
termsColor?: string | null,
|
|
1085
|
+
/**
|
|
1086
|
+
* 服务协议前文本内容
|
|
1087
|
+
*
|
|
1088
|
+
* 默认值为"我已阅读并同意"。
|
|
1089
|
+
*/
|
|
1090
|
+
prefix?: string | null,
|
|
1091
|
+
/**
|
|
1092
|
+
* 服务协议后文本内容
|
|
1093
|
+
*
|
|
1094
|
+
* 默认值为"并使用本机号码登录"。
|
|
1095
|
+
*/
|
|
1096
|
+
suffix?: string | null,
|
|
1097
|
+
/**
|
|
1098
|
+
* 字体大小
|
|
1099
|
+
*
|
|
1100
|
+
* 格式为“XXpx",默认值为"12px"。
|
|
1101
|
+
*/
|
|
1102
|
+
fontSize?: string | null,
|
|
1103
|
+
/**
|
|
1104
|
+
* 服务协议
|
|
1105
|
+
*
|
|
1106
|
+
* 自定义服务协议,可设置使用手机号码登录的协议,最多可设置两个协议。 注意:运营商的服务协议链接会自动添加到自定义服务协议之前。
|
|
1107
|
+
*/
|
|
1108
|
+
privacyItems?: (UniverifyPrivacyItemStyles[]) | null
|
|
1109
|
+
};
|
|
1110
|
+
export type UniVerifyButtonListItem = {
|
|
1111
|
+
/**
|
|
1112
|
+
* 该按钮标识,会原样返回。
|
|
1113
|
+
*/
|
|
1114
|
+
provider: string,
|
|
1115
|
+
/**
|
|
1116
|
+
* 图片路径
|
|
1117
|
+
*
|
|
1118
|
+
* 仅支持本地图片
|
|
1119
|
+
*/
|
|
1120
|
+
iconPath: string
|
|
1121
|
+
};
|
|
1122
|
+
export type UniVerifyButtonsStyles = {
|
|
1123
|
+
/**
|
|
1124
|
+
* 自定义登录按钮图标宽度
|
|
1125
|
+
*
|
|
1126
|
+
* 单位为px,默认值为45px。
|
|
1127
|
+
* 按指定宽度缩放,高度等比例缩放。
|
|
1128
|
+
*/
|
|
1129
|
+
iconWidth?: string | null,
|
|
1130
|
+
/**
|
|
1131
|
+
* 自定义登录按钮列表
|
|
1132
|
+
*/
|
|
1133
|
+
list: UniVerifyButtonListItem[]
|
|
1134
|
+
};
|
|
1135
|
+
export type UniverifyStyle = {
|
|
1136
|
+
/**
|
|
1137
|
+
* 是否全屏模式。
|
|
1138
|
+
*
|
|
1139
|
+
* true表示全屏模式,false表示非全屏模式,默认值为false。
|
|
1140
|
+
* @type boolean
|
|
1141
|
+
*/
|
|
1142
|
+
fullScreen?: boolean | null,
|
|
1143
|
+
/**
|
|
1144
|
+
* 授权界面背景颜色。
|
|
1145
|
+
*
|
|
1146
|
+
* 格式为"#RRGGBB",默认值为"#FFFFF"。
|
|
1147
|
+
*/
|
|
1148
|
+
backgroundColor?: string | null,
|
|
1149
|
+
/**
|
|
1150
|
+
* 背景图片
|
|
1151
|
+
*/
|
|
1152
|
+
backgroundImage?: string | null,
|
|
1153
|
+
/**
|
|
1154
|
+
* 授权界面图标样式。
|
|
1155
|
+
*
|
|
1156
|
+
* 可设置自定义图标,默认为应用图标。
|
|
1157
|
+
*/
|
|
1158
|
+
icon?: UniverifyIconStyles | null,
|
|
1159
|
+
/**
|
|
1160
|
+
* 授权界面电话号码样式
|
|
1161
|
+
*
|
|
1162
|
+
* 可设置自定义电话号码文字颜色、大小等。
|
|
1163
|
+
*/
|
|
1164
|
+
phoneNum?: UniverifyPhoneNumStyles | null,
|
|
1165
|
+
/**
|
|
1166
|
+
* 授权界面服务说明样式
|
|
1167
|
+
*
|
|
1168
|
+
* 可设置自定义服务说明文字颜色、大小等。
|
|
1169
|
+
*/
|
|
1170
|
+
slogan?: UniverifySloganStyles | null,
|
|
1171
|
+
/**
|
|
1172
|
+
* 授权界面其他登录按钮样式
|
|
1173
|
+
*
|
|
1174
|
+
* 可设置自定义其他登录按钮背景颜色、文本内容、大小等。
|
|
1175
|
+
*/
|
|
1176
|
+
authButton?: UniverifyAuthButtonStyles | null,
|
|
1177
|
+
/**
|
|
1178
|
+
* 支付宝小程序登录成功的授权 scope
|
|
1179
|
+
*/
|
|
1180
|
+
otherLoginButton?: UniverifyOtherButtonStyles | null,
|
|
1181
|
+
/**
|
|
1182
|
+
* 授权界面服务协议样式
|
|
1183
|
+
*
|
|
1184
|
+
* 自定义设置服务器协议文字颜色、文本内容,添加自定义服务协议链接等。
|
|
1185
|
+
*/
|
|
1186
|
+
privacyTerms?: UniverifyPrivacyTermsStyles | null,
|
|
1187
|
+
/**
|
|
1188
|
+
* 自定义登录按钮列表样式
|
|
1189
|
+
*
|
|
1190
|
+
* 自定义设置更多登录按钮列表,如其它三方登录等。
|
|
1191
|
+
* 注意:HBuilderX3.1.14+版本支持。
|
|
1192
|
+
*/
|
|
1193
|
+
buttons?: UniVerifyButtonsStyles | null
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
export type GetUserInfo = (options: GetUserInfoOptions) => void;
|
|
1197
|
+
export type UserInfo = {
|
|
1198
|
+
/**
|
|
1193
1199
|
* 用户昵称
|
|
1194
1200
|
* @uniPlatform {
|
|
1195
1201
|
* "mp": {
|
|
@@ -1235,88 +1241,88 @@ export type UserInfo = {
|
|
|
1235
1241
|
* }
|
|
1236
1242
|
* }
|
|
1237
1243
|
* }
|
|
1238
|
-
*/
|
|
1239
|
-
nickName: string,
|
|
1240
|
-
/**
|
|
1241
|
-
* 该服务商唯一用户标识
|
|
1242
|
-
* @uniPlatform {
|
|
1243
|
-
* "app": {
|
|
1244
|
-
* "android": {
|
|
1245
|
-
* "osVer": "5.0",
|
|
1246
|
-
* "uniVer": "√",
|
|
1247
|
-
* "unixVer": "x"
|
|
1248
|
-
* },
|
|
1249
|
-
* "ios": {
|
|
1250
|
-
* "osVer": "12.0",
|
|
1251
|
-
* "uniVer": "√",
|
|
1252
|
-
* "unixVer": "x"
|
|
1253
|
-
* },
|
|
1254
|
-
* "harmony": {
|
|
1255
|
-
* "osVer": "3.0",
|
|
1256
|
-
* "uniVer": "4.31",
|
|
1257
|
-
* "unixVer": "4.61",
|
|
1258
|
-
* "
|
|
1259
|
-
* }
|
|
1260
|
-
* },
|
|
1261
|
-
* "mp": {
|
|
1262
|
-
* "weixin": {
|
|
1263
|
-
* "hostVer": "x",
|
|
1264
|
-
* "uniVer": "x",
|
|
1265
|
-
* "unixVer": "x"
|
|
1266
|
-
* },
|
|
1267
|
-
* "alipay": {
|
|
1268
|
-
* "hostVer": "x",
|
|
1269
|
-
* "uniVer": "x",
|
|
1270
|
-
* "unixVer": "x"
|
|
1271
|
-
* },
|
|
1272
|
-
* "baidu": {
|
|
1273
|
-
* "hostVer": "x",
|
|
1274
|
-
* "uniVer": "x",
|
|
1275
|
-
* "unixVer": "x"
|
|
1276
|
-
* },
|
|
1277
|
-
* "toutiao": {
|
|
1278
|
-
* "hostVer": "x",
|
|
1279
|
-
* "uniVer": "x",
|
|
1280
|
-
* "unixVer": "x"
|
|
1281
|
-
* },
|
|
1282
|
-
* "lark": {
|
|
1283
|
-
* "hostVer": "x",
|
|
1284
|
-
* "uniVer": "x",
|
|
1285
|
-
* "unixVer": "x"
|
|
1286
|
-
* },
|
|
1287
|
-
* "qq": {
|
|
1288
|
-
* "hostVer": "x",
|
|
1289
|
-
* "uniVer": "x",
|
|
1290
|
-
* "unixVer": "x"
|
|
1291
|
-
* },
|
|
1292
|
-
* "kuaishou": {
|
|
1293
|
-
* "hostVer": "x",
|
|
1294
|
-
* "uniVer": "x",
|
|
1295
|
-
* "unixVer": "x"
|
|
1296
|
-
* },
|
|
1297
|
-
* "jd": {
|
|
1298
|
-
* "hostVer": "x",
|
|
1299
|
-
* "uniVer": "x",
|
|
1300
|
-
* "unixVer": "x"
|
|
1301
|
-
* },
|
|
1302
|
-
* "360": {
|
|
1303
|
-
* "hostVer": "x",
|
|
1304
|
-
* "uniVer": "x",
|
|
1305
|
-
* "unixVer": "x"
|
|
1306
|
-
* }
|
|
1307
|
-
* },
|
|
1308
|
-
* "quickapp": {
|
|
1309
|
-
* "uniVer": "x",
|
|
1310
|
-
* "unixVer": "x"
|
|
1311
|
-
* },
|
|
1312
|
-
* "web": {
|
|
1313
|
-
* "uniVer": "x",
|
|
1314
|
-
* "unixVer": "x"
|
|
1315
|
-
* }
|
|
1316
|
-
* }
|
|
1317
|
-
*/
|
|
1318
|
-
openId?: string | null,
|
|
1319
|
-
/**
|
|
1244
|
+
*/
|
|
1245
|
+
nickName: string,
|
|
1246
|
+
/**
|
|
1247
|
+
* 该服务商唯一用户标识
|
|
1248
|
+
* @uniPlatform {
|
|
1249
|
+
* "app": {
|
|
1250
|
+
* "android": {
|
|
1251
|
+
* "osVer": "5.0",
|
|
1252
|
+
* "uniVer": "√",
|
|
1253
|
+
* "unixVer": "x"
|
|
1254
|
+
* },
|
|
1255
|
+
* "ios": {
|
|
1256
|
+
* "osVer": "12.0",
|
|
1257
|
+
* "uniVer": "√",
|
|
1258
|
+
* "unixVer": "x"
|
|
1259
|
+
* },
|
|
1260
|
+
* "harmony": {
|
|
1261
|
+
* "osVer": "3.0",
|
|
1262
|
+
* "uniVer": "4.31",
|
|
1263
|
+
* "unixVer": "4.61",
|
|
1264
|
+
* "unixVaporVer": "5.0"
|
|
1265
|
+
* }
|
|
1266
|
+
* },
|
|
1267
|
+
* "mp": {
|
|
1268
|
+
* "weixin": {
|
|
1269
|
+
* "hostVer": "x",
|
|
1270
|
+
* "uniVer": "x",
|
|
1271
|
+
* "unixVer": "x"
|
|
1272
|
+
* },
|
|
1273
|
+
* "alipay": {
|
|
1274
|
+
* "hostVer": "x",
|
|
1275
|
+
* "uniVer": "x",
|
|
1276
|
+
* "unixVer": "x"
|
|
1277
|
+
* },
|
|
1278
|
+
* "baidu": {
|
|
1279
|
+
* "hostVer": "x",
|
|
1280
|
+
* "uniVer": "x",
|
|
1281
|
+
* "unixVer": "x"
|
|
1282
|
+
* },
|
|
1283
|
+
* "toutiao": {
|
|
1284
|
+
* "hostVer": "x",
|
|
1285
|
+
* "uniVer": "x",
|
|
1286
|
+
* "unixVer": "x"
|
|
1287
|
+
* },
|
|
1288
|
+
* "lark": {
|
|
1289
|
+
* "hostVer": "x",
|
|
1290
|
+
* "uniVer": "x",
|
|
1291
|
+
* "unixVer": "x"
|
|
1292
|
+
* },
|
|
1293
|
+
* "qq": {
|
|
1294
|
+
* "hostVer": "x",
|
|
1295
|
+
* "uniVer": "x",
|
|
1296
|
+
* "unixVer": "x"
|
|
1297
|
+
* },
|
|
1298
|
+
* "kuaishou": {
|
|
1299
|
+
* "hostVer": "x",
|
|
1300
|
+
* "uniVer": "x",
|
|
1301
|
+
* "unixVer": "x"
|
|
1302
|
+
* },
|
|
1303
|
+
* "jd": {
|
|
1304
|
+
* "hostVer": "x",
|
|
1305
|
+
* "uniVer": "x",
|
|
1306
|
+
* "unixVer": "x"
|
|
1307
|
+
* },
|
|
1308
|
+
* "360": {
|
|
1309
|
+
* "hostVer": "x",
|
|
1310
|
+
* "uniVer": "x",
|
|
1311
|
+
* "unixVer": "x"
|
|
1312
|
+
* }
|
|
1313
|
+
* },
|
|
1314
|
+
* "quickapp": {
|
|
1315
|
+
* "uniVer": "x",
|
|
1316
|
+
* "unixVer": "x"
|
|
1317
|
+
* },
|
|
1318
|
+
* "web": {
|
|
1319
|
+
* "uniVer": "x",
|
|
1320
|
+
* "unixVer": "x"
|
|
1321
|
+
* }
|
|
1322
|
+
* }
|
|
1323
|
+
*/
|
|
1324
|
+
openId?: string | null,
|
|
1325
|
+
/**
|
|
1320
1326
|
* 用户头像
|
|
1321
1327
|
* @uniPlatform {
|
|
1322
1328
|
* "mp": {
|
|
@@ -1362,96 +1368,98 @@ export type UserInfo = {
|
|
|
1362
1368
|
* }
|
|
1363
1369
|
* }
|
|
1364
1370
|
* }
|
|
1365
|
-
*/
|
|
1366
|
-
avatarUrl: string,
|
|
1367
|
-
/**
|
|
1368
|
-
* 用户性别(仅微信登录支持)
|
|
1369
|
-
* @uniPlatform {
|
|
1370
|
-
* "app": {
|
|
1371
|
-
* "android": {
|
|
1372
|
-
* "osVer": "x",
|
|
1373
|
-
* "uniVer": "x",
|
|
1374
|
-
* "unixVer": "x"
|
|
1375
|
-
* },
|
|
1376
|
-
* "ios": {
|
|
1377
|
-
* "osVer": "x",
|
|
1378
|
-
* "uniVer": "x",
|
|
1379
|
-
* "unixVer": "x"
|
|
1380
|
-
* },
|
|
1381
|
-
* "harmony": {
|
|
1382
|
-
* "osVer": "5.0.0",
|
|
1383
|
-
* "uniVer": "4.76",
|
|
1384
|
-
* "unixVer": "4.81",
|
|
1385
|
-
* "
|
|
1386
|
-
* }
|
|
1387
|
-
* },
|
|
1388
|
-
* "mp": {
|
|
1389
|
-
* "weixin": {
|
|
1390
|
-
* "hostVer": "x",
|
|
1391
|
-
* "uniVer": "x",
|
|
1392
|
-
* "unixVer": "x"
|
|
1393
|
-
* },
|
|
1394
|
-
* "alipay": {
|
|
1395
|
-
* "hostVer": "x",
|
|
1396
|
-
* "uniVer": "x",
|
|
1397
|
-
* "unixVer": "x"
|
|
1398
|
-
* },
|
|
1399
|
-
* "baidu": {
|
|
1400
|
-
* "hostVer": "x",
|
|
1401
|
-
* "uniVer": "x",
|
|
1402
|
-
* "unixVer": "x"
|
|
1403
|
-
* },
|
|
1404
|
-
* "toutiao": {
|
|
1405
|
-
* "hostVer": "x",
|
|
1406
|
-
* "uniVer": "x",
|
|
1407
|
-
* "unixVer": "x"
|
|
1408
|
-
* },
|
|
1409
|
-
* "lark": {
|
|
1410
|
-
* "hostVer": "x",
|
|
1411
|
-
* "uniVer": "x",
|
|
1412
|
-
* "unixVer": "x"
|
|
1413
|
-
* },
|
|
1414
|
-
* "qq": {
|
|
1415
|
-
* "hostVer": "x",
|
|
1416
|
-
* "uniVer": "x",
|
|
1417
|
-
* "unixVer": "x"
|
|
1418
|
-
* },
|
|
1419
|
-
* "kuaishou": {
|
|
1420
|
-
* "hostVer": "x",
|
|
1421
|
-
* "uniVer": "x",
|
|
1422
|
-
* "unixVer": "x"
|
|
1423
|
-
* },
|
|
1424
|
-
* "jd": {
|
|
1425
|
-
* "hostVer": "x",
|
|
1426
|
-
* "uniVer": "x",
|
|
1427
|
-
* "unixVer": "x"
|
|
1428
|
-
* },
|
|
1429
|
-
* "360": {
|
|
1430
|
-
* "hostVer": "x",
|
|
1431
|
-
* "uniVer": "x",
|
|
1432
|
-
* "unixVer": "x"
|
|
1433
|
-
* }
|
|
1434
|
-
* },
|
|
1435
|
-
* "quickapp": {
|
|
1436
|
-
* "uniVer": "x",
|
|
1437
|
-
* "unixVer": "x"
|
|
1438
|
-
* },
|
|
1439
|
-
* "web": {
|
|
1440
|
-
* "uniVer": "x",
|
|
1441
|
-
* "unixVer": "x"
|
|
1442
|
-
* }
|
|
1443
|
-
* }
|
|
1444
|
-
*/
|
|
1445
|
-
gender?:
|
|
1446
|
-
/**
|
|
1447
|
-
* 男
|
|
1448
|
-
*/
|
|
1371
|
+
*/
|
|
1372
|
+
avatarUrl: string,
|
|
1373
|
+
/**
|
|
1374
|
+
* 用户性别(仅微信登录支持)
|
|
1375
|
+
* @uniPlatform {
|
|
1376
|
+
* "app": {
|
|
1377
|
+
* "android": {
|
|
1378
|
+
* "osVer": "x",
|
|
1379
|
+
* "uniVer": "x",
|
|
1380
|
+
* "unixVer": "x"
|
|
1381
|
+
* },
|
|
1382
|
+
* "ios": {
|
|
1383
|
+
* "osVer": "x",
|
|
1384
|
+
* "uniVer": "x",
|
|
1385
|
+
* "unixVer": "x"
|
|
1386
|
+
* },
|
|
1387
|
+
* "harmony": {
|
|
1388
|
+
* "osVer": "5.0.0",
|
|
1389
|
+
* "uniVer": "4.76",
|
|
1390
|
+
* "unixVer": "4.81",
|
|
1391
|
+
* "unixVaporVer": "5.0"
|
|
1392
|
+
* }
|
|
1393
|
+
* },
|
|
1394
|
+
* "mp": {
|
|
1395
|
+
* "weixin": {
|
|
1396
|
+
* "hostVer": "x",
|
|
1397
|
+
* "uniVer": "x",
|
|
1398
|
+
* "unixVer": "x"
|
|
1399
|
+
* },
|
|
1400
|
+
* "alipay": {
|
|
1401
|
+
* "hostVer": "x",
|
|
1402
|
+
* "uniVer": "x",
|
|
1403
|
+
* "unixVer": "x"
|
|
1404
|
+
* },
|
|
1405
|
+
* "baidu": {
|
|
1406
|
+
* "hostVer": "x",
|
|
1407
|
+
* "uniVer": "x",
|
|
1408
|
+
* "unixVer": "x"
|
|
1409
|
+
* },
|
|
1410
|
+
* "toutiao": {
|
|
1411
|
+
* "hostVer": "x",
|
|
1412
|
+
* "uniVer": "x",
|
|
1413
|
+
* "unixVer": "x"
|
|
1414
|
+
* },
|
|
1415
|
+
* "lark": {
|
|
1416
|
+
* "hostVer": "x",
|
|
1417
|
+
* "uniVer": "x",
|
|
1418
|
+
* "unixVer": "x"
|
|
1419
|
+
* },
|
|
1420
|
+
* "qq": {
|
|
1421
|
+
* "hostVer": "x",
|
|
1422
|
+
* "uniVer": "x",
|
|
1423
|
+
* "unixVer": "x"
|
|
1424
|
+
* },
|
|
1425
|
+
* "kuaishou": {
|
|
1426
|
+
* "hostVer": "x",
|
|
1427
|
+
* "uniVer": "x",
|
|
1428
|
+
* "unixVer": "x"
|
|
1429
|
+
* },
|
|
1430
|
+
* "jd": {
|
|
1431
|
+
* "hostVer": "x",
|
|
1432
|
+
* "uniVer": "x",
|
|
1433
|
+
* "unixVer": "x"
|
|
1434
|
+
* },
|
|
1435
|
+
* "360": {
|
|
1436
|
+
* "hostVer": "x",
|
|
1437
|
+
* "uniVer": "x",
|
|
1438
|
+
* "unixVer": "x"
|
|
1439
|
+
* }
|
|
1440
|
+
* },
|
|
1441
|
+
* "quickapp": {
|
|
1442
|
+
* "uniVer": "x",
|
|
1443
|
+
* "unixVer": "x"
|
|
1444
|
+
* },
|
|
1445
|
+
* "web": {
|
|
1446
|
+
* "uniVer": "x",
|
|
1447
|
+
* "unixVer": "x"
|
|
1448
|
+
* }
|
|
1449
|
+
* }
|
|
1450
|
+
*/
|
|
1451
|
+
gender?:
|
|
1452
|
+
/**
|
|
1453
|
+
* 男
|
|
1454
|
+
*/
|
|
1449
1455
|
'0' |
|
|
1450
|
-
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1451
1458
|
* 女
|
|
1452
1459
|
*/
|
|
1453
1460
|
'1' |
|
|
1454
|
-
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1455
1463
|
* 保密
|
|
1456
1464
|
*/
|
|
1457
1465
|
'2' |
|
|
@@ -1798,400 +1806,400 @@ export type UserInfo = {
|
|
|
1798
1806
|
* }
|
|
1799
1807
|
*/
|
|
1800
1808
|
province?: string | null;
|
|
1801
|
-
};
|
|
1802
|
-
export type GetUserInfoSuccess = {
|
|
1803
|
-
/**
|
|
1804
|
-
* 用户信息对象,不包含 openid 等敏感信息
|
|
1805
|
-
* @uniPlatform {
|
|
1806
|
-
* "app": {
|
|
1807
|
-
* "android": {
|
|
1808
|
-
* "osVer": "5.0",
|
|
1809
|
-
* "uniVer": "√",
|
|
1810
|
-
* "unixVer": "x"
|
|
1811
|
-
* },
|
|
1812
|
-
* "ios": {
|
|
1813
|
-
* "osVer": "12.0",
|
|
1814
|
-
* "uniVer": "√",
|
|
1815
|
-
* "unixVer": "x"
|
|
1816
|
-
* },
|
|
1817
|
-
* "harmony": {
|
|
1818
|
-
* "osVer": "3.0",
|
|
1819
|
-
* "uniVer": "4.31",
|
|
1820
|
-
* "unixVer": "4.61",
|
|
1821
|
-
* "
|
|
1822
|
-
* }
|
|
1823
|
-
* },
|
|
1824
|
-
* "mp": {
|
|
1825
|
-
* "weixin": {
|
|
1826
|
-
* "hostVer": "√",
|
|
1827
|
-
* "uniVer": "√",
|
|
1828
|
-
* "unixVer": "4.41"
|
|
1829
|
-
* },
|
|
1830
|
-
* "alipay": {
|
|
1831
|
-
* "hostVer": "√",
|
|
1832
|
-
* "uniVer": "√",
|
|
1833
|
-
* "unixVer": "x"
|
|
1834
|
-
* },
|
|
1835
|
-
* "baidu": {
|
|
1836
|
-
* "hostVer": "√",
|
|
1837
|
-
* "uniVer": "√",
|
|
1838
|
-
* "unixVer": "x"
|
|
1839
|
-
* },
|
|
1840
|
-
* "toutiao": {
|
|
1841
|
-
* "hostVer": "√",
|
|
1842
|
-
* "uniVer": "√",
|
|
1843
|
-
* "unixVer": "x"
|
|
1844
|
-
* },
|
|
1845
|
-
* "lark": {
|
|
1846
|
-
* "hostVer": "√",
|
|
1847
|
-
* "uniVer": "√",
|
|
1848
|
-
* "unixVer": "x"
|
|
1849
|
-
* },
|
|
1850
|
-
* "qq": {
|
|
1851
|
-
* "hostVer": "√",
|
|
1852
|
-
* "uniVer": "√",
|
|
1853
|
-
* "unixVer": "x"
|
|
1854
|
-
* },
|
|
1855
|
-
* "kuaishou": {
|
|
1856
|
-
* "hostVer": "√",
|
|
1857
|
-
* "uniVer": "√",
|
|
1858
|
-
* "unixVer": "x"
|
|
1859
|
-
* },
|
|
1860
|
-
* "jd": {
|
|
1861
|
-
* "hostVer": "√",
|
|
1862
|
-
* "uniVer": "√",
|
|
1863
|
-
* "unixVer": "x"
|
|
1864
|
-
* },
|
|
1865
|
-
* "360": {
|
|
1866
|
-
* "hostVer": "x",
|
|
1867
|
-
* "uniVer": "x",
|
|
1868
|
-
* "unixVer": "x"
|
|
1869
|
-
* }
|
|
1870
|
-
* },
|
|
1871
|
-
* "quickapp": {
|
|
1872
|
-
* "uniVer": "x",
|
|
1873
|
-
* "unixVer": "x"
|
|
1874
|
-
* },
|
|
1875
|
-
* "web": {
|
|
1876
|
-
* "uniVer": "x",
|
|
1877
|
-
* "unixVer": "x"
|
|
1878
|
-
* }
|
|
1879
|
-
* }
|
|
1880
|
-
*/
|
|
1881
|
-
userInfo: UserInfo,
|
|
1882
|
-
/**
|
|
1883
|
-
* 不包括敏感信息的原始数据字符串,用于计算签名。
|
|
1884
|
-
* @uniPlatform {
|
|
1885
|
-
* "app": {
|
|
1886
|
-
* "android": {
|
|
1887
|
-
* "osVer": "5.0",
|
|
1888
|
-
* "uniVer": "x",
|
|
1889
|
-
* "unixVer": "x"
|
|
1890
|
-
* },
|
|
1891
|
-
* "ios": {
|
|
1892
|
-
* "osVer": "12.0",
|
|
1893
|
-
* "uniVer": "x",
|
|
1894
|
-
* "unixVer": "x"
|
|
1895
|
-
* },
|
|
1896
|
-
* "harmony": {
|
|
1897
|
-
* "osVer": "3.0",
|
|
1898
|
-
* "uniVer": "x",
|
|
1899
|
-
* "unixVer": "x"
|
|
1900
|
-
* }
|
|
1901
|
-
* },
|
|
1902
|
-
* "mp": {
|
|
1903
|
-
* "weixin": {
|
|
1904
|
-
* "hostVer": "√",
|
|
1905
|
-
* "uniVer": "√",
|
|
1906
|
-
* "unixVer": "4.41"
|
|
1907
|
-
* },
|
|
1908
|
-
* "alipay": {
|
|
1909
|
-
* "hostVer": "x",
|
|
1910
|
-
* "uniVer": "x",
|
|
1911
|
-
* "unixVer": "x"
|
|
1912
|
-
* },
|
|
1913
|
-
* "baidu": {
|
|
1914
|
-
* "hostVer": "x",
|
|
1915
|
-
* "uniVer": "x",
|
|
1916
|
-
* "unixVer": "x"
|
|
1917
|
-
* },
|
|
1918
|
-
* "toutiao": {
|
|
1919
|
-
* "hostVer": "√",
|
|
1920
|
-
* "uniVer": "√",
|
|
1921
|
-
* "unixVer": "x"
|
|
1922
|
-
* },
|
|
1923
|
-
* "lark": {
|
|
1924
|
-
* "hostVer": "√",
|
|
1925
|
-
* "uniVer": "√",
|
|
1926
|
-
* "unixVer": "x"
|
|
1927
|
-
* },
|
|
1928
|
-
* "qq": {
|
|
1929
|
-
* "hostVer": "x",
|
|
1930
|
-
* "uniVer": "x",
|
|
1931
|
-
* "unixVer": "x"
|
|
1932
|
-
* },
|
|
1933
|
-
* "kuaishou": {
|
|
1934
|
-
* "hostVer": "√",
|
|
1935
|
-
* "uniVer": "√",
|
|
1936
|
-
* "unixVer": "x"
|
|
1937
|
-
* },
|
|
1938
|
-
* "jd": {
|
|
1939
|
-
* "hostVer": "√",
|
|
1940
|
-
* "uniVer": "√",
|
|
1941
|
-
* "unixVer": "x"
|
|
1942
|
-
* },
|
|
1943
|
-
* "360": {
|
|
1944
|
-
* "hostVer": "x",
|
|
1945
|
-
* "uniVer": "x",
|
|
1946
|
-
* "unixVer": "x"
|
|
1947
|
-
* }
|
|
1948
|
-
* },
|
|
1949
|
-
* "quickapp": {
|
|
1950
|
-
* "uniVer": "x",
|
|
1951
|
-
* "unixVer": "x"
|
|
1952
|
-
* },
|
|
1953
|
-
* "web": {
|
|
1954
|
-
* "uniVer": "x",
|
|
1955
|
-
* "unixVer": "x"
|
|
1956
|
-
* }
|
|
1957
|
-
* }
|
|
1958
|
-
*/
|
|
1959
|
-
rawData?: string | null,
|
|
1960
|
-
/**
|
|
1961
|
-
* 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,仅微信小程序生效。
|
|
1962
|
-
* @uniPlatform {
|
|
1963
|
-
* "app": {
|
|
1964
|
-
* "android": {
|
|
1965
|
-
* "osVer": "5.0",
|
|
1966
|
-
* "uniVer": "x",
|
|
1967
|
-
* "unixVer": "x"
|
|
1968
|
-
* },
|
|
1969
|
-
* "ios": {
|
|
1970
|
-
* "osVer": "12.0",
|
|
1971
|
-
* "uniVer": "x",
|
|
1972
|
-
* "unixVer": "x"
|
|
1973
|
-
* },
|
|
1974
|
-
* "harmony": {
|
|
1975
|
-
* "osVer": "3.0",
|
|
1976
|
-
* "uniVer": "x",
|
|
1977
|
-
* "unixVer": "x"
|
|
1978
|
-
* }
|
|
1979
|
-
* },
|
|
1980
|
-
* "mp": {
|
|
1981
|
-
* "weixin": {
|
|
1982
|
-
* "hostVer": "√",
|
|
1983
|
-
* "uniVer": "√",
|
|
1984
|
-
* "unixVer": "4.41"
|
|
1985
|
-
* },
|
|
1986
|
-
* "alipay": {
|
|
1987
|
-
* "hostVer": "x",
|
|
1988
|
-
* "uniVer": "x",
|
|
1989
|
-
* "unixVer": "x"
|
|
1990
|
-
* },
|
|
1991
|
-
* "baidu": {
|
|
1992
|
-
* "hostVer": "x",
|
|
1993
|
-
* "uniVer": "x",
|
|
1994
|
-
* "unixVer": "x"
|
|
1995
|
-
* },
|
|
1996
|
-
* "toutiao": {
|
|
1997
|
-
* "hostVer": "√",
|
|
1998
|
-
* "uniVer": "√",
|
|
1999
|
-
* "unixVer": "x"
|
|
2000
|
-
* },
|
|
2001
|
-
* "lark": {
|
|
2002
|
-
* "hostVer": "√",
|
|
2003
|
-
* "uniVer": "√",
|
|
2004
|
-
* "unixVer": "x"
|
|
2005
|
-
* },
|
|
2006
|
-
* "qq": {
|
|
2007
|
-
* "hostVer": "x",
|
|
2008
|
-
* "uniVer": "x",
|
|
2009
|
-
* "unixVer": "x"
|
|
2010
|
-
* },
|
|
2011
|
-
* "kuaishou": {
|
|
2012
|
-
* "hostVer": "√",
|
|
2013
|
-
* "uniVer": "√",
|
|
2014
|
-
* "unixVer": "x"
|
|
2015
|
-
* },
|
|
2016
|
-
* "jd": {
|
|
2017
|
-
* "hostVer": "√",
|
|
2018
|
-
* "uniVer": "√",
|
|
2019
|
-
* "unixVer": "x"
|
|
2020
|
-
* },
|
|
2021
|
-
* "360": {
|
|
2022
|
-
* "hostVer": "x",
|
|
2023
|
-
* "uniVer": "x",
|
|
2024
|
-
* "unixVer": "x"
|
|
2025
|
-
* }
|
|
2026
|
-
* },
|
|
2027
|
-
* "quickapp": {
|
|
2028
|
-
* "uniVer": "x",
|
|
2029
|
-
* "unixVer": "x"
|
|
2030
|
-
* },
|
|
2031
|
-
* "web": {
|
|
2032
|
-
* "uniVer": "x",
|
|
2033
|
-
* "unixVer": "x"
|
|
2034
|
-
* }
|
|
2035
|
-
* }
|
|
2036
|
-
*/
|
|
2037
|
-
signature?: string | null,
|
|
2038
|
-
/**
|
|
2039
|
-
* 包括敏感数据在内的完整用户信息的加密数据,详细见加密数据解密算法,仅微信小程序生效。
|
|
2040
|
-
* @uniPlatform {
|
|
2041
|
-
* "app": {
|
|
2042
|
-
* "android": {
|
|
2043
|
-
* "osVer": "5.0",
|
|
2044
|
-
* "uniVer": "x",
|
|
2045
|
-
* "unixVer": "x"
|
|
2046
|
-
* },
|
|
2047
|
-
* "ios": {
|
|
2048
|
-
* "osVer": "12.0",
|
|
2049
|
-
* "uniVer": "x",
|
|
2050
|
-
* "unixVer": "x"
|
|
2051
|
-
* },
|
|
2052
|
-
* "harmony": {
|
|
2053
|
-
* "osVer": "3.0",
|
|
2054
|
-
* "uniVer": "x",
|
|
2055
|
-
* "unixVer": "x"
|
|
2056
|
-
* }
|
|
2057
|
-
* },
|
|
2058
|
-
* "mp": {
|
|
2059
|
-
* "weixin": {
|
|
2060
|
-
* "hostVer": "√",
|
|
2061
|
-
* "uniVer": "√",
|
|
2062
|
-
* "unixVer": "4.41"
|
|
2063
|
-
* },
|
|
2064
|
-
* "alipay": {
|
|
2065
|
-
* "hostVer": "x",
|
|
2066
|
-
* "uniVer": "x",
|
|
2067
|
-
* "unixVer": "x"
|
|
2068
|
-
* },
|
|
2069
|
-
* "baidu": {
|
|
2070
|
-
* "hostVer": "x",
|
|
2071
|
-
* "uniVer": "x",
|
|
2072
|
-
* "unixVer": "x"
|
|
2073
|
-
* },
|
|
2074
|
-
* "toutiao": {
|
|
2075
|
-
* "hostVer": "√",
|
|
2076
|
-
* "uniVer": "√",
|
|
2077
|
-
* "unixVer": "x"
|
|
2078
|
-
* },
|
|
2079
|
-
* "lark": {
|
|
2080
|
-
* "hostVer": "√",
|
|
2081
|
-
* "uniVer": "√",
|
|
2082
|
-
* "unixVer": "x"
|
|
2083
|
-
* },
|
|
2084
|
-
* "qq": {
|
|
2085
|
-
* "hostVer": "x",
|
|
2086
|
-
* "uniVer": "x",
|
|
2087
|
-
* "unixVer": "x"
|
|
2088
|
-
* },
|
|
2089
|
-
* "kuaishou": {
|
|
2090
|
-
* "hostVer": "√",
|
|
2091
|
-
* "uniVer": "√",
|
|
2092
|
-
* "unixVer": "x"
|
|
2093
|
-
* },
|
|
2094
|
-
* "jd": {
|
|
2095
|
-
* "hostVer": "√",
|
|
2096
|
-
* "uniVer": "√",
|
|
2097
|
-
* "unixVer": "x"
|
|
2098
|
-
* },
|
|
2099
|
-
* "360": {
|
|
2100
|
-
* "hostVer": "x",
|
|
2101
|
-
* "uniVer": "x",
|
|
2102
|
-
* "unixVer": "x"
|
|
2103
|
-
* }
|
|
2104
|
-
* },
|
|
2105
|
-
* "quickapp": {
|
|
2106
|
-
* "uniVer": "x",
|
|
2107
|
-
* "unixVer": "x"
|
|
2108
|
-
* },
|
|
2109
|
-
* "web": {
|
|
2110
|
-
* "uniVer": "x",
|
|
2111
|
-
* "unixVer": "x"
|
|
2112
|
-
* }
|
|
2113
|
-
* }
|
|
2114
|
-
*/
|
|
2115
|
-
encryptedData?: string | null,
|
|
2116
|
-
/**
|
|
2117
|
-
* 加密算法的初始向量,详细见加密数据解密算法,仅微信小程序生效。
|
|
2118
|
-
* @uniPlatform {
|
|
2119
|
-
* "app": {
|
|
2120
|
-
* "android": {
|
|
2121
|
-
* "osVer": "5.0",
|
|
2122
|
-
* "uniVer": "x",
|
|
2123
|
-
* "unixVer": "x"
|
|
2124
|
-
* },
|
|
2125
|
-
* "ios": {
|
|
2126
|
-
* "osVer": "12.0",
|
|
2127
|
-
* "uniVer": "x",
|
|
2128
|
-
* "unixVer": "x"
|
|
2129
|
-
* },
|
|
2130
|
-
* "harmony": {
|
|
2131
|
-
* "osVer": "3.0",
|
|
2132
|
-
* "uniVer": "x",
|
|
2133
|
-
* "unixVer": "x"
|
|
2134
|
-
* }
|
|
2135
|
-
* },
|
|
2136
|
-
* "mp": {
|
|
2137
|
-
* "weixin": {
|
|
2138
|
-
* "hostVer": "√",
|
|
2139
|
-
* "uniVer": "√",
|
|
2140
|
-
* "unixVer": "4.41"
|
|
2141
|
-
* },
|
|
2142
|
-
* "alipay": {
|
|
2143
|
-
* "hostVer": "x",
|
|
2144
|
-
* "uniVer": "x",
|
|
2145
|
-
* "unixVer": "x"
|
|
2146
|
-
* },
|
|
2147
|
-
* "baidu": {
|
|
2148
|
-
* "hostVer": "x",
|
|
2149
|
-
* "uniVer": "x",
|
|
2150
|
-
* "unixVer": "x"
|
|
2151
|
-
* },
|
|
2152
|
-
* "toutiao": {
|
|
2153
|
-
* "hostVer": "√",
|
|
2154
|
-
* "uniVer": "√",
|
|
2155
|
-
* "unixVer": "x"
|
|
2156
|
-
* },
|
|
2157
|
-
* "lark": {
|
|
2158
|
-
* "hostVer": "√",
|
|
2159
|
-
* "uniVer": "√",
|
|
2160
|
-
* "unixVer": "x"
|
|
2161
|
-
* },
|
|
2162
|
-
* "qq": {
|
|
2163
|
-
* "hostVer": "x",
|
|
2164
|
-
* "uniVer": "x",
|
|
2165
|
-
* "unixVer": "x"
|
|
2166
|
-
* },
|
|
2167
|
-
* "kuaishou": {
|
|
2168
|
-
* "hostVer": "√",
|
|
2169
|
-
* "uniVer": "√",
|
|
2170
|
-
* "unixVer": "x"
|
|
2171
|
-
* },
|
|
2172
|
-
* "jd": {
|
|
2173
|
-
* "hostVer": "√",
|
|
2174
|
-
* "uniVer": "√",
|
|
2175
|
-
* "unixVer": "x"
|
|
2176
|
-
* },
|
|
2177
|
-
* "360": {
|
|
2178
|
-
* "hostVer": "x",
|
|
2179
|
-
* "uniVer": "x",
|
|
2180
|
-
* "unixVer": "x"
|
|
2181
|
-
* }
|
|
2182
|
-
* },
|
|
2183
|
-
* "quickapp": {
|
|
2184
|
-
* "uniVer": "x",
|
|
2185
|
-
* "unixVer": "x"
|
|
2186
|
-
* },
|
|
2187
|
-
* "web": {
|
|
2188
|
-
* "uniVer": "x",
|
|
2189
|
-
* "unixVer": "x"
|
|
2190
|
-
* }
|
|
2191
|
-
* }
|
|
2192
|
-
*/
|
|
2193
|
-
iv?: string | null,
|
|
2194
|
-
/**
|
|
1809
|
+
};
|
|
1810
|
+
export type GetUserInfoSuccess = {
|
|
1811
|
+
/**
|
|
1812
|
+
* 用户信息对象,不包含 openid 等敏感信息
|
|
1813
|
+
* @uniPlatform {
|
|
1814
|
+
* "app": {
|
|
1815
|
+
* "android": {
|
|
1816
|
+
* "osVer": "5.0",
|
|
1817
|
+
* "uniVer": "√",
|
|
1818
|
+
* "unixVer": "x"
|
|
1819
|
+
* },
|
|
1820
|
+
* "ios": {
|
|
1821
|
+
* "osVer": "12.0",
|
|
1822
|
+
* "uniVer": "√",
|
|
1823
|
+
* "unixVer": "x"
|
|
1824
|
+
* },
|
|
1825
|
+
* "harmony": {
|
|
1826
|
+
* "osVer": "3.0",
|
|
1827
|
+
* "uniVer": "4.31",
|
|
1828
|
+
* "unixVer": "4.61",
|
|
1829
|
+
* "unixVaporVer": "5.0"
|
|
1830
|
+
* }
|
|
1831
|
+
* },
|
|
1832
|
+
* "mp": {
|
|
1833
|
+
* "weixin": {
|
|
1834
|
+
* "hostVer": "√",
|
|
1835
|
+
* "uniVer": "√",
|
|
1836
|
+
* "unixVer": "4.41"
|
|
1837
|
+
* },
|
|
1838
|
+
* "alipay": {
|
|
1839
|
+
* "hostVer": "√",
|
|
1840
|
+
* "uniVer": "√",
|
|
1841
|
+
* "unixVer": "x"
|
|
1842
|
+
* },
|
|
1843
|
+
* "baidu": {
|
|
1844
|
+
* "hostVer": "√",
|
|
1845
|
+
* "uniVer": "√",
|
|
1846
|
+
* "unixVer": "x"
|
|
1847
|
+
* },
|
|
1848
|
+
* "toutiao": {
|
|
1849
|
+
* "hostVer": "√",
|
|
1850
|
+
* "uniVer": "√",
|
|
1851
|
+
* "unixVer": "x"
|
|
1852
|
+
* },
|
|
1853
|
+
* "lark": {
|
|
1854
|
+
* "hostVer": "√",
|
|
1855
|
+
* "uniVer": "√",
|
|
1856
|
+
* "unixVer": "x"
|
|
1857
|
+
* },
|
|
1858
|
+
* "qq": {
|
|
1859
|
+
* "hostVer": "√",
|
|
1860
|
+
* "uniVer": "√",
|
|
1861
|
+
* "unixVer": "x"
|
|
1862
|
+
* },
|
|
1863
|
+
* "kuaishou": {
|
|
1864
|
+
* "hostVer": "√",
|
|
1865
|
+
* "uniVer": "√",
|
|
1866
|
+
* "unixVer": "x"
|
|
1867
|
+
* },
|
|
1868
|
+
* "jd": {
|
|
1869
|
+
* "hostVer": "√",
|
|
1870
|
+
* "uniVer": "√",
|
|
1871
|
+
* "unixVer": "x"
|
|
1872
|
+
* },
|
|
1873
|
+
* "360": {
|
|
1874
|
+
* "hostVer": "x",
|
|
1875
|
+
* "uniVer": "x",
|
|
1876
|
+
* "unixVer": "x"
|
|
1877
|
+
* }
|
|
1878
|
+
* },
|
|
1879
|
+
* "quickapp": {
|
|
1880
|
+
* "uniVer": "x",
|
|
1881
|
+
* "unixVer": "x"
|
|
1882
|
+
* },
|
|
1883
|
+
* "web": {
|
|
1884
|
+
* "uniVer": "x",
|
|
1885
|
+
* "unixVer": "x"
|
|
1886
|
+
* }
|
|
1887
|
+
* }
|
|
1888
|
+
*/
|
|
1889
|
+
userInfo: UserInfo,
|
|
1890
|
+
/**
|
|
1891
|
+
* 不包括敏感信息的原始数据字符串,用于计算签名。
|
|
1892
|
+
* @uniPlatform {
|
|
1893
|
+
* "app": {
|
|
1894
|
+
* "android": {
|
|
1895
|
+
* "osVer": "5.0",
|
|
1896
|
+
* "uniVer": "x",
|
|
1897
|
+
* "unixVer": "x"
|
|
1898
|
+
* },
|
|
1899
|
+
* "ios": {
|
|
1900
|
+
* "osVer": "12.0",
|
|
1901
|
+
* "uniVer": "x",
|
|
1902
|
+
* "unixVer": "x"
|
|
1903
|
+
* },
|
|
1904
|
+
* "harmony": {
|
|
1905
|
+
* "osVer": "3.0",
|
|
1906
|
+
* "uniVer": "x",
|
|
1907
|
+
* "unixVer": "x"
|
|
1908
|
+
* }
|
|
1909
|
+
* },
|
|
1910
|
+
* "mp": {
|
|
1911
|
+
* "weixin": {
|
|
1912
|
+
* "hostVer": "√",
|
|
1913
|
+
* "uniVer": "√",
|
|
1914
|
+
* "unixVer": "4.41"
|
|
1915
|
+
* },
|
|
1916
|
+
* "alipay": {
|
|
1917
|
+
* "hostVer": "x",
|
|
1918
|
+
* "uniVer": "x",
|
|
1919
|
+
* "unixVer": "x"
|
|
1920
|
+
* },
|
|
1921
|
+
* "baidu": {
|
|
1922
|
+
* "hostVer": "x",
|
|
1923
|
+
* "uniVer": "x",
|
|
1924
|
+
* "unixVer": "x"
|
|
1925
|
+
* },
|
|
1926
|
+
* "toutiao": {
|
|
1927
|
+
* "hostVer": "√",
|
|
1928
|
+
* "uniVer": "√",
|
|
1929
|
+
* "unixVer": "x"
|
|
1930
|
+
* },
|
|
1931
|
+
* "lark": {
|
|
1932
|
+
* "hostVer": "√",
|
|
1933
|
+
* "uniVer": "√",
|
|
1934
|
+
* "unixVer": "x"
|
|
1935
|
+
* },
|
|
1936
|
+
* "qq": {
|
|
1937
|
+
* "hostVer": "x",
|
|
1938
|
+
* "uniVer": "x",
|
|
1939
|
+
* "unixVer": "x"
|
|
1940
|
+
* },
|
|
1941
|
+
* "kuaishou": {
|
|
1942
|
+
* "hostVer": "√",
|
|
1943
|
+
* "uniVer": "√",
|
|
1944
|
+
* "unixVer": "x"
|
|
1945
|
+
* },
|
|
1946
|
+
* "jd": {
|
|
1947
|
+
* "hostVer": "√",
|
|
1948
|
+
* "uniVer": "√",
|
|
1949
|
+
* "unixVer": "x"
|
|
1950
|
+
* },
|
|
1951
|
+
* "360": {
|
|
1952
|
+
* "hostVer": "x",
|
|
1953
|
+
* "uniVer": "x",
|
|
1954
|
+
* "unixVer": "x"
|
|
1955
|
+
* }
|
|
1956
|
+
* },
|
|
1957
|
+
* "quickapp": {
|
|
1958
|
+
* "uniVer": "x",
|
|
1959
|
+
* "unixVer": "x"
|
|
1960
|
+
* },
|
|
1961
|
+
* "web": {
|
|
1962
|
+
* "uniVer": "x",
|
|
1963
|
+
* "unixVer": "x"
|
|
1964
|
+
* }
|
|
1965
|
+
* }
|
|
1966
|
+
*/
|
|
1967
|
+
rawData?: string | null,
|
|
1968
|
+
/**
|
|
1969
|
+
* 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,仅微信小程序生效。
|
|
1970
|
+
* @uniPlatform {
|
|
1971
|
+
* "app": {
|
|
1972
|
+
* "android": {
|
|
1973
|
+
* "osVer": "5.0",
|
|
1974
|
+
* "uniVer": "x",
|
|
1975
|
+
* "unixVer": "x"
|
|
1976
|
+
* },
|
|
1977
|
+
* "ios": {
|
|
1978
|
+
* "osVer": "12.0",
|
|
1979
|
+
* "uniVer": "x",
|
|
1980
|
+
* "unixVer": "x"
|
|
1981
|
+
* },
|
|
1982
|
+
* "harmony": {
|
|
1983
|
+
* "osVer": "3.0",
|
|
1984
|
+
* "uniVer": "x",
|
|
1985
|
+
* "unixVer": "x"
|
|
1986
|
+
* }
|
|
1987
|
+
* },
|
|
1988
|
+
* "mp": {
|
|
1989
|
+
* "weixin": {
|
|
1990
|
+
* "hostVer": "√",
|
|
1991
|
+
* "uniVer": "√",
|
|
1992
|
+
* "unixVer": "4.41"
|
|
1993
|
+
* },
|
|
1994
|
+
* "alipay": {
|
|
1995
|
+
* "hostVer": "x",
|
|
1996
|
+
* "uniVer": "x",
|
|
1997
|
+
* "unixVer": "x"
|
|
1998
|
+
* },
|
|
1999
|
+
* "baidu": {
|
|
2000
|
+
* "hostVer": "x",
|
|
2001
|
+
* "uniVer": "x",
|
|
2002
|
+
* "unixVer": "x"
|
|
2003
|
+
* },
|
|
2004
|
+
* "toutiao": {
|
|
2005
|
+
* "hostVer": "√",
|
|
2006
|
+
* "uniVer": "√",
|
|
2007
|
+
* "unixVer": "x"
|
|
2008
|
+
* },
|
|
2009
|
+
* "lark": {
|
|
2010
|
+
* "hostVer": "√",
|
|
2011
|
+
* "uniVer": "√",
|
|
2012
|
+
* "unixVer": "x"
|
|
2013
|
+
* },
|
|
2014
|
+
* "qq": {
|
|
2015
|
+
* "hostVer": "x",
|
|
2016
|
+
* "uniVer": "x",
|
|
2017
|
+
* "unixVer": "x"
|
|
2018
|
+
* },
|
|
2019
|
+
* "kuaishou": {
|
|
2020
|
+
* "hostVer": "√",
|
|
2021
|
+
* "uniVer": "√",
|
|
2022
|
+
* "unixVer": "x"
|
|
2023
|
+
* },
|
|
2024
|
+
* "jd": {
|
|
2025
|
+
* "hostVer": "√",
|
|
2026
|
+
* "uniVer": "√",
|
|
2027
|
+
* "unixVer": "x"
|
|
2028
|
+
* },
|
|
2029
|
+
* "360": {
|
|
2030
|
+
* "hostVer": "x",
|
|
2031
|
+
* "uniVer": "x",
|
|
2032
|
+
* "unixVer": "x"
|
|
2033
|
+
* }
|
|
2034
|
+
* },
|
|
2035
|
+
* "quickapp": {
|
|
2036
|
+
* "uniVer": "x",
|
|
2037
|
+
* "unixVer": "x"
|
|
2038
|
+
* },
|
|
2039
|
+
* "web": {
|
|
2040
|
+
* "uniVer": "x",
|
|
2041
|
+
* "unixVer": "x"
|
|
2042
|
+
* }
|
|
2043
|
+
* }
|
|
2044
|
+
*/
|
|
2045
|
+
signature?: string | null,
|
|
2046
|
+
/**
|
|
2047
|
+
* 包括敏感数据在内的完整用户信息的加密数据,详细见加密数据解密算法,仅微信小程序生效。
|
|
2048
|
+
* @uniPlatform {
|
|
2049
|
+
* "app": {
|
|
2050
|
+
* "android": {
|
|
2051
|
+
* "osVer": "5.0",
|
|
2052
|
+
* "uniVer": "x",
|
|
2053
|
+
* "unixVer": "x"
|
|
2054
|
+
* },
|
|
2055
|
+
* "ios": {
|
|
2056
|
+
* "osVer": "12.0",
|
|
2057
|
+
* "uniVer": "x",
|
|
2058
|
+
* "unixVer": "x"
|
|
2059
|
+
* },
|
|
2060
|
+
* "harmony": {
|
|
2061
|
+
* "osVer": "3.0",
|
|
2062
|
+
* "uniVer": "x",
|
|
2063
|
+
* "unixVer": "x"
|
|
2064
|
+
* }
|
|
2065
|
+
* },
|
|
2066
|
+
* "mp": {
|
|
2067
|
+
* "weixin": {
|
|
2068
|
+
* "hostVer": "√",
|
|
2069
|
+
* "uniVer": "√",
|
|
2070
|
+
* "unixVer": "4.41"
|
|
2071
|
+
* },
|
|
2072
|
+
* "alipay": {
|
|
2073
|
+
* "hostVer": "x",
|
|
2074
|
+
* "uniVer": "x",
|
|
2075
|
+
* "unixVer": "x"
|
|
2076
|
+
* },
|
|
2077
|
+
* "baidu": {
|
|
2078
|
+
* "hostVer": "x",
|
|
2079
|
+
* "uniVer": "x",
|
|
2080
|
+
* "unixVer": "x"
|
|
2081
|
+
* },
|
|
2082
|
+
* "toutiao": {
|
|
2083
|
+
* "hostVer": "√",
|
|
2084
|
+
* "uniVer": "√",
|
|
2085
|
+
* "unixVer": "x"
|
|
2086
|
+
* },
|
|
2087
|
+
* "lark": {
|
|
2088
|
+
* "hostVer": "√",
|
|
2089
|
+
* "uniVer": "√",
|
|
2090
|
+
* "unixVer": "x"
|
|
2091
|
+
* },
|
|
2092
|
+
* "qq": {
|
|
2093
|
+
* "hostVer": "x",
|
|
2094
|
+
* "uniVer": "x",
|
|
2095
|
+
* "unixVer": "x"
|
|
2096
|
+
* },
|
|
2097
|
+
* "kuaishou": {
|
|
2098
|
+
* "hostVer": "√",
|
|
2099
|
+
* "uniVer": "√",
|
|
2100
|
+
* "unixVer": "x"
|
|
2101
|
+
* },
|
|
2102
|
+
* "jd": {
|
|
2103
|
+
* "hostVer": "√",
|
|
2104
|
+
* "uniVer": "√",
|
|
2105
|
+
* "unixVer": "x"
|
|
2106
|
+
* },
|
|
2107
|
+
* "360": {
|
|
2108
|
+
* "hostVer": "x",
|
|
2109
|
+
* "uniVer": "x",
|
|
2110
|
+
* "unixVer": "x"
|
|
2111
|
+
* }
|
|
2112
|
+
* },
|
|
2113
|
+
* "quickapp": {
|
|
2114
|
+
* "uniVer": "x",
|
|
2115
|
+
* "unixVer": "x"
|
|
2116
|
+
* },
|
|
2117
|
+
* "web": {
|
|
2118
|
+
* "uniVer": "x",
|
|
2119
|
+
* "unixVer": "x"
|
|
2120
|
+
* }
|
|
2121
|
+
* }
|
|
2122
|
+
*/
|
|
2123
|
+
encryptedData?: string | null,
|
|
2124
|
+
/**
|
|
2125
|
+
* 加密算法的初始向量,详细见加密数据解密算法,仅微信小程序生效。
|
|
2126
|
+
* @uniPlatform {
|
|
2127
|
+
* "app": {
|
|
2128
|
+
* "android": {
|
|
2129
|
+
* "osVer": "5.0",
|
|
2130
|
+
* "uniVer": "x",
|
|
2131
|
+
* "unixVer": "x"
|
|
2132
|
+
* },
|
|
2133
|
+
* "ios": {
|
|
2134
|
+
* "osVer": "12.0",
|
|
2135
|
+
* "uniVer": "x",
|
|
2136
|
+
* "unixVer": "x"
|
|
2137
|
+
* },
|
|
2138
|
+
* "harmony": {
|
|
2139
|
+
* "osVer": "3.0",
|
|
2140
|
+
* "uniVer": "x",
|
|
2141
|
+
* "unixVer": "x"
|
|
2142
|
+
* }
|
|
2143
|
+
* },
|
|
2144
|
+
* "mp": {
|
|
2145
|
+
* "weixin": {
|
|
2146
|
+
* "hostVer": "√",
|
|
2147
|
+
* "uniVer": "√",
|
|
2148
|
+
* "unixVer": "4.41"
|
|
2149
|
+
* },
|
|
2150
|
+
* "alipay": {
|
|
2151
|
+
* "hostVer": "x",
|
|
2152
|
+
* "uniVer": "x",
|
|
2153
|
+
* "unixVer": "x"
|
|
2154
|
+
* },
|
|
2155
|
+
* "baidu": {
|
|
2156
|
+
* "hostVer": "x",
|
|
2157
|
+
* "uniVer": "x",
|
|
2158
|
+
* "unixVer": "x"
|
|
2159
|
+
* },
|
|
2160
|
+
* "toutiao": {
|
|
2161
|
+
* "hostVer": "√",
|
|
2162
|
+
* "uniVer": "√",
|
|
2163
|
+
* "unixVer": "x"
|
|
2164
|
+
* },
|
|
2165
|
+
* "lark": {
|
|
2166
|
+
* "hostVer": "√",
|
|
2167
|
+
* "uniVer": "√",
|
|
2168
|
+
* "unixVer": "x"
|
|
2169
|
+
* },
|
|
2170
|
+
* "qq": {
|
|
2171
|
+
* "hostVer": "x",
|
|
2172
|
+
* "uniVer": "x",
|
|
2173
|
+
* "unixVer": "x"
|
|
2174
|
+
* },
|
|
2175
|
+
* "kuaishou": {
|
|
2176
|
+
* "hostVer": "√",
|
|
2177
|
+
* "uniVer": "√",
|
|
2178
|
+
* "unixVer": "x"
|
|
2179
|
+
* },
|
|
2180
|
+
* "jd": {
|
|
2181
|
+
* "hostVer": "√",
|
|
2182
|
+
* "uniVer": "√",
|
|
2183
|
+
* "unixVer": "x"
|
|
2184
|
+
* },
|
|
2185
|
+
* "360": {
|
|
2186
|
+
* "hostVer": "x",
|
|
2187
|
+
* "uniVer": "x",
|
|
2188
|
+
* "unixVer": "x"
|
|
2189
|
+
* }
|
|
2190
|
+
* },
|
|
2191
|
+
* "quickapp": {
|
|
2192
|
+
* "uniVer": "x",
|
|
2193
|
+
* "unixVer": "x"
|
|
2194
|
+
* },
|
|
2195
|
+
* "web": {
|
|
2196
|
+
* "uniVer": "x",
|
|
2197
|
+
* "unixVer": "x"
|
|
2198
|
+
* }
|
|
2199
|
+
* }
|
|
2200
|
+
*/
|
|
2201
|
+
iv?: string | null,
|
|
2202
|
+
/**
|
|
2195
2203
|
* 描述信息
|
|
2196
2204
|
* @uniPlatform {
|
|
2197
2205
|
* "mp": {
|
|
@@ -2237,7 +2245,7 @@ export type GetUserInfoSuccess = {
|
|
|
2237
2245
|
* }
|
|
2238
2246
|
* }
|
|
2239
2247
|
* }
|
|
2240
|
-
*/
|
|
2248
|
+
*/
|
|
2241
2249
|
errMsg: string
|
|
2242
2250
|
/**
|
|
2243
2251
|
* 需要基础库: `2.7.0`
|
|
@@ -2290,469 +2298,469 @@ export type GetUserInfoSuccess = {
|
|
|
2290
2298
|
* }
|
|
2291
2299
|
*/
|
|
2292
2300
|
cloudID?: string | null;
|
|
2293
|
-
};
|
|
2294
|
-
export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
|
|
2295
|
-
export type GetUserInfoFail = IUniError;
|
|
2296
|
-
export type GetUserInfoFailCallback = (result: GetUserInfoFail) => void;
|
|
2297
|
-
export type GetUserInfoComplete = any;
|
|
2298
|
-
export type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void;
|
|
2299
|
-
export type GetUserInfoOptions = {
|
|
2300
|
-
/**
|
|
2301
|
-
* 授权登录服务提供商,通过uni.getProvider获取
|
|
2302
|
-
* @uniPlatform {
|
|
2303
|
-
* "app": {
|
|
2304
|
-
* "android": {
|
|
2305
|
-
* "osVer": "5.0",
|
|
2306
|
-
* "uniVer": "√",
|
|
2307
|
-
* "unixVer": "x"
|
|
2308
|
-
* },
|
|
2309
|
-
* "ios": {
|
|
2310
|
-
* "osVer": "12.0",
|
|
2311
|
-
* "uniVer": "√",
|
|
2312
|
-
* "unixVer": "x"
|
|
2313
|
-
* },
|
|
2314
|
-
* "harmony": {
|
|
2315
|
-
* "osVer": "3.0",
|
|
2316
|
-
* "uniVer": "4.31",
|
|
2317
|
-
* "unixVer": "4.61",
|
|
2318
|
-
* "
|
|
2319
|
-
* }
|
|
2320
|
-
* },
|
|
2321
|
-
* "mp": {
|
|
2322
|
-
* "weixin": {
|
|
2323
|
-
* "hostVer": "x",
|
|
2324
|
-
* "uniVer": "x",
|
|
2325
|
-
* "unixVer": "x"
|
|
2326
|
-
* },
|
|
2327
|
-
* "alipay": {
|
|
2328
|
-
* "hostVer": "x",
|
|
2329
|
-
* "uniVer": "x",
|
|
2330
|
-
* "unixVer": "x"
|
|
2331
|
-
* },
|
|
2332
|
-
* "baidu": {
|
|
2333
|
-
* "hostVer": "x",
|
|
2334
|
-
* "uniVer": "x",
|
|
2335
|
-
* "unixVer": "x"
|
|
2336
|
-
* },
|
|
2337
|
-
* "toutiao": {
|
|
2338
|
-
* "hostVer": "x",
|
|
2339
|
-
* "uniVer": "x",
|
|
2340
|
-
* "unixVer": "x"
|
|
2341
|
-
* },
|
|
2342
|
-
* "lark": {
|
|
2343
|
-
* "hostVer": "x",
|
|
2344
|
-
* "uniVer": "x",
|
|
2345
|
-
* "unixVer": "x"
|
|
2346
|
-
* },
|
|
2347
|
-
* "qq": {
|
|
2348
|
-
* "hostVer": "x",
|
|
2349
|
-
* "uniVer": "x",
|
|
2350
|
-
* "unixVer": "x"
|
|
2351
|
-
* },
|
|
2352
|
-
* "kuaishou": {
|
|
2353
|
-
* "hostVer": "x",
|
|
2354
|
-
* "uniVer": "x",
|
|
2355
|
-
* "unixVer": "x"
|
|
2356
|
-
* },
|
|
2357
|
-
* "jd": {
|
|
2358
|
-
* "hostVer": "x",
|
|
2359
|
-
* "uniVer": "x",
|
|
2360
|
-
* "unixVer": "x"
|
|
2361
|
-
* },
|
|
2362
|
-
* "360": {
|
|
2363
|
-
* "hostVer": "x",
|
|
2364
|
-
* "uniVer": "x",
|
|
2365
|
-
* "unixVer": "x"
|
|
2366
|
-
* }
|
|
2367
|
-
* },
|
|
2368
|
-
* "quickapp": {
|
|
2369
|
-
* "uniVer": "x",
|
|
2370
|
-
* "unixVer": "x"
|
|
2371
|
-
* },
|
|
2372
|
-
* "web": {
|
|
2373
|
-
* "uniVer": "x",
|
|
2374
|
-
* "unixVer": "x"
|
|
2375
|
-
* }
|
|
2376
|
-
* }
|
|
2377
|
-
*/
|
|
2378
|
-
provider?:
|
|
2379
|
-
/**
|
|
2380
|
-
* 微信登录。
|
|
2381
|
-
* - **推荐**: 使用 uniCloud 提供的云函数登录方式,避免在客户端暴露 appSecret。
|
|
2382
|
-
* 1. [获取微信openid](https://doc.dcloud.net.cn/uniCloud/uni-id/old.html#获取微信openid)
|
|
2383
|
-
* 2. [获取App平台微信登录用户信息](https://doc.dcloud.net.cn/uniCloud/uni-id/old.html#get-weixin-user-info)
|
|
2384
|
-
* @uniPlatform {
|
|
2385
|
-
* "app": {
|
|
2386
|
-
* "android": {
|
|
2387
|
-
* "osVer": "x",
|
|
2388
|
-
* "uniVer": "x",
|
|
2389
|
-
* "unixVer": "x"
|
|
2390
|
-
* },
|
|
2391
|
-
* "ios": {
|
|
2392
|
-
* "osVer": "x",
|
|
2393
|
-
* "uniVer": "x",
|
|
2394
|
-
* "unixVer": "x"
|
|
2395
|
-
* },
|
|
2396
|
-
* "harmony": {
|
|
2397
|
-
* "osVer": "x",
|
|
2398
|
-
* "uniVer": "x",
|
|
2399
|
-
* "unixVer": "x"
|
|
2400
|
-
* }
|
|
2401
|
-
* }
|
|
2402
|
-
* }
|
|
2403
|
-
*/
|
|
2404
|
-
'weixin' |
|
|
2405
|
-
/**
|
|
2406
|
-
* QQ登录
|
|
2407
|
-
* @uniPlatform {
|
|
2408
|
-
* "app": {
|
|
2409
|
-
* "android": {
|
|
2410
|
-
* "osVer": "x",
|
|
2411
|
-
* "uniVer": "x",
|
|
2412
|
-
* "unixVer": "x"
|
|
2413
|
-
* },
|
|
2414
|
-
* "ios": {
|
|
2415
|
-
* "osVer": "x",
|
|
2416
|
-
* "uniVer": "x",
|
|
2417
|
-
* "unixVer": "x"
|
|
2418
|
-
* },
|
|
2419
|
-
* "harmony": {
|
|
2420
|
-
* "osVer": "x",
|
|
2421
|
-
* "uniVer": "x",
|
|
2422
|
-
* "unixVer": "x"
|
|
2423
|
-
* }
|
|
2424
|
-
* }
|
|
2425
|
-
* }
|
|
2426
|
-
*/
|
|
2427
|
-
'qq' |
|
|
2428
|
-
/**
|
|
2429
|
-
* 新浪微博登录
|
|
2430
|
-
* @uniPlatform {
|
|
2431
|
-
* "app": {
|
|
2432
|
-
* "android": {
|
|
2433
|
-
* "osVer": "x",
|
|
2434
|
-
* "uniVer": "x",
|
|
2435
|
-
* "unixVer": "x"
|
|
2436
|
-
* },
|
|
2437
|
-
* "ios": {
|
|
2438
|
-
* "osVer": "x",
|
|
2439
|
-
* "uniVer": "x",
|
|
2440
|
-
* "unixVer": "x"
|
|
2441
|
-
* },
|
|
2442
|
-
* "harmony": {
|
|
2443
|
-
* "osVer": "x",
|
|
2444
|
-
* "uniVer": "x",
|
|
2445
|
-
* "unixVer": "x"
|
|
2446
|
-
* }
|
|
2447
|
-
* }
|
|
2448
|
-
* }
|
|
2449
|
-
*/
|
|
2450
|
-
'sinaweibo' |
|
|
2451
|
-
/**
|
|
2452
|
-
* 小米登录
|
|
2453
|
-
* @uniPlatform {
|
|
2454
|
-
* "app": {
|
|
2455
|
-
* "android": {
|
|
2456
|
-
* "osVer": "x",
|
|
2457
|
-
* "uniVer": "x",
|
|
2458
|
-
* "unixVer": "x"
|
|
2459
|
-
* },
|
|
2460
|
-
* "ios": {
|
|
2461
|
-
* "osVer": "x",
|
|
2462
|
-
* "uniVer": "x",
|
|
2463
|
-
* "unixVer": "x"
|
|
2464
|
-
* },
|
|
2465
|
-
* "harmony": {
|
|
2466
|
-
* "osVer": "x",
|
|
2467
|
-
* "uniVer": "x",
|
|
2468
|
-
* "unixVer": "x"
|
|
2469
|
-
* }
|
|
2470
|
-
* }
|
|
2471
|
-
* }
|
|
2472
|
-
*/
|
|
2473
|
-
'xiaomi' |
|
|
2474
|
-
/**
|
|
2475
|
-
* Apple登录
|
|
2476
|
-
* @uniPlatform {
|
|
2477
|
-
* "app": {
|
|
2478
|
-
* "android": {
|
|
2479
|
-
* "osVer": "x",
|
|
2480
|
-
* "uniVer": "x",
|
|
2481
|
-
* "unixVer": "x"
|
|
2482
|
-
* },
|
|
2483
|
-
* "ios": {
|
|
2484
|
-
* "osVer": "x",
|
|
2485
|
-
* "uniVer": "x",
|
|
2486
|
-
* "unixVer": "x"
|
|
2487
|
-
* },
|
|
2488
|
-
* "harmony": {
|
|
2489
|
-
* "osVer": "x",
|
|
2490
|
-
* "uniVer": "x",
|
|
2491
|
-
* "unixVer": "x"
|
|
2492
|
-
* }
|
|
2493
|
-
* }
|
|
2494
|
-
* }
|
|
2495
|
-
*/
|
|
2496
|
-
'apple' |
|
|
2497
|
-
/**
|
|
2498
|
-
* 华为 HarmonyOS 华为账号登录
|
|
2499
|
-
* @uniPlatform {
|
|
2500
|
-
* "app": {
|
|
2501
|
-
* "android": {
|
|
2502
|
-
* "osVer": "x",
|
|
2503
|
-
* "uniVer": "x",
|
|
2504
|
-
* "unixVer": "x"
|
|
2505
|
-
* },
|
|
2506
|
-
* "ios": {
|
|
2507
|
-
* "osVer": "x",
|
|
2508
|
-
* "uniVer": "x",
|
|
2509
|
-
* "unixVer": "x"
|
|
2510
|
-
* },
|
|
2511
|
-
* "harmony": {
|
|
2512
|
-
* "osVer": "3.0",
|
|
2513
|
-
* "uniVer": "4.31",
|
|
2514
|
-
* "unixVer": "4.61",
|
|
2515
|
-
* "
|
|
2516
|
-
* }
|
|
2517
|
-
* }
|
|
2518
|
-
* }
|
|
2519
|
-
*/
|
|
2520
|
-
'huawei' | null,
|
|
2521
|
-
/**
|
|
2522
|
-
* 是否带上登录态信息,仅微信小程序生效。
|
|
2523
|
-
* @uniPlatform {
|
|
2524
|
-
* "app": {
|
|
2525
|
-
* "android": {
|
|
2526
|
-
* "osVer": "x",
|
|
2527
|
-
* "uniVer": "x",
|
|
2528
|
-
* "unixVer": "x"
|
|
2529
|
-
* },
|
|
2530
|
-
* "ios": {
|
|
2531
|
-
* "osVer": "x",
|
|
2532
|
-
* "uniVer": "x",
|
|
2533
|
-
* "unixVer": "x"
|
|
2534
|
-
* },
|
|
2535
|
-
* "harmony": {
|
|
2536
|
-
* "osVer": "x",
|
|
2537
|
-
* "uniVer": "x",
|
|
2538
|
-
* "unixVer": "x"
|
|
2539
|
-
* }
|
|
2540
|
-
* },
|
|
2541
|
-
* "mp": {
|
|
2542
|
-
* "weixin": {
|
|
2543
|
-
* "hostVer": "√",
|
|
2544
|
-
* "uniVer": "√",
|
|
2545
|
-
* "unixVer": "4.41"
|
|
2546
|
-
* },
|
|
2547
|
-
* "alipay": {
|
|
2548
|
-
* "hostVer": "x",
|
|
2549
|
-
* "uniVer": "x",
|
|
2550
|
-
* "unixVer": "x"
|
|
2551
|
-
* },
|
|
2552
|
-
* "baidu": {
|
|
2553
|
-
* "hostVer": "x",
|
|
2554
|
-
* "uniVer": "x",
|
|
2555
|
-
* "unixVer": "x"
|
|
2556
|
-
* },
|
|
2557
|
-
* "toutiao": {
|
|
2558
|
-
* "hostVer": "√",
|
|
2559
|
-
* "uniVer": "√",
|
|
2560
|
-
* "unixVer": "x"
|
|
2561
|
-
* },
|
|
2562
|
-
* "lark": {
|
|
2563
|
-
* "hostVer": "√",
|
|
2564
|
-
* "uniVer": "√",
|
|
2565
|
-
* "unixVer": "x"
|
|
2566
|
-
* },
|
|
2567
|
-
* "qq": {
|
|
2568
|
-
* "hostVer": "x",
|
|
2569
|
-
* "uniVer": "x",
|
|
2570
|
-
* "unixVer": "x"
|
|
2571
|
-
* },
|
|
2572
|
-
* "kuaishou": {
|
|
2573
|
-
* "hostVer": "√",
|
|
2574
|
-
* "uniVer": "√",
|
|
2575
|
-
* "unixVer": "x"
|
|
2576
|
-
* },
|
|
2577
|
-
* "jd": {
|
|
2578
|
-
* "hostVer": "x",
|
|
2579
|
-
* "uniVer": "x",
|
|
2580
|
-
* "unixVer": "x"
|
|
2581
|
-
* },
|
|
2582
|
-
* "360": {
|
|
2583
|
-
* "hostVer": "x",
|
|
2584
|
-
* "uniVer": "x",
|
|
2585
|
-
* "unixVer": "x"
|
|
2586
|
-
* }
|
|
2587
|
-
* },
|
|
2588
|
-
* "quickapp": {
|
|
2589
|
-
* "uniVer": "x",
|
|
2590
|
-
* "unixVer": "x"
|
|
2591
|
-
* },
|
|
2592
|
-
* "web": {
|
|
2593
|
-
* "uniVer": "x",
|
|
2594
|
-
* "unixVer": "x"
|
|
2595
|
-
* }
|
|
2596
|
-
* }
|
|
2597
|
-
*/
|
|
2598
|
-
withCredentials?: boolean | null,
|
|
2599
|
-
/**
|
|
2600
|
-
* 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。默认为en,仅微信小程序生效。
|
|
2601
|
-
* @uniPlatform {
|
|
2602
|
-
* "app": {
|
|
2603
|
-
* "android": {
|
|
2604
|
-
* "osVer": "x",
|
|
2605
|
-
* "uniVer": "x",
|
|
2606
|
-
* "unixVer": "x"
|
|
2607
|
-
* },
|
|
2608
|
-
* "ios": {
|
|
2609
|
-
* "osVer": "x",
|
|
2610
|
-
* "uniVer": "x",
|
|
2611
|
-
* "unixVer": "x"
|
|
2612
|
-
* },
|
|
2613
|
-
* "harmony": {
|
|
2614
|
-
* "osVer": "x",
|
|
2615
|
-
* "uniVer": "x",
|
|
2616
|
-
* "unixVer": "x"
|
|
2617
|
-
* }
|
|
2618
|
-
* },
|
|
2619
|
-
* "mp": {
|
|
2620
|
-
* "weixin": {
|
|
2621
|
-
* "hostVer": "√",
|
|
2622
|
-
* "uniVer": "√",
|
|
2623
|
-
* "unixVer": "4.41"
|
|
2624
|
-
* },
|
|
2625
|
-
* "alipay": {
|
|
2626
|
-
* "hostVer": "x",
|
|
2627
|
-
* "uniVer": "x",
|
|
2628
|
-
* "unixVer": "x"
|
|
2629
|
-
* },
|
|
2630
|
-
* "baidu": {
|
|
2631
|
-
* "hostVer": "x",
|
|
2632
|
-
* "uniVer": "x",
|
|
2633
|
-
* "unixVer": "x"
|
|
2634
|
-
* },
|
|
2635
|
-
* "toutiao": {
|
|
2636
|
-
* "hostVer": "x",
|
|
2637
|
-
* "uniVer": "x",
|
|
2638
|
-
* "unixVer": "x"
|
|
2639
|
-
* },
|
|
2640
|
-
* "lark": {
|
|
2641
|
-
* "hostVer": "x",
|
|
2642
|
-
* "uniVer": "x",
|
|
2643
|
-
* "unixVer": "x"
|
|
2644
|
-
* },
|
|
2645
|
-
* "qq": {
|
|
2646
|
-
* "hostVer": "x",
|
|
2647
|
-
* "uniVer": "x",
|
|
2648
|
-
* "unixVer": "x"
|
|
2649
|
-
* },
|
|
2650
|
-
* "kuaishou": {
|
|
2651
|
-
* "hostVer": "x",
|
|
2652
|
-
* "uniVer": "x",
|
|
2653
|
-
* "unixVer": "x"
|
|
2654
|
-
* },
|
|
2655
|
-
* "jd": {
|
|
2656
|
-
* "hostVer": "x",
|
|
2657
|
-
* "uniVer": "x",
|
|
2658
|
-
* "unixVer": "x"
|
|
2659
|
-
* },
|
|
2660
|
-
* "360": {
|
|
2661
|
-
* "hostVer": "x",
|
|
2662
|
-
* "uniVer": "x",
|
|
2663
|
-
* "unixVer": "x"
|
|
2664
|
-
* }
|
|
2665
|
-
* },
|
|
2666
|
-
* "quickapp": {
|
|
2667
|
-
* "uniVer": "x",
|
|
2668
|
-
* "unixVer": "x"
|
|
2669
|
-
* },
|
|
2670
|
-
* "web": {
|
|
2671
|
-
* "uniVer": "x",
|
|
2672
|
-
* "unixVer": "x"
|
|
2673
|
-
* }
|
|
2674
|
-
* }
|
|
2675
|
-
*/
|
|
2676
|
-
lang?: string | null,
|
|
2677
|
-
/**
|
|
2678
|
-
* 超时时间,单位 ms
|
|
2679
|
-
* @uniPlatform {
|
|
2680
|
-
* "app": {
|
|
2681
|
-
* "android": {
|
|
2682
|
-
* "osVer": "x",
|
|
2683
|
-
* "uniVer": "x",
|
|
2684
|
-
* "unixVer": "x"
|
|
2685
|
-
* },
|
|
2686
|
-
* "ios": {
|
|
2687
|
-
* "osVer": "x",
|
|
2688
|
-
* "uniVer": "x",
|
|
2689
|
-
* "unixVer": "x"
|
|
2690
|
-
* },
|
|
2691
|
-
* "harmony": {
|
|
2692
|
-
* "osVer": "x",
|
|
2693
|
-
* "uniVer": "x",
|
|
2694
|
-
* "unixVer": "x"
|
|
2695
|
-
* }
|
|
2696
|
-
* },
|
|
2697
|
-
* "mp": {
|
|
2698
|
-
* "weixin": {
|
|
2699
|
-
* "hostVer": "√",
|
|
2700
|
-
* "uniVer": "√",
|
|
2701
|
-
* "unixVer": "4.41"
|
|
2702
|
-
* },
|
|
2703
|
-
* "alipay": {
|
|
2704
|
-
* "hostVer": "x",
|
|
2705
|
-
* "uniVer": "x",
|
|
2706
|
-
* "unixVer": "x"
|
|
2707
|
-
* },
|
|
2708
|
-
* "baidu": {
|
|
2709
|
-
* "hostVer": "x",
|
|
2710
|
-
* "uniVer": "x",
|
|
2711
|
-
* "unixVer": "x"
|
|
2712
|
-
* },
|
|
2713
|
-
* "toutiao": {
|
|
2714
|
-
* "hostVer": "x",
|
|
2715
|
-
* "uniVer": "x",
|
|
2716
|
-
* "unixVer": "x"
|
|
2717
|
-
* },
|
|
2718
|
-
* "lark": {
|
|
2719
|
-
* "hostVer": "x",
|
|
2720
|
-
* "uniVer": "x",
|
|
2721
|
-
* "unixVer": "x"
|
|
2722
|
-
* },
|
|
2723
|
-
* "qq": {
|
|
2724
|
-
* "hostVer": "x",
|
|
2725
|
-
* "uniVer": "x",
|
|
2726
|
-
* "unixVer": "x"
|
|
2727
|
-
* },
|
|
2728
|
-
* "kuaishou": {
|
|
2729
|
-
* "hostVer": "x",
|
|
2730
|
-
* "uniVer": "x",
|
|
2731
|
-
* "unixVer": "x"
|
|
2732
|
-
* },
|
|
2733
|
-
* "jd": {
|
|
2734
|
-
* "hostVer": "x",
|
|
2735
|
-
* "uniVer": "x",
|
|
2736
|
-
* "unixVer": "x"
|
|
2737
|
-
* },
|
|
2738
|
-
* "360": {
|
|
2739
|
-
* "hostVer": "x",
|
|
2740
|
-
* "uniVer": "x",
|
|
2741
|
-
* "unixVer": "x"
|
|
2742
|
-
* }
|
|
2743
|
-
* },
|
|
2744
|
-
* "quickapp": {
|
|
2745
|
-
* "uniVer": "x",
|
|
2746
|
-
* "unixVer": "x"
|
|
2747
|
-
* },
|
|
2748
|
-
* "web": {
|
|
2749
|
-
* "uniVer": "x",
|
|
2750
|
-
* "unixVer": "x"
|
|
2751
|
-
* }
|
|
2752
|
-
* }
|
|
2753
|
-
*/
|
|
2754
|
-
timeout?: number | null,
|
|
2755
|
-
/**
|
|
2301
|
+
};
|
|
2302
|
+
export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
|
|
2303
|
+
export type GetUserInfoFail = IUniError;
|
|
2304
|
+
export type GetUserInfoFailCallback = (result: GetUserInfoFail) => void;
|
|
2305
|
+
export type GetUserInfoComplete = any;
|
|
2306
|
+
export type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void;
|
|
2307
|
+
export type GetUserInfoOptions = {
|
|
2308
|
+
/**
|
|
2309
|
+
* 授权登录服务提供商,通过uni.getProvider获取
|
|
2310
|
+
* @uniPlatform {
|
|
2311
|
+
* "app": {
|
|
2312
|
+
* "android": {
|
|
2313
|
+
* "osVer": "5.0",
|
|
2314
|
+
* "uniVer": "√",
|
|
2315
|
+
* "unixVer": "x"
|
|
2316
|
+
* },
|
|
2317
|
+
* "ios": {
|
|
2318
|
+
* "osVer": "12.0",
|
|
2319
|
+
* "uniVer": "√",
|
|
2320
|
+
* "unixVer": "x"
|
|
2321
|
+
* },
|
|
2322
|
+
* "harmony": {
|
|
2323
|
+
* "osVer": "3.0",
|
|
2324
|
+
* "uniVer": "4.31",
|
|
2325
|
+
* "unixVer": "4.61",
|
|
2326
|
+
* "unixVaporVer": "5.0"
|
|
2327
|
+
* }
|
|
2328
|
+
* },
|
|
2329
|
+
* "mp": {
|
|
2330
|
+
* "weixin": {
|
|
2331
|
+
* "hostVer": "x",
|
|
2332
|
+
* "uniVer": "x",
|
|
2333
|
+
* "unixVer": "x"
|
|
2334
|
+
* },
|
|
2335
|
+
* "alipay": {
|
|
2336
|
+
* "hostVer": "x",
|
|
2337
|
+
* "uniVer": "x",
|
|
2338
|
+
* "unixVer": "x"
|
|
2339
|
+
* },
|
|
2340
|
+
* "baidu": {
|
|
2341
|
+
* "hostVer": "x",
|
|
2342
|
+
* "uniVer": "x",
|
|
2343
|
+
* "unixVer": "x"
|
|
2344
|
+
* },
|
|
2345
|
+
* "toutiao": {
|
|
2346
|
+
* "hostVer": "x",
|
|
2347
|
+
* "uniVer": "x",
|
|
2348
|
+
* "unixVer": "x"
|
|
2349
|
+
* },
|
|
2350
|
+
* "lark": {
|
|
2351
|
+
* "hostVer": "x",
|
|
2352
|
+
* "uniVer": "x",
|
|
2353
|
+
* "unixVer": "x"
|
|
2354
|
+
* },
|
|
2355
|
+
* "qq": {
|
|
2356
|
+
* "hostVer": "x",
|
|
2357
|
+
* "uniVer": "x",
|
|
2358
|
+
* "unixVer": "x"
|
|
2359
|
+
* },
|
|
2360
|
+
* "kuaishou": {
|
|
2361
|
+
* "hostVer": "x",
|
|
2362
|
+
* "uniVer": "x",
|
|
2363
|
+
* "unixVer": "x"
|
|
2364
|
+
* },
|
|
2365
|
+
* "jd": {
|
|
2366
|
+
* "hostVer": "x",
|
|
2367
|
+
* "uniVer": "x",
|
|
2368
|
+
* "unixVer": "x"
|
|
2369
|
+
* },
|
|
2370
|
+
* "360": {
|
|
2371
|
+
* "hostVer": "x",
|
|
2372
|
+
* "uniVer": "x",
|
|
2373
|
+
* "unixVer": "x"
|
|
2374
|
+
* }
|
|
2375
|
+
* },
|
|
2376
|
+
* "quickapp": {
|
|
2377
|
+
* "uniVer": "x",
|
|
2378
|
+
* "unixVer": "x"
|
|
2379
|
+
* },
|
|
2380
|
+
* "web": {
|
|
2381
|
+
* "uniVer": "x",
|
|
2382
|
+
* "unixVer": "x"
|
|
2383
|
+
* }
|
|
2384
|
+
* }
|
|
2385
|
+
*/
|
|
2386
|
+
provider?:
|
|
2387
|
+
/**
|
|
2388
|
+
* 微信登录。
|
|
2389
|
+
* - **推荐**: 使用 uniCloud 提供的云函数登录方式,避免在客户端暴露 appSecret。
|
|
2390
|
+
* 1. [获取微信openid](https://doc.dcloud.net.cn/uniCloud/uni-id/old.html#获取微信openid)
|
|
2391
|
+
* 2. [获取App平台微信登录用户信息](https://doc.dcloud.net.cn/uniCloud/uni-id/old.html#get-weixin-user-info)
|
|
2392
|
+
* @uniPlatform {
|
|
2393
|
+
* "app": {
|
|
2394
|
+
* "android": {
|
|
2395
|
+
* "osVer": "x",
|
|
2396
|
+
* "uniVer": "x",
|
|
2397
|
+
* "unixVer": "x"
|
|
2398
|
+
* },
|
|
2399
|
+
* "ios": {
|
|
2400
|
+
* "osVer": "x",
|
|
2401
|
+
* "uniVer": "x",
|
|
2402
|
+
* "unixVer": "x"
|
|
2403
|
+
* },
|
|
2404
|
+
* "harmony": {
|
|
2405
|
+
* "osVer": "x",
|
|
2406
|
+
* "uniVer": "x",
|
|
2407
|
+
* "unixVer": "x"
|
|
2408
|
+
* }
|
|
2409
|
+
* }
|
|
2410
|
+
* }
|
|
2411
|
+
*/
|
|
2412
|
+
'weixin' |
|
|
2413
|
+
/**
|
|
2414
|
+
* QQ登录
|
|
2415
|
+
* @uniPlatform {
|
|
2416
|
+
* "app": {
|
|
2417
|
+
* "android": {
|
|
2418
|
+
* "osVer": "x",
|
|
2419
|
+
* "uniVer": "x",
|
|
2420
|
+
* "unixVer": "x"
|
|
2421
|
+
* },
|
|
2422
|
+
* "ios": {
|
|
2423
|
+
* "osVer": "x",
|
|
2424
|
+
* "uniVer": "x",
|
|
2425
|
+
* "unixVer": "x"
|
|
2426
|
+
* },
|
|
2427
|
+
* "harmony": {
|
|
2428
|
+
* "osVer": "x",
|
|
2429
|
+
* "uniVer": "x",
|
|
2430
|
+
* "unixVer": "x"
|
|
2431
|
+
* }
|
|
2432
|
+
* }
|
|
2433
|
+
* }
|
|
2434
|
+
*/
|
|
2435
|
+
'qq' |
|
|
2436
|
+
/**
|
|
2437
|
+
* 新浪微博登录
|
|
2438
|
+
* @uniPlatform {
|
|
2439
|
+
* "app": {
|
|
2440
|
+
* "android": {
|
|
2441
|
+
* "osVer": "x",
|
|
2442
|
+
* "uniVer": "x",
|
|
2443
|
+
* "unixVer": "x"
|
|
2444
|
+
* },
|
|
2445
|
+
* "ios": {
|
|
2446
|
+
* "osVer": "x",
|
|
2447
|
+
* "uniVer": "x",
|
|
2448
|
+
* "unixVer": "x"
|
|
2449
|
+
* },
|
|
2450
|
+
* "harmony": {
|
|
2451
|
+
* "osVer": "x",
|
|
2452
|
+
* "uniVer": "x",
|
|
2453
|
+
* "unixVer": "x"
|
|
2454
|
+
* }
|
|
2455
|
+
* }
|
|
2456
|
+
* }
|
|
2457
|
+
*/
|
|
2458
|
+
'sinaweibo' |
|
|
2459
|
+
/**
|
|
2460
|
+
* 小米登录
|
|
2461
|
+
* @uniPlatform {
|
|
2462
|
+
* "app": {
|
|
2463
|
+
* "android": {
|
|
2464
|
+
* "osVer": "x",
|
|
2465
|
+
* "uniVer": "x",
|
|
2466
|
+
* "unixVer": "x"
|
|
2467
|
+
* },
|
|
2468
|
+
* "ios": {
|
|
2469
|
+
* "osVer": "x",
|
|
2470
|
+
* "uniVer": "x",
|
|
2471
|
+
* "unixVer": "x"
|
|
2472
|
+
* },
|
|
2473
|
+
* "harmony": {
|
|
2474
|
+
* "osVer": "x",
|
|
2475
|
+
* "uniVer": "x",
|
|
2476
|
+
* "unixVer": "x"
|
|
2477
|
+
* }
|
|
2478
|
+
* }
|
|
2479
|
+
* }
|
|
2480
|
+
*/
|
|
2481
|
+
'xiaomi' |
|
|
2482
|
+
/**
|
|
2483
|
+
* Apple登录
|
|
2484
|
+
* @uniPlatform {
|
|
2485
|
+
* "app": {
|
|
2486
|
+
* "android": {
|
|
2487
|
+
* "osVer": "x",
|
|
2488
|
+
* "uniVer": "x",
|
|
2489
|
+
* "unixVer": "x"
|
|
2490
|
+
* },
|
|
2491
|
+
* "ios": {
|
|
2492
|
+
* "osVer": "x",
|
|
2493
|
+
* "uniVer": "x",
|
|
2494
|
+
* "unixVer": "x"
|
|
2495
|
+
* },
|
|
2496
|
+
* "harmony": {
|
|
2497
|
+
* "osVer": "x",
|
|
2498
|
+
* "uniVer": "x",
|
|
2499
|
+
* "unixVer": "x"
|
|
2500
|
+
* }
|
|
2501
|
+
* }
|
|
2502
|
+
* }
|
|
2503
|
+
*/
|
|
2504
|
+
'apple' |
|
|
2505
|
+
/**
|
|
2506
|
+
* 华为 HarmonyOS 华为账号登录
|
|
2507
|
+
* @uniPlatform {
|
|
2508
|
+
* "app": {
|
|
2509
|
+
* "android": {
|
|
2510
|
+
* "osVer": "x",
|
|
2511
|
+
* "uniVer": "x",
|
|
2512
|
+
* "unixVer": "x"
|
|
2513
|
+
* },
|
|
2514
|
+
* "ios": {
|
|
2515
|
+
* "osVer": "x",
|
|
2516
|
+
* "uniVer": "x",
|
|
2517
|
+
* "unixVer": "x"
|
|
2518
|
+
* },
|
|
2519
|
+
* "harmony": {
|
|
2520
|
+
* "osVer": "3.0",
|
|
2521
|
+
* "uniVer": "4.31",
|
|
2522
|
+
* "unixVer": "4.61",
|
|
2523
|
+
* "unixVaporVer": "5.0"
|
|
2524
|
+
* }
|
|
2525
|
+
* }
|
|
2526
|
+
* }
|
|
2527
|
+
*/
|
|
2528
|
+
'huawei' | null,
|
|
2529
|
+
/**
|
|
2530
|
+
* 是否带上登录态信息,仅微信小程序生效。
|
|
2531
|
+
* @uniPlatform {
|
|
2532
|
+
* "app": {
|
|
2533
|
+
* "android": {
|
|
2534
|
+
* "osVer": "x",
|
|
2535
|
+
* "uniVer": "x",
|
|
2536
|
+
* "unixVer": "x"
|
|
2537
|
+
* },
|
|
2538
|
+
* "ios": {
|
|
2539
|
+
* "osVer": "x",
|
|
2540
|
+
* "uniVer": "x",
|
|
2541
|
+
* "unixVer": "x"
|
|
2542
|
+
* },
|
|
2543
|
+
* "harmony": {
|
|
2544
|
+
* "osVer": "x",
|
|
2545
|
+
* "uniVer": "x",
|
|
2546
|
+
* "unixVer": "x"
|
|
2547
|
+
* }
|
|
2548
|
+
* },
|
|
2549
|
+
* "mp": {
|
|
2550
|
+
* "weixin": {
|
|
2551
|
+
* "hostVer": "√",
|
|
2552
|
+
* "uniVer": "√",
|
|
2553
|
+
* "unixVer": "4.41"
|
|
2554
|
+
* },
|
|
2555
|
+
* "alipay": {
|
|
2556
|
+
* "hostVer": "x",
|
|
2557
|
+
* "uniVer": "x",
|
|
2558
|
+
* "unixVer": "x"
|
|
2559
|
+
* },
|
|
2560
|
+
* "baidu": {
|
|
2561
|
+
* "hostVer": "x",
|
|
2562
|
+
* "uniVer": "x",
|
|
2563
|
+
* "unixVer": "x"
|
|
2564
|
+
* },
|
|
2565
|
+
* "toutiao": {
|
|
2566
|
+
* "hostVer": "√",
|
|
2567
|
+
* "uniVer": "√",
|
|
2568
|
+
* "unixVer": "x"
|
|
2569
|
+
* },
|
|
2570
|
+
* "lark": {
|
|
2571
|
+
* "hostVer": "√",
|
|
2572
|
+
* "uniVer": "√",
|
|
2573
|
+
* "unixVer": "x"
|
|
2574
|
+
* },
|
|
2575
|
+
* "qq": {
|
|
2576
|
+
* "hostVer": "x",
|
|
2577
|
+
* "uniVer": "x",
|
|
2578
|
+
* "unixVer": "x"
|
|
2579
|
+
* },
|
|
2580
|
+
* "kuaishou": {
|
|
2581
|
+
* "hostVer": "√",
|
|
2582
|
+
* "uniVer": "√",
|
|
2583
|
+
* "unixVer": "x"
|
|
2584
|
+
* },
|
|
2585
|
+
* "jd": {
|
|
2586
|
+
* "hostVer": "x",
|
|
2587
|
+
* "uniVer": "x",
|
|
2588
|
+
* "unixVer": "x"
|
|
2589
|
+
* },
|
|
2590
|
+
* "360": {
|
|
2591
|
+
* "hostVer": "x",
|
|
2592
|
+
* "uniVer": "x",
|
|
2593
|
+
* "unixVer": "x"
|
|
2594
|
+
* }
|
|
2595
|
+
* },
|
|
2596
|
+
* "quickapp": {
|
|
2597
|
+
* "uniVer": "x",
|
|
2598
|
+
* "unixVer": "x"
|
|
2599
|
+
* },
|
|
2600
|
+
* "web": {
|
|
2601
|
+
* "uniVer": "x",
|
|
2602
|
+
* "unixVer": "x"
|
|
2603
|
+
* }
|
|
2604
|
+
* }
|
|
2605
|
+
*/
|
|
2606
|
+
withCredentials?: boolean | null,
|
|
2607
|
+
/**
|
|
2608
|
+
* 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。默认为en,仅微信小程序生效。
|
|
2609
|
+
* @uniPlatform {
|
|
2610
|
+
* "app": {
|
|
2611
|
+
* "android": {
|
|
2612
|
+
* "osVer": "x",
|
|
2613
|
+
* "uniVer": "x",
|
|
2614
|
+
* "unixVer": "x"
|
|
2615
|
+
* },
|
|
2616
|
+
* "ios": {
|
|
2617
|
+
* "osVer": "x",
|
|
2618
|
+
* "uniVer": "x",
|
|
2619
|
+
* "unixVer": "x"
|
|
2620
|
+
* },
|
|
2621
|
+
* "harmony": {
|
|
2622
|
+
* "osVer": "x",
|
|
2623
|
+
* "uniVer": "x",
|
|
2624
|
+
* "unixVer": "x"
|
|
2625
|
+
* }
|
|
2626
|
+
* },
|
|
2627
|
+
* "mp": {
|
|
2628
|
+
* "weixin": {
|
|
2629
|
+
* "hostVer": "√",
|
|
2630
|
+
* "uniVer": "√",
|
|
2631
|
+
* "unixVer": "4.41"
|
|
2632
|
+
* },
|
|
2633
|
+
* "alipay": {
|
|
2634
|
+
* "hostVer": "x",
|
|
2635
|
+
* "uniVer": "x",
|
|
2636
|
+
* "unixVer": "x"
|
|
2637
|
+
* },
|
|
2638
|
+
* "baidu": {
|
|
2639
|
+
* "hostVer": "x",
|
|
2640
|
+
* "uniVer": "x",
|
|
2641
|
+
* "unixVer": "x"
|
|
2642
|
+
* },
|
|
2643
|
+
* "toutiao": {
|
|
2644
|
+
* "hostVer": "x",
|
|
2645
|
+
* "uniVer": "x",
|
|
2646
|
+
* "unixVer": "x"
|
|
2647
|
+
* },
|
|
2648
|
+
* "lark": {
|
|
2649
|
+
* "hostVer": "x",
|
|
2650
|
+
* "uniVer": "x",
|
|
2651
|
+
* "unixVer": "x"
|
|
2652
|
+
* },
|
|
2653
|
+
* "qq": {
|
|
2654
|
+
* "hostVer": "x",
|
|
2655
|
+
* "uniVer": "x",
|
|
2656
|
+
* "unixVer": "x"
|
|
2657
|
+
* },
|
|
2658
|
+
* "kuaishou": {
|
|
2659
|
+
* "hostVer": "x",
|
|
2660
|
+
* "uniVer": "x",
|
|
2661
|
+
* "unixVer": "x"
|
|
2662
|
+
* },
|
|
2663
|
+
* "jd": {
|
|
2664
|
+
* "hostVer": "x",
|
|
2665
|
+
* "uniVer": "x",
|
|
2666
|
+
* "unixVer": "x"
|
|
2667
|
+
* },
|
|
2668
|
+
* "360": {
|
|
2669
|
+
* "hostVer": "x",
|
|
2670
|
+
* "uniVer": "x",
|
|
2671
|
+
* "unixVer": "x"
|
|
2672
|
+
* }
|
|
2673
|
+
* },
|
|
2674
|
+
* "quickapp": {
|
|
2675
|
+
* "uniVer": "x",
|
|
2676
|
+
* "unixVer": "x"
|
|
2677
|
+
* },
|
|
2678
|
+
* "web": {
|
|
2679
|
+
* "uniVer": "x",
|
|
2680
|
+
* "unixVer": "x"
|
|
2681
|
+
* }
|
|
2682
|
+
* }
|
|
2683
|
+
*/
|
|
2684
|
+
lang?: string | null,
|
|
2685
|
+
/**
|
|
2686
|
+
* 超时时间,单位 ms
|
|
2687
|
+
* @uniPlatform {
|
|
2688
|
+
* "app": {
|
|
2689
|
+
* "android": {
|
|
2690
|
+
* "osVer": "x",
|
|
2691
|
+
* "uniVer": "x",
|
|
2692
|
+
* "unixVer": "x"
|
|
2693
|
+
* },
|
|
2694
|
+
* "ios": {
|
|
2695
|
+
* "osVer": "x",
|
|
2696
|
+
* "uniVer": "x",
|
|
2697
|
+
* "unixVer": "x"
|
|
2698
|
+
* },
|
|
2699
|
+
* "harmony": {
|
|
2700
|
+
* "osVer": "x",
|
|
2701
|
+
* "uniVer": "x",
|
|
2702
|
+
* "unixVer": "x"
|
|
2703
|
+
* }
|
|
2704
|
+
* },
|
|
2705
|
+
* "mp": {
|
|
2706
|
+
* "weixin": {
|
|
2707
|
+
* "hostVer": "√",
|
|
2708
|
+
* "uniVer": "√",
|
|
2709
|
+
* "unixVer": "4.41"
|
|
2710
|
+
* },
|
|
2711
|
+
* "alipay": {
|
|
2712
|
+
* "hostVer": "x",
|
|
2713
|
+
* "uniVer": "x",
|
|
2714
|
+
* "unixVer": "x"
|
|
2715
|
+
* },
|
|
2716
|
+
* "baidu": {
|
|
2717
|
+
* "hostVer": "x",
|
|
2718
|
+
* "uniVer": "x",
|
|
2719
|
+
* "unixVer": "x"
|
|
2720
|
+
* },
|
|
2721
|
+
* "toutiao": {
|
|
2722
|
+
* "hostVer": "x",
|
|
2723
|
+
* "uniVer": "x",
|
|
2724
|
+
* "unixVer": "x"
|
|
2725
|
+
* },
|
|
2726
|
+
* "lark": {
|
|
2727
|
+
* "hostVer": "x",
|
|
2728
|
+
* "uniVer": "x",
|
|
2729
|
+
* "unixVer": "x"
|
|
2730
|
+
* },
|
|
2731
|
+
* "qq": {
|
|
2732
|
+
* "hostVer": "x",
|
|
2733
|
+
* "uniVer": "x",
|
|
2734
|
+
* "unixVer": "x"
|
|
2735
|
+
* },
|
|
2736
|
+
* "kuaishou": {
|
|
2737
|
+
* "hostVer": "x",
|
|
2738
|
+
* "uniVer": "x",
|
|
2739
|
+
* "unixVer": "x"
|
|
2740
|
+
* },
|
|
2741
|
+
* "jd": {
|
|
2742
|
+
* "hostVer": "x",
|
|
2743
|
+
* "uniVer": "x",
|
|
2744
|
+
* "unixVer": "x"
|
|
2745
|
+
* },
|
|
2746
|
+
* "360": {
|
|
2747
|
+
* "hostVer": "x",
|
|
2748
|
+
* "uniVer": "x",
|
|
2749
|
+
* "unixVer": "x"
|
|
2750
|
+
* }
|
|
2751
|
+
* },
|
|
2752
|
+
* "quickapp": {
|
|
2753
|
+
* "uniVer": "x",
|
|
2754
|
+
* "unixVer": "x"
|
|
2755
|
+
* },
|
|
2756
|
+
* "web": {
|
|
2757
|
+
* "uniVer": "x",
|
|
2758
|
+
* "unixVer": "x"
|
|
2759
|
+
* }
|
|
2760
|
+
* }
|
|
2761
|
+
*/
|
|
2762
|
+
timeout?: number | null,
|
|
2763
|
+
/**
|
|
2756
2764
|
* 接口调用成功的回调函数
|
|
2757
2765
|
* @uniPlatform {
|
|
2758
2766
|
* "mp": {
|
|
@@ -2798,9 +2806,9 @@ export type GetUserInfoOptions = {
|
|
|
2798
2806
|
* }
|
|
2799
2807
|
* }
|
|
2800
2808
|
* }
|
|
2801
|
-
*/
|
|
2802
|
-
success?: GetUserInfoSuccessCallback | null,
|
|
2803
|
-
/**
|
|
2809
|
+
*/
|
|
2810
|
+
success?: GetUserInfoSuccessCallback | null,
|
|
2811
|
+
/**
|
|
2804
2812
|
* 接口调用失败的回调函数
|
|
2805
2813
|
* @uniPlatform {
|
|
2806
2814
|
* "mp": {
|
|
@@ -2846,9 +2854,9 @@ export type GetUserInfoOptions = {
|
|
|
2846
2854
|
* }
|
|
2847
2855
|
* }
|
|
2848
2856
|
* }
|
|
2849
|
-
*/
|
|
2850
|
-
fail?: GetUserInfoFailCallback | null,
|
|
2851
|
-
/**
|
|
2857
|
+
*/
|
|
2858
|
+
fail?: GetUserInfoFailCallback | null,
|
|
2859
|
+
/**
|
|
2852
2860
|
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
2853
2861
|
* @uniPlatform {
|
|
2854
2862
|
* "mp": {
|
|
@@ -2894,11 +2902,11 @@ export type GetUserInfoOptions = {
|
|
|
2894
2902
|
* }
|
|
2895
2903
|
* }
|
|
2896
2904
|
* }
|
|
2897
|
-
*/
|
|
2898
|
-
complete?: GetUserInfoCompleteCallback | null
|
|
2899
|
-
};
|
|
2900
|
-
|
|
2901
|
-
export interface IOauthFail extends IUniError {
|
|
2905
|
+
*/
|
|
2906
|
+
complete?: GetUserInfoCompleteCallback | null
|
|
2907
|
+
};
|
|
2908
|
+
|
|
2909
|
+
export interface IOauthFail extends IUniError {
|
|
2902
2910
|
errCode : OauthErrorCode
|
|
2903
2911
|
/**
|
|
2904
2912
|
* 需要基础库: `2.24.0`
|
|
@@ -2951,65 +2959,73 @@ export interface IOauthFail extends IUniError {
|
|
|
2951
2959
|
* }
|
|
2952
2960
|
*/
|
|
2953
2961
|
errno?: number | null;
|
|
2954
|
-
};
|
|
2955
|
-
|
|
2956
|
-
/**
|
|
2957
|
-
* 微信登录错误码
|
|
2958
|
-
*/
|
|
2959
|
-
export type OauthErrorCode =
|
|
2960
|
-
/**
|
|
2961
|
-
* 未找到微信 APPID
|
|
2962
|
-
*/
|
|
2963
|
-
1310500 |
|
|
2964
|
-
/**
|
|
2965
|
-
* APPID、appIdentifier、bundleId不匹配
|
|
2966
|
-
*/
|
|
2967
|
-
1310501 |
|
|
2968
|
-
/**
|
|
2969
|
-
* 微信可能未安装
|
|
2970
|
-
*/
|
|
2971
|
-
1310502 |
|
|
2972
|
-
/**
|
|
2973
|
-
* 未获取到授权凭证
|
|
2974
|
-
*/
|
|
2975
|
-
1310503 |
|
|
2976
|
-
/**
|
|
2977
|
-
* 未获取到授权 code
|
|
2978
|
-
*/
|
|
2979
|
-
1310504 |
|
|
2980
|
-
/**
|
|
2981
|
-
* 授权凭证无效
|
|
2982
|
-
*/
|
|
2983
|
-
1310505 |
|
|
2984
|
-
/**
|
|
2985
|
-
* 获取用户信息失败
|
|
2986
|
-
*/
|
|
2987
|
-
1310506 |
|
|
2988
|
-
/**
|
|
2989
|
-
* 微信 API 请求失败
|
|
2990
|
-
*/
|
|
2991
|
-
1310507 |
|
|
2992
|
-
/**
|
|
2993
|
-
* 微信登录state验证失败
|
|
2994
|
-
*/
|
|
2995
|
-
1310508 |
|
|
2996
|
-
/**
|
|
2997
|
-
* 用户取消登录
|
|
2998
|
-
*/
|
|
2999
|
-
1310509 |
|
|
3000
|
-
/**
|
|
3001
|
-
* 超时时间必须为正整数
|
|
3002
|
-
*/
|
|
3003
|
-
1310510 |
|
|
3004
|
-
/**
|
|
3005
|
-
* 获取用户信息请求超时
|
|
3006
|
-
*/
|
|
3007
|
-
1310511 |
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
2962
|
+
};
|
|
2963
|
+
|
|
2964
|
+
/**
|
|
2965
|
+
* 微信登录错误码
|
|
2966
|
+
*/
|
|
2967
|
+
export type OauthErrorCode =
|
|
2968
|
+
/**
|
|
2969
|
+
* 未找到微信 APPID
|
|
2970
|
+
*/
|
|
2971
|
+
1310500 |
|
|
2972
|
+
/**
|
|
2973
|
+
* APPID、appIdentifier、bundleId不匹配
|
|
2974
|
+
*/
|
|
2975
|
+
1310501 |
|
|
2976
|
+
/**
|
|
2977
|
+
* 微信可能未安装
|
|
2978
|
+
*/
|
|
2979
|
+
1310502 |
|
|
2980
|
+
/**
|
|
2981
|
+
* 未获取到授权凭证
|
|
2982
|
+
*/
|
|
2983
|
+
1310503 |
|
|
2984
|
+
/**
|
|
2985
|
+
* 未获取到授权 code
|
|
2986
|
+
*/
|
|
2987
|
+
1310504 |
|
|
2988
|
+
/**
|
|
2989
|
+
* 授权凭证无效
|
|
2990
|
+
*/
|
|
2991
|
+
1310505 |
|
|
2992
|
+
/**
|
|
2993
|
+
* 获取用户信息失败
|
|
2994
|
+
*/
|
|
2995
|
+
1310506 |
|
|
2996
|
+
/**
|
|
2997
|
+
* 微信 API 请求失败
|
|
2998
|
+
*/
|
|
2999
|
+
1310507 |
|
|
3000
|
+
/**
|
|
3001
|
+
* 微信登录state验证失败
|
|
3002
|
+
*/
|
|
3003
|
+
1310508 |
|
|
3004
|
+
/**
|
|
3005
|
+
* 用户取消登录
|
|
3006
|
+
*/
|
|
3007
|
+
1310509 |
|
|
3008
|
+
/**
|
|
3009
|
+
* 超时时间必须为正整数
|
|
3010
|
+
*/
|
|
3011
|
+
1310510 |
|
|
3012
|
+
/**
|
|
3013
|
+
* 获取用户信息请求超时
|
|
3014
|
+
*/
|
|
3015
|
+
1310511 |
|
|
3016
|
+
/**
|
|
3017
|
+
* iOS 没有配置对应的URL Scheme
|
|
3018
|
+
*/
|
|
3019
|
+
1310512 |
|
|
3020
|
+
/**
|
|
3021
|
+
* iOS 没有配置对应的Universal Link
|
|
3022
|
+
*/
|
|
3023
|
+
1310513 |
|
|
3024
|
+
/**
|
|
3025
|
+
* 登录请求可能被跨站攻击
|
|
3026
|
+
*/
|
|
3027
|
+
1001502040 |
|
|
3028
|
+
/**
|
|
3029
|
+
* 服务供应商获取失败
|
|
3030
|
+
*/
|
|
3031
|
+
1310600
|