@dcloudio/uni-app-x 0.7.59 → 0.7.60

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 (149) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +16 -8
  3. package/types/native/IUniElement.d.ts +0 -2
  4. package/types/native/UniFormControl.d.ts +1 -1
  5. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  6. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  7. package/types/native/WebViewStyles.d.ts +1 -1
  8. package/types/native/global.d.ts +2 -0
  9. package/types/page.d.ts +134 -22
  10. package/types/uni/uni-camera-global.d.ts +4 -0
  11. package/types/uni/uni-camera.d.ts +10 -9
  12. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  13. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  14. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  15. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  16. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  17. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  18. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  19. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  21. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  22. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  23. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +5 -3
  24. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +8 -8
  25. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +4 -1
  26. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +26 -11
  27. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  28. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +3 -3
  29. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +11 -10
  30. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  32. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +4 -4
  33. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -8
  34. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +8 -6
  35. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  36. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +4 -4
  37. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -7
  38. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  39. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  40. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  41. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  42. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +4 -4
  43. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +3 -2
  44. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +141 -243
  45. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -696
  46. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  47. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +387 -95
  48. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +401 -344
  49. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +52 -52
  50. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  52. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  53. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +24 -24
  54. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  55. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +39 -25
  56. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  57. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  58. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  59. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +4 -4
  60. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  61. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  62. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +49 -49
  63. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +5 -5
  64. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +26 -26
  65. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +14 -14
  66. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  67. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  68. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  69. package/types/uni-cloud/interface.d.ts +13 -9
  70. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  71. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  72. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  73. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  74. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  75. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  76. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  77. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  78. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  79. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  80. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  81. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  82. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  83. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  84. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  85. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  86. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  87. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  88. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  89. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  90. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  91. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  92. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  93. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  94. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  95. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  96. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  97. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  98. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  99. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  100. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  101. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  102. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  103. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  104. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  105. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  106. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  107. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  108. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  109. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  110. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  111. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  112. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  113. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  114. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  115. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  116. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  117. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  118. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  119. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  120. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  121. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  122. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  123. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  124. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  125. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  126. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  127. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  128. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  129. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  130. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  131. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  132. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  133. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  134. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  135. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  136. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  137. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  138. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  139. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  140. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  141. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  142. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  143. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  144. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  145. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  146. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  147. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  148. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  149. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
@@ -1,730 +0,0 @@
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;