@dcloudio/uni-app-x 0.7.51 → 0.7.52

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.
Files changed (385) hide show
  1. package/.prettierrc +5 -5
  2. package/README.md +1 -1
  3. package/index.d.ts +1 -1
  4. package/options.d.ts +9 -9
  5. package/package.json +30 -30
  6. package/types/app.d.ts +1383 -1383
  7. package/types/index.d.ts +7 -7
  8. package/types/native/AsyncApiResult.d.ts +8 -8
  9. package/types/native/CSSStyleDeclaration.d.ts +144 -144
  10. package/types/native/CanvasRenderingContext2D.d.ts +3748 -3748
  11. package/types/native/DOMRect.d.ts +656 -656
  12. package/types/native/DrawableContext.d.ts +1722 -1722
  13. package/types/native/INavigationBar.d.ts +22 -22
  14. package/types/native/IUniElement.d.ts +6221 -6103
  15. package/types/native/IUniError.d.ts +20 -20
  16. package/types/native/IUniForm.d.ts +9 -9
  17. package/types/native/IUniNativeViewElement.d.ts +132 -132
  18. package/types/native/NativeLoadFontFaceOptions.d.ts +11 -11
  19. package/types/native/NodeData.d.ts +22 -22
  20. package/types/native/PageNode.d.ts +6 -6
  21. package/types/native/Path2D.d.ts +269 -269
  22. package/types/native/SnapshotOptions.d.ts +62 -62
  23. package/types/native/SourceError.d.ts +46 -46
  24. package/types/native/UTSAndroidHookProxy.d.ts +14 -14
  25. package/types/native/UniAggregateError.d.ts +19 -19
  26. package/types/native/UniAnimation.d.ts +583 -583
  27. package/types/native/UniAnimationPlaybackEvent.d.ts +12 -12
  28. package/types/native/UniCallbackWrapper.d.ts +7 -7
  29. package/types/native/UniCanvasElement.d.ts +9 -9
  30. package/types/native/UniCustomEvent.d.ts +24 -24
  31. package/types/native/UniDocument.d.ts +83 -83
  32. package/types/native/UniElement.d.ts +85 -85
  33. package/types/native/UniError.d.ts +70 -70
  34. package/types/native/UniEvent.d.ts +121 -121
  35. package/types/native/UniFormControl.d.ts +8 -8
  36. package/types/native/UniFormControlElement.d.ts +15 -15
  37. package/types/native/UniImageErrorEvent.d.ts +33 -33
  38. package/types/native/UniImageLoadEvent.d.ts +37 -37
  39. package/types/native/UniInputBlurEvent.d.ts +36 -36
  40. package/types/native/UniInputConfirmEvent.d.ts +30 -30
  41. package/types/native/UniInputEvent.d.ts +38 -38
  42. package/types/native/UniInputFocusEvent.d.ts +53 -53
  43. package/types/native/UniNativeApp.d.ts +205 -205
  44. package/types/native/UniNativePage.d.ts +328 -328
  45. package/types/native/UniNestedPreScrollEvent.d.ts +45 -45
  46. package/types/native/UniPage.d.ts +773 -639
  47. package/types/native/UniPageBody.d.ts +109 -109
  48. package/types/native/UniPageEvent.d.ts +10 -10
  49. package/types/native/UniPageManager.d.ts +27 -27
  50. package/types/native/UniPageScrollEvent.d.ts +13 -13
  51. package/types/native/UniPointerEvent.d.ts +74 -74
  52. package/types/native/UniProvider.d.ts +32 -32
  53. package/types/native/UniRefresherEvent.d.ts +18 -18
  54. package/types/native/UniResizeEvent.d.ts +34 -34
  55. package/types/native/UniResizeObserver.d.ts +394 -394
  56. package/types/native/UniRichTextItemClickEvent.d.ts +37 -37
  57. package/types/native/UniSafeAreaInsets.d.ts +73 -73
  58. package/types/native/UniScrollEvent.d.ts +42 -42
  59. package/types/native/UniScrollToLowerEvent.d.ts +23 -23
  60. package/types/native/UniScrollToUpperEvent.d.ts +23 -23
  61. package/types/native/UniStartNestedScrollEvent.d.ts +33 -33
  62. package/types/native/UniStopNestedScrollEvent.d.ts +28 -28
  63. package/types/native/UniSwiperAnimationFinishEvent.d.ts +44 -44
  64. package/types/native/UniSwiperChangeEvent.d.ts +44 -44
  65. package/types/native/UniSwiperTransitionEvent.d.ts +24 -24
  66. package/types/native/UniTabTapEvent.d.ts +18 -18
  67. package/types/native/UniTabsElement.d.ts +59 -59
  68. package/types/native/UniTextElement.d.ts +35 -35
  69. package/types/native/UniTextareaFocusEvent.d.ts +54 -54
  70. package/types/native/UniTouchEvent.d.ts +64 -64
  71. package/types/native/UniVideoElement.d.ts +515 -515
  72. package/types/native/UniWebViewDownloadEvent.d.ts +52 -52
  73. package/types/native/UniWebViewElement.d.ts +10 -10
  74. package/types/native/UniWebViewErrorEvent.d.ts +59 -59
  75. package/types/native/UniWebViewLoadEvent.d.ts +41 -41
  76. package/types/native/UniWebViewLoadingEvent.d.ts +41 -41
  77. package/types/native/UniWebViewMessageEvent.d.ts +36 -36
  78. package/types/native/UniWebViewServiceMessageEvent.d.ts +8 -8
  79. package/types/native/ViewToTempFilePathOptions.d.ts +47 -47
  80. package/types/native/WebViewStyles.d.ts +20 -20
  81. package/types/native/global.d.ts +684 -662
  82. package/types/native/index.d.ts +76 -76
  83. package/types/native-global/index.d.ts +1 -1
  84. package/types/page.d.ts +1731 -1731
  85. package/types/process.d.ts +5 -5
  86. package/types/uni/base/index.d.ts +3 -3
  87. package/types/uni/env/index.d.ts +117 -117
  88. package/types/uni/global.d.ts +8 -7
  89. package/types/uni/index.d.ts +6 -5
  90. package/types/uni/uni-camera-global.d.ts +19 -0
  91. package/types/uni/uni-camera.d.ts +23 -0
  92. package/types/uni/uni-map-tencent-global.d.ts +37 -37
  93. package/types/uni/uni-map-tencent-map.d.ts +62 -62
  94. package/types/uni/uts-plugin-api/global.d.ts +70 -70
  95. package/types/uni/uts-plugin-api/index.d.ts +70 -70
  96. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -22
  97. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -10
  98. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +554 -554
  99. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +24 -24
  100. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +11 -11
  101. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1765 -1765
  102. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -10
  103. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -4
  104. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +78 -78
  105. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +58 -58
  106. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +28 -28
  107. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1336 -1336
  108. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -10
  109. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -4
  110. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +78 -78
  111. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +22 -22
  112. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +10 -10
  113. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +972 -972
  114. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/global.d.ts +20 -20
  115. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/index.d.ts +9 -9
  116. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +411 -411
  117. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/global.d.ts +32 -32
  118. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/index.d.ts +15 -15
  119. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -40
  120. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -19
  121. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +601 -601
  122. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -16
  123. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +7 -7
  124. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +2879 -2879
  125. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -20
  126. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -9
  127. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +512 -512
  128. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/global.d.ts +18 -18
  129. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/index.d.ts +8 -8
  130. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +61 -61
  131. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/global.d.ts +20 -20
  132. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/index.d.ts +9 -9
  133. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +769 -769
  134. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +12 -12
  135. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +5 -5
  136. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +137 -137
  137. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -28
  138. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -13
  139. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/global.d.ts +10 -10
  140. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/index.d.ts +4 -4
  141. package/types/uni/uts-plugin-api/lib/uni-document/utssdk/interface.d.ts +76 -76
  142. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/global.d.ts +16 -16
  143. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/index.d.ts +7 -7
  144. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +338 -338
  145. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/global.d.ts +26 -26
  146. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/index.d.ts +12 -12
  147. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +102 -102
  148. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -80
  149. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -39
  150. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +384 -384
  151. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/global.d.ts +152 -152
  152. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/index.d.ts +75 -75
  153. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +12 -10
  154. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/global.d.ts +10 -10
  155. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/index.d.ts +4 -4
  156. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/global.d.ts +12 -12
  157. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/index.d.ts +5 -5
  158. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +616 -616
  159. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/global.d.ts +14 -14
  160. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/index.d.ts +6 -6
  161. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2557 -2557
  162. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +16 -16
  163. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +7 -7
  164. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1049 -1049
  165. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/global.d.ts +14 -14
  166. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/index.d.ts +6 -6
  167. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2006 -2006
  168. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/global.d.ts +10 -10
  169. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/index.d.ts +4 -4
  170. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +82 -82
  171. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -12
  172. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -5
  173. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +802 -802
  174. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/global.d.ts +12 -12
  175. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/index.d.ts +5 -5
  176. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +806 -806
  177. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -24
  178. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -11
  179. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +1808 -1808
  180. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +8 -8
  181. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +4 -4
  182. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -1
  183. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -8
  184. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -4
  185. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +20 -20
  186. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -10
  187. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +736 -736
  188. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +32 -32
  189. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +15 -15
  190. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +692 -692
  191. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/global.d.ts +22 -22
  192. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/index.d.ts +10 -10
  193. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +419 -419
  194. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +36 -36
  195. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +17 -17
  196. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +634 -634
  197. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/global.d.ts +16 -16
  198. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +7 -7
  199. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1180 -1180
  200. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/global.d.ts +32 -32
  201. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/index.d.ts +15 -15
  202. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +6755 -6755
  203. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/global.d.ts +12 -12
  204. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/index.d.ts +5 -5
  205. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +501 -501
  206. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/global.d.ts +24 -24
  207. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/index.d.ts +11 -11
  208. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/global.d.ts +16 -16
  209. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/index.d.ts +7 -7
  210. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +169 -169
  211. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -22
  212. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -10
  213. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +367 -367
  214. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/global.d.ts +28 -28
  215. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/index.d.ts +13 -13
  216. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +679 -679
  217. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +24 -24
  218. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +11 -11
  219. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +277 -277
  220. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +190 -190
  221. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +94 -94
  222. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +18 -18
  223. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +8 -8
  224. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +762 -762
  225. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +68 -68
  226. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +33 -33
  227. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +1210 -1210
  228. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +90 -90
  229. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +44 -44
  230. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +5752 -5752
  231. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +66 -66
  232. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +32 -32
  233. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2648 -2648
  234. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/global.d.ts +8 -8
  235. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/index.d.ts +4 -4
  236. package/types/uni/uts-plugin-api/lib/uni-oauth-huawei/utssdk/interface.d.ts +1 -1
  237. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/global.d.ts +24 -24
  238. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts +11 -11
  239. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +296 -296
  240. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -24
  241. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -11
  242. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +516 -516
  243. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +26 -26
  244. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +12 -12
  245. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +418 -418
  246. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/global.d.ts +32 -32
  247. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/index.d.ts +15 -15
  248. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +1084 -1084
  249. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -8
  250. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -4
  251. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -8
  252. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -4
  253. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -1
  254. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -8
  255. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -4
  256. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/global.d.ts +46 -46
  257. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/index.d.ts +22 -22
  258. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +882 -882
  259. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -30
  260. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -14
  261. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +609 -609
  262. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +78 -78
  263. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +38 -38
  264. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +4323 -4323
  265. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +28 -28
  266. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +13 -13
  267. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +323 -323
  268. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/global.d.ts +20 -20
  269. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/index.d.ts +9 -9
  270. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/global.d.ts +58 -58
  271. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/index.d.ts +28 -28
  272. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +2847 -2847
  273. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/global.d.ts +10 -10
  274. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/index.d.ts +4 -4
  275. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +80 -80
  276. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -24
  277. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -11
  278. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +629 -629
  279. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +26 -26
  280. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +12 -12
  281. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +719 -719
  282. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/global.d.ts +18 -18
  283. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/index.d.ts +8 -8
  284. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +308 -308
  285. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/global.d.ts +78 -78
  286. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/index.d.ts +38 -38
  287. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1998 -1998
  288. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +148 -148
  289. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +73 -73
  290. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +3136 -3136
  291. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +54 -54
  292. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +26 -26
  293. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1105 -1105
  294. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -112
  295. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -55
  296. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +2306 -2306
  297. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/global.d.ts +58 -58
  298. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/index.d.ts +28 -28
  299. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +2719 -2717
  300. package/types/uni/uts-plugin-biz/global.d.ts +7 -7
  301. package/types/uni/uts-plugin-biz/index.d.ts +7 -7
  302. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/global.d.ts +44 -44
  303. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/index.d.ts +21 -21
  304. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +1008 -1008
  305. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/global.d.ts +34 -34
  306. package/types/uni/uts-plugin-biz/lib/uni-camera/utssdk/index.d.ts +16 -16
  307. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +24 -24
  308. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +11 -11
  309. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/global.d.ts +28 -28
  310. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/index.d.ts +13 -13
  311. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +212 -212
  312. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +66 -66
  313. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +32 -32
  314. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +60 -60
  315. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +29 -29
  316. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +960 -960
  317. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -24
  318. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -11
  319. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +52 -52
  320. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +25 -25
  321. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -64
  322. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -31
  323. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -900
  324. package/types/uni/uts-plugin-component/global.d.ts +3 -3
  325. package/types/uni/uts-plugin-component/index.d.ts +3 -3
  326. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +34 -34
  327. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +16 -16
  328. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +679 -27
  329. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/global.d.ts +22 -22
  330. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/index.d.ts +10 -10
  331. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +972 -972
  332. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/global.d.ts +68 -68
  333. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/index.d.ts +33 -33
  334. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +935 -935
  335. package/types/uni/uts-plugin-extend/global.d.ts +11 -11
  336. package/types/uni/uts-plugin-extend/index.d.ts +10 -10
  337. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -7
  338. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -3
  339. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +12 -12
  340. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +1 -1
  341. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +917 -917
  342. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/global.d.ts +23 -23
  343. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/index.d.ts +10 -10
  344. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4770 -4770
  345. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/global.d.ts +25 -25
  346. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/index.d.ts +11 -11
  347. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1095 -1095
  348. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -13
  349. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -5
  350. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -126
  351. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/global.d.ts +15 -15
  352. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/index.d.ts +1 -1
  353. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +229 -229
  354. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +14 -14
  355. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +1 -1
  356. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1670 -1670
  357. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/global.d.ts +9 -9
  358. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/index.d.ts +1 -1
  359. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +253 -253
  360. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/global.d.ts +21 -21
  361. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/index.d.ts +9 -9
  362. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +999 -999
  363. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/global.d.ts +7 -7
  364. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/index.d.ts +1 -1
  365. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +106 -106
  366. package/types/uni-cloud/index.d.ts +67 -67
  367. package/types/uni-cloud/interface.d.ts +1078 -1078
  368. package/types/uni-cloud/unicloud-db/index.ts +317 -317
  369. package/types/uni-global/index.d.ts +1 -1
  370. package/types/vue/CheckboxGroupChangeEvent.d.ts +41 -41
  371. package/types/vue/LifeCycle.d.ts +55 -55
  372. package/types/vue/PickerViewChangeEvent.d.ts +41 -41
  373. package/types/vue/ProgressActiveendEvent.d.ts +32 -32
  374. package/types/vue/RadioGroupChangeEvent.d.ts +41 -41
  375. package/types/vue/SliderChangeEvent.d.ts +35 -35
  376. package/types/vue/SwitchChangeEvent.d.ts +32 -32
  377. package/types/vue/UniCanvasElement.d.ts +275 -275
  378. package/types/vue/UniCloudDBElement.d.ts +217 -217
  379. package/types/vue/UniFormElement.d.ts +54 -54
  380. package/types/vue/UniNavigatorElement.d.ts +11 -11
  381. package/types/vue/global.d.ts +191 -191
  382. package/types/vue/index.d.ts +10 -10
  383. package/types/vue-global/index.d.ts +1 -1
  384. package/uts-plugin.d.ts +35 -33
  385. package/types/uni/uts-plugin-extend/README.md +0 -3
@@ -1,2648 +1,2648 @@
1
- export interface Uni {
2
- /**
3
- * 登录
4
- *
5
- * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#login
6
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
7
- *
8
- * @uniPlatform {
9
- * "app": {
10
- * "android": {
11
- * "osVer": "5.0",
12
- * "uniVer": "√",
13
- * "unixVer": "x"
14
- * },
15
- * "ios": {
16
- * "osVer": "12.0",
17
- * "uniVer": "√",
18
- * "unixVer": "x"
19
- * },
20
- * "harmony": {
21
- * "osVer": "3.0",
22
- * "uniVer": "4.31",
23
- * "unixVer": "4.61"
24
- * }
25
- * },
26
- * "mp": {
27
- * "360": {
28
- * "hostVer": "√",
29
- * "uniVer": "√",
30
- * "unixVer": "x"
31
- * },
32
- * "weixin": {
33
- * "hostVer": "2.3.1",
34
- * "uniVer": "√",
35
- * "unixVer": "4.41"
36
- * },
37
- * "alipay": {
38
- * "hostVer": "√",
39
- * "uniVer": "√",
40
- * "unixVer": "x"
41
- * },
42
- * "baidu": {
43
- * "hostVer": "√",
44
- * "uniVer": "√",
45
- * "unixVer": "x"
46
- * },
47
- * "toutiao": {
48
- * "hostVer": "√",
49
- * "uniVer": "√",
50
- * "unixVer": "x"
51
- * },
52
- * "lark": {
53
- * "hostVer": "√",
54
- * "uniVer": "√",
55
- * "unixVer": "x"
56
- * },
57
- * "qq": {
58
- * "hostVer": "√",
59
- * "uniVer": "√",
60
- * "unixVer": "x"
61
- * },
62
- * "kuaishou": {
63
- * "hostVer": "√",
64
- * "uniVer": "√",
65
- * "unixVer": "x"
66
- * },
67
- * "jd": {
68
- * "hostVer": "√",
69
- * "uniVer": "√",
70
- * "unixVer": "x"
71
- * }
72
- * },
73
- * "quickapp": {
74
- * "uniVer": "√",
75
- * "unixVer": "√"
76
- * },
77
- * "web": {
78
- * "uniVer": "x",
79
- * "unixVer": "x"
80
- * }
81
- * }
82
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html
83
- */
84
- login(options: LoginOptions): void;
85
- /**
86
- * 获取用户信息
87
- *
88
- * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
89
- * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
90
- *
91
- * @uniPlatform {
92
- * "app": {
93
- * "android": {
94
- * "osVer": "5.0",
95
- * "uniVer": "√",
96
- * "unixVer": "x"
97
- * },
98
- * "ios": {
99
- * "osVer": "12.0",
100
- * "uniVer": "√",
101
- * "unixVer": "x"
102
- * },
103
- * "harmony": {
104
- * "osVer": "3.0",
105
- * "uniVer": "4.31",
106
- * "unixVer": "4.61"
107
- * }
108
- * },
109
- * "mp": {
110
- * "360": {
111
- * "hostVer": "√",
112
- * "uniVer": "√",
113
- * "unixVer": "x"
114
- * },
115
- * "weixin": {
116
- * "hostVer": "2.3.1",
117
- * "uniVer": "√",
118
- * "unixVer": "4.41"
119
- * },
120
- * "alipay": {
121
- * "hostVer": "√",
122
- * "uniVer": "√",
123
- * "unixVer": "x"
124
- * },
125
- * "baidu": {
126
- * "hostVer": "√",
127
- * "uniVer": "√",
128
- * "unixVer": "x"
129
- * },
130
- * "toutiao": {
131
- * "hostVer": "√",
132
- * "uniVer": "√",
133
- * "unixVer": "x"
134
- * },
135
- * "lark": {
136
- * "hostVer": "√",
137
- * "uniVer": "√",
138
- * "unixVer": "x"
139
- * },
140
- * "qq": {
141
- * "hostVer": "√",
142
- * "uniVer": "√",
143
- * "unixVer": "x"
144
- * },
145
- * "kuaishou": {
146
- * "hostVer": "√",
147
- * "uniVer": "√",
148
- * "unixVer": "x"
149
- * },
150
- * "jd": {
151
- * "hostVer": "√",
152
- * "uniVer": "√",
153
- * "unixVer": "x"
154
- * }
155
- * },
156
- * "quickapp": {
157
- * "uniVer": "√",
158
- * "unixVer": "√"
159
- * },
160
- * "web": {
161
- * "uniVer": "x",
162
- * "unixVer": "x"
163
- * }
164
- * }
165
- * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html
166
- */
167
- getUserInfo(options: GetUserInfoOptions): void;
168
- }
169
- export interface UniOAuthProvider extends UniProvider {
170
- login(options: LoginOptions): void;
171
- getUserInfo(options: GetUserInfoOptions): void;
172
- }
173
- export type Login = (options: LoginOptions) => void;
174
-
175
- export type AppleLoginAppleInfo = {
176
- /**
177
- * 应用程序用来与服务器交互的令牌
178
- */
179
- authorizationCode?: string | null,
180
- /**
181
- * 返回身份的全名
182
- */
183
- fullName?: any | null,
184
- /**
185
- * 一个JSON Web令牌(JWT),可以安全地将用户信息传递给应用程序
186
- */
187
- identityToken?: string | null,
188
- /**
189
- * 指示用户是否为真人
190
- */
191
- realUserStatus?: number | null,
192
- /**
193
- * 验证用户的标识符
194
- */
195
- user?: string | null
196
- };
197
- export type LoginSuccess = {
198
- /**
199
- * 描述信息
200
- * @uniPlatform {
201
- * "mp": {
202
- * "weixin": {
203
- * "hostVer": "√",
204
- * "uniVer": "√",
205
- * "unixVer": "4.41"
206
- * },
207
- * "alipay": {
208
- * "hostVer": "-",
209
- * "uniVer": "-",
210
- * "unixVer": "-"
211
- * },
212
- * "baidu": {
213
- * "hostVer": "-",
214
- * "uniVer": "-",
215
- * "unixVer": "-"
216
- * },
217
- * "toutiao": {
218
- * "hostVer": "-",
219
- * "uniVer": "-",
220
- * "unixVer": "-"
221
- * },
222
- * "lark": {
223
- * "hostVer": "-",
224
- * "uniVer": "-",
225
- * "unixVer": "-"
226
- * },
227
- * "qq": {
228
- * "hostVer": "-",
229
- * "uniVer": "-",
230
- * "unixVer": "-"
231
- * },
232
- * "kuaishou": {
233
- * "hostVer": "-",
234
- * "uniVer": "-",
235
- * "unixVer": "-"
236
- * },
237
- * "jd": {
238
- * "hostVer": "-",
239
- * "uniVer": "-",
240
- * "unixVer": "-"
241
- * }
242
- * }
243
- * }
244
- */
245
- errMsg: string,
246
- /**
247
- * 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
248
- * @uniPlatform {
249
- * "mp": {
250
- * "weixin": {
251
- * "hostVer": "√",
252
- * "uniVer": "√",
253
- * "unixVer": "4.41"
254
- * },
255
- * "alipay": {
256
- * "hostVer": "-",
257
- * "uniVer": "-",
258
- * "unixVer": "-"
259
- * },
260
- * "baidu": {
261
- * "hostVer": "-",
262
- * "uniVer": "-",
263
- * "unixVer": "-"
264
- * },
265
- * "toutiao": {
266
- * "hostVer": "-",
267
- * "uniVer": "-",
268
- * "unixVer": "-"
269
- * },
270
- * "lark": {
271
- * "hostVer": "-",
272
- * "uniVer": "-",
273
- * "unixVer": "-"
274
- * },
275
- * "qq": {
276
- * "hostVer": "-",
277
- * "uniVer": "-",
278
- * "unixVer": "-"
279
- * },
280
- * "kuaishou": {
281
- * "hostVer": "-",
282
- * "uniVer": "-",
283
- * "unixVer": "-"
284
- * },
285
- * "jd": {
286
- * "hostVer": "-",
287
- * "uniVer": "-",
288
- * "unixVer": "-"
289
- * }
290
- * }
291
- * }
292
- */
293
- authResult: any,
294
- /**
295
- * 小程序用户临时登录凭证
296
- * @uniPlatform {
297
- * "mp": {
298
- * "weixin": {
299
- * "hostVer": "√",
300
- * "uniVer": "√",
301
- * "unixVer": "4.41"
302
- * },
303
- * "alipay": {
304
- * "hostVer": "-",
305
- * "uniVer": "-",
306
- * "unixVer": "-"
307
- * },
308
- * "baidu": {
309
- * "hostVer": "-",
310
- * "uniVer": "-",
311
- * "unixVer": "-"
312
- * },
313
- * "toutiao": {
314
- * "hostVer": "-",
315
- * "uniVer": "-",
316
- * "unixVer": "-"
317
- * },
318
- * "lark": {
319
- * "hostVer": "-",
320
- * "uniVer": "-",
321
- * "unixVer": "-"
322
- * },
323
- * "qq": {
324
- * "hostVer": "-",
325
- * "uniVer": "-",
326
- * "unixVer": "-"
327
- * },
328
- * "kuaishou": {
329
- * "hostVer": "-",
330
- * "uniVer": "-",
331
- * "unixVer": "-"
332
- * },
333
- * "jd": {
334
- * "hostVer": "-",
335
- * "uniVer": "-",
336
- * "unixVer": "-"
337
- * }
338
- * }
339
- * }
340
- */
341
- code: string,
342
- /**
343
- * 头条小程序当前设备标识
344
- * @uniPlatform {
345
- * "mp": {
346
- * "weixin": {
347
- * "hostVer": "√",
348
- * "uniVer": "√",
349
- * "unixVer": "4.41"
350
- * },
351
- * "alipay": {
352
- * "hostVer": "-",
353
- * "uniVer": "-",
354
- * "unixVer": "-"
355
- * },
356
- * "baidu": {
357
- * "hostVer": "-",
358
- * "uniVer": "-",
359
- * "unixVer": "-"
360
- * },
361
- * "toutiao": {
362
- * "hostVer": "-",
363
- * "uniVer": "-",
364
- * "unixVer": "-"
365
- * },
366
- * "lark": {
367
- * "hostVer": "-",
368
- * "uniVer": "-",
369
- * "unixVer": "-"
370
- * },
371
- * "qq": {
372
- * "hostVer": "-",
373
- * "uniVer": "-",
374
- * "unixVer": "-"
375
- * },
376
- * "kuaishou": {
377
- * "hostVer": "-",
378
- * "uniVer": "-",
379
- * "unixVer": "-"
380
- * },
381
- * "jd": {
382
- * "hostVer": "-",
383
- * "uniVer": "-",
384
- * "unixVer": "-"
385
- * }
386
- * }
387
- * }
388
- */
389
- anonymousCode?: string | null,
390
- /**
391
- * 支付宝小程序授权码
392
- * @uniPlatform {
393
- * "mp": {
394
- * "weixin": {
395
- * "hostVer": "√",
396
- * "uniVer": "√",
397
- * "unixVer": "4.41"
398
- * },
399
- * "alipay": {
400
- * "hostVer": "-",
401
- * "uniVer": "-",
402
- * "unixVer": "-"
403
- * },
404
- * "baidu": {
405
- * "hostVer": "-",
406
- * "uniVer": "-",
407
- * "unixVer": "-"
408
- * },
409
- * "toutiao": {
410
- * "hostVer": "-",
411
- * "uniVer": "-",
412
- * "unixVer": "-"
413
- * },
414
- * "lark": {
415
- * "hostVer": "-",
416
- * "uniVer": "-",
417
- * "unixVer": "-"
418
- * },
419
- * "qq": {
420
- * "hostVer": "-",
421
- * "uniVer": "-",
422
- * "unixVer": "-"
423
- * },
424
- * "kuaishou": {
425
- * "hostVer": "-",
426
- * "uniVer": "-",
427
- * "unixVer": "-"
428
- * },
429
- * "jd": {
430
- * "hostVer": "-",
431
- * "uniVer": "-",
432
- * "unixVer": "-"
433
- * }
434
- * }
435
- * }
436
- */
437
- authCode?: string | null,
438
- /**
439
- * 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
440
- * @uniPlatform {
441
- * "mp": {
442
- * "weixin": {
443
- * "hostVer": "√",
444
- * "uniVer": "√",
445
- * "unixVer": "4.41"
446
- * },
447
- * "alipay": {
448
- * "hostVer": "-",
449
- * "uniVer": "-",
450
- * "unixVer": "-"
451
- * },
452
- * "baidu": {
453
- * "hostVer": "-",
454
- * "uniVer": "-",
455
- * "unixVer": "-"
456
- * },
457
- * "toutiao": {
458
- * "hostVer": "-",
459
- * "uniVer": "-",
460
- * "unixVer": "-"
461
- * },
462
- * "lark": {
463
- * "hostVer": "-",
464
- * "uniVer": "-",
465
- * "unixVer": "-"
466
- * },
467
- * "qq": {
468
- * "hostVer": "-",
469
- * "uniVer": "-",
470
- * "unixVer": "-"
471
- * },
472
- * "kuaishou": {
473
- * "hostVer": "-",
474
- * "uniVer": "-",
475
- * "unixVer": "-"
476
- * },
477
- * "jd": {
478
- * "hostVer": "-",
479
- * "uniVer": "-",
480
- * "unixVer": "-"
481
- * }
482
- * }
483
- * }
484
- */
485
- authErrorScope?: any | null,
486
- /**
487
- * 支付宝小程序登录成功的授权 scope
488
- * @uniPlatform {
489
- * "mp": {
490
- * "weixin": {
491
- * "hostVer": "√",
492
- * "uniVer": "√",
493
- * "unixVer": "4.41"
494
- * },
495
- * "alipay": {
496
- * "hostVer": "-",
497
- * "uniVer": "-",
498
- * "unixVer": "-"
499
- * },
500
- * "baidu": {
501
- * "hostVer": "-",
502
- * "uniVer": "-",
503
- * "unixVer": "-"
504
- * },
505
- * "toutiao": {
506
- * "hostVer": "-",
507
- * "uniVer": "-",
508
- * "unixVer": "-"
509
- * },
510
- * "lark": {
511
- * "hostVer": "-",
512
- * "uniVer": "-",
513
- * "unixVer": "-"
514
- * },
515
- * "qq": {
516
- * "hostVer": "-",
517
- * "uniVer": "-",
518
- * "unixVer": "-"
519
- * },
520
- * "kuaishou": {
521
- * "hostVer": "-",
522
- * "uniVer": "-",
523
- * "unixVer": "-"
524
- * },
525
- * "jd": {
526
- * "hostVer": "-",
527
- * "uniVer": "-",
528
- * "unixVer": "-"
529
- * }
530
- * }
531
- * }
532
- */
533
- authSucessScope?: (string[]) | null,
534
- /**
535
- * 苹果登录成功返回的信息
536
- * @uniPlatform {
537
- * "mp": {
538
- * "weixin": {
539
- * "hostVer": "√",
540
- * "uniVer": "√",
541
- * "unixVer": "4.41"
542
- * },
543
- * "alipay": {
544
- * "hostVer": "-",
545
- * "uniVer": "-",
546
- * "unixVer": "-"
547
- * },
548
- * "baidu": {
549
- * "hostVer": "-",
550
- * "uniVer": "-",
551
- * "unixVer": "-"
552
- * },
553
- * "toutiao": {
554
- * "hostVer": "-",
555
- * "uniVer": "-",
556
- * "unixVer": "-"
557
- * },
558
- * "lark": {
559
- * "hostVer": "-",
560
- * "uniVer": "-",
561
- * "unixVer": "-"
562
- * },
563
- * "qq": {
564
- * "hostVer": "-",
565
- * "uniVer": "-",
566
- * "unixVer": "-"
567
- * },
568
- * "kuaishou": {
569
- * "hostVer": "-",
570
- * "uniVer": "-",
571
- * "unixVer": "-"
572
- * },
573
- * "jd": {
574
- * "hostVer": "-",
575
- * "uniVer": "-",
576
- * "unixVer": "-"
577
- * }
578
- * }
579
- * }
580
- */
581
- appleInfo?: AppleLoginAppleInfo | null
582
- };
583
- export type LoginSuccessCallback = (result: LoginSuccess) => void;
584
- export type LoginFail = IUniError;
585
- export type LoginFailCallback = (result: LoginFail) => void;
586
- export type LoginComplete = any;
587
- export type LoginCompleteCallback = (result: LoginComplete) => void;
588
- export type LoginOptions = {
589
- /**
590
- * 授权登录服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
591
- *
592
- * @uniPlatform {
593
- * "app": {
594
- * "android": {
595
- * "osVer": "5.0",
596
- * "uniVer": "√",
597
- * "unixVer": "x"
598
- * },
599
- * "ios": {
600
- * "osVer": "12.0",
601
- * "uniVer": "√",
602
- * "unixVer": "x"
603
- * },
604
- * "harmony": {
605
- * "osVer": "3.0",
606
- * "uniVer": "4.27",
607
- * "unixVer": "4.61"
608
- * }
609
- * },
610
- * "mp": {
611
- * "weixin": {
612
- * "hostVer": "x",
613
- * "uniVer": "x",
614
- * "unixVer": "x"
615
- * },
616
- * "alipay": {
617
- * "hostVer": "x",
618
- * "uniVer": "x",
619
- * "unixVer": "x"
620
- * },
621
- * "baidu": {
622
- * "hostVer": "x",
623
- * "uniVer": "x",
624
- * "unixVer": "x"
625
- * },
626
- * "toutiao": {
627
- * "hostVer": "x",
628
- * "uniVer": "x",
629
- * "unixVer": "x"
630
- * },
631
- * "lark": {
632
- * "hostVer": "x",
633
- * "uniVer": "x",
634
- * "unixVer": "x"
635
- * },
636
- * "qq": {
637
- * "hostVer": "x",
638
- * "uniVer": "x",
639
- * "unixVer": "x"
640
- * },
641
- * "kuaishou": {
642
- * "hostVer": "x",
643
- * "uniVer": "x",
644
- * "unixVer": "x"
645
- * },
646
- * "jd": {
647
- * "hostVer": "x",
648
- * "uniVer": "x",
649
- * "unixVer": "x"
650
- * },
651
- * "360": {
652
- * "hostVer": "x",
653
- * "uniVer": "x",
654
- * "unixVer": "x"
655
- * }
656
- * },
657
- * "quickapp": {
658
- * "uniVer": "x",
659
- * "unixVer": "x"
660
- * },
661
- * "web": {
662
- * "uniVer": "x",
663
- * "unixVer": "x"
664
- * }
665
- * }
666
- */
667
- provider?:
668
- /**
669
- * 微信登录
670
- */
671
- 'weixin' |
672
- /**
673
- * QQ登录
674
- */
675
- 'qq' |
676
- /**
677
- * 新浪微博登录
678
- */
679
- 'sinaweibo' |
680
- /**
681
- * 小米登录
682
- */
683
- 'xiaomi' |
684
- /**
685
- * Apple登录
686
- */
687
- 'apple' |
688
- /**
689
- * 一键登录
690
- */
691
- 'univerify' |
692
- /**
693
- * 华为 HarmonyOS Next 华为账号登录
694
- */
695
- 'huawei' | null,
696
- /**
697
- * 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
698
- *
699
- * @uniPlatform {
700
- * "mp": {
701
- * "alipay": {
702
- * "hostVer": "√",
703
- * "uniVer": "√",
704
- * "unixVer": "x"
705
- * }
706
- * }
707
- * }
708
- */
709
- scopes?: any | null,
710
- /**
711
- * 超时时间,单位 ms
712
- * @uniPlatform {
713
- * "mp": {
714
- * "weixin": {
715
- * "hostVer": "√",
716
- * "uniVer": "√",
717
- * "unixVer": "2.35"
718
- * },
719
- * "baidu": {
720
- * "hostVer": "√",
721
- * "uniVer": "√",
722
- * "unixVer": "x"
723
- * },
724
- * "jd": {
725
- * "hostVer": "√",
726
- * "uniVer": "√",
727
- * "unixVer": "x"
728
- * }
729
- * }
730
- * }
731
- */
732
- timeout?: number | null,
733
- /**
734
- * 一键登录页面样式
735
- *
736
- * @uniPlatform {
737
- * "app": {
738
- * "android": {
739
- * "osVer": "5.0",
740
- * "uniVer": "3.0.0",
741
- * "unixVer": "x"
742
- * },
743
- * "ios": {
744
- * "osVer": "12.0",
745
- * "uniVer": "3.0.0",
746
- * "unixVer": "x"
747
- * },
748
- * "harmony": {
749
- * "osVer": "x",
750
- * "uniVer": "x",
751
- * "unixVer": "x"
752
- * }
753
- * },
754
- * "web": {
755
- * "uniVer": "x",
756
- * "unixVer": "x"
757
- * }
758
- * }
759
- */
760
- univerifyStyle?: UniverifyStyle | null,
761
- /**
762
- * 微信登录仅请求授权认证
763
- *
764
- * @uniPlatform {
765
- * "app": {
766
- * "android": {
767
- * "osVer": "5.0",
768
- * "uniVer": "3.2.6",
769
- * "unixVer": "x"
770
- * },
771
- * "ios": {
772
- * "osVer": "12.0",
773
- * "uniVer": "3.2.6",
774
- * "unixVer": "x"
775
- * },
776
- * "harmony": {
777
- * "osVer": "x",
778
- * "uniVer": "x",
779
- * "unixVer": "x"
780
- * }
781
- * },
782
- * "web": {
783
- * "uniVer": "x",
784
- * "unixVer": "x"
785
- * }
786
- * }
787
- */
788
- onlyAuthorize?: boolean | null,
789
- /**
790
- * 接口调用成功的回调函数
791
- * @uniPlatform {
792
- * "mp": {
793
- * "weixin": {
794
- * "hostVer": "√",
795
- * "uniVer": "√",
796
- * "unixVer": "4.41"
797
- * },
798
- * "alipay": {
799
- * "hostVer": "-",
800
- * "uniVer": "-",
801
- * "unixVer": "-"
802
- * },
803
- * "baidu": {
804
- * "hostVer": "-",
805
- * "uniVer": "-",
806
- * "unixVer": "-"
807
- * },
808
- * "toutiao": {
809
- * "hostVer": "-",
810
- * "uniVer": "-",
811
- * "unixVer": "-"
812
- * },
813
- * "lark": {
814
- * "hostVer": "-",
815
- * "uniVer": "-",
816
- * "unixVer": "-"
817
- * },
818
- * "qq": {
819
- * "hostVer": "-",
820
- * "uniVer": "-",
821
- * "unixVer": "-"
822
- * },
823
- * "kuaishou": {
824
- * "hostVer": "-",
825
- * "uniVer": "-",
826
- * "unixVer": "-"
827
- * },
828
- * "jd": {
829
- * "hostVer": "-",
830
- * "uniVer": "-",
831
- * "unixVer": "-"
832
- * }
833
- * }
834
- * }
835
- */
836
- success?: LoginSuccessCallback | null,
837
- /**
838
- * 接口调用失败的回调函数
839
- * @uniPlatform {
840
- * "mp": {
841
- * "weixin": {
842
- * "hostVer": "√",
843
- * "uniVer": "√",
844
- * "unixVer": "4.41"
845
- * },
846
- * "alipay": {
847
- * "hostVer": "-",
848
- * "uniVer": "-",
849
- * "unixVer": "-"
850
- * },
851
- * "baidu": {
852
- * "hostVer": "-",
853
- * "uniVer": "-",
854
- * "unixVer": "-"
855
- * },
856
- * "toutiao": {
857
- * "hostVer": "-",
858
- * "uniVer": "-",
859
- * "unixVer": "-"
860
- * },
861
- * "lark": {
862
- * "hostVer": "-",
863
- * "uniVer": "-",
864
- * "unixVer": "-"
865
- * },
866
- * "qq": {
867
- * "hostVer": "-",
868
- * "uniVer": "-",
869
- * "unixVer": "-"
870
- * },
871
- * "kuaishou": {
872
- * "hostVer": "-",
873
- * "uniVer": "-",
874
- * "unixVer": "-"
875
- * },
876
- * "jd": {
877
- * "hostVer": "-",
878
- * "uniVer": "-",
879
- * "unixVer": "-"
880
- * }
881
- * }
882
- * }
883
- */
884
- fail?: LoginFailCallback | null,
885
- /**
886
- * 接口调用结束的回调函数(调用成功、失败都会执行)
887
- * @uniPlatform {
888
- * "mp": {
889
- * "weixin": {
890
- * "hostVer": "√",
891
- * "uniVer": "√",
892
- * "unixVer": "4.41"
893
- * },
894
- * "alipay": {
895
- * "hostVer": "-",
896
- * "uniVer": "-",
897
- * "unixVer": "-"
898
- * },
899
- * "baidu": {
900
- * "hostVer": "-",
901
- * "uniVer": "-",
902
- * "unixVer": "-"
903
- * },
904
- * "toutiao": {
905
- * "hostVer": "-",
906
- * "uniVer": "-",
907
- * "unixVer": "-"
908
- * },
909
- * "lark": {
910
- * "hostVer": "-",
911
- * "uniVer": "-",
912
- * "unixVer": "-"
913
- * },
914
- * "qq": {
915
- * "hostVer": "-",
916
- * "uniVer": "-",
917
- * "unixVer": "-"
918
- * },
919
- * "kuaishou": {
920
- * "hostVer": "-",
921
- * "uniVer": "-",
922
- * "unixVer": "-"
923
- * },
924
- * "jd": {
925
- * "hostVer": "-",
926
- * "uniVer": "-",
927
- * "unixVer": "-"
928
- * }
929
- * }
930
- * }
931
- */
932
- complete?: LoginCompleteCallback | null
933
- };
934
-
935
- export type UniverifyIconStyles = {
936
- /**
937
- * 图标地址
938
- *
939
- * 仅支持本地路径,默认为应用图标。
940
- */
941
- path: string,
942
- /**
943
- * 图标宽度
944
- *
945
- * 格式为“XXpx",默认值为"60px"。
946
- */
947
- width?: string | null,
948
- /**
949
- * 图标高度
950
- *
951
- * 格式为“XXpx",默认值为"60px"。
952
- */
953
- height?: string | null
954
- };
955
- export type UniverifyPhoneNumStyles = {
956
- /**
957
- * 字体颜色
958
- *
959
- * 格式为"#RRGGBB",默认值为"#000000"。
960
- */
961
- color?: string | null,
962
- /**
963
- * 字体大小
964
- *
965
- * 格式为“XXpx",默认值为"18px"。注意:字体加粗显示。
966
- */
967
- fontSize?: string | null
968
- };
969
- export type UniverifySloganStyles = {
970
- /**
971
- * 字体颜色
972
- *
973
- * 格式为"#RRGGBB",默认值为"#8a8b90"。
974
- */
975
- color?: string | null,
976
- /**
977
- * 字体大小
978
- *
979
- * 格式为“XXpx",默认值为"12px"。
980
- */
981
- fontSize?: string | null
982
- };
983
- export type UniverifyAuthButtonStyles = {
984
- /**
985
- * 正常状态按钮颜色
986
- *
987
- * 格式为"#RRGGBB",默认值为"#3479f5"。
988
- */
989
- normalColor?: string | null,
990
- /**
991
- * 按下状态按钮颜色
992
- *
993
- * 格式为"#RRGGBB",默认值为"#2861c5"。
994
- */
995
- highlightColor?: string | null,
996
- /**
997
- * 不可点击状态按钮颜色
998
- *
999
- * 格式为"#RRGGBB",默认值为"#73aaf5"。 注意:仅iOS平台支持。
1000
- */
1001
- disabledColor?: string | null,
1002
- /**
1003
- * 按钮宽度
1004
- *
1005
- * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
1006
- */
1007
- width?: string | null,
1008
- /**
1009
- * 按钮高度
1010
- *
1011
- * 格式为“XXpx",默认值为"94px"。
1012
- */
1013
- height?: string | null,
1014
- /**
1015
- * 按钮上文字颜色
1016
- *
1017
- * 格式为"#RRGGBB",默认值为"#ffffff"。
1018
- */
1019
- textColor?: string | null,
1020
- /**
1021
- * 按钮上文字内容
1022
- *
1023
- * 默认值为"本机号码一键登录"。
1024
- */
1025
- title?: string | null,
1026
- /**
1027
- * 授权按钮圆角
1028
- *
1029
- * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
1030
- */
1031
- borderRadius?: string | null
1032
- };
1033
- export type UniverifyOtherButtonStyles = {
1034
- /**
1035
- * 是否显示其它按钮
1036
- *
1037
- * 可取值: true - 显示其它按钮;false - 不显示其它按钮。 默认值为true。
1038
- * @type boolean
1039
- */
1040
- visible?: boolean | null,
1041
- /**
1042
- * 正常状态按钮颜色
1043
- *
1044
- * 格式为"#RRGGBB",默认值为"#f8f8f8"。
1045
- */
1046
- normalColor?: string | null,
1047
- /**
1048
- * 按下状态按钮颜色
1049
- *
1050
- * 格式为"#RRGGBB",默认值为"#dedede"。
1051
- */
1052
- highlightColor?: string | null,
1053
- /**
1054
- * 按钮宽度
1055
- *
1056
- * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
1057
- */
1058
- width?: string | null,
1059
- /**
1060
- * 按钮高度
1061
- *
1062
- * 格式为“XXpx",默认值为"94px"。
1063
- */
1064
- height?: string | null,
1065
- /**
1066
- * 按钮上文字颜色
1067
- *
1068
- * 格式为"#RRGGBB",默认值为"#000000"。
1069
- */
1070
- textColor?: string | null,
1071
- /**
1072
- * 按钮上文字内容
1073
- *
1074
- * 默认值为"本机号码一键登录"。
1075
- */
1076
- title?: string | null,
1077
- /**
1078
- * 按钮边框宽度
1079
- *
1080
- * 格式为“XXpx",默认值为"1px"。 注意:仅iOS平台支持。
1081
- */
1082
- borderWidth?: string | null,
1083
- /**
1084
- * 按钮边框颜色
1085
- *
1086
- * 格式为"#RRGGBB",默认值为"#c5c5c5"。 注意:仅iOS平台支持。
1087
- */
1088
- borderColor?: string | null,
1089
- /**
1090
- * 其他登录按钮圆角
1091
- *
1092
- * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
1093
- */
1094
- borderRadius?: string | null
1095
- };
1096
- export type UniverifyPrivacyItemStyles = {
1097
- /**
1098
- * 链接地址
1099
- *
1100
- * http/https开头的协议链接地址。
1101
- */
1102
- url: string,
1103
- /**
1104
- * 协议链接文字
1105
- */
1106
- title: string
1107
- };
1108
- export type UniverifyPrivacyTermsStyles = {
1109
- /**
1110
- * 默认是否勾选同意协议选择框
1111
- *
1112
- * ture表示勾选,false表示不勾选。默认值为true。
1113
- * HBuilderX3.1.0+版本新增支持。
1114
- * @type boolean
1115
- */
1116
- defaultCheckBoxState?: boolean | null,
1117
- /**
1118
- * 普通文字颜色
1119
- *
1120
- * 格式为"#RRGGBB",默认值为"#8a8b90"。
1121
- */
1122
- textColor?: string | null,
1123
- /**
1124
- * 协议链接文字颜色
1125
- *
1126
- * 格式为"#RRGGBB",默认值为"#1d4788"。
1127
- */
1128
- termsColor?: string | null,
1129
- /**
1130
- * 服务协议前文本内容
1131
- *
1132
- * 默认值为"我已阅读并同意"。
1133
- */
1134
- prefix?: string | null,
1135
- /**
1136
- * 服务协议后文本内容
1137
- *
1138
- * 默认值为"并使用本机号码登录"。
1139
- */
1140
- suffix?: string | null,
1141
- /**
1142
- * 字体大小
1143
- *
1144
- * 格式为“XXpx",默认值为"12px"。
1145
- */
1146
- fontSize?: string | null,
1147
- /**
1148
- * 服务协议
1149
- *
1150
- * 自定义服务协议,可设置使用手机号码登录的协议,最多可设置两个协议。 注意:运营商的服务协议链接会自动添加到自定义服务协议之前。
1151
- */
1152
- privacyItems?: (UniverifyPrivacyItemStyles[]) | null
1153
- };
1154
- export type UniVerifyButtonListItem = {
1155
- /**
1156
- * 该按钮标识,会原样返回。
1157
- */
1158
- provider: string,
1159
- /**
1160
- * 图片路径
1161
- *
1162
- * 仅支持本地图片
1163
- */
1164
- iconPath: string
1165
- };
1166
- export type UniVerifyButtonsStyles = {
1167
- /**
1168
- * 自定义登录按钮图标宽度
1169
- *
1170
- * 单位为px,默认值为45px。
1171
- * 按指定宽度缩放,高度等比例缩放。
1172
- */
1173
- iconWidth?: string | null,
1174
- /**
1175
- * 自定义登录按钮列表
1176
- */
1177
- list: UniVerifyButtonListItem[]
1178
- };
1179
- export type UniverifyStyle = {
1180
- /**
1181
- * 是否全屏模式。
1182
- *
1183
- * true表示全屏模式,false表示非全屏模式,默认值为false。
1184
- * @type boolean
1185
- */
1186
- fullScreen?: boolean | null,
1187
- /**
1188
- * 授权界面背景颜色。
1189
- *
1190
- * 格式为"#RRGGBB",默认值为"#FFFFF"。
1191
- */
1192
- backgroundColor?: string | null,
1193
- /**
1194
- * 背景图片
1195
- */
1196
- backgroundImage?: string | null,
1197
- /**
1198
- * 授权界面图标样式。
1199
- *
1200
- * 可设置自定义图标,默认为应用图标。
1201
- */
1202
- icon?: UniverifyIconStyles | null,
1203
- /**
1204
- * 授权界面电话号码样式
1205
- *
1206
- * 可设置自定义电话号码文字颜色、大小等。
1207
- */
1208
- phoneNum?: UniverifyPhoneNumStyles | null,
1209
- /**
1210
- * 授权界面服务说明样式
1211
- *
1212
- * 可设置自定义服务说明文字颜色、大小等。
1213
- */
1214
- slogan?: UniverifySloganStyles | null,
1215
- /**
1216
- * 授权界面其他登录按钮样式
1217
- *
1218
- * 可设置自定义其他登录按钮背景颜色、文本内容、大小等。
1219
- */
1220
- authButton?: UniverifyAuthButtonStyles | null,
1221
- /**
1222
- * 支付宝小程序登录成功的授权 scope
1223
- */
1224
- otherLoginButton?: UniverifyOtherButtonStyles | null,
1225
- /**
1226
- * 授权界面服务协议样式
1227
- *
1228
- * 自定义设置服务器协议文字颜色、文本内容,添加自定义服务协议链接等。
1229
- */
1230
- privacyTerms?: UniverifyPrivacyTermsStyles | null,
1231
- /**
1232
- * 自定义登录按钮列表样式
1233
- *
1234
- * 自定义设置更多登录按钮列表,如其它三方登录等。
1235
- * 注意:HBuilderX3.1.14+版本支持。
1236
- */
1237
- buttons?: UniVerifyButtonsStyles | null
1238
- };
1239
- export type GetUserInfo = (options: GetUserInfoOptions) => void;
1240
- export type UserInfo = {
1241
- /**
1242
- * 用户昵称
1243
- * @uniPlatform {
1244
- * "mp": {
1245
- * "weixin": {
1246
- * "hostVer": "√",
1247
- * "uniVer": "√",
1248
- * "unixVer": "4.41"
1249
- * },
1250
- * "alipay": {
1251
- * "hostVer": "-",
1252
- * "uniVer": "-",
1253
- * "unixVer": "-"
1254
- * },
1255
- * "baidu": {
1256
- * "hostVer": "-",
1257
- * "uniVer": "-",
1258
- * "unixVer": "-"
1259
- * },
1260
- * "toutiao": {
1261
- * "hostVer": "-",
1262
- * "uniVer": "-",
1263
- * "unixVer": "-"
1264
- * },
1265
- * "lark": {
1266
- * "hostVer": "-",
1267
- * "uniVer": "-",
1268
- * "unixVer": "-"
1269
- * },
1270
- * "qq": {
1271
- * "hostVer": "-",
1272
- * "uniVer": "-",
1273
- * "unixVer": "-"
1274
- * },
1275
- * "kuaishou": {
1276
- * "hostVer": "-",
1277
- * "uniVer": "-",
1278
- * "unixVer": "-"
1279
- * },
1280
- * "jd": {
1281
- * "hostVer": "-",
1282
- * "uniVer": "-",
1283
- * "unixVer": "-"
1284
- * }
1285
- * }
1286
- * }
1287
- */
1288
- nickName: string,
1289
- /**
1290
- * 该服务商唯一用户标识
1291
- * @uniPlatform {
1292
- * "app": {
1293
- * "android": {
1294
- * "osVer": "5.0",
1295
- * "uniVer": "√",
1296
- * "unixVer": "x"
1297
- * },
1298
- * "ios": {
1299
- * "osVer": "12.0",
1300
- * "uniVer": "√",
1301
- * "unixVer": "x"
1302
- * },
1303
- * "harmony": {
1304
- * "osVer": "3.0",
1305
- * "uniVer": "4.27",
1306
- * "unixVer": "4.61"
1307
- * }
1308
- * },
1309
- * "mp": {
1310
- * "weixin": {
1311
- * "hostVer": "x",
1312
- * "uniVer": "x",
1313
- * "unixVer": "x"
1314
- * },
1315
- * "alipay": {
1316
- * "hostVer": "x",
1317
- * "uniVer": "x",
1318
- * "unixVer": "x"
1319
- * },
1320
- * "baidu": {
1321
- * "hostVer": "x",
1322
- * "uniVer": "x",
1323
- * "unixVer": "x"
1324
- * },
1325
- * "toutiao": {
1326
- * "hostVer": "x",
1327
- * "uniVer": "x",
1328
- * "unixVer": "x"
1329
- * },
1330
- * "lark": {
1331
- * "hostVer": "x",
1332
- * "uniVer": "x",
1333
- * "unixVer": "x"
1334
- * },
1335
- * "qq": {
1336
- * "hostVer": "x",
1337
- * "uniVer": "x",
1338
- * "unixVer": "x"
1339
- * },
1340
- * "kuaishou": {
1341
- * "hostVer": "x",
1342
- * "uniVer": "x",
1343
- * "unixVer": "x"
1344
- * },
1345
- * "jd": {
1346
- * "hostVer": "x",
1347
- * "uniVer": "x",
1348
- * "unixVer": "x"
1349
- * },
1350
- * "360": {
1351
- * "hostVer": "x",
1352
- * "uniVer": "x",
1353
- * "unixVer": "x"
1354
- * }
1355
- * },
1356
- * "quickapp": {
1357
- * "uniVer": "x",
1358
- * "unixVer": "x"
1359
- * },
1360
- * "web": {
1361
- * "uniVer": "x",
1362
- * "unixVer": "x"
1363
- * }
1364
- * }
1365
- */
1366
- openId?: string | null,
1367
- /**
1368
- * 用户头像
1369
- * @uniPlatform {
1370
- * "mp": {
1371
- * "weixin": {
1372
- * "hostVer": "√",
1373
- * "uniVer": "√",
1374
- * "unixVer": "4.41"
1375
- * },
1376
- * "alipay": {
1377
- * "hostVer": "-",
1378
- * "uniVer": "-",
1379
- * "unixVer": "-"
1380
- * },
1381
- * "baidu": {
1382
- * "hostVer": "-",
1383
- * "uniVer": "-",
1384
- * "unixVer": "-"
1385
- * },
1386
- * "toutiao": {
1387
- * "hostVer": "-",
1388
- * "uniVer": "-",
1389
- * "unixVer": "-"
1390
- * },
1391
- * "lark": {
1392
- * "hostVer": "-",
1393
- * "uniVer": "-",
1394
- * "unixVer": "-"
1395
- * },
1396
- * "qq": {
1397
- * "hostVer": "-",
1398
- * "uniVer": "-",
1399
- * "unixVer": "-"
1400
- * },
1401
- * "kuaishou": {
1402
- * "hostVer": "-",
1403
- * "uniVer": "-",
1404
- * "unixVer": "-"
1405
- * },
1406
- * "jd": {
1407
- * "hostVer": "-",
1408
- * "uniVer": "-",
1409
- * "unixVer": "-"
1410
- * }
1411
- * }
1412
- * }
1413
- */
1414
- avatarUrl: string
1415
- /**
1416
- * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1417
- *
1418
- * @uniPlatform {
1419
- * "mp": {
1420
- * "weixin": {
1421
- * "hostVer": "√",
1422
- * "uniVer": "√",
1423
- * "unixVer": "4.41"
1424
- * },
1425
- * "alipay": {
1426
- * "hostVer": "-",
1427
- * "uniVer": "-",
1428
- * "unixVer": "-"
1429
- * },
1430
- * "baidu": {
1431
- * "hostVer": "-",
1432
- * "uniVer": "-",
1433
- * "unixVer": "-"
1434
- * },
1435
- * "toutiao": {
1436
- * "hostVer": "-",
1437
- * "uniVer": "-",
1438
- * "unixVer": "-"
1439
- * },
1440
- * "lark": {
1441
- * "hostVer": "-",
1442
- * "uniVer": "-",
1443
- * "unixVer": "-"
1444
- * },
1445
- * "qq": {
1446
- * "hostVer": "-",
1447
- * "uniVer": "-",
1448
- * "unixVer": "-"
1449
- * },
1450
- * "kuaishou": {
1451
- * "hostVer": "-",
1452
- * "uniVer": "-",
1453
- * "unixVer": "-"
1454
- * },
1455
- * "jd": {
1456
- * "hostVer": "-",
1457
- * "uniVer": "-",
1458
- * "unixVer": "-"
1459
- * }
1460
- * }
1461
- * }
1462
- */
1463
- city?: string | null;
1464
- /**
1465
- * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1466
- *
1467
- * @uniPlatform {
1468
- * "mp": {
1469
- * "weixin": {
1470
- * "hostVer": "√",
1471
- * "uniVer": "√",
1472
- * "unixVer": "4.41"
1473
- * },
1474
- * "alipay": {
1475
- * "hostVer": "-",
1476
- * "uniVer": "-",
1477
- * "unixVer": "-"
1478
- * },
1479
- * "baidu": {
1480
- * "hostVer": "-",
1481
- * "uniVer": "-",
1482
- * "unixVer": "-"
1483
- * },
1484
- * "toutiao": {
1485
- * "hostVer": "-",
1486
- * "uniVer": "-",
1487
- * "unixVer": "-"
1488
- * },
1489
- * "lark": {
1490
- * "hostVer": "-",
1491
- * "uniVer": "-",
1492
- * "unixVer": "-"
1493
- * },
1494
- * "qq": {
1495
- * "hostVer": "-",
1496
- * "uniVer": "-",
1497
- * "unixVer": "-"
1498
- * },
1499
- * "kuaishou": {
1500
- * "hostVer": "-",
1501
- * "uniVer": "-",
1502
- * "unixVer": "-"
1503
- * },
1504
- * "jd": {
1505
- * "hostVer": "-",
1506
- * "uniVer": "-",
1507
- * "unixVer": "-"
1508
- * }
1509
- * }
1510
- * }
1511
- */
1512
- country?: string | null;
1513
- /**
1514
- * 可选值:
1515
- * - 0: 未知;
1516
- * - 1: 男性;
1517
- * - 2: 女性;
1518
- *
1519
- * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1520
- *
1521
- * @uniPlatform {
1522
- * "mp": {
1523
- * "weixin": {
1524
- * "hostVer": "√",
1525
- * "uniVer": "√",
1526
- * "unixVer": "4.41"
1527
- * },
1528
- * "alipay": {
1529
- * "hostVer": "-",
1530
- * "uniVer": "-",
1531
- * "unixVer": "-"
1532
- * },
1533
- * "baidu": {
1534
- * "hostVer": "-",
1535
- * "uniVer": "-",
1536
- * "unixVer": "-"
1537
- * },
1538
- * "toutiao": {
1539
- * "hostVer": "-",
1540
- * "uniVer": "-",
1541
- * "unixVer": "-"
1542
- * },
1543
- * "lark": {
1544
- * "hostVer": "-",
1545
- * "uniVer": "-",
1546
- * "unixVer": "-"
1547
- * },
1548
- * "qq": {
1549
- * "hostVer": "-",
1550
- * "uniVer": "-",
1551
- * "unixVer": "-"
1552
- * },
1553
- * "kuaishou": {
1554
- * "hostVer": "-",
1555
- * "uniVer": "-",
1556
- * "unixVer": "-"
1557
- * },
1558
- * "jd": {
1559
- * "hostVer": "-",
1560
- * "uniVer": "-",
1561
- * "unixVer": "-"
1562
- * }
1563
- * }
1564
- * }
1565
- */
1566
- gender?: 0 | 1 | 2 | null;
1567
- /**
1568
- * 可选值:
1569
- * - 'en': 英文;
1570
- * - 'zh_CN': 简体中文;
1571
- * - 'zh_TW': 繁体中文;
1572
- *
1573
- * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1574
- *
1575
- * @uniPlatform {
1576
- * "mp": {
1577
- * "weixin": {
1578
- * "hostVer": "√",
1579
- * "uniVer": "√",
1580
- * "unixVer": "4.41"
1581
- * },
1582
- * "alipay": {
1583
- * "hostVer": "-",
1584
- * "uniVer": "-",
1585
- * "unixVer": "-"
1586
- * },
1587
- * "baidu": {
1588
- * "hostVer": "-",
1589
- * "uniVer": "-",
1590
- * "unixVer": "-"
1591
- * },
1592
- * "toutiao": {
1593
- * "hostVer": "-",
1594
- * "uniVer": "-",
1595
- * "unixVer": "-"
1596
- * },
1597
- * "lark": {
1598
- * "hostVer": "-",
1599
- * "uniVer": "-",
1600
- * "unixVer": "-"
1601
- * },
1602
- * "qq": {
1603
- * "hostVer": "-",
1604
- * "uniVer": "-",
1605
- * "unixVer": "-"
1606
- * },
1607
- * "kuaishou": {
1608
- * "hostVer": "-",
1609
- * "uniVer": "-",
1610
- * "unixVer": "-"
1611
- * },
1612
- * "jd": {
1613
- * "hostVer": "-",
1614
- * "uniVer": "-",
1615
- * "unixVer": "-"
1616
- * }
1617
- * }
1618
- * }
1619
- */
1620
- language?: "en" | "zh_CN" | "zh_TW" | null;
1621
- /**
1622
- * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1623
- *
1624
- * @uniPlatform {
1625
- * "mp": {
1626
- * "weixin": {
1627
- * "hostVer": "√",
1628
- * "uniVer": "√",
1629
- * "unixVer": "4.41"
1630
- * },
1631
- * "alipay": {
1632
- * "hostVer": "-",
1633
- * "uniVer": "-",
1634
- * "unixVer": "-"
1635
- * },
1636
- * "baidu": {
1637
- * "hostVer": "-",
1638
- * "uniVer": "-",
1639
- * "unixVer": "-"
1640
- * },
1641
- * "toutiao": {
1642
- * "hostVer": "-",
1643
- * "uniVer": "-",
1644
- * "unixVer": "-"
1645
- * },
1646
- * "lark": {
1647
- * "hostVer": "-",
1648
- * "uniVer": "-",
1649
- * "unixVer": "-"
1650
- * },
1651
- * "qq": {
1652
- * "hostVer": "-",
1653
- * "uniVer": "-",
1654
- * "unixVer": "-"
1655
- * },
1656
- * "kuaishou": {
1657
- * "hostVer": "-",
1658
- * "uniVer": "-",
1659
- * "unixVer": "-"
1660
- * },
1661
- * "jd": {
1662
- * "hostVer": "-",
1663
- * "uniVer": "-",
1664
- * "unixVer": "-"
1665
- * }
1666
- * }
1667
- * }
1668
- */
1669
- province?: string | null;
1670
- };
1671
- export type GetUserInfoSuccess = {
1672
- /**
1673
- * 用户信息对象,不包含 openid 等敏感信息
1674
- * @uniPlatform {
1675
- * "app": {
1676
- * "android": {
1677
- * "osVer": "5.0",
1678
- * "uniVer": "√",
1679
- * "unixVer": "x"
1680
- * },
1681
- * "ios": {
1682
- * "osVer": "12.0",
1683
- * "uniVer": "√",
1684
- * "unixVer": "x"
1685
- * },
1686
- * "harmony": {
1687
- * "osVer": "3.0",
1688
- * "uniVer": "4.27",
1689
- * "unixVer": "4.61"
1690
- * }
1691
- * },
1692
- * "mp": {
1693
- * "weixin": {
1694
- * "hostVer": "√",
1695
- * "uniVer": "√",
1696
- * "unixVer": "4.41"
1697
- * },
1698
- * "alipay": {
1699
- * "hostVer": "√",
1700
- * "uniVer": "√",
1701
- * "unixVer": "x"
1702
- * },
1703
- * "baidu": {
1704
- * "hostVer": "√",
1705
- * "uniVer": "√",
1706
- * "unixVer": "x"
1707
- * },
1708
- * "toutiao": {
1709
- * "hostVer": "√",
1710
- * "uniVer": "√",
1711
- * "unixVer": "x"
1712
- * },
1713
- * "lark": {
1714
- * "hostVer": "√",
1715
- * "uniVer": "√",
1716
- * "unixVer": "x"
1717
- * },
1718
- * "qq": {
1719
- * "hostVer": "√",
1720
- * "uniVer": "√",
1721
- * "unixVer": "x"
1722
- * },
1723
- * "kuaishou": {
1724
- * "hostVer": "√",
1725
- * "uniVer": "√",
1726
- * "unixVer": "x"
1727
- * },
1728
- * "jd": {
1729
- * "hostVer": "√",
1730
- * "uniVer": "√",
1731
- * "unixVer": "x"
1732
- * },
1733
- * "360": {
1734
- * "hostVer": "x",
1735
- * "uniVer": "x",
1736
- * "unixVer": "x"
1737
- * }
1738
- * },
1739
- * "quickapp": {
1740
- * "uniVer": "x",
1741
- * "unixVer": "x"
1742
- * },
1743
- * "web": {
1744
- * "uniVer": "x",
1745
- * "unixVer": "x"
1746
- * }
1747
- * }
1748
- */
1749
- userInfo: UserInfo,
1750
- /**
1751
- * 不包括敏感信息的原始数据字符串,用于计算签名。
1752
- * @uniPlatform {
1753
- * "app": {
1754
- * "android": {
1755
- * "osVer": "5.0",
1756
- * "uniVer": "x",
1757
- * "unixVer": "x"
1758
- * },
1759
- * "ios": {
1760
- * "osVer": "12.0",
1761
- * "uniVer": "x",
1762
- * "unixVer": "x"
1763
- * },
1764
- * "harmony": {
1765
- * "osVer": "3.0",
1766
- * "uniVer": "x",
1767
- * "unixVer": "x"
1768
- * }
1769
- * },
1770
- * "mp": {
1771
- * "weixin": {
1772
- * "hostVer": "√",
1773
- * "uniVer": "√",
1774
- * "unixVer": "4.41"
1775
- * },
1776
- * "alipay": {
1777
- * "hostVer": "x",
1778
- * "uniVer": "x",
1779
- * "unixVer": "x"
1780
- * },
1781
- * "baidu": {
1782
- * "hostVer": "x",
1783
- * "uniVer": "x",
1784
- * "unixVer": "x"
1785
- * },
1786
- * "toutiao": {
1787
- * "hostVer": "√",
1788
- * "uniVer": "√",
1789
- * "unixVer": "x"
1790
- * },
1791
- * "lark": {
1792
- * "hostVer": "√",
1793
- * "uniVer": "√",
1794
- * "unixVer": "x"
1795
- * },
1796
- * "qq": {
1797
- * "hostVer": "x",
1798
- * "uniVer": "x",
1799
- * "unixVer": "x"
1800
- * },
1801
- * "kuaishou": {
1802
- * "hostVer": "√",
1803
- * "uniVer": "√",
1804
- * "unixVer": "x"
1805
- * },
1806
- * "jd": {
1807
- * "hostVer": "√",
1808
- * "uniVer": "√",
1809
- * "unixVer": "x"
1810
- * },
1811
- * "360": {
1812
- * "hostVer": "x",
1813
- * "uniVer": "x",
1814
- * "unixVer": "x"
1815
- * }
1816
- * },
1817
- * "quickapp": {
1818
- * "uniVer": "x",
1819
- * "unixVer": "x"
1820
- * },
1821
- * "web": {
1822
- * "uniVer": "x",
1823
- * "unixVer": "x"
1824
- * }
1825
- * }
1826
- */
1827
- rawData?: string | null,
1828
- /**
1829
- * 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,仅微信小程序生效。
1830
- * @uniPlatform {
1831
- * "app": {
1832
- * "android": {
1833
- * "osVer": "5.0",
1834
- * "uniVer": "x",
1835
- * "unixVer": "x"
1836
- * },
1837
- * "ios": {
1838
- * "osVer": "12.0",
1839
- * "uniVer": "x",
1840
- * "unixVer": "x"
1841
- * },
1842
- * "harmony": {
1843
- * "osVer": "3.0",
1844
- * "uniVer": "x",
1845
- * "unixVer": "x"
1846
- * }
1847
- * },
1848
- * "mp": {
1849
- * "weixin": {
1850
- * "hostVer": "√",
1851
- * "uniVer": "√",
1852
- * "unixVer": "4.41"
1853
- * },
1854
- * "alipay": {
1855
- * "hostVer": "x",
1856
- * "uniVer": "x",
1857
- * "unixVer": "x"
1858
- * },
1859
- * "baidu": {
1860
- * "hostVer": "x",
1861
- * "uniVer": "x",
1862
- * "unixVer": "x"
1863
- * },
1864
- * "toutiao": {
1865
- * "hostVer": "√",
1866
- * "uniVer": "√",
1867
- * "unixVer": "x"
1868
- * },
1869
- * "lark": {
1870
- * "hostVer": "√",
1871
- * "uniVer": "√",
1872
- * "unixVer": "x"
1873
- * },
1874
- * "qq": {
1875
- * "hostVer": "x",
1876
- * "uniVer": "x",
1877
- * "unixVer": "x"
1878
- * },
1879
- * "kuaishou": {
1880
- * "hostVer": "√",
1881
- * "uniVer": "√",
1882
- * "unixVer": "x"
1883
- * },
1884
- * "jd": {
1885
- * "hostVer": "√",
1886
- * "uniVer": "√",
1887
- * "unixVer": "x"
1888
- * },
1889
- * "360": {
1890
- * "hostVer": "x",
1891
- * "uniVer": "x",
1892
- * "unixVer": "x"
1893
- * }
1894
- * },
1895
- * "quickapp": {
1896
- * "uniVer": "x",
1897
- * "unixVer": "x"
1898
- * },
1899
- * "web": {
1900
- * "uniVer": "x",
1901
- * "unixVer": "x"
1902
- * }
1903
- * }
1904
- */
1905
- signature?: string | null,
1906
- /**
1907
- * 包括敏感数据在内的完整用户信息的加密数据,详细见加密数据解密算法,仅微信小程序生效。
1908
- * @uniPlatform {
1909
- * "app": {
1910
- * "android": {
1911
- * "osVer": "5.0",
1912
- * "uniVer": "x",
1913
- * "unixVer": "x"
1914
- * },
1915
- * "ios": {
1916
- * "osVer": "12.0",
1917
- * "uniVer": "x",
1918
- * "unixVer": "x"
1919
- * },
1920
- * "harmony": {
1921
- * "osVer": "3.0",
1922
- * "uniVer": "x",
1923
- * "unixVer": "x"
1924
- * }
1925
- * },
1926
- * "mp": {
1927
- * "weixin": {
1928
- * "hostVer": "√",
1929
- * "uniVer": "√",
1930
- * "unixVer": "4.41"
1931
- * },
1932
- * "alipay": {
1933
- * "hostVer": "x",
1934
- * "uniVer": "x",
1935
- * "unixVer": "x"
1936
- * },
1937
- * "baidu": {
1938
- * "hostVer": "x",
1939
- * "uniVer": "x",
1940
- * "unixVer": "x"
1941
- * },
1942
- * "toutiao": {
1943
- * "hostVer": "√",
1944
- * "uniVer": "√",
1945
- * "unixVer": "x"
1946
- * },
1947
- * "lark": {
1948
- * "hostVer": "√",
1949
- * "uniVer": "√",
1950
- * "unixVer": "x"
1951
- * },
1952
- * "qq": {
1953
- * "hostVer": "x",
1954
- * "uniVer": "x",
1955
- * "unixVer": "x"
1956
- * },
1957
- * "kuaishou": {
1958
- * "hostVer": "√",
1959
- * "uniVer": "√",
1960
- * "unixVer": "x"
1961
- * },
1962
- * "jd": {
1963
- * "hostVer": "√",
1964
- * "uniVer": "√",
1965
- * "unixVer": "x"
1966
- * },
1967
- * "360": {
1968
- * "hostVer": "x",
1969
- * "uniVer": "x",
1970
- * "unixVer": "x"
1971
- * }
1972
- * },
1973
- * "quickapp": {
1974
- * "uniVer": "x",
1975
- * "unixVer": "x"
1976
- * },
1977
- * "web": {
1978
- * "uniVer": "x",
1979
- * "unixVer": "x"
1980
- * }
1981
- * }
1982
- */
1983
- encryptedData?: string | null,
1984
- /**
1985
- * 加密算法的初始向量,详细见加密数据解密算法,仅微信小程序生效。
1986
- * @uniPlatform {
1987
- * "app": {
1988
- * "android": {
1989
- * "osVer": "5.0",
1990
- * "uniVer": "x",
1991
- * "unixVer": "x"
1992
- * },
1993
- * "ios": {
1994
- * "osVer": "12.0",
1995
- * "uniVer": "x",
1996
- * "unixVer": "x"
1997
- * },
1998
- * "harmony": {
1999
- * "osVer": "3.0",
2000
- * "uniVer": "x",
2001
- * "unixVer": "x"
2002
- * }
2003
- * },
2004
- * "mp": {
2005
- * "weixin": {
2006
- * "hostVer": "√",
2007
- * "uniVer": "√",
2008
- * "unixVer": "4.41"
2009
- * },
2010
- * "alipay": {
2011
- * "hostVer": "x",
2012
- * "uniVer": "x",
2013
- * "unixVer": "x"
2014
- * },
2015
- * "baidu": {
2016
- * "hostVer": "x",
2017
- * "uniVer": "x",
2018
- * "unixVer": "x"
2019
- * },
2020
- * "toutiao": {
2021
- * "hostVer": "√",
2022
- * "uniVer": "√",
2023
- * "unixVer": "x"
2024
- * },
2025
- * "lark": {
2026
- * "hostVer": "√",
2027
- * "uniVer": "√",
2028
- * "unixVer": "x"
2029
- * },
2030
- * "qq": {
2031
- * "hostVer": "x",
2032
- * "uniVer": "x",
2033
- * "unixVer": "x"
2034
- * },
2035
- * "kuaishou": {
2036
- * "hostVer": "√",
2037
- * "uniVer": "√",
2038
- * "unixVer": "x"
2039
- * },
2040
- * "jd": {
2041
- * "hostVer": "√",
2042
- * "uniVer": "√",
2043
- * "unixVer": "x"
2044
- * },
2045
- * "360": {
2046
- * "hostVer": "x",
2047
- * "uniVer": "x",
2048
- * "unixVer": "x"
2049
- * }
2050
- * },
2051
- * "quickapp": {
2052
- * "uniVer": "x",
2053
- * "unixVer": "x"
2054
- * },
2055
- * "web": {
2056
- * "uniVer": "x",
2057
- * "unixVer": "x"
2058
- * }
2059
- * }
2060
- */
2061
- iv?: string | null,
2062
- /**
2063
- * 描述信息
2064
- * @uniPlatform {
2065
- * "mp": {
2066
- * "weixin": {
2067
- * "hostVer": "√",
2068
- * "uniVer": "√",
2069
- * "unixVer": "4.41"
2070
- * },
2071
- * "alipay": {
2072
- * "hostVer": "-",
2073
- * "uniVer": "-",
2074
- * "unixVer": "-"
2075
- * },
2076
- * "baidu": {
2077
- * "hostVer": "-",
2078
- * "uniVer": "-",
2079
- * "unixVer": "-"
2080
- * },
2081
- * "toutiao": {
2082
- * "hostVer": "-",
2083
- * "uniVer": "-",
2084
- * "unixVer": "-"
2085
- * },
2086
- * "lark": {
2087
- * "hostVer": "-",
2088
- * "uniVer": "-",
2089
- * "unixVer": "-"
2090
- * },
2091
- * "qq": {
2092
- * "hostVer": "-",
2093
- * "uniVer": "-",
2094
- * "unixVer": "-"
2095
- * },
2096
- * "kuaishou": {
2097
- * "hostVer": "-",
2098
- * "uniVer": "-",
2099
- * "unixVer": "-"
2100
- * },
2101
- * "jd": {
2102
- * "hostVer": "-",
2103
- * "uniVer": "-",
2104
- * "unixVer": "-"
2105
- * }
2106
- * }
2107
- * }
2108
- */
2109
- errMsg: string
2110
- /**
2111
- * 需要基础库: `2.7.0`
2112
- *
2113
- * 敏感数据对应的云 ID,开通[云开发](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html)的小程序才会返回,可通过云调用直接获取开放数据,详细见[云调用直接获取开放数据](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html#method-cloud)
2114
- *
2115
- * @uniPlatform {
2116
- * "mp": {
2117
- * "weixin": {
2118
- * "hostVer": "2.7.0",
2119
- * "uniVer": "√",
2120
- * "unixVer": "4.41"
2121
- * },
2122
- * "alipay": {
2123
- * "hostVer": "-",
2124
- * "uniVer": "-",
2125
- * "unixVer": "-"
2126
- * },
2127
- * "baidu": {
2128
- * "hostVer": "-",
2129
- * "uniVer": "-",
2130
- * "unixVer": "-"
2131
- * },
2132
- * "toutiao": {
2133
- * "hostVer": "-",
2134
- * "uniVer": "-",
2135
- * "unixVer": "-"
2136
- * },
2137
- * "lark": {
2138
- * "hostVer": "-",
2139
- * "uniVer": "-",
2140
- * "unixVer": "-"
2141
- * },
2142
- * "qq": {
2143
- * "hostVer": "-",
2144
- * "uniVer": "-",
2145
- * "unixVer": "-"
2146
- * },
2147
- * "kuaishou": {
2148
- * "hostVer": "-",
2149
- * "uniVer": "-",
2150
- * "unixVer": "-"
2151
- * },
2152
- * "jd": {
2153
- * "hostVer": "-",
2154
- * "uniVer": "-",
2155
- * "unixVer": "-"
2156
- * }
2157
- * }
2158
- * }
2159
- */
2160
- cloudID?: string | null;
2161
- };
2162
- export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
2163
- export type GetUserInfoFail = IUniError;
2164
- export type GetUserInfoFailCallback = (result: GetUserInfoFail) => void;
2165
- export type GetUserInfoComplete = any;
2166
- export type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void;
2167
- export type GetUserInfoOptions = {
2168
- /**
2169
- * 授权登录服务提供商,通过uni.getProvider获取
2170
- * @uniPlatform {
2171
- * "app": {
2172
- * "android": {
2173
- * "osVer": "5.0",
2174
- * "uniVer": "√",
2175
- * "unixVer": "x"
2176
- * },
2177
- * "ios": {
2178
- * "osVer": "12.0",
2179
- * "uniVer": "√",
2180
- * "unixVer": "x"
2181
- * },
2182
- * "harmony": {
2183
- * "osVer": "3.0",
2184
- * "uniVer": "4.27",
2185
- * "unixVer": "4.61"
2186
- * }
2187
- * },
2188
- * "mp": {
2189
- * "weixin": {
2190
- * "hostVer": "x",
2191
- * "uniVer": "x",
2192
- * "unixVer": "x"
2193
- * },
2194
- * "alipay": {
2195
- * "hostVer": "x",
2196
- * "uniVer": "x",
2197
- * "unixVer": "x"
2198
- * },
2199
- * "baidu": {
2200
- * "hostVer": "x",
2201
- * "uniVer": "x",
2202
- * "unixVer": "x"
2203
- * },
2204
- * "toutiao": {
2205
- * "hostVer": "x",
2206
- * "uniVer": "x",
2207
- * "unixVer": "x"
2208
- * },
2209
- * "lark": {
2210
- * "hostVer": "x",
2211
- * "uniVer": "x",
2212
- * "unixVer": "x"
2213
- * },
2214
- * "qq": {
2215
- * "hostVer": "x",
2216
- * "uniVer": "x",
2217
- * "unixVer": "x"
2218
- * },
2219
- * "kuaishou": {
2220
- * "hostVer": "x",
2221
- * "uniVer": "x",
2222
- * "unixVer": "x"
2223
- * },
2224
- * "jd": {
2225
- * "hostVer": "x",
2226
- * "uniVer": "x",
2227
- * "unixVer": "x"
2228
- * },
2229
- * "360": {
2230
- * "hostVer": "x",
2231
- * "uniVer": "x",
2232
- * "unixVer": "x"
2233
- * }
2234
- * },
2235
- * "quickapp": {
2236
- * "uniVer": "x",
2237
- * "unixVer": "x"
2238
- * },
2239
- * "web": {
2240
- * "uniVer": "x",
2241
- * "unixVer": "x"
2242
- * }
2243
- * }
2244
- */
2245
- provider?:
2246
- /**
2247
- * 微信登录
2248
- */
2249
- 'weixin' |
2250
- /**
2251
- * QQ登录
2252
- */
2253
- 'qq' |
2254
- /**
2255
- * 新浪微博登录
2256
- */
2257
- 'sinaweibo' |
2258
- /**
2259
- * 小米登录
2260
- */
2261
- 'xiaomi' |
2262
- /**
2263
- * Apple登录
2264
- */
2265
- 'apple' |
2266
- /**
2267
- * 华为 HarmonyOS Next 华为账号登录
2268
- */
2269
- 'huawei' | null,
2270
- /**
2271
- * 是否带上登录态信息,仅微信小程序生效。
2272
- * @uniPlatform {
2273
- * "app": {
2274
- * "android": {
2275
- * "osVer": "x",
2276
- * "uniVer": "x",
2277
- * "unixVer": "x"
2278
- * },
2279
- * "ios": {
2280
- * "osVer": "x",
2281
- * "uniVer": "x",
2282
- * "unixVer": "x"
2283
- * },
2284
- * "harmony": {
2285
- * "osVer": "x",
2286
- * "uniVer": "x",
2287
- * "unixVer": "x"
2288
- * }
2289
- * },
2290
- * "mp": {
2291
- * "weixin": {
2292
- * "hostVer": "√",
2293
- * "uniVer": "√",
2294
- * "unixVer": "4.41"
2295
- * },
2296
- * "alipay": {
2297
- * "hostVer": "x",
2298
- * "uniVer": "x",
2299
- * "unixVer": "x"
2300
- * },
2301
- * "baidu": {
2302
- * "hostVer": "x",
2303
- * "uniVer": "x",
2304
- * "unixVer": "x"
2305
- * },
2306
- * "toutiao": {
2307
- * "hostVer": "√",
2308
- * "uniVer": "√",
2309
- * "unixVer": "x"
2310
- * },
2311
- * "lark": {
2312
- * "hostVer": "√",
2313
- * "uniVer": "√",
2314
- * "unixVer": "x"
2315
- * },
2316
- * "qq": {
2317
- * "hostVer": "x",
2318
- * "uniVer": "x",
2319
- * "unixVer": "x"
2320
- * },
2321
- * "kuaishou": {
2322
- * "hostVer": "√",
2323
- * "uniVer": "√",
2324
- * "unixVer": "x"
2325
- * },
2326
- * "jd": {
2327
- * "hostVer": "x",
2328
- * "uniVer": "x",
2329
- * "unixVer": "x"
2330
- * },
2331
- * "360": {
2332
- * "hostVer": "x",
2333
- * "uniVer": "x",
2334
- * "unixVer": "x"
2335
- * }
2336
- * },
2337
- * "quickapp": {
2338
- * "uniVer": "x",
2339
- * "unixVer": "x"
2340
- * },
2341
- * "web": {
2342
- * "uniVer": "x",
2343
- * "unixVer": "x"
2344
- * }
2345
- * }
2346
- */
2347
- withCredentials?: boolean | null,
2348
- /**
2349
- * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。默认为en,仅微信小程序生效。
2350
- * @uniPlatform {
2351
- * "app": {
2352
- * "android": {
2353
- * "osVer": "x",
2354
- * "uniVer": "x",
2355
- * "unixVer": "x"
2356
- * },
2357
- * "ios": {
2358
- * "osVer": "x",
2359
- * "uniVer": "x",
2360
- * "unixVer": "x"
2361
- * },
2362
- * "harmony": {
2363
- * "osVer": "x",
2364
- * "uniVer": "x",
2365
- * "unixVer": "x"
2366
- * }
2367
- * },
2368
- * "mp": {
2369
- * "weixin": {
2370
- * "hostVer": "√",
2371
- * "uniVer": "√",
2372
- * "unixVer": "4.41"
2373
- * },
2374
- * "alipay": {
2375
- * "hostVer": "x",
2376
- * "uniVer": "x",
2377
- * "unixVer": "x"
2378
- * },
2379
- * "baidu": {
2380
- * "hostVer": "x",
2381
- * "uniVer": "x",
2382
- * "unixVer": "x"
2383
- * },
2384
- * "toutiao": {
2385
- * "hostVer": "x",
2386
- * "uniVer": "x",
2387
- * "unixVer": "x"
2388
- * },
2389
- * "lark": {
2390
- * "hostVer": "x",
2391
- * "uniVer": "x",
2392
- * "unixVer": "x"
2393
- * },
2394
- * "qq": {
2395
- * "hostVer": "x",
2396
- * "uniVer": "x",
2397
- * "unixVer": "x"
2398
- * },
2399
- * "kuaishou": {
2400
- * "hostVer": "x",
2401
- * "uniVer": "x",
2402
- * "unixVer": "x"
2403
- * },
2404
- * "jd": {
2405
- * "hostVer": "x",
2406
- * "uniVer": "x",
2407
- * "unixVer": "x"
2408
- * },
2409
- * "360": {
2410
- * "hostVer": "x",
2411
- * "uniVer": "x",
2412
- * "unixVer": "x"
2413
- * }
2414
- * },
2415
- * "quickapp": {
2416
- * "uniVer": "x",
2417
- * "unixVer": "x"
2418
- * },
2419
- * "web": {
2420
- * "uniVer": "x",
2421
- * "unixVer": "x"
2422
- * }
2423
- * }
2424
- */
2425
- lang?: string | null,
2426
- /**
2427
- * 超时时间,单位 ms
2428
- * @uniPlatform {
2429
- * "app": {
2430
- * "android": {
2431
- * "osVer": "x",
2432
- * "uniVer": "x",
2433
- * "unixVer": "x"
2434
- * },
2435
- * "ios": {
2436
- * "osVer": "x",
2437
- * "uniVer": "x",
2438
- * "unixVer": "x"
2439
- * },
2440
- * "harmony": {
2441
- * "osVer": "x",
2442
- * "uniVer": "x",
2443
- * "unixVer": "x"
2444
- * }
2445
- * },
2446
- * "mp": {
2447
- * "weixin": {
2448
- * "hostVer": "√",
2449
- * "uniVer": "√",
2450
- * "unixVer": "4.41"
2451
- * },
2452
- * "alipay": {
2453
- * "hostVer": "x",
2454
- * "uniVer": "x",
2455
- * "unixVer": "x"
2456
- * },
2457
- * "baidu": {
2458
- * "hostVer": "x",
2459
- * "uniVer": "x",
2460
- * "unixVer": "x"
2461
- * },
2462
- * "toutiao": {
2463
- * "hostVer": "x",
2464
- * "uniVer": "x",
2465
- * "unixVer": "x"
2466
- * },
2467
- * "lark": {
2468
- * "hostVer": "x",
2469
- * "uniVer": "x",
2470
- * "unixVer": "x"
2471
- * },
2472
- * "qq": {
2473
- * "hostVer": "x",
2474
- * "uniVer": "x",
2475
- * "unixVer": "x"
2476
- * },
2477
- * "kuaishou": {
2478
- * "hostVer": "x",
2479
- * "uniVer": "x",
2480
- * "unixVer": "x"
2481
- * },
2482
- * "jd": {
2483
- * "hostVer": "x",
2484
- * "uniVer": "x",
2485
- * "unixVer": "x"
2486
- * },
2487
- * "360": {
2488
- * "hostVer": "x",
2489
- * "uniVer": "x",
2490
- * "unixVer": "x"
2491
- * }
2492
- * },
2493
- * "quickapp": {
2494
- * "uniVer": "x",
2495
- * "unixVer": "x"
2496
- * },
2497
- * "web": {
2498
- * "uniVer": "x",
2499
- * "unixVer": "x"
2500
- * }
2501
- * }
2502
- */
2503
- timeout?: number | null,
2504
- /**
2505
- * 接口调用成功的回调函数
2506
- * @uniPlatform {
2507
- * "mp": {
2508
- * "weixin": {
2509
- * "hostVer": "√",
2510
- * "uniVer": "√",
2511
- * "unixVer": "4.41"
2512
- * },
2513
- * "alipay": {
2514
- * "hostVer": "-",
2515
- * "uniVer": "-",
2516
- * "unixVer": "-"
2517
- * },
2518
- * "baidu": {
2519
- * "hostVer": "-",
2520
- * "uniVer": "-",
2521
- * "unixVer": "-"
2522
- * },
2523
- * "toutiao": {
2524
- * "hostVer": "-",
2525
- * "uniVer": "-",
2526
- * "unixVer": "-"
2527
- * },
2528
- * "lark": {
2529
- * "hostVer": "-",
2530
- * "uniVer": "-",
2531
- * "unixVer": "-"
2532
- * },
2533
- * "qq": {
2534
- * "hostVer": "-",
2535
- * "uniVer": "-",
2536
- * "unixVer": "-"
2537
- * },
2538
- * "kuaishou": {
2539
- * "hostVer": "-",
2540
- * "uniVer": "-",
2541
- * "unixVer": "-"
2542
- * },
2543
- * "jd": {
2544
- * "hostVer": "-",
2545
- * "uniVer": "-",
2546
- * "unixVer": "-"
2547
- * }
2548
- * }
2549
- * }
2550
- */
2551
- success?: GetUserInfoSuccessCallback | null,
2552
- /**
2553
- * 接口调用失败的回调函数
2554
- * @uniPlatform {
2555
- * "mp": {
2556
- * "weixin": {
2557
- * "hostVer": "√",
2558
- * "uniVer": "√",
2559
- * "unixVer": "4.41"
2560
- * },
2561
- * "alipay": {
2562
- * "hostVer": "-",
2563
- * "uniVer": "-",
2564
- * "unixVer": "-"
2565
- * },
2566
- * "baidu": {
2567
- * "hostVer": "-",
2568
- * "uniVer": "-",
2569
- * "unixVer": "-"
2570
- * },
2571
- * "toutiao": {
2572
- * "hostVer": "-",
2573
- * "uniVer": "-",
2574
- * "unixVer": "-"
2575
- * },
2576
- * "lark": {
2577
- * "hostVer": "-",
2578
- * "uniVer": "-",
2579
- * "unixVer": "-"
2580
- * },
2581
- * "qq": {
2582
- * "hostVer": "-",
2583
- * "uniVer": "-",
2584
- * "unixVer": "-"
2585
- * },
2586
- * "kuaishou": {
2587
- * "hostVer": "-",
2588
- * "uniVer": "-",
2589
- * "unixVer": "-"
2590
- * },
2591
- * "jd": {
2592
- * "hostVer": "-",
2593
- * "uniVer": "-",
2594
- * "unixVer": "-"
2595
- * }
2596
- * }
2597
- * }
2598
- */
2599
- fail?: GetUserInfoFailCallback | null,
2600
- /**
2601
- * 接口调用结束的回调函数(调用成功、失败都会执行)
2602
- * @uniPlatform {
2603
- * "mp": {
2604
- * "weixin": {
2605
- * "hostVer": "√",
2606
- * "uniVer": "√",
2607
- * "unixVer": "4.41"
2608
- * },
2609
- * "alipay": {
2610
- * "hostVer": "-",
2611
- * "uniVer": "-",
2612
- * "unixVer": "-"
2613
- * },
2614
- * "baidu": {
2615
- * "hostVer": "-",
2616
- * "uniVer": "-",
2617
- * "unixVer": "-"
2618
- * },
2619
- * "toutiao": {
2620
- * "hostVer": "-",
2621
- * "uniVer": "-",
2622
- * "unixVer": "-"
2623
- * },
2624
- * "lark": {
2625
- * "hostVer": "-",
2626
- * "uniVer": "-",
2627
- * "unixVer": "-"
2628
- * },
2629
- * "qq": {
2630
- * "hostVer": "-",
2631
- * "uniVer": "-",
2632
- * "unixVer": "-"
2633
- * },
2634
- * "kuaishou": {
2635
- * "hostVer": "-",
2636
- * "uniVer": "-",
2637
- * "unixVer": "-"
2638
- * },
2639
- * "jd": {
2640
- * "hostVer": "-",
2641
- * "uniVer": "-",
2642
- * "unixVer": "-"
2643
- * }
2644
- * }
2645
- * }
2646
- */
2647
- complete?: GetUserInfoCompleteCallback | null
2648
- };
1
+ export interface Uni {
2
+ /**
3
+ * 登录
4
+ *
5
+ * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#login
6
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
7
+ *
8
+ * @uniPlatform {
9
+ * "app": {
10
+ * "android": {
11
+ * "osVer": "5.0",
12
+ * "uniVer": "√",
13
+ * "unixVer": "x"
14
+ * },
15
+ * "ios": {
16
+ * "osVer": "12.0",
17
+ * "uniVer": "√",
18
+ * "unixVer": "x"
19
+ * },
20
+ * "harmony": {
21
+ * "osVer": "3.0",
22
+ * "uniVer": "4.31",
23
+ * "unixVer": "4.61"
24
+ * }
25
+ * },
26
+ * "mp": {
27
+ * "360": {
28
+ * "hostVer": "√",
29
+ * "uniVer": "√",
30
+ * "unixVer": "x"
31
+ * },
32
+ * "weixin": {
33
+ * "hostVer": "2.3.1",
34
+ * "uniVer": "√",
35
+ * "unixVer": "4.41"
36
+ * },
37
+ * "alipay": {
38
+ * "hostVer": "√",
39
+ * "uniVer": "√",
40
+ * "unixVer": "x"
41
+ * },
42
+ * "baidu": {
43
+ * "hostVer": "√",
44
+ * "uniVer": "√",
45
+ * "unixVer": "x"
46
+ * },
47
+ * "toutiao": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "lark": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "qq": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "kuaishou": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * },
67
+ * "jd": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * }
72
+ * },
73
+ * "quickapp": {
74
+ * "uniVer": "√",
75
+ * "unixVer": "√"
76
+ * },
77
+ * "web": {
78
+ * "uniVer": "x",
79
+ * "unixVer": "x"
80
+ * }
81
+ * }
82
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html
83
+ */
84
+ login(options: LoginOptions): void;
85
+ /**
86
+ * 获取用户信息
87
+ *
88
+ * @tutorial https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
89
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
90
+ *
91
+ * @uniPlatform {
92
+ * "app": {
93
+ * "android": {
94
+ * "osVer": "5.0",
95
+ * "uniVer": "√",
96
+ * "unixVer": "x"
97
+ * },
98
+ * "ios": {
99
+ * "osVer": "12.0",
100
+ * "uniVer": "√",
101
+ * "unixVer": "x"
102
+ * },
103
+ * "harmony": {
104
+ * "osVer": "3.0",
105
+ * "uniVer": "4.31",
106
+ * "unixVer": "4.61"
107
+ * }
108
+ * },
109
+ * "mp": {
110
+ * "360": {
111
+ * "hostVer": "√",
112
+ * "uniVer": "√",
113
+ * "unixVer": "x"
114
+ * },
115
+ * "weixin": {
116
+ * "hostVer": "2.3.1",
117
+ * "uniVer": "√",
118
+ * "unixVer": "4.41"
119
+ * },
120
+ * "alipay": {
121
+ * "hostVer": "√",
122
+ * "uniVer": "√",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "baidu": {
126
+ * "hostVer": "√",
127
+ * "uniVer": "√",
128
+ * "unixVer": "x"
129
+ * },
130
+ * "toutiao": {
131
+ * "hostVer": "√",
132
+ * "uniVer": "√",
133
+ * "unixVer": "x"
134
+ * },
135
+ * "lark": {
136
+ * "hostVer": "√",
137
+ * "uniVer": "√",
138
+ * "unixVer": "x"
139
+ * },
140
+ * "qq": {
141
+ * "hostVer": "√",
142
+ * "uniVer": "√",
143
+ * "unixVer": "x"
144
+ * },
145
+ * "kuaishou": {
146
+ * "hostVer": "√",
147
+ * "uniVer": "√",
148
+ * "unixVer": "x"
149
+ * },
150
+ * "jd": {
151
+ * "hostVer": "√",
152
+ * "uniVer": "√",
153
+ * "unixVer": "x"
154
+ * }
155
+ * },
156
+ * "quickapp": {
157
+ * "uniVer": "√",
158
+ * "unixVer": "√"
159
+ * },
160
+ * "web": {
161
+ * "uniVer": "x",
162
+ * "unixVer": "x"
163
+ * }
164
+ * }
165
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html
166
+ */
167
+ getUserInfo(options: GetUserInfoOptions): void;
168
+ }
169
+ export interface UniOAuthProvider extends UniProvider {
170
+ login(options: LoginOptions): void;
171
+ getUserInfo(options: GetUserInfoOptions): void;
172
+ }
173
+ export type Login = (options: LoginOptions) => void;
174
+
175
+ export type AppleLoginAppleInfo = {
176
+ /**
177
+ * 应用程序用来与服务器交互的令牌
178
+ */
179
+ authorizationCode?: string | null,
180
+ /**
181
+ * 返回身份的全名
182
+ */
183
+ fullName?: any | null,
184
+ /**
185
+ * 一个JSON Web令牌(JWT),可以安全地将用户信息传递给应用程序
186
+ */
187
+ identityToken?: string | null,
188
+ /**
189
+ * 指示用户是否为真人
190
+ */
191
+ realUserStatus?: number | null,
192
+ /**
193
+ * 验证用户的标识符
194
+ */
195
+ user?: string | null
196
+ };
197
+ export type LoginSuccess = {
198
+ /**
199
+ * 描述信息
200
+ * @uniPlatform {
201
+ * "mp": {
202
+ * "weixin": {
203
+ * "hostVer": "√",
204
+ * "uniVer": "√",
205
+ * "unixVer": "4.41"
206
+ * },
207
+ * "alipay": {
208
+ * "hostVer": "-",
209
+ * "uniVer": "-",
210
+ * "unixVer": "-"
211
+ * },
212
+ * "baidu": {
213
+ * "hostVer": "-",
214
+ * "uniVer": "-",
215
+ * "unixVer": "-"
216
+ * },
217
+ * "toutiao": {
218
+ * "hostVer": "-",
219
+ * "uniVer": "-",
220
+ * "unixVer": "-"
221
+ * },
222
+ * "lark": {
223
+ * "hostVer": "-",
224
+ * "uniVer": "-",
225
+ * "unixVer": "-"
226
+ * },
227
+ * "qq": {
228
+ * "hostVer": "-",
229
+ * "uniVer": "-",
230
+ * "unixVer": "-"
231
+ * },
232
+ * "kuaishou": {
233
+ * "hostVer": "-",
234
+ * "uniVer": "-",
235
+ * "unixVer": "-"
236
+ * },
237
+ * "jd": {
238
+ * "hostVer": "-",
239
+ * "uniVer": "-",
240
+ * "unixVer": "-"
241
+ * }
242
+ * }
243
+ * }
244
+ */
245
+ errMsg: string,
246
+ /**
247
+ * 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
248
+ * @uniPlatform {
249
+ * "mp": {
250
+ * "weixin": {
251
+ * "hostVer": "√",
252
+ * "uniVer": "√",
253
+ * "unixVer": "4.41"
254
+ * },
255
+ * "alipay": {
256
+ * "hostVer": "-",
257
+ * "uniVer": "-",
258
+ * "unixVer": "-"
259
+ * },
260
+ * "baidu": {
261
+ * "hostVer": "-",
262
+ * "uniVer": "-",
263
+ * "unixVer": "-"
264
+ * },
265
+ * "toutiao": {
266
+ * "hostVer": "-",
267
+ * "uniVer": "-",
268
+ * "unixVer": "-"
269
+ * },
270
+ * "lark": {
271
+ * "hostVer": "-",
272
+ * "uniVer": "-",
273
+ * "unixVer": "-"
274
+ * },
275
+ * "qq": {
276
+ * "hostVer": "-",
277
+ * "uniVer": "-",
278
+ * "unixVer": "-"
279
+ * },
280
+ * "kuaishou": {
281
+ * "hostVer": "-",
282
+ * "uniVer": "-",
283
+ * "unixVer": "-"
284
+ * },
285
+ * "jd": {
286
+ * "hostVer": "-",
287
+ * "uniVer": "-",
288
+ * "unixVer": "-"
289
+ * }
290
+ * }
291
+ * }
292
+ */
293
+ authResult: any,
294
+ /**
295
+ * 小程序用户临时登录凭证
296
+ * @uniPlatform {
297
+ * "mp": {
298
+ * "weixin": {
299
+ * "hostVer": "√",
300
+ * "uniVer": "√",
301
+ * "unixVer": "4.41"
302
+ * },
303
+ * "alipay": {
304
+ * "hostVer": "-",
305
+ * "uniVer": "-",
306
+ * "unixVer": "-"
307
+ * },
308
+ * "baidu": {
309
+ * "hostVer": "-",
310
+ * "uniVer": "-",
311
+ * "unixVer": "-"
312
+ * },
313
+ * "toutiao": {
314
+ * "hostVer": "-",
315
+ * "uniVer": "-",
316
+ * "unixVer": "-"
317
+ * },
318
+ * "lark": {
319
+ * "hostVer": "-",
320
+ * "uniVer": "-",
321
+ * "unixVer": "-"
322
+ * },
323
+ * "qq": {
324
+ * "hostVer": "-",
325
+ * "uniVer": "-",
326
+ * "unixVer": "-"
327
+ * },
328
+ * "kuaishou": {
329
+ * "hostVer": "-",
330
+ * "uniVer": "-",
331
+ * "unixVer": "-"
332
+ * },
333
+ * "jd": {
334
+ * "hostVer": "-",
335
+ * "uniVer": "-",
336
+ * "unixVer": "-"
337
+ * }
338
+ * }
339
+ * }
340
+ */
341
+ code: string,
342
+ /**
343
+ * 头条小程序当前设备标识
344
+ * @uniPlatform {
345
+ * "mp": {
346
+ * "weixin": {
347
+ * "hostVer": "√",
348
+ * "uniVer": "√",
349
+ * "unixVer": "4.41"
350
+ * },
351
+ * "alipay": {
352
+ * "hostVer": "-",
353
+ * "uniVer": "-",
354
+ * "unixVer": "-"
355
+ * },
356
+ * "baidu": {
357
+ * "hostVer": "-",
358
+ * "uniVer": "-",
359
+ * "unixVer": "-"
360
+ * },
361
+ * "toutiao": {
362
+ * "hostVer": "-",
363
+ * "uniVer": "-",
364
+ * "unixVer": "-"
365
+ * },
366
+ * "lark": {
367
+ * "hostVer": "-",
368
+ * "uniVer": "-",
369
+ * "unixVer": "-"
370
+ * },
371
+ * "qq": {
372
+ * "hostVer": "-",
373
+ * "uniVer": "-",
374
+ * "unixVer": "-"
375
+ * },
376
+ * "kuaishou": {
377
+ * "hostVer": "-",
378
+ * "uniVer": "-",
379
+ * "unixVer": "-"
380
+ * },
381
+ * "jd": {
382
+ * "hostVer": "-",
383
+ * "uniVer": "-",
384
+ * "unixVer": "-"
385
+ * }
386
+ * }
387
+ * }
388
+ */
389
+ anonymousCode?: string | null,
390
+ /**
391
+ * 支付宝小程序授权码
392
+ * @uniPlatform {
393
+ * "mp": {
394
+ * "weixin": {
395
+ * "hostVer": "√",
396
+ * "uniVer": "√",
397
+ * "unixVer": "4.41"
398
+ * },
399
+ * "alipay": {
400
+ * "hostVer": "-",
401
+ * "uniVer": "-",
402
+ * "unixVer": "-"
403
+ * },
404
+ * "baidu": {
405
+ * "hostVer": "-",
406
+ * "uniVer": "-",
407
+ * "unixVer": "-"
408
+ * },
409
+ * "toutiao": {
410
+ * "hostVer": "-",
411
+ * "uniVer": "-",
412
+ * "unixVer": "-"
413
+ * },
414
+ * "lark": {
415
+ * "hostVer": "-",
416
+ * "uniVer": "-",
417
+ * "unixVer": "-"
418
+ * },
419
+ * "qq": {
420
+ * "hostVer": "-",
421
+ * "uniVer": "-",
422
+ * "unixVer": "-"
423
+ * },
424
+ * "kuaishou": {
425
+ * "hostVer": "-",
426
+ * "uniVer": "-",
427
+ * "unixVer": "-"
428
+ * },
429
+ * "jd": {
430
+ * "hostVer": "-",
431
+ * "uniVer": "-",
432
+ * "unixVer": "-"
433
+ * }
434
+ * }
435
+ * }
436
+ */
437
+ authCode?: string | null,
438
+ /**
439
+ * 支付宝小程序登录失败的授权类型,key是授权失败的 scope,value 是对应的错误码
440
+ * @uniPlatform {
441
+ * "mp": {
442
+ * "weixin": {
443
+ * "hostVer": "√",
444
+ * "uniVer": "√",
445
+ * "unixVer": "4.41"
446
+ * },
447
+ * "alipay": {
448
+ * "hostVer": "-",
449
+ * "uniVer": "-",
450
+ * "unixVer": "-"
451
+ * },
452
+ * "baidu": {
453
+ * "hostVer": "-",
454
+ * "uniVer": "-",
455
+ * "unixVer": "-"
456
+ * },
457
+ * "toutiao": {
458
+ * "hostVer": "-",
459
+ * "uniVer": "-",
460
+ * "unixVer": "-"
461
+ * },
462
+ * "lark": {
463
+ * "hostVer": "-",
464
+ * "uniVer": "-",
465
+ * "unixVer": "-"
466
+ * },
467
+ * "qq": {
468
+ * "hostVer": "-",
469
+ * "uniVer": "-",
470
+ * "unixVer": "-"
471
+ * },
472
+ * "kuaishou": {
473
+ * "hostVer": "-",
474
+ * "uniVer": "-",
475
+ * "unixVer": "-"
476
+ * },
477
+ * "jd": {
478
+ * "hostVer": "-",
479
+ * "uniVer": "-",
480
+ * "unixVer": "-"
481
+ * }
482
+ * }
483
+ * }
484
+ */
485
+ authErrorScope?: any | null,
486
+ /**
487
+ * 支付宝小程序登录成功的授权 scope
488
+ * @uniPlatform {
489
+ * "mp": {
490
+ * "weixin": {
491
+ * "hostVer": "√",
492
+ * "uniVer": "√",
493
+ * "unixVer": "4.41"
494
+ * },
495
+ * "alipay": {
496
+ * "hostVer": "-",
497
+ * "uniVer": "-",
498
+ * "unixVer": "-"
499
+ * },
500
+ * "baidu": {
501
+ * "hostVer": "-",
502
+ * "uniVer": "-",
503
+ * "unixVer": "-"
504
+ * },
505
+ * "toutiao": {
506
+ * "hostVer": "-",
507
+ * "uniVer": "-",
508
+ * "unixVer": "-"
509
+ * },
510
+ * "lark": {
511
+ * "hostVer": "-",
512
+ * "uniVer": "-",
513
+ * "unixVer": "-"
514
+ * },
515
+ * "qq": {
516
+ * "hostVer": "-",
517
+ * "uniVer": "-",
518
+ * "unixVer": "-"
519
+ * },
520
+ * "kuaishou": {
521
+ * "hostVer": "-",
522
+ * "uniVer": "-",
523
+ * "unixVer": "-"
524
+ * },
525
+ * "jd": {
526
+ * "hostVer": "-",
527
+ * "uniVer": "-",
528
+ * "unixVer": "-"
529
+ * }
530
+ * }
531
+ * }
532
+ */
533
+ authSucessScope?: (string[]) | null,
534
+ /**
535
+ * 苹果登录成功返回的信息
536
+ * @uniPlatform {
537
+ * "mp": {
538
+ * "weixin": {
539
+ * "hostVer": "√",
540
+ * "uniVer": "√",
541
+ * "unixVer": "4.41"
542
+ * },
543
+ * "alipay": {
544
+ * "hostVer": "-",
545
+ * "uniVer": "-",
546
+ * "unixVer": "-"
547
+ * },
548
+ * "baidu": {
549
+ * "hostVer": "-",
550
+ * "uniVer": "-",
551
+ * "unixVer": "-"
552
+ * },
553
+ * "toutiao": {
554
+ * "hostVer": "-",
555
+ * "uniVer": "-",
556
+ * "unixVer": "-"
557
+ * },
558
+ * "lark": {
559
+ * "hostVer": "-",
560
+ * "uniVer": "-",
561
+ * "unixVer": "-"
562
+ * },
563
+ * "qq": {
564
+ * "hostVer": "-",
565
+ * "uniVer": "-",
566
+ * "unixVer": "-"
567
+ * },
568
+ * "kuaishou": {
569
+ * "hostVer": "-",
570
+ * "uniVer": "-",
571
+ * "unixVer": "-"
572
+ * },
573
+ * "jd": {
574
+ * "hostVer": "-",
575
+ * "uniVer": "-",
576
+ * "unixVer": "-"
577
+ * }
578
+ * }
579
+ * }
580
+ */
581
+ appleInfo?: AppleLoginAppleInfo | null
582
+ };
583
+ export type LoginSuccessCallback = (result: LoginSuccess) => void;
584
+ export type LoginFail = IUniError;
585
+ export type LoginFailCallback = (result: LoginFail) => void;
586
+ export type LoginComplete = any;
587
+ export type LoginCompleteCallback = (result: LoginComplete) => void;
588
+ export type LoginOptions = {
589
+ /**
590
+ * 授权登录服务提供商,通过uni.getProvider获取,如果不设置则弹出分享列表选择界面
591
+ *
592
+ * @uniPlatform {
593
+ * "app": {
594
+ * "android": {
595
+ * "osVer": "5.0",
596
+ * "uniVer": "√",
597
+ * "unixVer": "x"
598
+ * },
599
+ * "ios": {
600
+ * "osVer": "12.0",
601
+ * "uniVer": "√",
602
+ * "unixVer": "x"
603
+ * },
604
+ * "harmony": {
605
+ * "osVer": "3.0",
606
+ * "uniVer": "4.27",
607
+ * "unixVer": "4.61"
608
+ * }
609
+ * },
610
+ * "mp": {
611
+ * "weixin": {
612
+ * "hostVer": "x",
613
+ * "uniVer": "x",
614
+ * "unixVer": "x"
615
+ * },
616
+ * "alipay": {
617
+ * "hostVer": "x",
618
+ * "uniVer": "x",
619
+ * "unixVer": "x"
620
+ * },
621
+ * "baidu": {
622
+ * "hostVer": "x",
623
+ * "uniVer": "x",
624
+ * "unixVer": "x"
625
+ * },
626
+ * "toutiao": {
627
+ * "hostVer": "x",
628
+ * "uniVer": "x",
629
+ * "unixVer": "x"
630
+ * },
631
+ * "lark": {
632
+ * "hostVer": "x",
633
+ * "uniVer": "x",
634
+ * "unixVer": "x"
635
+ * },
636
+ * "qq": {
637
+ * "hostVer": "x",
638
+ * "uniVer": "x",
639
+ * "unixVer": "x"
640
+ * },
641
+ * "kuaishou": {
642
+ * "hostVer": "x",
643
+ * "uniVer": "x",
644
+ * "unixVer": "x"
645
+ * },
646
+ * "jd": {
647
+ * "hostVer": "x",
648
+ * "uniVer": "x",
649
+ * "unixVer": "x"
650
+ * },
651
+ * "360": {
652
+ * "hostVer": "x",
653
+ * "uniVer": "x",
654
+ * "unixVer": "x"
655
+ * }
656
+ * },
657
+ * "quickapp": {
658
+ * "uniVer": "x",
659
+ * "unixVer": "x"
660
+ * },
661
+ * "web": {
662
+ * "uniVer": "x",
663
+ * "unixVer": "x"
664
+ * }
665
+ * }
666
+ */
667
+ provider?:
668
+ /**
669
+ * 微信登录
670
+ */
671
+ 'weixin' |
672
+ /**
673
+ * QQ登录
674
+ */
675
+ 'qq' |
676
+ /**
677
+ * 新浪微博登录
678
+ */
679
+ 'sinaweibo' |
680
+ /**
681
+ * 小米登录
682
+ */
683
+ 'xiaomi' |
684
+ /**
685
+ * Apple登录
686
+ */
687
+ 'apple' |
688
+ /**
689
+ * 一键登录
690
+ */
691
+ 'univerify' |
692
+ /**
693
+ * 华为 HarmonyOS Next 华为账号登录
694
+ */
695
+ 'huawei' | null,
696
+ /**
697
+ * 授权类型,默认 auth_base。支持 auth_base(静默授权)/ auth_user(主动授权) / auth_zhima(芝麻信用)
698
+ *
699
+ * @uniPlatform {
700
+ * "mp": {
701
+ * "alipay": {
702
+ * "hostVer": "√",
703
+ * "uniVer": "√",
704
+ * "unixVer": "x"
705
+ * }
706
+ * }
707
+ * }
708
+ */
709
+ scopes?: any | null,
710
+ /**
711
+ * 超时时间,单位 ms
712
+ * @uniPlatform {
713
+ * "mp": {
714
+ * "weixin": {
715
+ * "hostVer": "√",
716
+ * "uniVer": "√",
717
+ * "unixVer": "2.35"
718
+ * },
719
+ * "baidu": {
720
+ * "hostVer": "√",
721
+ * "uniVer": "√",
722
+ * "unixVer": "x"
723
+ * },
724
+ * "jd": {
725
+ * "hostVer": "√",
726
+ * "uniVer": "√",
727
+ * "unixVer": "x"
728
+ * }
729
+ * }
730
+ * }
731
+ */
732
+ timeout?: number | null,
733
+ /**
734
+ * 一键登录页面样式
735
+ *
736
+ * @uniPlatform {
737
+ * "app": {
738
+ * "android": {
739
+ * "osVer": "5.0",
740
+ * "uniVer": "3.0.0",
741
+ * "unixVer": "x"
742
+ * },
743
+ * "ios": {
744
+ * "osVer": "12.0",
745
+ * "uniVer": "3.0.0",
746
+ * "unixVer": "x"
747
+ * },
748
+ * "harmony": {
749
+ * "osVer": "x",
750
+ * "uniVer": "x",
751
+ * "unixVer": "x"
752
+ * }
753
+ * },
754
+ * "web": {
755
+ * "uniVer": "x",
756
+ * "unixVer": "x"
757
+ * }
758
+ * }
759
+ */
760
+ univerifyStyle?: UniverifyStyle | null,
761
+ /**
762
+ * 微信登录仅请求授权认证
763
+ *
764
+ * @uniPlatform {
765
+ * "app": {
766
+ * "android": {
767
+ * "osVer": "5.0",
768
+ * "uniVer": "3.2.6",
769
+ * "unixVer": "x"
770
+ * },
771
+ * "ios": {
772
+ * "osVer": "12.0",
773
+ * "uniVer": "3.2.6",
774
+ * "unixVer": "x"
775
+ * },
776
+ * "harmony": {
777
+ * "osVer": "x",
778
+ * "uniVer": "x",
779
+ * "unixVer": "x"
780
+ * }
781
+ * },
782
+ * "web": {
783
+ * "uniVer": "x",
784
+ * "unixVer": "x"
785
+ * }
786
+ * }
787
+ */
788
+ onlyAuthorize?: boolean | null,
789
+ /**
790
+ * 接口调用成功的回调函数
791
+ * @uniPlatform {
792
+ * "mp": {
793
+ * "weixin": {
794
+ * "hostVer": "√",
795
+ * "uniVer": "√",
796
+ * "unixVer": "4.41"
797
+ * },
798
+ * "alipay": {
799
+ * "hostVer": "-",
800
+ * "uniVer": "-",
801
+ * "unixVer": "-"
802
+ * },
803
+ * "baidu": {
804
+ * "hostVer": "-",
805
+ * "uniVer": "-",
806
+ * "unixVer": "-"
807
+ * },
808
+ * "toutiao": {
809
+ * "hostVer": "-",
810
+ * "uniVer": "-",
811
+ * "unixVer": "-"
812
+ * },
813
+ * "lark": {
814
+ * "hostVer": "-",
815
+ * "uniVer": "-",
816
+ * "unixVer": "-"
817
+ * },
818
+ * "qq": {
819
+ * "hostVer": "-",
820
+ * "uniVer": "-",
821
+ * "unixVer": "-"
822
+ * },
823
+ * "kuaishou": {
824
+ * "hostVer": "-",
825
+ * "uniVer": "-",
826
+ * "unixVer": "-"
827
+ * },
828
+ * "jd": {
829
+ * "hostVer": "-",
830
+ * "uniVer": "-",
831
+ * "unixVer": "-"
832
+ * }
833
+ * }
834
+ * }
835
+ */
836
+ success?: LoginSuccessCallback | null,
837
+ /**
838
+ * 接口调用失败的回调函数
839
+ * @uniPlatform {
840
+ * "mp": {
841
+ * "weixin": {
842
+ * "hostVer": "√",
843
+ * "uniVer": "√",
844
+ * "unixVer": "4.41"
845
+ * },
846
+ * "alipay": {
847
+ * "hostVer": "-",
848
+ * "uniVer": "-",
849
+ * "unixVer": "-"
850
+ * },
851
+ * "baidu": {
852
+ * "hostVer": "-",
853
+ * "uniVer": "-",
854
+ * "unixVer": "-"
855
+ * },
856
+ * "toutiao": {
857
+ * "hostVer": "-",
858
+ * "uniVer": "-",
859
+ * "unixVer": "-"
860
+ * },
861
+ * "lark": {
862
+ * "hostVer": "-",
863
+ * "uniVer": "-",
864
+ * "unixVer": "-"
865
+ * },
866
+ * "qq": {
867
+ * "hostVer": "-",
868
+ * "uniVer": "-",
869
+ * "unixVer": "-"
870
+ * },
871
+ * "kuaishou": {
872
+ * "hostVer": "-",
873
+ * "uniVer": "-",
874
+ * "unixVer": "-"
875
+ * },
876
+ * "jd": {
877
+ * "hostVer": "-",
878
+ * "uniVer": "-",
879
+ * "unixVer": "-"
880
+ * }
881
+ * }
882
+ * }
883
+ */
884
+ fail?: LoginFailCallback | null,
885
+ /**
886
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
887
+ * @uniPlatform {
888
+ * "mp": {
889
+ * "weixin": {
890
+ * "hostVer": "√",
891
+ * "uniVer": "√",
892
+ * "unixVer": "4.41"
893
+ * },
894
+ * "alipay": {
895
+ * "hostVer": "-",
896
+ * "uniVer": "-",
897
+ * "unixVer": "-"
898
+ * },
899
+ * "baidu": {
900
+ * "hostVer": "-",
901
+ * "uniVer": "-",
902
+ * "unixVer": "-"
903
+ * },
904
+ * "toutiao": {
905
+ * "hostVer": "-",
906
+ * "uniVer": "-",
907
+ * "unixVer": "-"
908
+ * },
909
+ * "lark": {
910
+ * "hostVer": "-",
911
+ * "uniVer": "-",
912
+ * "unixVer": "-"
913
+ * },
914
+ * "qq": {
915
+ * "hostVer": "-",
916
+ * "uniVer": "-",
917
+ * "unixVer": "-"
918
+ * },
919
+ * "kuaishou": {
920
+ * "hostVer": "-",
921
+ * "uniVer": "-",
922
+ * "unixVer": "-"
923
+ * },
924
+ * "jd": {
925
+ * "hostVer": "-",
926
+ * "uniVer": "-",
927
+ * "unixVer": "-"
928
+ * }
929
+ * }
930
+ * }
931
+ */
932
+ complete?: LoginCompleteCallback | null
933
+ };
934
+
935
+ export type UniverifyIconStyles = {
936
+ /**
937
+ * 图标地址
938
+ *
939
+ * 仅支持本地路径,默认为应用图标。
940
+ */
941
+ path: string,
942
+ /**
943
+ * 图标宽度
944
+ *
945
+ * 格式为“XXpx",默认值为"60px"。
946
+ */
947
+ width?: string | null,
948
+ /**
949
+ * 图标高度
950
+ *
951
+ * 格式为“XXpx",默认值为"60px"。
952
+ */
953
+ height?: string | null
954
+ };
955
+ export type UniverifyPhoneNumStyles = {
956
+ /**
957
+ * 字体颜色
958
+ *
959
+ * 格式为"#RRGGBB",默认值为"#000000"。
960
+ */
961
+ color?: string | null,
962
+ /**
963
+ * 字体大小
964
+ *
965
+ * 格式为“XXpx",默认值为"18px"。注意:字体加粗显示。
966
+ */
967
+ fontSize?: string | null
968
+ };
969
+ export type UniverifySloganStyles = {
970
+ /**
971
+ * 字体颜色
972
+ *
973
+ * 格式为"#RRGGBB",默认值为"#8a8b90"。
974
+ */
975
+ color?: string | null,
976
+ /**
977
+ * 字体大小
978
+ *
979
+ * 格式为“XXpx",默认值为"12px"。
980
+ */
981
+ fontSize?: string | null
982
+ };
983
+ export type UniverifyAuthButtonStyles = {
984
+ /**
985
+ * 正常状态按钮颜色
986
+ *
987
+ * 格式为"#RRGGBB",默认值为"#3479f5"。
988
+ */
989
+ normalColor?: string | null,
990
+ /**
991
+ * 按下状态按钮颜色
992
+ *
993
+ * 格式为"#RRGGBB",默认值为"#2861c5"。
994
+ */
995
+ highlightColor?: string | null,
996
+ /**
997
+ * 不可点击状态按钮颜色
998
+ *
999
+ * 格式为"#RRGGBB",默认值为"#73aaf5"。 注意:仅iOS平台支持。
1000
+ */
1001
+ disabledColor?: string | null,
1002
+ /**
1003
+ * 按钮宽度
1004
+ *
1005
+ * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
1006
+ */
1007
+ width?: string | null,
1008
+ /**
1009
+ * 按钮高度
1010
+ *
1011
+ * 格式为“XXpx",默认值为"94px"。
1012
+ */
1013
+ height?: string | null,
1014
+ /**
1015
+ * 按钮上文字颜色
1016
+ *
1017
+ * 格式为"#RRGGBB",默认值为"#ffffff"。
1018
+ */
1019
+ textColor?: string | null,
1020
+ /**
1021
+ * 按钮上文字内容
1022
+ *
1023
+ * 默认值为"本机号码一键登录"。
1024
+ */
1025
+ title?: string | null,
1026
+ /**
1027
+ * 授权按钮圆角
1028
+ *
1029
+ * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
1030
+ */
1031
+ borderRadius?: string | null
1032
+ };
1033
+ export type UniverifyOtherButtonStyles = {
1034
+ /**
1035
+ * 是否显示其它按钮
1036
+ *
1037
+ * 可取值: true - 显示其它按钮;false - 不显示其它按钮。 默认值为true。
1038
+ * @type boolean
1039
+ */
1040
+ visible?: boolean | null,
1041
+ /**
1042
+ * 正常状态按钮颜色
1043
+ *
1044
+ * 格式为"#RRGGBB",默认值为"#f8f8f8"。
1045
+ */
1046
+ normalColor?: string | null,
1047
+ /**
1048
+ * 按下状态按钮颜色
1049
+ *
1050
+ * 格式为"#RRGGBB",默认值为"#dedede"。
1051
+ */
1052
+ highlightColor?: string | null,
1053
+ /**
1054
+ * 按钮宽度
1055
+ *
1056
+ * 格式为“XXpx",默认值为自适应,距离屏幕左右"32px"。
1057
+ */
1058
+ width?: string | null,
1059
+ /**
1060
+ * 按钮高度
1061
+ *
1062
+ * 格式为“XXpx",默认值为"94px"。
1063
+ */
1064
+ height?: string | null,
1065
+ /**
1066
+ * 按钮上文字颜色
1067
+ *
1068
+ * 格式为"#RRGGBB",默认值为"#000000"。
1069
+ */
1070
+ textColor?: string | null,
1071
+ /**
1072
+ * 按钮上文字内容
1073
+ *
1074
+ * 默认值为"本机号码一键登录"。
1075
+ */
1076
+ title?: string | null,
1077
+ /**
1078
+ * 按钮边框宽度
1079
+ *
1080
+ * 格式为“XXpx",默认值为"1px"。 注意:仅iOS平台支持。
1081
+ */
1082
+ borderWidth?: string | null,
1083
+ /**
1084
+ * 按钮边框颜色
1085
+ *
1086
+ * 格式为"#RRGGBB",默认值为"#c5c5c5"。 注意:仅iOS平台支持。
1087
+ */
1088
+ borderColor?: string | null,
1089
+ /**
1090
+ * 其他登录按钮圆角
1091
+ *
1092
+ * 格式为“XXpx",默认值:"24px" (按钮高度的一半)
1093
+ */
1094
+ borderRadius?: string | null
1095
+ };
1096
+ export type UniverifyPrivacyItemStyles = {
1097
+ /**
1098
+ * 链接地址
1099
+ *
1100
+ * http/https开头的协议链接地址。
1101
+ */
1102
+ url: string,
1103
+ /**
1104
+ * 协议链接文字
1105
+ */
1106
+ title: string
1107
+ };
1108
+ export type UniverifyPrivacyTermsStyles = {
1109
+ /**
1110
+ * 默认是否勾选同意协议选择框
1111
+ *
1112
+ * ture表示勾选,false表示不勾选。默认值为true。
1113
+ * HBuilderX3.1.0+版本新增支持。
1114
+ * @type boolean
1115
+ */
1116
+ defaultCheckBoxState?: boolean | null,
1117
+ /**
1118
+ * 普通文字颜色
1119
+ *
1120
+ * 格式为"#RRGGBB",默认值为"#8a8b90"。
1121
+ */
1122
+ textColor?: string | null,
1123
+ /**
1124
+ * 协议链接文字颜色
1125
+ *
1126
+ * 格式为"#RRGGBB",默认值为"#1d4788"。
1127
+ */
1128
+ termsColor?: string | null,
1129
+ /**
1130
+ * 服务协议前文本内容
1131
+ *
1132
+ * 默认值为"我已阅读并同意"。
1133
+ */
1134
+ prefix?: string | null,
1135
+ /**
1136
+ * 服务协议后文本内容
1137
+ *
1138
+ * 默认值为"并使用本机号码登录"。
1139
+ */
1140
+ suffix?: string | null,
1141
+ /**
1142
+ * 字体大小
1143
+ *
1144
+ * 格式为“XXpx",默认值为"12px"。
1145
+ */
1146
+ fontSize?: string | null,
1147
+ /**
1148
+ * 服务协议
1149
+ *
1150
+ * 自定义服务协议,可设置使用手机号码登录的协议,最多可设置两个协议。 注意:运营商的服务协议链接会自动添加到自定义服务协议之前。
1151
+ */
1152
+ privacyItems?: (UniverifyPrivacyItemStyles[]) | null
1153
+ };
1154
+ export type UniVerifyButtonListItem = {
1155
+ /**
1156
+ * 该按钮标识,会原样返回。
1157
+ */
1158
+ provider: string,
1159
+ /**
1160
+ * 图片路径
1161
+ *
1162
+ * 仅支持本地图片
1163
+ */
1164
+ iconPath: string
1165
+ };
1166
+ export type UniVerifyButtonsStyles = {
1167
+ /**
1168
+ * 自定义登录按钮图标宽度
1169
+ *
1170
+ * 单位为px,默认值为45px。
1171
+ * 按指定宽度缩放,高度等比例缩放。
1172
+ */
1173
+ iconWidth?: string | null,
1174
+ /**
1175
+ * 自定义登录按钮列表
1176
+ */
1177
+ list: UniVerifyButtonListItem[]
1178
+ };
1179
+ export type UniverifyStyle = {
1180
+ /**
1181
+ * 是否全屏模式。
1182
+ *
1183
+ * true表示全屏模式,false表示非全屏模式,默认值为false。
1184
+ * @type boolean
1185
+ */
1186
+ fullScreen?: boolean | null,
1187
+ /**
1188
+ * 授权界面背景颜色。
1189
+ *
1190
+ * 格式为"#RRGGBB",默认值为"#FFFFF"。
1191
+ */
1192
+ backgroundColor?: string | null,
1193
+ /**
1194
+ * 背景图片
1195
+ */
1196
+ backgroundImage?: string | null,
1197
+ /**
1198
+ * 授权界面图标样式。
1199
+ *
1200
+ * 可设置自定义图标,默认为应用图标。
1201
+ */
1202
+ icon?: UniverifyIconStyles | null,
1203
+ /**
1204
+ * 授权界面电话号码样式
1205
+ *
1206
+ * 可设置自定义电话号码文字颜色、大小等。
1207
+ */
1208
+ phoneNum?: UniverifyPhoneNumStyles | null,
1209
+ /**
1210
+ * 授权界面服务说明样式
1211
+ *
1212
+ * 可设置自定义服务说明文字颜色、大小等。
1213
+ */
1214
+ slogan?: UniverifySloganStyles | null,
1215
+ /**
1216
+ * 授权界面其他登录按钮样式
1217
+ *
1218
+ * 可设置自定义其他登录按钮背景颜色、文本内容、大小等。
1219
+ */
1220
+ authButton?: UniverifyAuthButtonStyles | null,
1221
+ /**
1222
+ * 支付宝小程序登录成功的授权 scope
1223
+ */
1224
+ otherLoginButton?: UniverifyOtherButtonStyles | null,
1225
+ /**
1226
+ * 授权界面服务协议样式
1227
+ *
1228
+ * 自定义设置服务器协议文字颜色、文本内容,添加自定义服务协议链接等。
1229
+ */
1230
+ privacyTerms?: UniverifyPrivacyTermsStyles | null,
1231
+ /**
1232
+ * 自定义登录按钮列表样式
1233
+ *
1234
+ * 自定义设置更多登录按钮列表,如其它三方登录等。
1235
+ * 注意:HBuilderX3.1.14+版本支持。
1236
+ */
1237
+ buttons?: UniVerifyButtonsStyles | null
1238
+ };
1239
+ export type GetUserInfo = (options: GetUserInfoOptions) => void;
1240
+ export type UserInfo = {
1241
+ /**
1242
+ * 用户昵称
1243
+ * @uniPlatform {
1244
+ * "mp": {
1245
+ * "weixin": {
1246
+ * "hostVer": "√",
1247
+ * "uniVer": "√",
1248
+ * "unixVer": "4.41"
1249
+ * },
1250
+ * "alipay": {
1251
+ * "hostVer": "-",
1252
+ * "uniVer": "-",
1253
+ * "unixVer": "-"
1254
+ * },
1255
+ * "baidu": {
1256
+ * "hostVer": "-",
1257
+ * "uniVer": "-",
1258
+ * "unixVer": "-"
1259
+ * },
1260
+ * "toutiao": {
1261
+ * "hostVer": "-",
1262
+ * "uniVer": "-",
1263
+ * "unixVer": "-"
1264
+ * },
1265
+ * "lark": {
1266
+ * "hostVer": "-",
1267
+ * "uniVer": "-",
1268
+ * "unixVer": "-"
1269
+ * },
1270
+ * "qq": {
1271
+ * "hostVer": "-",
1272
+ * "uniVer": "-",
1273
+ * "unixVer": "-"
1274
+ * },
1275
+ * "kuaishou": {
1276
+ * "hostVer": "-",
1277
+ * "uniVer": "-",
1278
+ * "unixVer": "-"
1279
+ * },
1280
+ * "jd": {
1281
+ * "hostVer": "-",
1282
+ * "uniVer": "-",
1283
+ * "unixVer": "-"
1284
+ * }
1285
+ * }
1286
+ * }
1287
+ */
1288
+ nickName: string,
1289
+ /**
1290
+ * 该服务商唯一用户标识
1291
+ * @uniPlatform {
1292
+ * "app": {
1293
+ * "android": {
1294
+ * "osVer": "5.0",
1295
+ * "uniVer": "√",
1296
+ * "unixVer": "x"
1297
+ * },
1298
+ * "ios": {
1299
+ * "osVer": "12.0",
1300
+ * "uniVer": "√",
1301
+ * "unixVer": "x"
1302
+ * },
1303
+ * "harmony": {
1304
+ * "osVer": "3.0",
1305
+ * "uniVer": "4.27",
1306
+ * "unixVer": "4.61"
1307
+ * }
1308
+ * },
1309
+ * "mp": {
1310
+ * "weixin": {
1311
+ * "hostVer": "x",
1312
+ * "uniVer": "x",
1313
+ * "unixVer": "x"
1314
+ * },
1315
+ * "alipay": {
1316
+ * "hostVer": "x",
1317
+ * "uniVer": "x",
1318
+ * "unixVer": "x"
1319
+ * },
1320
+ * "baidu": {
1321
+ * "hostVer": "x",
1322
+ * "uniVer": "x",
1323
+ * "unixVer": "x"
1324
+ * },
1325
+ * "toutiao": {
1326
+ * "hostVer": "x",
1327
+ * "uniVer": "x",
1328
+ * "unixVer": "x"
1329
+ * },
1330
+ * "lark": {
1331
+ * "hostVer": "x",
1332
+ * "uniVer": "x",
1333
+ * "unixVer": "x"
1334
+ * },
1335
+ * "qq": {
1336
+ * "hostVer": "x",
1337
+ * "uniVer": "x",
1338
+ * "unixVer": "x"
1339
+ * },
1340
+ * "kuaishou": {
1341
+ * "hostVer": "x",
1342
+ * "uniVer": "x",
1343
+ * "unixVer": "x"
1344
+ * },
1345
+ * "jd": {
1346
+ * "hostVer": "x",
1347
+ * "uniVer": "x",
1348
+ * "unixVer": "x"
1349
+ * },
1350
+ * "360": {
1351
+ * "hostVer": "x",
1352
+ * "uniVer": "x",
1353
+ * "unixVer": "x"
1354
+ * }
1355
+ * },
1356
+ * "quickapp": {
1357
+ * "uniVer": "x",
1358
+ * "unixVer": "x"
1359
+ * },
1360
+ * "web": {
1361
+ * "uniVer": "x",
1362
+ * "unixVer": "x"
1363
+ * }
1364
+ * }
1365
+ */
1366
+ openId?: string | null,
1367
+ /**
1368
+ * 用户头像
1369
+ * @uniPlatform {
1370
+ * "mp": {
1371
+ * "weixin": {
1372
+ * "hostVer": "√",
1373
+ * "uniVer": "√",
1374
+ * "unixVer": "4.41"
1375
+ * },
1376
+ * "alipay": {
1377
+ * "hostVer": "-",
1378
+ * "uniVer": "-",
1379
+ * "unixVer": "-"
1380
+ * },
1381
+ * "baidu": {
1382
+ * "hostVer": "-",
1383
+ * "uniVer": "-",
1384
+ * "unixVer": "-"
1385
+ * },
1386
+ * "toutiao": {
1387
+ * "hostVer": "-",
1388
+ * "uniVer": "-",
1389
+ * "unixVer": "-"
1390
+ * },
1391
+ * "lark": {
1392
+ * "hostVer": "-",
1393
+ * "uniVer": "-",
1394
+ * "unixVer": "-"
1395
+ * },
1396
+ * "qq": {
1397
+ * "hostVer": "-",
1398
+ * "uniVer": "-",
1399
+ * "unixVer": "-"
1400
+ * },
1401
+ * "kuaishou": {
1402
+ * "hostVer": "-",
1403
+ * "uniVer": "-",
1404
+ * "unixVer": "-"
1405
+ * },
1406
+ * "jd": {
1407
+ * "hostVer": "-",
1408
+ * "uniVer": "-",
1409
+ * "unixVer": "-"
1410
+ * }
1411
+ * }
1412
+ * }
1413
+ */
1414
+ avatarUrl: string
1415
+ /**
1416
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1417
+ *
1418
+ * @uniPlatform {
1419
+ * "mp": {
1420
+ * "weixin": {
1421
+ * "hostVer": "√",
1422
+ * "uniVer": "√",
1423
+ * "unixVer": "4.41"
1424
+ * },
1425
+ * "alipay": {
1426
+ * "hostVer": "-",
1427
+ * "uniVer": "-",
1428
+ * "unixVer": "-"
1429
+ * },
1430
+ * "baidu": {
1431
+ * "hostVer": "-",
1432
+ * "uniVer": "-",
1433
+ * "unixVer": "-"
1434
+ * },
1435
+ * "toutiao": {
1436
+ * "hostVer": "-",
1437
+ * "uniVer": "-",
1438
+ * "unixVer": "-"
1439
+ * },
1440
+ * "lark": {
1441
+ * "hostVer": "-",
1442
+ * "uniVer": "-",
1443
+ * "unixVer": "-"
1444
+ * },
1445
+ * "qq": {
1446
+ * "hostVer": "-",
1447
+ * "uniVer": "-",
1448
+ * "unixVer": "-"
1449
+ * },
1450
+ * "kuaishou": {
1451
+ * "hostVer": "-",
1452
+ * "uniVer": "-",
1453
+ * "unixVer": "-"
1454
+ * },
1455
+ * "jd": {
1456
+ * "hostVer": "-",
1457
+ * "uniVer": "-",
1458
+ * "unixVer": "-"
1459
+ * }
1460
+ * }
1461
+ * }
1462
+ */
1463
+ city?: string | null;
1464
+ /**
1465
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1466
+ *
1467
+ * @uniPlatform {
1468
+ * "mp": {
1469
+ * "weixin": {
1470
+ * "hostVer": "√",
1471
+ * "uniVer": "√",
1472
+ * "unixVer": "4.41"
1473
+ * },
1474
+ * "alipay": {
1475
+ * "hostVer": "-",
1476
+ * "uniVer": "-",
1477
+ * "unixVer": "-"
1478
+ * },
1479
+ * "baidu": {
1480
+ * "hostVer": "-",
1481
+ * "uniVer": "-",
1482
+ * "unixVer": "-"
1483
+ * },
1484
+ * "toutiao": {
1485
+ * "hostVer": "-",
1486
+ * "uniVer": "-",
1487
+ * "unixVer": "-"
1488
+ * },
1489
+ * "lark": {
1490
+ * "hostVer": "-",
1491
+ * "uniVer": "-",
1492
+ * "unixVer": "-"
1493
+ * },
1494
+ * "qq": {
1495
+ * "hostVer": "-",
1496
+ * "uniVer": "-",
1497
+ * "unixVer": "-"
1498
+ * },
1499
+ * "kuaishou": {
1500
+ * "hostVer": "-",
1501
+ * "uniVer": "-",
1502
+ * "unixVer": "-"
1503
+ * },
1504
+ * "jd": {
1505
+ * "hostVer": "-",
1506
+ * "uniVer": "-",
1507
+ * "unixVer": "-"
1508
+ * }
1509
+ * }
1510
+ * }
1511
+ */
1512
+ country?: string | null;
1513
+ /**
1514
+ * 可选值:
1515
+ * - 0: 未知;
1516
+ * - 1: 男性;
1517
+ * - 2: 女性;
1518
+ *
1519
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1520
+ *
1521
+ * @uniPlatform {
1522
+ * "mp": {
1523
+ * "weixin": {
1524
+ * "hostVer": "√",
1525
+ * "uniVer": "√",
1526
+ * "unixVer": "4.41"
1527
+ * },
1528
+ * "alipay": {
1529
+ * "hostVer": "-",
1530
+ * "uniVer": "-",
1531
+ * "unixVer": "-"
1532
+ * },
1533
+ * "baidu": {
1534
+ * "hostVer": "-",
1535
+ * "uniVer": "-",
1536
+ * "unixVer": "-"
1537
+ * },
1538
+ * "toutiao": {
1539
+ * "hostVer": "-",
1540
+ * "uniVer": "-",
1541
+ * "unixVer": "-"
1542
+ * },
1543
+ * "lark": {
1544
+ * "hostVer": "-",
1545
+ * "uniVer": "-",
1546
+ * "unixVer": "-"
1547
+ * },
1548
+ * "qq": {
1549
+ * "hostVer": "-",
1550
+ * "uniVer": "-",
1551
+ * "unixVer": "-"
1552
+ * },
1553
+ * "kuaishou": {
1554
+ * "hostVer": "-",
1555
+ * "uniVer": "-",
1556
+ * "unixVer": "-"
1557
+ * },
1558
+ * "jd": {
1559
+ * "hostVer": "-",
1560
+ * "uniVer": "-",
1561
+ * "unixVer": "-"
1562
+ * }
1563
+ * }
1564
+ * }
1565
+ */
1566
+ gender?: 0 | 1 | 2 | null;
1567
+ /**
1568
+ * 可选值:
1569
+ * - 'en': 英文;
1570
+ * - 'zh_CN': 简体中文;
1571
+ * - 'zh_TW': 繁体中文;
1572
+ *
1573
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1574
+ *
1575
+ * @uniPlatform {
1576
+ * "mp": {
1577
+ * "weixin": {
1578
+ * "hostVer": "√",
1579
+ * "uniVer": "√",
1580
+ * "unixVer": "4.41"
1581
+ * },
1582
+ * "alipay": {
1583
+ * "hostVer": "-",
1584
+ * "uniVer": "-",
1585
+ * "unixVer": "-"
1586
+ * },
1587
+ * "baidu": {
1588
+ * "hostVer": "-",
1589
+ * "uniVer": "-",
1590
+ * "unixVer": "-"
1591
+ * },
1592
+ * "toutiao": {
1593
+ * "hostVer": "-",
1594
+ * "uniVer": "-",
1595
+ * "unixVer": "-"
1596
+ * },
1597
+ * "lark": {
1598
+ * "hostVer": "-",
1599
+ * "uniVer": "-",
1600
+ * "unixVer": "-"
1601
+ * },
1602
+ * "qq": {
1603
+ * "hostVer": "-",
1604
+ * "uniVer": "-",
1605
+ * "unixVer": "-"
1606
+ * },
1607
+ * "kuaishou": {
1608
+ * "hostVer": "-",
1609
+ * "uniVer": "-",
1610
+ * "unixVer": "-"
1611
+ * },
1612
+ * "jd": {
1613
+ * "hostVer": "-",
1614
+ * "uniVer": "-",
1615
+ * "unixVer": "-"
1616
+ * }
1617
+ * }
1618
+ * }
1619
+ */
1620
+ language?: "en" | "zh_CN" | "zh_TW" | null;
1621
+ /**
1622
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1623
+ *
1624
+ * @uniPlatform {
1625
+ * "mp": {
1626
+ * "weixin": {
1627
+ * "hostVer": "√",
1628
+ * "uniVer": "√",
1629
+ * "unixVer": "4.41"
1630
+ * },
1631
+ * "alipay": {
1632
+ * "hostVer": "-",
1633
+ * "uniVer": "-",
1634
+ * "unixVer": "-"
1635
+ * },
1636
+ * "baidu": {
1637
+ * "hostVer": "-",
1638
+ * "uniVer": "-",
1639
+ * "unixVer": "-"
1640
+ * },
1641
+ * "toutiao": {
1642
+ * "hostVer": "-",
1643
+ * "uniVer": "-",
1644
+ * "unixVer": "-"
1645
+ * },
1646
+ * "lark": {
1647
+ * "hostVer": "-",
1648
+ * "uniVer": "-",
1649
+ * "unixVer": "-"
1650
+ * },
1651
+ * "qq": {
1652
+ * "hostVer": "-",
1653
+ * "uniVer": "-",
1654
+ * "unixVer": "-"
1655
+ * },
1656
+ * "kuaishou": {
1657
+ * "hostVer": "-",
1658
+ * "uniVer": "-",
1659
+ * "unixVer": "-"
1660
+ * },
1661
+ * "jd": {
1662
+ * "hostVer": "-",
1663
+ * "uniVer": "-",
1664
+ * "unixVer": "-"
1665
+ * }
1666
+ * }
1667
+ * }
1668
+ */
1669
+ province?: string | null;
1670
+ };
1671
+ export type GetUserInfoSuccess = {
1672
+ /**
1673
+ * 用户信息对象,不包含 openid 等敏感信息
1674
+ * @uniPlatform {
1675
+ * "app": {
1676
+ * "android": {
1677
+ * "osVer": "5.0",
1678
+ * "uniVer": "√",
1679
+ * "unixVer": "x"
1680
+ * },
1681
+ * "ios": {
1682
+ * "osVer": "12.0",
1683
+ * "uniVer": "√",
1684
+ * "unixVer": "x"
1685
+ * },
1686
+ * "harmony": {
1687
+ * "osVer": "3.0",
1688
+ * "uniVer": "4.27",
1689
+ * "unixVer": "4.61"
1690
+ * }
1691
+ * },
1692
+ * "mp": {
1693
+ * "weixin": {
1694
+ * "hostVer": "√",
1695
+ * "uniVer": "√",
1696
+ * "unixVer": "4.41"
1697
+ * },
1698
+ * "alipay": {
1699
+ * "hostVer": "√",
1700
+ * "uniVer": "√",
1701
+ * "unixVer": "x"
1702
+ * },
1703
+ * "baidu": {
1704
+ * "hostVer": "√",
1705
+ * "uniVer": "√",
1706
+ * "unixVer": "x"
1707
+ * },
1708
+ * "toutiao": {
1709
+ * "hostVer": "√",
1710
+ * "uniVer": "√",
1711
+ * "unixVer": "x"
1712
+ * },
1713
+ * "lark": {
1714
+ * "hostVer": "√",
1715
+ * "uniVer": "√",
1716
+ * "unixVer": "x"
1717
+ * },
1718
+ * "qq": {
1719
+ * "hostVer": "√",
1720
+ * "uniVer": "√",
1721
+ * "unixVer": "x"
1722
+ * },
1723
+ * "kuaishou": {
1724
+ * "hostVer": "√",
1725
+ * "uniVer": "√",
1726
+ * "unixVer": "x"
1727
+ * },
1728
+ * "jd": {
1729
+ * "hostVer": "√",
1730
+ * "uniVer": "√",
1731
+ * "unixVer": "x"
1732
+ * },
1733
+ * "360": {
1734
+ * "hostVer": "x",
1735
+ * "uniVer": "x",
1736
+ * "unixVer": "x"
1737
+ * }
1738
+ * },
1739
+ * "quickapp": {
1740
+ * "uniVer": "x",
1741
+ * "unixVer": "x"
1742
+ * },
1743
+ * "web": {
1744
+ * "uniVer": "x",
1745
+ * "unixVer": "x"
1746
+ * }
1747
+ * }
1748
+ */
1749
+ userInfo: UserInfo,
1750
+ /**
1751
+ * 不包括敏感信息的原始数据字符串,用于计算签名。
1752
+ * @uniPlatform {
1753
+ * "app": {
1754
+ * "android": {
1755
+ * "osVer": "5.0",
1756
+ * "uniVer": "x",
1757
+ * "unixVer": "x"
1758
+ * },
1759
+ * "ios": {
1760
+ * "osVer": "12.0",
1761
+ * "uniVer": "x",
1762
+ * "unixVer": "x"
1763
+ * },
1764
+ * "harmony": {
1765
+ * "osVer": "3.0",
1766
+ * "uniVer": "x",
1767
+ * "unixVer": "x"
1768
+ * }
1769
+ * },
1770
+ * "mp": {
1771
+ * "weixin": {
1772
+ * "hostVer": "√",
1773
+ * "uniVer": "√",
1774
+ * "unixVer": "4.41"
1775
+ * },
1776
+ * "alipay": {
1777
+ * "hostVer": "x",
1778
+ * "uniVer": "x",
1779
+ * "unixVer": "x"
1780
+ * },
1781
+ * "baidu": {
1782
+ * "hostVer": "x",
1783
+ * "uniVer": "x",
1784
+ * "unixVer": "x"
1785
+ * },
1786
+ * "toutiao": {
1787
+ * "hostVer": "√",
1788
+ * "uniVer": "√",
1789
+ * "unixVer": "x"
1790
+ * },
1791
+ * "lark": {
1792
+ * "hostVer": "√",
1793
+ * "uniVer": "√",
1794
+ * "unixVer": "x"
1795
+ * },
1796
+ * "qq": {
1797
+ * "hostVer": "x",
1798
+ * "uniVer": "x",
1799
+ * "unixVer": "x"
1800
+ * },
1801
+ * "kuaishou": {
1802
+ * "hostVer": "√",
1803
+ * "uniVer": "√",
1804
+ * "unixVer": "x"
1805
+ * },
1806
+ * "jd": {
1807
+ * "hostVer": "√",
1808
+ * "uniVer": "√",
1809
+ * "unixVer": "x"
1810
+ * },
1811
+ * "360": {
1812
+ * "hostVer": "x",
1813
+ * "uniVer": "x",
1814
+ * "unixVer": "x"
1815
+ * }
1816
+ * },
1817
+ * "quickapp": {
1818
+ * "uniVer": "x",
1819
+ * "unixVer": "x"
1820
+ * },
1821
+ * "web": {
1822
+ * "uniVer": "x",
1823
+ * "unixVer": "x"
1824
+ * }
1825
+ * }
1826
+ */
1827
+ rawData?: string | null,
1828
+ /**
1829
+ * 使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息,仅微信小程序生效。
1830
+ * @uniPlatform {
1831
+ * "app": {
1832
+ * "android": {
1833
+ * "osVer": "5.0",
1834
+ * "uniVer": "x",
1835
+ * "unixVer": "x"
1836
+ * },
1837
+ * "ios": {
1838
+ * "osVer": "12.0",
1839
+ * "uniVer": "x",
1840
+ * "unixVer": "x"
1841
+ * },
1842
+ * "harmony": {
1843
+ * "osVer": "3.0",
1844
+ * "uniVer": "x",
1845
+ * "unixVer": "x"
1846
+ * }
1847
+ * },
1848
+ * "mp": {
1849
+ * "weixin": {
1850
+ * "hostVer": "√",
1851
+ * "uniVer": "√",
1852
+ * "unixVer": "4.41"
1853
+ * },
1854
+ * "alipay": {
1855
+ * "hostVer": "x",
1856
+ * "uniVer": "x",
1857
+ * "unixVer": "x"
1858
+ * },
1859
+ * "baidu": {
1860
+ * "hostVer": "x",
1861
+ * "uniVer": "x",
1862
+ * "unixVer": "x"
1863
+ * },
1864
+ * "toutiao": {
1865
+ * "hostVer": "√",
1866
+ * "uniVer": "√",
1867
+ * "unixVer": "x"
1868
+ * },
1869
+ * "lark": {
1870
+ * "hostVer": "√",
1871
+ * "uniVer": "√",
1872
+ * "unixVer": "x"
1873
+ * },
1874
+ * "qq": {
1875
+ * "hostVer": "x",
1876
+ * "uniVer": "x",
1877
+ * "unixVer": "x"
1878
+ * },
1879
+ * "kuaishou": {
1880
+ * "hostVer": "√",
1881
+ * "uniVer": "√",
1882
+ * "unixVer": "x"
1883
+ * },
1884
+ * "jd": {
1885
+ * "hostVer": "√",
1886
+ * "uniVer": "√",
1887
+ * "unixVer": "x"
1888
+ * },
1889
+ * "360": {
1890
+ * "hostVer": "x",
1891
+ * "uniVer": "x",
1892
+ * "unixVer": "x"
1893
+ * }
1894
+ * },
1895
+ * "quickapp": {
1896
+ * "uniVer": "x",
1897
+ * "unixVer": "x"
1898
+ * },
1899
+ * "web": {
1900
+ * "uniVer": "x",
1901
+ * "unixVer": "x"
1902
+ * }
1903
+ * }
1904
+ */
1905
+ signature?: string | null,
1906
+ /**
1907
+ * 包括敏感数据在内的完整用户信息的加密数据,详细见加密数据解密算法,仅微信小程序生效。
1908
+ * @uniPlatform {
1909
+ * "app": {
1910
+ * "android": {
1911
+ * "osVer": "5.0",
1912
+ * "uniVer": "x",
1913
+ * "unixVer": "x"
1914
+ * },
1915
+ * "ios": {
1916
+ * "osVer": "12.0",
1917
+ * "uniVer": "x",
1918
+ * "unixVer": "x"
1919
+ * },
1920
+ * "harmony": {
1921
+ * "osVer": "3.0",
1922
+ * "uniVer": "x",
1923
+ * "unixVer": "x"
1924
+ * }
1925
+ * },
1926
+ * "mp": {
1927
+ * "weixin": {
1928
+ * "hostVer": "√",
1929
+ * "uniVer": "√",
1930
+ * "unixVer": "4.41"
1931
+ * },
1932
+ * "alipay": {
1933
+ * "hostVer": "x",
1934
+ * "uniVer": "x",
1935
+ * "unixVer": "x"
1936
+ * },
1937
+ * "baidu": {
1938
+ * "hostVer": "x",
1939
+ * "uniVer": "x",
1940
+ * "unixVer": "x"
1941
+ * },
1942
+ * "toutiao": {
1943
+ * "hostVer": "√",
1944
+ * "uniVer": "√",
1945
+ * "unixVer": "x"
1946
+ * },
1947
+ * "lark": {
1948
+ * "hostVer": "√",
1949
+ * "uniVer": "√",
1950
+ * "unixVer": "x"
1951
+ * },
1952
+ * "qq": {
1953
+ * "hostVer": "x",
1954
+ * "uniVer": "x",
1955
+ * "unixVer": "x"
1956
+ * },
1957
+ * "kuaishou": {
1958
+ * "hostVer": "√",
1959
+ * "uniVer": "√",
1960
+ * "unixVer": "x"
1961
+ * },
1962
+ * "jd": {
1963
+ * "hostVer": "√",
1964
+ * "uniVer": "√",
1965
+ * "unixVer": "x"
1966
+ * },
1967
+ * "360": {
1968
+ * "hostVer": "x",
1969
+ * "uniVer": "x",
1970
+ * "unixVer": "x"
1971
+ * }
1972
+ * },
1973
+ * "quickapp": {
1974
+ * "uniVer": "x",
1975
+ * "unixVer": "x"
1976
+ * },
1977
+ * "web": {
1978
+ * "uniVer": "x",
1979
+ * "unixVer": "x"
1980
+ * }
1981
+ * }
1982
+ */
1983
+ encryptedData?: string | null,
1984
+ /**
1985
+ * 加密算法的初始向量,详细见加密数据解密算法,仅微信小程序生效。
1986
+ * @uniPlatform {
1987
+ * "app": {
1988
+ * "android": {
1989
+ * "osVer": "5.0",
1990
+ * "uniVer": "x",
1991
+ * "unixVer": "x"
1992
+ * },
1993
+ * "ios": {
1994
+ * "osVer": "12.0",
1995
+ * "uniVer": "x",
1996
+ * "unixVer": "x"
1997
+ * },
1998
+ * "harmony": {
1999
+ * "osVer": "3.0",
2000
+ * "uniVer": "x",
2001
+ * "unixVer": "x"
2002
+ * }
2003
+ * },
2004
+ * "mp": {
2005
+ * "weixin": {
2006
+ * "hostVer": "√",
2007
+ * "uniVer": "√",
2008
+ * "unixVer": "4.41"
2009
+ * },
2010
+ * "alipay": {
2011
+ * "hostVer": "x",
2012
+ * "uniVer": "x",
2013
+ * "unixVer": "x"
2014
+ * },
2015
+ * "baidu": {
2016
+ * "hostVer": "x",
2017
+ * "uniVer": "x",
2018
+ * "unixVer": "x"
2019
+ * },
2020
+ * "toutiao": {
2021
+ * "hostVer": "√",
2022
+ * "uniVer": "√",
2023
+ * "unixVer": "x"
2024
+ * },
2025
+ * "lark": {
2026
+ * "hostVer": "√",
2027
+ * "uniVer": "√",
2028
+ * "unixVer": "x"
2029
+ * },
2030
+ * "qq": {
2031
+ * "hostVer": "x",
2032
+ * "uniVer": "x",
2033
+ * "unixVer": "x"
2034
+ * },
2035
+ * "kuaishou": {
2036
+ * "hostVer": "√",
2037
+ * "uniVer": "√",
2038
+ * "unixVer": "x"
2039
+ * },
2040
+ * "jd": {
2041
+ * "hostVer": "√",
2042
+ * "uniVer": "√",
2043
+ * "unixVer": "x"
2044
+ * },
2045
+ * "360": {
2046
+ * "hostVer": "x",
2047
+ * "uniVer": "x",
2048
+ * "unixVer": "x"
2049
+ * }
2050
+ * },
2051
+ * "quickapp": {
2052
+ * "uniVer": "x",
2053
+ * "unixVer": "x"
2054
+ * },
2055
+ * "web": {
2056
+ * "uniVer": "x",
2057
+ * "unixVer": "x"
2058
+ * }
2059
+ * }
2060
+ */
2061
+ iv?: string | null,
2062
+ /**
2063
+ * 描述信息
2064
+ * @uniPlatform {
2065
+ * "mp": {
2066
+ * "weixin": {
2067
+ * "hostVer": "√",
2068
+ * "uniVer": "√",
2069
+ * "unixVer": "4.41"
2070
+ * },
2071
+ * "alipay": {
2072
+ * "hostVer": "-",
2073
+ * "uniVer": "-",
2074
+ * "unixVer": "-"
2075
+ * },
2076
+ * "baidu": {
2077
+ * "hostVer": "-",
2078
+ * "uniVer": "-",
2079
+ * "unixVer": "-"
2080
+ * },
2081
+ * "toutiao": {
2082
+ * "hostVer": "-",
2083
+ * "uniVer": "-",
2084
+ * "unixVer": "-"
2085
+ * },
2086
+ * "lark": {
2087
+ * "hostVer": "-",
2088
+ * "uniVer": "-",
2089
+ * "unixVer": "-"
2090
+ * },
2091
+ * "qq": {
2092
+ * "hostVer": "-",
2093
+ * "uniVer": "-",
2094
+ * "unixVer": "-"
2095
+ * },
2096
+ * "kuaishou": {
2097
+ * "hostVer": "-",
2098
+ * "uniVer": "-",
2099
+ * "unixVer": "-"
2100
+ * },
2101
+ * "jd": {
2102
+ * "hostVer": "-",
2103
+ * "uniVer": "-",
2104
+ * "unixVer": "-"
2105
+ * }
2106
+ * }
2107
+ * }
2108
+ */
2109
+ errMsg: string
2110
+ /**
2111
+ * 需要基础库: `2.7.0`
2112
+ *
2113
+ * 敏感数据对应的云 ID,开通[云开发](https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html)的小程序才会返回,可通过云调用直接获取开放数据,详细见[云调用直接获取开放数据](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html#method-cloud)
2114
+ *
2115
+ * @uniPlatform {
2116
+ * "mp": {
2117
+ * "weixin": {
2118
+ * "hostVer": "2.7.0",
2119
+ * "uniVer": "√",
2120
+ * "unixVer": "4.41"
2121
+ * },
2122
+ * "alipay": {
2123
+ * "hostVer": "-",
2124
+ * "uniVer": "-",
2125
+ * "unixVer": "-"
2126
+ * },
2127
+ * "baidu": {
2128
+ * "hostVer": "-",
2129
+ * "uniVer": "-",
2130
+ * "unixVer": "-"
2131
+ * },
2132
+ * "toutiao": {
2133
+ * "hostVer": "-",
2134
+ * "uniVer": "-",
2135
+ * "unixVer": "-"
2136
+ * },
2137
+ * "lark": {
2138
+ * "hostVer": "-",
2139
+ * "uniVer": "-",
2140
+ * "unixVer": "-"
2141
+ * },
2142
+ * "qq": {
2143
+ * "hostVer": "-",
2144
+ * "uniVer": "-",
2145
+ * "unixVer": "-"
2146
+ * },
2147
+ * "kuaishou": {
2148
+ * "hostVer": "-",
2149
+ * "uniVer": "-",
2150
+ * "unixVer": "-"
2151
+ * },
2152
+ * "jd": {
2153
+ * "hostVer": "-",
2154
+ * "uniVer": "-",
2155
+ * "unixVer": "-"
2156
+ * }
2157
+ * }
2158
+ * }
2159
+ */
2160
+ cloudID?: string | null;
2161
+ };
2162
+ export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
2163
+ export type GetUserInfoFail = IUniError;
2164
+ export type GetUserInfoFailCallback = (result: GetUserInfoFail) => void;
2165
+ export type GetUserInfoComplete = any;
2166
+ export type GetUserInfoCompleteCallback = (result: GetUserInfoComplete) => void;
2167
+ export type GetUserInfoOptions = {
2168
+ /**
2169
+ * 授权登录服务提供商,通过uni.getProvider获取
2170
+ * @uniPlatform {
2171
+ * "app": {
2172
+ * "android": {
2173
+ * "osVer": "5.0",
2174
+ * "uniVer": "√",
2175
+ * "unixVer": "x"
2176
+ * },
2177
+ * "ios": {
2178
+ * "osVer": "12.0",
2179
+ * "uniVer": "√",
2180
+ * "unixVer": "x"
2181
+ * },
2182
+ * "harmony": {
2183
+ * "osVer": "3.0",
2184
+ * "uniVer": "4.27",
2185
+ * "unixVer": "4.61"
2186
+ * }
2187
+ * },
2188
+ * "mp": {
2189
+ * "weixin": {
2190
+ * "hostVer": "x",
2191
+ * "uniVer": "x",
2192
+ * "unixVer": "x"
2193
+ * },
2194
+ * "alipay": {
2195
+ * "hostVer": "x",
2196
+ * "uniVer": "x",
2197
+ * "unixVer": "x"
2198
+ * },
2199
+ * "baidu": {
2200
+ * "hostVer": "x",
2201
+ * "uniVer": "x",
2202
+ * "unixVer": "x"
2203
+ * },
2204
+ * "toutiao": {
2205
+ * "hostVer": "x",
2206
+ * "uniVer": "x",
2207
+ * "unixVer": "x"
2208
+ * },
2209
+ * "lark": {
2210
+ * "hostVer": "x",
2211
+ * "uniVer": "x",
2212
+ * "unixVer": "x"
2213
+ * },
2214
+ * "qq": {
2215
+ * "hostVer": "x",
2216
+ * "uniVer": "x",
2217
+ * "unixVer": "x"
2218
+ * },
2219
+ * "kuaishou": {
2220
+ * "hostVer": "x",
2221
+ * "uniVer": "x",
2222
+ * "unixVer": "x"
2223
+ * },
2224
+ * "jd": {
2225
+ * "hostVer": "x",
2226
+ * "uniVer": "x",
2227
+ * "unixVer": "x"
2228
+ * },
2229
+ * "360": {
2230
+ * "hostVer": "x",
2231
+ * "uniVer": "x",
2232
+ * "unixVer": "x"
2233
+ * }
2234
+ * },
2235
+ * "quickapp": {
2236
+ * "uniVer": "x",
2237
+ * "unixVer": "x"
2238
+ * },
2239
+ * "web": {
2240
+ * "uniVer": "x",
2241
+ * "unixVer": "x"
2242
+ * }
2243
+ * }
2244
+ */
2245
+ provider?:
2246
+ /**
2247
+ * 微信登录
2248
+ */
2249
+ 'weixin' |
2250
+ /**
2251
+ * QQ登录
2252
+ */
2253
+ 'qq' |
2254
+ /**
2255
+ * 新浪微博登录
2256
+ */
2257
+ 'sinaweibo' |
2258
+ /**
2259
+ * 小米登录
2260
+ */
2261
+ 'xiaomi' |
2262
+ /**
2263
+ * Apple登录
2264
+ */
2265
+ 'apple' |
2266
+ /**
2267
+ * 华为 HarmonyOS Next 华为账号登录
2268
+ */
2269
+ 'huawei' | null,
2270
+ /**
2271
+ * 是否带上登录态信息,仅微信小程序生效。
2272
+ * @uniPlatform {
2273
+ * "app": {
2274
+ * "android": {
2275
+ * "osVer": "x",
2276
+ * "uniVer": "x",
2277
+ * "unixVer": "x"
2278
+ * },
2279
+ * "ios": {
2280
+ * "osVer": "x",
2281
+ * "uniVer": "x",
2282
+ * "unixVer": "x"
2283
+ * },
2284
+ * "harmony": {
2285
+ * "osVer": "x",
2286
+ * "uniVer": "x",
2287
+ * "unixVer": "x"
2288
+ * }
2289
+ * },
2290
+ * "mp": {
2291
+ * "weixin": {
2292
+ * "hostVer": "√",
2293
+ * "uniVer": "√",
2294
+ * "unixVer": "4.41"
2295
+ * },
2296
+ * "alipay": {
2297
+ * "hostVer": "x",
2298
+ * "uniVer": "x",
2299
+ * "unixVer": "x"
2300
+ * },
2301
+ * "baidu": {
2302
+ * "hostVer": "x",
2303
+ * "uniVer": "x",
2304
+ * "unixVer": "x"
2305
+ * },
2306
+ * "toutiao": {
2307
+ * "hostVer": "√",
2308
+ * "uniVer": "√",
2309
+ * "unixVer": "x"
2310
+ * },
2311
+ * "lark": {
2312
+ * "hostVer": "√",
2313
+ * "uniVer": "√",
2314
+ * "unixVer": "x"
2315
+ * },
2316
+ * "qq": {
2317
+ * "hostVer": "x",
2318
+ * "uniVer": "x",
2319
+ * "unixVer": "x"
2320
+ * },
2321
+ * "kuaishou": {
2322
+ * "hostVer": "√",
2323
+ * "uniVer": "√",
2324
+ * "unixVer": "x"
2325
+ * },
2326
+ * "jd": {
2327
+ * "hostVer": "x",
2328
+ * "uniVer": "x",
2329
+ * "unixVer": "x"
2330
+ * },
2331
+ * "360": {
2332
+ * "hostVer": "x",
2333
+ * "uniVer": "x",
2334
+ * "unixVer": "x"
2335
+ * }
2336
+ * },
2337
+ * "quickapp": {
2338
+ * "uniVer": "x",
2339
+ * "unixVer": "x"
2340
+ * },
2341
+ * "web": {
2342
+ * "uniVer": "x",
2343
+ * "unixVer": "x"
2344
+ * }
2345
+ * }
2346
+ */
2347
+ withCredentials?: boolean | null,
2348
+ /**
2349
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。默认为en,仅微信小程序生效。
2350
+ * @uniPlatform {
2351
+ * "app": {
2352
+ * "android": {
2353
+ * "osVer": "x",
2354
+ * "uniVer": "x",
2355
+ * "unixVer": "x"
2356
+ * },
2357
+ * "ios": {
2358
+ * "osVer": "x",
2359
+ * "uniVer": "x",
2360
+ * "unixVer": "x"
2361
+ * },
2362
+ * "harmony": {
2363
+ * "osVer": "x",
2364
+ * "uniVer": "x",
2365
+ * "unixVer": "x"
2366
+ * }
2367
+ * },
2368
+ * "mp": {
2369
+ * "weixin": {
2370
+ * "hostVer": "√",
2371
+ * "uniVer": "√",
2372
+ * "unixVer": "4.41"
2373
+ * },
2374
+ * "alipay": {
2375
+ * "hostVer": "x",
2376
+ * "uniVer": "x",
2377
+ * "unixVer": "x"
2378
+ * },
2379
+ * "baidu": {
2380
+ * "hostVer": "x",
2381
+ * "uniVer": "x",
2382
+ * "unixVer": "x"
2383
+ * },
2384
+ * "toutiao": {
2385
+ * "hostVer": "x",
2386
+ * "uniVer": "x",
2387
+ * "unixVer": "x"
2388
+ * },
2389
+ * "lark": {
2390
+ * "hostVer": "x",
2391
+ * "uniVer": "x",
2392
+ * "unixVer": "x"
2393
+ * },
2394
+ * "qq": {
2395
+ * "hostVer": "x",
2396
+ * "uniVer": "x",
2397
+ * "unixVer": "x"
2398
+ * },
2399
+ * "kuaishou": {
2400
+ * "hostVer": "x",
2401
+ * "uniVer": "x",
2402
+ * "unixVer": "x"
2403
+ * },
2404
+ * "jd": {
2405
+ * "hostVer": "x",
2406
+ * "uniVer": "x",
2407
+ * "unixVer": "x"
2408
+ * },
2409
+ * "360": {
2410
+ * "hostVer": "x",
2411
+ * "uniVer": "x",
2412
+ * "unixVer": "x"
2413
+ * }
2414
+ * },
2415
+ * "quickapp": {
2416
+ * "uniVer": "x",
2417
+ * "unixVer": "x"
2418
+ * },
2419
+ * "web": {
2420
+ * "uniVer": "x",
2421
+ * "unixVer": "x"
2422
+ * }
2423
+ * }
2424
+ */
2425
+ lang?: string | null,
2426
+ /**
2427
+ * 超时时间,单位 ms
2428
+ * @uniPlatform {
2429
+ * "app": {
2430
+ * "android": {
2431
+ * "osVer": "x",
2432
+ * "uniVer": "x",
2433
+ * "unixVer": "x"
2434
+ * },
2435
+ * "ios": {
2436
+ * "osVer": "x",
2437
+ * "uniVer": "x",
2438
+ * "unixVer": "x"
2439
+ * },
2440
+ * "harmony": {
2441
+ * "osVer": "x",
2442
+ * "uniVer": "x",
2443
+ * "unixVer": "x"
2444
+ * }
2445
+ * },
2446
+ * "mp": {
2447
+ * "weixin": {
2448
+ * "hostVer": "√",
2449
+ * "uniVer": "√",
2450
+ * "unixVer": "4.41"
2451
+ * },
2452
+ * "alipay": {
2453
+ * "hostVer": "x",
2454
+ * "uniVer": "x",
2455
+ * "unixVer": "x"
2456
+ * },
2457
+ * "baidu": {
2458
+ * "hostVer": "x",
2459
+ * "uniVer": "x",
2460
+ * "unixVer": "x"
2461
+ * },
2462
+ * "toutiao": {
2463
+ * "hostVer": "x",
2464
+ * "uniVer": "x",
2465
+ * "unixVer": "x"
2466
+ * },
2467
+ * "lark": {
2468
+ * "hostVer": "x",
2469
+ * "uniVer": "x",
2470
+ * "unixVer": "x"
2471
+ * },
2472
+ * "qq": {
2473
+ * "hostVer": "x",
2474
+ * "uniVer": "x",
2475
+ * "unixVer": "x"
2476
+ * },
2477
+ * "kuaishou": {
2478
+ * "hostVer": "x",
2479
+ * "uniVer": "x",
2480
+ * "unixVer": "x"
2481
+ * },
2482
+ * "jd": {
2483
+ * "hostVer": "x",
2484
+ * "uniVer": "x",
2485
+ * "unixVer": "x"
2486
+ * },
2487
+ * "360": {
2488
+ * "hostVer": "x",
2489
+ * "uniVer": "x",
2490
+ * "unixVer": "x"
2491
+ * }
2492
+ * },
2493
+ * "quickapp": {
2494
+ * "uniVer": "x",
2495
+ * "unixVer": "x"
2496
+ * },
2497
+ * "web": {
2498
+ * "uniVer": "x",
2499
+ * "unixVer": "x"
2500
+ * }
2501
+ * }
2502
+ */
2503
+ timeout?: number | null,
2504
+ /**
2505
+ * 接口调用成功的回调函数
2506
+ * @uniPlatform {
2507
+ * "mp": {
2508
+ * "weixin": {
2509
+ * "hostVer": "√",
2510
+ * "uniVer": "√",
2511
+ * "unixVer": "4.41"
2512
+ * },
2513
+ * "alipay": {
2514
+ * "hostVer": "-",
2515
+ * "uniVer": "-",
2516
+ * "unixVer": "-"
2517
+ * },
2518
+ * "baidu": {
2519
+ * "hostVer": "-",
2520
+ * "uniVer": "-",
2521
+ * "unixVer": "-"
2522
+ * },
2523
+ * "toutiao": {
2524
+ * "hostVer": "-",
2525
+ * "uniVer": "-",
2526
+ * "unixVer": "-"
2527
+ * },
2528
+ * "lark": {
2529
+ * "hostVer": "-",
2530
+ * "uniVer": "-",
2531
+ * "unixVer": "-"
2532
+ * },
2533
+ * "qq": {
2534
+ * "hostVer": "-",
2535
+ * "uniVer": "-",
2536
+ * "unixVer": "-"
2537
+ * },
2538
+ * "kuaishou": {
2539
+ * "hostVer": "-",
2540
+ * "uniVer": "-",
2541
+ * "unixVer": "-"
2542
+ * },
2543
+ * "jd": {
2544
+ * "hostVer": "-",
2545
+ * "uniVer": "-",
2546
+ * "unixVer": "-"
2547
+ * }
2548
+ * }
2549
+ * }
2550
+ */
2551
+ success?: GetUserInfoSuccessCallback | null,
2552
+ /**
2553
+ * 接口调用失败的回调函数
2554
+ * @uniPlatform {
2555
+ * "mp": {
2556
+ * "weixin": {
2557
+ * "hostVer": "√",
2558
+ * "uniVer": "√",
2559
+ * "unixVer": "4.41"
2560
+ * },
2561
+ * "alipay": {
2562
+ * "hostVer": "-",
2563
+ * "uniVer": "-",
2564
+ * "unixVer": "-"
2565
+ * },
2566
+ * "baidu": {
2567
+ * "hostVer": "-",
2568
+ * "uniVer": "-",
2569
+ * "unixVer": "-"
2570
+ * },
2571
+ * "toutiao": {
2572
+ * "hostVer": "-",
2573
+ * "uniVer": "-",
2574
+ * "unixVer": "-"
2575
+ * },
2576
+ * "lark": {
2577
+ * "hostVer": "-",
2578
+ * "uniVer": "-",
2579
+ * "unixVer": "-"
2580
+ * },
2581
+ * "qq": {
2582
+ * "hostVer": "-",
2583
+ * "uniVer": "-",
2584
+ * "unixVer": "-"
2585
+ * },
2586
+ * "kuaishou": {
2587
+ * "hostVer": "-",
2588
+ * "uniVer": "-",
2589
+ * "unixVer": "-"
2590
+ * },
2591
+ * "jd": {
2592
+ * "hostVer": "-",
2593
+ * "uniVer": "-",
2594
+ * "unixVer": "-"
2595
+ * }
2596
+ * }
2597
+ * }
2598
+ */
2599
+ fail?: GetUserInfoFailCallback | null,
2600
+ /**
2601
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
2602
+ * @uniPlatform {
2603
+ * "mp": {
2604
+ * "weixin": {
2605
+ * "hostVer": "√",
2606
+ * "uniVer": "√",
2607
+ * "unixVer": "4.41"
2608
+ * },
2609
+ * "alipay": {
2610
+ * "hostVer": "-",
2611
+ * "uniVer": "-",
2612
+ * "unixVer": "-"
2613
+ * },
2614
+ * "baidu": {
2615
+ * "hostVer": "-",
2616
+ * "uniVer": "-",
2617
+ * "unixVer": "-"
2618
+ * },
2619
+ * "toutiao": {
2620
+ * "hostVer": "-",
2621
+ * "uniVer": "-",
2622
+ * "unixVer": "-"
2623
+ * },
2624
+ * "lark": {
2625
+ * "hostVer": "-",
2626
+ * "uniVer": "-",
2627
+ * "unixVer": "-"
2628
+ * },
2629
+ * "qq": {
2630
+ * "hostVer": "-",
2631
+ * "uniVer": "-",
2632
+ * "unixVer": "-"
2633
+ * },
2634
+ * "kuaishou": {
2635
+ * "hostVer": "-",
2636
+ * "uniVer": "-",
2637
+ * "unixVer": "-"
2638
+ * },
2639
+ * "jd": {
2640
+ * "hostVer": "-",
2641
+ * "uniVer": "-",
2642
+ * "unixVer": "-"
2643
+ * }
2644
+ * }
2645
+ * }
2646
+ */
2647
+ complete?: GetUserInfoCompleteCallback | null
2648
+ };