@dcloudio/uni-app-x 0.7.57 → 0.7.59

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 (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +460 -2
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -0,0 +1,730 @@
1
+ export interface Uni {
2
+ /**
3
+ * @deprecated 已废弃,仅为了向下兼容保留,建议使用`getUniVerifyManager`。
4
+ * @description 获取一键登录管理对象
5
+ * @tutorial https://uniapp.dcloud.net.cn/univerify.html#univerifymanager
6
+ * @uniPlatform {
7
+ * "app": {
8
+ * "android": {
9
+ * "osVer": "5.0",
10
+ * "uniVer": "√",
11
+ * "unixVer": "3.99"
12
+ * },
13
+ * "ios": {
14
+ * "osVer": "12.0",
15
+ * "uniVer": "√",
16
+ * "unixVer": "4.18"
17
+ * },
18
+ * "harmony": {
19
+ * "osVer": "5.0.0",
20
+ * "uniVer": "4.53",
21
+ * "unixVer": "4.61"
22
+ * }
23
+ * },
24
+ * "web": {
25
+ * "uniVer": "x",
26
+ * "unixVer": "x"
27
+ * }
28
+ * }
29
+ */
30
+ getUniverifyManager(): UniverifyManager
31
+
32
+ /**
33
+ * @description 获取一键登录管理对象
34
+ * @tutorial https://uniapp.dcloud.net.cn/univerify.html#univerifymanager
35
+ * @uniPlatform {
36
+ * "app": {
37
+ * "android": {
38
+ * "osVer": "5.0",
39
+ * "uniVer": "√",
40
+ * "unixVer": "4.42"
41
+ * },
42
+ * "ios": {
43
+ * "osVer": "12.0",
44
+ * "uniVer": "√",
45
+ * "unixVer": "4.42"
46
+ * },
47
+ * "harmony": {
48
+ * "osVer": "5.0.0",
49
+ * "uniVer": "4.53",
50
+ * "unixVer": "4.61"
51
+ * }
52
+ * },
53
+ * "web": {
54
+ * "uniVer": "x",
55
+ * "unixVer": "x"
56
+ * }
57
+ * }
58
+ */
59
+ getUniVerifyManager(): UniVerifyManager
60
+ }
61
+ export type GetUniverifyManager = () => UniverifyManager
62
+
63
+ export type GetUniVerifyManager = () => UniVerifyManager
64
+
65
+ // #ifdef APP-IOS || APP-HARMONY
66
+ export interface UniVerifyManager extends UniverifyManager {
67
+
68
+ }
69
+ // #endif
70
+
71
+ // #ifdef APP-ANDROID
72
+ export type UniVerifyManager = UniverifyManager
73
+ // #endif
74
+
75
+ export interface UniverifyManager {
76
+ /**
77
+ * @description 预登录
78
+ * @uniPlatform {
79
+ * "app": {
80
+ * "android": {
81
+ * "osVer": "5.0",
82
+ * "uniVer": "√",
83
+ * "unixVer": "3.99"
84
+ * },
85
+ * "ios": {
86
+ * "osVer": "12.0",
87
+ * "uniVer": "√",
88
+ * "unixVer": "4.18"
89
+ * },
90
+ * "harmony": {
91
+ * "osVer": "5.0.0",
92
+ * "uniVer": "4.53",
93
+ * "unixVer": "4.61"
94
+ * }
95
+ * }
96
+ * }
97
+ */
98
+ preLogin(options : UniVerifyManagerPreLoginOptions) : void
99
+ /**
100
+ * @description 标准登录
101
+ * @uniPlatform {
102
+ * "app": {
103
+ * "android": {
104
+ * "osVer": "5.0",
105
+ * "uniVer": "√",
106
+ * "unixVer": "3.99"
107
+ * },
108
+ * "ios": {
109
+ * "osVer": "12.0",
110
+ * "uniVer": "√",
111
+ * "unixVer": "4.18"
112
+ * },
113
+ * "harmony": {
114
+ * "osVer": "5.0.0",
115
+ * "uniVer": "4.53",
116
+ * "unixVer": "4.61"
117
+ * }
118
+ * }
119
+ * }
120
+ */
121
+ login(options : UniVerifyManagerLoginOptions) : void
122
+ /**
123
+ * @description 自定义授权页登录
124
+ * @uniPlatform {
125
+ * "app": {
126
+ * "android": {
127
+ * "osVer": "5.0",
128
+ * "uniVer": "4.41",
129
+ * "unixVer": "4.41"
130
+ * },
131
+ * "ios": {
132
+ * "osVer": "12.0",
133
+ * "uniVer": "4.41",
134
+ * "unixVer": "4.41"
135
+ * },
136
+ * "harmony": {
137
+ * "osVer": "x",
138
+ * "uniVer": "x",
139
+ * "unixVer": "x"
140
+ * }
141
+ * }
142
+ * }
143
+ */
144
+ customLogin(options : UniVerifyManagerCustomLoginOptions) : void
145
+ /**
146
+ * @description 关闭授权页(仅支持标准登录)
147
+ * @uniPlatform {
148
+ * "app": {
149
+ * "android": {
150
+ * "osVer": "5.0",
151
+ * "uniVer": "√",
152
+ * "unixVer": "3.99"
153
+ * },
154
+ * "ios": {
155
+ * "osVer": "12.0",
156
+ * "uniVer": "√",
157
+ * "unixVer": "4.18"
158
+ * },
159
+ * "harmony": {
160
+ * "osVer": "5.0.0",
161
+ * "uniVer": "4.53",
162
+ * "unixVer": "4.61"
163
+ * }
164
+ * }
165
+ * }
166
+ */
167
+ close() : void
168
+ /**
169
+ * @description 预登录是否有效
170
+ * @uniPlatform {
171
+ * "app": {
172
+ * "android": {
173
+ * "osVer": "5.0",
174
+ * "uniVer": "√",
175
+ * "unixVer": "3.99"
176
+ * },
177
+ * "ios": {
178
+ * "osVer": "12.0",
179
+ * "uniVer": "√",
180
+ * "unixVer": "4.18"
181
+ * },
182
+ * "harmony": {
183
+ * "osVer": "5.0.0",
184
+ * "uniVer": "4.53",
185
+ * "unixVer": "4.61"
186
+ * }
187
+ * }
188
+ * }
189
+ */
190
+ isPreLoginValid() : boolean
191
+ }
192
+
193
+ /**
194
+ * 预登录参数
195
+ */
196
+ export type UniVerifyManagerPreLoginOptions = {
197
+ success ?: UniVerifyManagerPreLoginSuccessCallback,
198
+ fail ?: UniVerifyManagerPreLoginFailCallback,
199
+ complete ?: UniVerifyManagerPreLoginCompleteCallback
200
+ }
201
+
202
+ /**
203
+ * 登录参数
204
+ */
205
+ export type UniVerifyManagerLoginOptions = {
206
+ /**
207
+ * @uniPlatform {
208
+ * "app": {
209
+ * "android": {
210
+ * "osVer": "5.0",
211
+ * "uniVer": "4.51",
212
+ * "unixVer": "4.51"
213
+ * },
214
+ * "ios": {
215
+ * "osVer": "12.0",
216
+ * "uniVer": "4.51",
217
+ * "unixVer": "4.51"
218
+ * },
219
+ * "harmony": {
220
+ * "osVer": "5.0.0",
221
+ * "uniVer": "4.53",
222
+ * "unixVer": "4.61"
223
+ * }
224
+ * }
225
+ * }
226
+ */
227
+ uniVerifyStyle ?: UniVerifyManagerLoginStyle,
228
+ /**
229
+ * @deprecated 已废弃,建议使用 uniVerifyStyle
230
+ */
231
+ univerifyStyle ?: UniVerifyManagerLoginStyle,
232
+ success ?: UniVerifyManagerLoginSuccessCallback,
233
+ fail ?: UniVerifyManagerLoginFailCallback,
234
+ complete ?: UniVerifyManagerLoginCompleteCallback
235
+ }
236
+
237
+ /**
238
+ * 自定义登录页登录参数
239
+ */
240
+ export type UniVerifyManagerCustomLoginOptions = {
241
+ /**
242
+ * @description 号码栏,仅支持使用text组件
243
+ */
244
+ numberTextElement : UniElement,
245
+ /**
246
+ * @description 品牌露出,仅支持使用text组件
247
+ */
248
+ sloganTextElement : UniElement,
249
+ /**
250
+ * @description 登录按钮,仅支持使用button组件
251
+ */
252
+ loginButtonElement : UniElement,
253
+ /**
254
+ * @description 隐私确认,仅支持使用checkbox组件
255
+ */
256
+ privacyCheckBoxElement : UniElement,
257
+ /**
258
+ * @description 隐私标题,仅支持使用text组件
259
+ */
260
+ privacyTextElement : UniElement,
261
+ success ?: UniVerifyManagerLoginSuccessCallback,
262
+ fail ?: UniVerifyManagerLoginFailCallback,
263
+ complete ?: UniVerifyManagerLoginCompleteCallback
264
+ }
265
+
266
+ /**
267
+ * 登录页样式
268
+ */
269
+ export type UniVerifyManagerLoginStyle = {
270
+ /**
271
+ * 是否全屏
272
+ */
273
+ fullScreen ?: boolean,
274
+ /**
275
+ * logo路径
276
+ */
277
+ logoPath ?: string,
278
+ /**
279
+ * 登录页背景色
280
+ * @uniPlatform {
281
+ * "app": {
282
+ * "android": {
283
+ * "osVer": "5.0",
284
+ * "uniVer": "√",
285
+ * "unixVer": "3.99"
286
+ * },
287
+ * "ios": {
288
+ * "osVer": "12.0",
289
+ * "uniVer": "√",
290
+ * "unixVer": "4.18"
291
+ * },
292
+ * "harmony": {
293
+ * "osVer": "x",
294
+ * "uniVer": "x",
295
+ * "unixVer": "x"
296
+ * }
297
+ * }
298
+ * }
299
+ */
300
+ backgroundColor ?: string,
301
+ /**
302
+ * 登录按钮文字
303
+ */
304
+ loginBtnText ?: string
305
+ }
306
+
307
+ export type UniVerifyManagerPreLoginSuccess = {
308
+ /**
309
+ * 手机号(脱敏)
310
+ * @uniPlatform {
311
+ * "app": {
312
+ * "android": {
313
+ * "osVer": "5.0",
314
+ * "uniVer": "4.41",
315
+ * "unixVer": "4.41"
316
+ * },
317
+ * "ios": {
318
+ * "osVer": "12.0",
319
+ * "uniVer": "4.41",
320
+ * "unixVer": "4.41"
321
+ * },
322
+ * "harmony": {
323
+ * "osVer": "5.0.0",
324
+ * "uniVer": "4.53",
325
+ * "unixVer": "4.61"
326
+ * }
327
+ * }
328
+ * }
329
+ */
330
+ number : string,
331
+ /**
332
+ * 运营商slogan,如移动:中国移动提供认证服务,联通:认证服务由联通统一认证提供,电信:天翼账号提供认证服务
333
+ * @uniPlatform {
334
+ * "app": {
335
+ * "android": {
336
+ * "osVer": "5.0",
337
+ * "uniVer": "4.41",
338
+ * "unixVer": "4.41"
339
+ * },
340
+ * "ios": {
341
+ * "osVer": "12.0",
342
+ * "uniVer": "4.41",
343
+ * "unixVer": "4.41"
344
+ * },
345
+ * "harmony": {
346
+ * "osVer": "5.0.0",
347
+ * "uniVer": "4.53",
348
+ * "unixVer": "4.61"
349
+ * }
350
+ * }
351
+ * }
352
+ */
353
+ slogan : string,
354
+ /**
355
+ * 运营商隐私协议名称,如移动:中国移动认证服务条款,联通:联通统一认证服务条款,电信:天翼账号服务与隐私协议
356
+ * @uniPlatform {
357
+ * "app": {
358
+ * "android": {
359
+ * "osVer": "5.0",
360
+ * "uniVer": "4.41",
361
+ * "unixVer": "4.41"
362
+ * },
363
+ * "ios": {
364
+ * "osVer": "12.0",
365
+ * "uniVer": "4.41",
366
+ * "unixVer": "4.41"
367
+ * },
368
+ * "harmony": {
369
+ * "osVer": "x",
370
+ * "uniVer": "x",
371
+ * "unixVer": "x"
372
+ * }
373
+ * }
374
+ * }
375
+ */
376
+ privacyName : string,
377
+ /**
378
+ * 运营商隐私协议url地址
379
+ * @uniPlatform {
380
+ * "app": {
381
+ * "android": {
382
+ * "osVer": "5.0",
383
+ * "uniVer": "4.41",
384
+ * "unixVer": "4.41"
385
+ * },
386
+ * "ios": {
387
+ * "osVer": "12.0",
388
+ * "uniVer": "4.41",
389
+ * "unixVer": "4.41"
390
+ * },
391
+ * "harmony": {
392
+ * "osVer": "x",
393
+ * "uniVer": "x",
394
+ * "unixVer": "x"
395
+ * }
396
+ * }
397
+ * }
398
+ */
399
+ privacyUrl : string
400
+ }
401
+ export type UniVerifyManagerPreLoginSuccessCallback = (res : UniVerifyManagerPreLoginSuccess) => void
402
+ export interface UniVerifyManagerPreLoginFail extends IUniError {
403
+ errCode : UniVerifyManagerErrorCode
404
+ }
405
+ export type UniVerifyManagerPreLoginFailCallback = (err : UniVerifyManagerPreLoginFail) => void
406
+ export type UniVerifyManagerPreLoginComplete = any;
407
+ export type UniVerifyManagerPreLoginCompleteCallback = (res : UniVerifyManagerPreLoginComplete) => void
408
+
409
+ export type UniVerifyManagerLoginSuccess = {
410
+ /**
411
+ * 登录授权唯一标识
412
+ */
413
+ openId : string,
414
+ /**
415
+ * token
416
+ */
417
+ accessToken : string
418
+ }
419
+ export type UniVerifyManagerLoginSuccessCallback = (res : UniVerifyManagerLoginSuccess) => void
420
+ export interface UniVerifyManagerLoginFail extends IUniError {
421
+ errCode : UniVerifyManagerErrorCode
422
+ }
423
+ export type UniVerifyManagerLoginFailCallback = (err : UniVerifyManagerLoginFail) => void
424
+ export type UniVerifyManagerLoginComplete = any;
425
+ export type UniVerifyManagerLoginCompleteCallback = (res : UniVerifyManagerLoginComplete) => void
426
+
427
+ /**
428
+ * 错误码
429
+ */
430
+
431
+ export type UniVerifyManagerErrorCode =
432
+ /**
433
+ * 当前应用appid尚未开通uni一键登录
434
+ * @uniPlatform {
435
+ * "app": {
436
+ * "android": {
437
+ * "osVer": "5.0",
438
+ * "uniVer": "√",
439
+ * "unixVer": "3.99"
440
+ * },
441
+ * "ios": {
442
+ * "osVer": "12.0",
443
+ * "uniVer": "√",
444
+ * "unixVer": "4.18"
445
+ * },
446
+ * "harmony": {
447
+ * "osVer": "5.0.0",
448
+ * "uniVer": "4.53",
449
+ * "unixVer": "4.61"
450
+ * }
451
+ * }
452
+ * }
453
+ */
454
+ 1000 |
455
+ /**
456
+ * 应用所有者账号信息异常,请检查账号一键登录服务是否正常
457
+ * @uniPlatform {
458
+ * "app": {
459
+ * "android": {
460
+ * "osVer": "5.0",
461
+ * "uniVer": "√",
462
+ * "unixVer": "3.99"
463
+ * },
464
+ * "ios": {
465
+ * "osVer": "12.0",
466
+ * "uniVer": "√",
467
+ * "unixVer": "4.18"
468
+ * },
469
+ * "harmony": {
470
+ * "osVer": "5.0.0",
471
+ * "uniVer": "4.53",
472
+ * "unixVer": "4.61"
473
+ * }
474
+ * }
475
+ * }
476
+ */
477
+ 1001 |
478
+ /**
479
+ * 应用所有者账号信息异常,请检查账号余额是否充足
480
+ * @uniPlatform {
481
+ * "app": {
482
+ * "android": {
483
+ * "osVer": "5.0",
484
+ * "uniVer": "√",
485
+ * "unixVer": "3.99"
486
+ * },
487
+ * "ios": {
488
+ * "osVer": "12.0",
489
+ * "uniVer": "√",
490
+ * "unixVer": "4.18"
491
+ * },
492
+ * "harmony": {
493
+ * "osVer": "5.0.0",
494
+ * "uniVer": "4.53",
495
+ * "unixVer": "4.61"
496
+ * }
497
+ * }
498
+ * }
499
+ */
500
+ 1002 |
501
+ /**
502
+ * uni一键登录应用不存在
503
+ * @uniPlatform {
504
+ * "app": {
505
+ * "android": {
506
+ * "osVer": "5.0",
507
+ * "uniVer": "√",
508
+ * "unixVer": "3.99"
509
+ * },
510
+ * "ios": {
511
+ * "osVer": "12.0",
512
+ * "uniVer": "√",
513
+ * "unixVer": "4.18"
514
+ * },
515
+ * "harmony": {
516
+ * "osVer": "5.0.0",
517
+ * "uniVer": "4.53",
518
+ * "unixVer": "4.61"
519
+ * }
520
+ * }
521
+ * }
522
+ */
523
+ 1004 |
524
+ /**
525
+ * 参数异常
526
+ * @uniPlatform {
527
+ * "app": {
528
+ * "android": {
529
+ * "osVer": "5.0",
530
+ * "uniVer": "√",
531
+ * "unixVer": "3.99"
532
+ * },
533
+ * "ios": {
534
+ * "osVer": "12.0",
535
+ * "uniVer": "√",
536
+ * "unixVer": "4.18"
537
+ * },
538
+ * "harmony": {
539
+ * "osVer": "5.0.0",
540
+ * "uniVer": "4.53",
541
+ * "unixVer": "4.61"
542
+ * }
543
+ * }
544
+ * }
545
+ */
546
+ 4001 |
547
+ /**
548
+ * 取消登录
549
+ * @uniPlatform {
550
+ * "app": {
551
+ * "android": {
552
+ * "osVer": "5.0",
553
+ * "uniVer": "√",
554
+ * "unixVer": "4.51"
555
+ * },
556
+ * "ios": {
557
+ * "osVer": "12.0",
558
+ * "uniVer": "√",
559
+ * "unixVer": "4.51"
560
+ * },
561
+ * "harmony": {
562
+ * "osVer": "5.0.0",
563
+ * "uniVer": "4.53",
564
+ * "unixVer": "4.61"
565
+ * }
566
+ * }
567
+ * }
568
+ */
569
+ 30001 |
570
+ /**
571
+ * 其他错误
572
+ * @uniPlatform {
573
+ * "app": {
574
+ * "android": {
575
+ * "osVer": "5.0",
576
+ * "uniVer": "√",
577
+ * "unixVer": "3.99"
578
+ * },
579
+ * "ios": {
580
+ * "osVer": "12.0",
581
+ * "uniVer": "√",
582
+ * "unixVer": "4.18"
583
+ * },
584
+ * "harmony": {
585
+ * "osVer": "5.0.0",
586
+ * "uniVer": "4.53",
587
+ * "unixVer": "4.61"
588
+ * }
589
+ * }
590
+ * }
591
+ */
592
+ 30004 |
593
+ /**
594
+ * 预登录失败
595
+ * @uniPlatform {
596
+ * "app": {
597
+ * "android": {
598
+ * "osVer": "5.0",
599
+ * "uniVer": "√",
600
+ * "unixVer": "3.99"
601
+ * },
602
+ * "ios": {
603
+ * "osVer": "12.0",
604
+ * "uniVer": "√",
605
+ * "unixVer": "4.18"
606
+ * },
607
+ * "harmony": {
608
+ * "osVer": "5.0.0",
609
+ * "uniVer": "4.53",
610
+ * "unixVer": "4.61"
611
+ * }
612
+ * }
613
+ * }
614
+ */
615
+ 30005 |
616
+ /**
617
+ * 一键登录失败
618
+ * @uniPlatform {
619
+ * "app": {
620
+ * "android": {
621
+ * "osVer": "5.0",
622
+ * "uniVer": "√",
623
+ * "unixVer": "3.99"
624
+ * },
625
+ * "ios": {
626
+ * "osVer": "12.0",
627
+ * "uniVer": "√",
628
+ * "unixVer": "4.18"
629
+ * },
630
+ * "harmony": {
631
+ * "osVer": "5.0.0",
632
+ * "uniVer": "4.53",
633
+ * "unixVer": "4.61"
634
+ * }
635
+ * }
636
+ * }
637
+ */
638
+ 30006 |
639
+ /**
640
+ * 预登录失效
641
+ * @uniPlatform {
642
+ * "app": {
643
+ * "android": {
644
+ * "osVer": "5.0",
645
+ * "uniVer": "√",
646
+ * "unixVer": "3.99"
647
+ * },
648
+ * "ios": {
649
+ * "osVer": "12.0",
650
+ * "uniVer": "√",
651
+ * "unixVer": "4.51"
652
+ * },
653
+ * "harmony": {
654
+ * "osVer": "5.0.0",
655
+ * "uniVer": "4.53",
656
+ * "unixVer": "4.61"
657
+ * }
658
+ * }
659
+ * }
660
+ */
661
+ 30007 |
662
+ /**
663
+ * 上一个请求正在进行中,请稍后重试
664
+ * @uniPlatform {
665
+ * "app": {
666
+ * "android": {
667
+ * "osVer": "5.0",
668
+ * "uniVer": "√",
669
+ * "unixVer": "3.99"
670
+ * },
671
+ * "ios": {
672
+ * "osVer": "12.0",
673
+ * "uniVer": "√",
674
+ * "unixVer": "4.51"
675
+ * },
676
+ * "harmony": {
677
+ * "osVer": "5.0.0",
678
+ * "uniVer": "4.53",
679
+ * "unixVer": "4.61"
680
+ * }
681
+ * }
682
+ * }
683
+ */
684
+ 30008 |
685
+ /**
686
+ * 自定义授权页面未同意隐私条款
687
+ * @uniPlatform {
688
+ * "app": {
689
+ * "android": {
690
+ * "osVer": "5.0",
691
+ * "uniVer": "4.41",
692
+ * "unixVer": "4.41"
693
+ * },
694
+ * "ios": {
695
+ * "osVer": "12.0",
696
+ * "uniVer": "4.41",
697
+ * "unixVer": "4.41"
698
+ * },
699
+ * "harmony": {
700
+ * "osVer": "x",
701
+ * "uniVer": "x",
702
+ * "unixVer": "x"
703
+ * }
704
+ * }
705
+ * }
706
+ */
707
+ 40001 |
708
+ /**
709
+ * 自定义授权页不合规,请参考文档修改
710
+ * @uniPlatform {
711
+ * "app": {
712
+ * "android": {
713
+ * "osVer": "5.0",
714
+ * "uniVer": "4.41",
715
+ * "unixVer": "4.41"
716
+ * },
717
+ * "ios": {
718
+ * "osVer": "12.0",
719
+ * "uniVer": "4.41",
720
+ * "unixVer": "4.41"
721
+ * },
722
+ * "harmony": {
723
+ * "osVer": "x",
724
+ * "uniVer": "x",
725
+ * "unixVer": "x"
726
+ * }
727
+ * }
728
+ * }
729
+ */
730
+ 40002;