@dcloudio/uni-app-x 0.7.118 → 0.7.119

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.
@@ -6,82 +6,83 @@ export interface Uni {
6
6
  * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html
7
7
  * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#login
8
8
  *
9
- * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "5.0",
13
- * "uniVer": "√",
14
- * "unixVer": "5.03"
15
- * },
16
- * "ios": {
17
- * "osVer": "12.0",
18
- * "uniVer": "√",
19
- * "unixVer": "5.03"
20
- * },
21
- * "harmony": {
22
- * "osVer": "3.0",
23
- * "uniVer": "4.31",
24
- * "unixVer": "4.61",
25
- * "unixVaporVer": "5.0"
26
- * }
27
- * },
28
- * "mp": {
29
- * "weixin": {
30
- * "hostVer": "√",
31
- * "uniVer": "√",
32
- * "unixVer": "4.41"
33
- * },
34
- * "alipay": {
35
- * "hostVer": "",
36
- * "uniVer": "√",
37
- * "unixVer": "x"
38
- * },
39
- * "baidu": {
40
- * "hostVer": "√",
41
- * "uniVer": "√",
42
- * "unixVer": "x"
43
- * },
44
- * "toutiao": {
45
- * "hostVer": "√",
46
- * "uniVer": "√",
47
- * "unixVer": "x"
48
- * },
49
- * "lark": {
50
- * "hostVer": "√",
51
- * "uniVer": "√",
52
- * "unixVer": "x"
53
- * },
54
- * "qq": {
55
- * "hostVer": "√",
56
- * "uniVer": "√",
57
- * "unixVer": "x"
58
- * },
59
- * "kuaishou": {
60
- * "hostVer": "√",
61
- * "uniVer": "√",
62
- * "unixVer": "x"
63
- * },
64
- * "jd": {
65
- * "hostVer": "√",
66
- * "uniVer": "√",
67
- * "unixVer": "x"
68
- * },
69
- * "360": {
70
- * "hostVer": "√",
71
- * "uniVer": "√",
72
- * "unixVer": "x"
73
- * }
74
- * },
75
- * "quickapp": {
76
- * "uniVer": "√",
77
- * "unixVer": "√"
78
- * },
79
- * "web": {
80
- * "uniVer": "x",
81
- * "unixVer": "x"
82
- * }
83
- * }
84
- */
9
+ * @uniPlatform {
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "5.0",
13
+ * "uniVer": "√",
14
+ * "unixVer": "5.07"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "12.0",
18
+ * "uniVer": "√",
19
+ * "unixVer": "5.07"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "3.0",
23
+ * "uniVer": "4.31",
24
+ * "unixVer": "4.61",
25
+ * "unixVaporVer": "5.0"
26
+ * }
27
+ * },
28
+ * "mp": {
29
+ * "360": {
30
+ * "hostVer": "√",
31
+ * "uniVer": "√",
32
+ * "unixVer": "x"
33
+ * },
34
+ * "weixin": {
35
+ * "hostVer": "2.3.1",
36
+ * "uniVer": "√",
37
+ * "unixVer": "4.41"
38
+ * },
39
+ * "alipay": {
40
+ * "hostVer": "√",
41
+ * "uniVer": "√",
42
+ * "unixVer": "x"
43
+ * },
44
+ * "baidu": {
45
+ * "hostVer": "√",
46
+ * "uniVer": "√",
47
+ * "unixVer": "x"
48
+ * },
49
+ * "toutiao": {
50
+ * "hostVer": "√",
51
+ * "uniVer": "√",
52
+ * "unixVer": "x"
53
+ * },
54
+ * "lark": {
55
+ * "hostVer": "√",
56
+ * "uniVer": "√",
57
+ * "unixVer": "x"
58
+ * },
59
+ * "qq": {
60
+ * "hostVer": "√",
61
+ * "uniVer": "√",
62
+ * "unixVer": "x"
63
+ * },
64
+ * "kuaishou": {
65
+ * "hostVer": "√",
66
+ * "uniVer": "√",
67
+ * "unixVer": "x"
68
+ * },
69
+ * "jd": {
70
+ * "hostVer": "√",
71
+ * "uniVer": "√",
72
+ * "unixVer": "x"
73
+ * }
74
+ * },
75
+ * "quickapp": {
76
+ * "uniVer": "√",
77
+ * "unixVer": "√"
78
+ * },
79
+ * "web": {
80
+ * "uniVer": "x",
81
+ * "unixVer": "x"
82
+ * }
83
+ * }
84
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html
85
+ */
85
86
  login(options: LoginOptions): void;
86
87
  /**
87
88
  * 获取用户信息
@@ -90,82 +91,83 @@ export interface Uni {
90
91
  * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/sign-in.html#getuserinfo
91
92
  * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/plugins/login.html#getuserinfo
92
93
  *
93
- * @uniPlatform {
94
- * "app": {
95
- * "android": {
96
- * "osVer": "5.0",
97
- * "uniVer": "√",
98
- * "unixVer": "x"
99
- * },
100
- * "ios": {
101
- * "osVer": "12.0",
102
- * "uniVer": "√",
103
- * "unixVer": "x"
104
- * },
105
- * "harmony": {
106
- * "osVer": "3.0",
107
- * "uniVer": "4.31",
108
- * "unixVer": "4.61",
109
- * "unixVaporVer": "5.0"
110
- * }
111
- * },
112
- * "mp": {
113
- * "weixin": {
114
- * "hostVer": "√",
115
- * "uniVer": "√",
116
- * "unixVer": "4.41"
117
- * },
118
- * "alipay": {
119
- * "hostVer": "",
120
- * "uniVer": "√",
121
- * "unixVer": "x"
122
- * },
123
- * "baidu": {
124
- * "hostVer": "√",
125
- * "uniVer": "√",
126
- * "unixVer": "x"
127
- * },
128
- * "toutiao": {
129
- * "hostVer": "√",
130
- * "uniVer": "√",
131
- * "unixVer": "x"
132
- * },
133
- * "lark": {
134
- * "hostVer": "√",
135
- * "uniVer": "√",
136
- * "unixVer": "x"
137
- * },
138
- * "qq": {
139
- * "hostVer": "√",
140
- * "uniVer": "√",
141
- * "unixVer": "x"
142
- * },
143
- * "kuaishou": {
144
- * "hostVer": "√",
145
- * "uniVer": "√",
146
- * "unixVer": "x"
147
- * },
148
- * "jd": {
149
- * "hostVer": "√",
150
- * "uniVer": "√",
151
- * "unixVer": "x"
152
- * },
153
- * "360": {
154
- * "hostVer": "√",
155
- * "uniVer": "√",
156
- * "unixVer": "x"
157
- * }
158
- * },
159
- * "quickapp": {
160
- * "uniVer": "√",
161
- * "unixVer": "√"
162
- * },
163
- * "web": {
164
- * "uniVer": "x",
165
- * "unixVer": "x"
166
- * }
167
- * }
168
- */
94
+ * @uniPlatform {
95
+ * "app": {
96
+ * "android": {
97
+ * "osVer": "5.0",
98
+ * "uniVer": "√",
99
+ * "unixVer": "x"
100
+ * },
101
+ * "ios": {
102
+ * "osVer": "12.0",
103
+ * "uniVer": "√",
104
+ * "unixVer": "x"
105
+ * },
106
+ * "harmony": {
107
+ * "osVer": "3.0",
108
+ * "uniVer": "4.31",
109
+ * "unixVer": "4.61",
110
+ * "unixVaporVer": "5.0"
111
+ * }
112
+ * },
113
+ * "mp": {
114
+ * "360": {
115
+ * "hostVer": "√",
116
+ * "uniVer": "√",
117
+ * "unixVer": "x"
118
+ * },
119
+ * "weixin": {
120
+ * "hostVer": "2.3.1",
121
+ * "uniVer": "√",
122
+ * "unixVer": "4.41"
123
+ * },
124
+ * "alipay": {
125
+ * "hostVer": "√",
126
+ * "uniVer": "√",
127
+ * "unixVer": "x"
128
+ * },
129
+ * "baidu": {
130
+ * "hostVer": "√",
131
+ * "uniVer": "√",
132
+ * "unixVer": "x"
133
+ * },
134
+ * "toutiao": {
135
+ * "hostVer": "√",
136
+ * "uniVer": "√",
137
+ * "unixVer": "x"
138
+ * },
139
+ * "lark": {
140
+ * "hostVer": "√",
141
+ * "uniVer": "√",
142
+ * "unixVer": "x"
143
+ * },
144
+ * "qq": {
145
+ * "hostVer": "√",
146
+ * "uniVer": "√",
147
+ * "unixVer": "x"
148
+ * },
149
+ * "kuaishou": {
150
+ * "hostVer": "√",
151
+ * "uniVer": "√",
152
+ * "unixVer": "x"
153
+ * },
154
+ * "jd": {
155
+ * "hostVer": "√",
156
+ * "uniVer": "√",
157
+ * "unixVer": "x"
158
+ * }
159
+ * },
160
+ * "quickapp": {
161
+ * "uniVer": "√",
162
+ * "unixVer": "√"
163
+ * },
164
+ * "web": {
165
+ * "uniVer": "x",
166
+ * "unixVer": "x"
167
+ * }
168
+ * }
169
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html
170
+ */
169
171
  getUserInfo(options: GetUserInfoOptions): void;
170
172
  }
171
173
 
@@ -203,8 +205,52 @@ export type AppleLoginAppleInfo = {
203
205
  };
204
206
  export type LoginSuccess = {
205
207
  /**
206
- * 描述信息
207
- */
208
+ * 描述信息
209
+ * @uniPlatform {
210
+ * "mp": {
211
+ * "weixin": {
212
+ * "hostVer": "√",
213
+ * "uniVer": "√",
214
+ * "unixVer": "4.41"
215
+ * },
216
+ * "alipay": {
217
+ * "hostVer": "-",
218
+ * "uniVer": "-",
219
+ * "unixVer": "-"
220
+ * },
221
+ * "baidu": {
222
+ * "hostVer": "-",
223
+ * "uniVer": "-",
224
+ * "unixVer": "-"
225
+ * },
226
+ * "toutiao": {
227
+ * "hostVer": "-",
228
+ * "uniVer": "-",
229
+ * "unixVer": "-"
230
+ * },
231
+ * "lark": {
232
+ * "hostVer": "-",
233
+ * "uniVer": "-",
234
+ * "unixVer": "-"
235
+ * },
236
+ * "qq": {
237
+ * "hostVer": "-",
238
+ * "uniVer": "-",
239
+ * "unixVer": "-"
240
+ * },
241
+ * "kuaishou": {
242
+ * "hostVer": "-",
243
+ * "uniVer": "-",
244
+ * "unixVer": "-"
245
+ * },
246
+ * "jd": {
247
+ * "hostVer": "-",
248
+ * "uniVer": "-",
249
+ * "unixVer": "-"
250
+ * }
251
+ * }
252
+ * }
253
+ */
208
254
  errMsg?: string | null,
209
255
  /**
210
256
  * 登录服务商提供的登录信息,服务商不同返回的结果不完全相同
@@ -213,12 +259,12 @@ export type LoginSuccess = {
213
259
  * "android": {
214
260
  * "osVer": "5.0",
215
261
  * "uniVer": "√",
216
- * "unixVer": "5.03"
262
+ * "unixVer": "5.07"
217
263
  * },
218
264
  * "ios": {
219
265
  * "osVer": "12.0",
220
266
  * "uniVer": "√",
221
- * "unixVer": "5.03"
267
+ * "unixVer": "5.07"
222
268
  * },
223
269
  * "harmony": {
224
270
  * "osVer": "3.0",
@@ -237,12 +283,12 @@ export type LoginSuccess = {
237
283
  * "android": {
238
284
  * "osVer": "5.0",
239
285
  * "uniVer": "√",
240
- * "unixVer": "5.03"
286
+ * "unixVer": "5.07"
241
287
  * },
242
288
  * "ios": {
243
289
  * "osVer": "12.0",
244
290
  * "uniVer": "√",
245
- * "unixVer": "5.03"
291
+ * "unixVer": "5.07"
246
292
  * },
247
293
  * "harmony": {
248
294
  * "osVer": "3.0",
@@ -384,12 +430,12 @@ export type LoginOptions = {
384
430
  * "android": {
385
431
  * "osVer": "5.0",
386
432
  * "uniVer": "√",
387
- * "unixVer": "5.03"
433
+ * "unixVer": "5.07"
388
434
  * },
389
435
  * "ios": {
390
436
  * "osVer": "12.0",
391
437
  * "uniVer": "√",
392
- * "unixVer": "5.03"
438
+ * "unixVer": "5.07"
393
439
  * },
394
440
  * "harmony": {
395
441
  * "osVer": "3.0",
@@ -461,14 +507,14 @@ export type LoginOptions = {
461
507
  * @uniPlatform {
462
508
  * "app": {
463
509
  * "android": {
464
- * "osVer": "x",
465
- * "uniVer": "x",
466
- * "unixVer": "5.03"
510
+ * "osVer": "5.0",
511
+ * "uniVer": "",
512
+ * "unixVer": "5.07"
467
513
  * },
468
514
  * "ios": {
469
- * "osVer": "x",
470
- * "uniVer": "x",
471
- * "unixVer": "5.03"
515
+ * "osVer": "12.0",
516
+ * "uniVer": "",
517
+ * "unixVer": "5.07"
472
518
  * },
473
519
  * "harmony": {
474
520
  * "osVer": "5.0.0",
@@ -485,13 +531,13 @@ export type LoginOptions = {
485
531
  * @uniPlatform {
486
532
  * "app": {
487
533
  * "android": {
488
- * "osVer": "x",
489
- * "uniVer": "x",
534
+ * "osVer": "5.0",
535
+ * "uniVer": "",
490
536
  * "unixVer": "x"
491
537
  * },
492
538
  * "ios": {
493
- * "osVer": "x",
494
- * "uniVer": "x",
539
+ * "osVer": "12.0",
540
+ * "uniVer": "",
495
541
  * "unixVer": "x"
496
542
  * },
497
543
  * "harmony": {
@@ -508,13 +554,13 @@ export type LoginOptions = {
508
554
  * @uniPlatform {
509
555
  * "app": {
510
556
  * "android": {
511
- * "osVer": "x",
512
- * "uniVer": "x",
557
+ * "osVer": "5.0",
558
+ * "uniVer": "",
513
559
  * "unixVer": "x"
514
560
  * },
515
561
  * "ios": {
516
- * "osVer": "x",
517
- * "uniVer": "x",
562
+ * "osVer": "12.0",
563
+ * "uniVer": "",
518
564
  * "unixVer": "x"
519
565
  * },
520
566
  * "harmony": {
@@ -675,12 +721,12 @@ export type LoginOptions = {
675
721
  * "android": {
676
722
  * "osVer": "5.0",
677
723
  * "uniVer": "3.2.6",
678
- * "unixVer": "x"
724
+ * "unixVer": "5.07"
679
725
  * },
680
726
  * "ios": {
681
727
  * "osVer": "12.0",
682
728
  * "uniVer": "3.2.6",
683
- * "unixVer": "x"
729
+ * "unixVer": "5.07"
684
730
  * },
685
731
  * "harmony": {
686
732
  * "osVer": "5.0.0",
@@ -697,15 +743,147 @@ export type LoginOptions = {
697
743
  */
698
744
  onlyAuthorize?: boolean | null,
699
745
  /**
700
- * 接口调用成功的回调函数
746
+ * 接口调用成功的回调函数
747
+ * @uniPlatform {
748
+ * "mp": {
749
+ * "weixin": {
750
+ * "hostVer": "√",
751
+ * "uniVer": "√",
752
+ * "unixVer": "4.41"
753
+ * },
754
+ * "alipay": {
755
+ * "hostVer": "-",
756
+ * "uniVer": "-",
757
+ * "unixVer": "-"
758
+ * },
759
+ * "baidu": {
760
+ * "hostVer": "-",
761
+ * "uniVer": "-",
762
+ * "unixVer": "-"
763
+ * },
764
+ * "toutiao": {
765
+ * "hostVer": "-",
766
+ * "uniVer": "-",
767
+ * "unixVer": "-"
768
+ * },
769
+ * "lark": {
770
+ * "hostVer": "-",
771
+ * "uniVer": "-",
772
+ * "unixVer": "-"
773
+ * },
774
+ * "qq": {
775
+ * "hostVer": "-",
776
+ * "uniVer": "-",
777
+ * "unixVer": "-"
778
+ * },
779
+ * "kuaishou": {
780
+ * "hostVer": "-",
781
+ * "uniVer": "-",
782
+ * "unixVer": "-"
783
+ * },
784
+ * "jd": {
785
+ * "hostVer": "-",
786
+ * "uniVer": "-",
787
+ * "unixVer": "-"
788
+ * }
789
+ * }
790
+ * }
701
791
  */
702
792
  success?: LoginSuccessCallback | null,
703
793
  /**
704
- * 接口调用失败的回调函数
794
+ * 接口调用失败的回调函数
795
+ * @uniPlatform {
796
+ * "mp": {
797
+ * "weixin": {
798
+ * "hostVer": "√",
799
+ * "uniVer": "√",
800
+ * "unixVer": "4.41"
801
+ * },
802
+ * "alipay": {
803
+ * "hostVer": "-",
804
+ * "uniVer": "-",
805
+ * "unixVer": "-"
806
+ * },
807
+ * "baidu": {
808
+ * "hostVer": "-",
809
+ * "uniVer": "-",
810
+ * "unixVer": "-"
811
+ * },
812
+ * "toutiao": {
813
+ * "hostVer": "-",
814
+ * "uniVer": "-",
815
+ * "unixVer": "-"
816
+ * },
817
+ * "lark": {
818
+ * "hostVer": "-",
819
+ * "uniVer": "-",
820
+ * "unixVer": "-"
821
+ * },
822
+ * "qq": {
823
+ * "hostVer": "-",
824
+ * "uniVer": "-",
825
+ * "unixVer": "-"
826
+ * },
827
+ * "kuaishou": {
828
+ * "hostVer": "-",
829
+ * "uniVer": "-",
830
+ * "unixVer": "-"
831
+ * },
832
+ * "jd": {
833
+ * "hostVer": "-",
834
+ * "uniVer": "-",
835
+ * "unixVer": "-"
836
+ * }
837
+ * }
838
+ * }
705
839
  */
706
840
  fail?: LoginFailCallback | null,
707
841
  /**
708
- * 接口调用结束的回调函数(调用成功、失败都会执行)
842
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
843
+ * @uniPlatform {
844
+ * "mp": {
845
+ * "weixin": {
846
+ * "hostVer": "√",
847
+ * "uniVer": "√",
848
+ * "unixVer": "4.41"
849
+ * },
850
+ * "alipay": {
851
+ * "hostVer": "-",
852
+ * "uniVer": "-",
853
+ * "unixVer": "-"
854
+ * },
855
+ * "baidu": {
856
+ * "hostVer": "-",
857
+ * "uniVer": "-",
858
+ * "unixVer": "-"
859
+ * },
860
+ * "toutiao": {
861
+ * "hostVer": "-",
862
+ * "uniVer": "-",
863
+ * "unixVer": "-"
864
+ * },
865
+ * "lark": {
866
+ * "hostVer": "-",
867
+ * "uniVer": "-",
868
+ * "unixVer": "-"
869
+ * },
870
+ * "qq": {
871
+ * "hostVer": "-",
872
+ * "uniVer": "-",
873
+ * "unixVer": "-"
874
+ * },
875
+ * "kuaishou": {
876
+ * "hostVer": "-",
877
+ * "uniVer": "-",
878
+ * "unixVer": "-"
879
+ * },
880
+ * "jd": {
881
+ * "hostVer": "-",
882
+ * "uniVer": "-",
883
+ * "unixVer": "-"
884
+ * }
885
+ * }
886
+ * }
709
887
  */
710
888
  complete?: LoginCompleteCallback | null
711
889
  };
@@ -1018,8 +1196,52 @@ export type UniverifyStyle = {
1018
1196
  export type GetUserInfo = (options: GetUserInfoOptions) => void;
1019
1197
  export type UserInfo = {
1020
1198
  /**
1021
- * 用户昵称
1022
- */
1199
+ * 用户昵称
1200
+ * @uniPlatform {
1201
+ * "mp": {
1202
+ * "weixin": {
1203
+ * "hostVer": "√",
1204
+ * "uniVer": "√",
1205
+ * "unixVer": "4.41"
1206
+ * },
1207
+ * "alipay": {
1208
+ * "hostVer": "-",
1209
+ * "uniVer": "-",
1210
+ * "unixVer": "-"
1211
+ * },
1212
+ * "baidu": {
1213
+ * "hostVer": "-",
1214
+ * "uniVer": "-",
1215
+ * "unixVer": "-"
1216
+ * },
1217
+ * "toutiao": {
1218
+ * "hostVer": "-",
1219
+ * "uniVer": "-",
1220
+ * "unixVer": "-"
1221
+ * },
1222
+ * "lark": {
1223
+ * "hostVer": "-",
1224
+ * "uniVer": "-",
1225
+ * "unixVer": "-"
1226
+ * },
1227
+ * "qq": {
1228
+ * "hostVer": "-",
1229
+ * "uniVer": "-",
1230
+ * "unixVer": "-"
1231
+ * },
1232
+ * "kuaishou": {
1233
+ * "hostVer": "-",
1234
+ * "uniVer": "-",
1235
+ * "unixVer": "-"
1236
+ * },
1237
+ * "jd": {
1238
+ * "hostVer": "-",
1239
+ * "uniVer": "-",
1240
+ * "unixVer": "-"
1241
+ * }
1242
+ * }
1243
+ * }
1244
+ */
1023
1245
  nickName: string,
1024
1246
  /**
1025
1247
  * 该服务商唯一用户标识
@@ -1101,7 +1323,51 @@ export type UserInfo = {
1101
1323
  */
1102
1324
  openId?: string | null,
1103
1325
  /**
1104
- * 用户头像
1326
+ * 用户头像
1327
+ * @uniPlatform {
1328
+ * "mp": {
1329
+ * "weixin": {
1330
+ * "hostVer": "√",
1331
+ * "uniVer": "√",
1332
+ * "unixVer": "4.41"
1333
+ * },
1334
+ * "alipay": {
1335
+ * "hostVer": "-",
1336
+ * "uniVer": "-",
1337
+ * "unixVer": "-"
1338
+ * },
1339
+ * "baidu": {
1340
+ * "hostVer": "-",
1341
+ * "uniVer": "-",
1342
+ * "unixVer": "-"
1343
+ * },
1344
+ * "toutiao": {
1345
+ * "hostVer": "-",
1346
+ * "uniVer": "-",
1347
+ * "unixVer": "-"
1348
+ * },
1349
+ * "lark": {
1350
+ * "hostVer": "-",
1351
+ * "uniVer": "-",
1352
+ * "unixVer": "-"
1353
+ * },
1354
+ * "qq": {
1355
+ * "hostVer": "-",
1356
+ * "uniVer": "-",
1357
+ * "unixVer": "-"
1358
+ * },
1359
+ * "kuaishou": {
1360
+ * "hostVer": "-",
1361
+ * "uniVer": "-",
1362
+ * "unixVer": "-"
1363
+ * },
1364
+ * "jd": {
1365
+ * "hostVer": "-",
1366
+ * "uniVer": "-",
1367
+ * "unixVer": "-"
1368
+ * }
1369
+ * }
1370
+ * }
1105
1371
  */
1106
1372
  avatarUrl: string,
1107
1373
  /**
@@ -1186,15 +1452,360 @@ export type UserInfo = {
1186
1452
  /**
1187
1453
  * 男
1188
1454
  */
1189
- '0' |
1190
- /**
1191
- * 女
1192
- */
1193
- '1' |
1194
- /**
1195
- * 保密
1196
- */
1197
- '2' | null;
1455
+ '0' |
1456
+
1457
+ /**
1458
+ * 女
1459
+ */
1460
+ '1' |
1461
+
1462
+ /**
1463
+ * 保密
1464
+ */
1465
+ '2' |
1466
+ null |
1467
+ /**
1468
+ * @uniPlatform {
1469
+ * "mp": {
1470
+ * "weixin": {
1471
+ * "hostVer": "√",
1472
+ * "uniVer": "√",
1473
+ * "unixVer": "4.41"
1474
+ * },
1475
+ * "alipay": {
1476
+ * "hostVer": "-",
1477
+ * "uniVer": "-",
1478
+ * "unixVer": "-"
1479
+ * },
1480
+ * "baidu": {
1481
+ * "hostVer": "-",
1482
+ * "uniVer": "-",
1483
+ * "unixVer": "-"
1484
+ * },
1485
+ * "toutiao": {
1486
+ * "hostVer": "-",
1487
+ * "uniVer": "-",
1488
+ * "unixVer": "-"
1489
+ * },
1490
+ * "lark": {
1491
+ * "hostVer": "-",
1492
+ * "uniVer": "-",
1493
+ * "unixVer": "-"
1494
+ * },
1495
+ * "qq": {
1496
+ * "hostVer": "-",
1497
+ * "uniVer": "-",
1498
+ * "unixVer": "-"
1499
+ * },
1500
+ * "kuaishou": {
1501
+ * "hostVer": "-",
1502
+ * "uniVer": "-",
1503
+ * "unixVer": "-"
1504
+ * },
1505
+ * "jd": {
1506
+ * "hostVer": "-",
1507
+ * "uniVer": "-",
1508
+ * "unixVer": "-"
1509
+ * }
1510
+ * }
1511
+ * }
1512
+ */
1513
+ 0 |
1514
+ /**
1515
+ * @uniPlatform {
1516
+ * "mp": {
1517
+ * "weixin": {
1518
+ * "hostVer": "√",
1519
+ * "uniVer": "√",
1520
+ * "unixVer": "4.41"
1521
+ * },
1522
+ * "alipay": {
1523
+ * "hostVer": "-",
1524
+ * "uniVer": "-",
1525
+ * "unixVer": "-"
1526
+ * },
1527
+ * "baidu": {
1528
+ * "hostVer": "-",
1529
+ * "uniVer": "-",
1530
+ * "unixVer": "-"
1531
+ * },
1532
+ * "toutiao": {
1533
+ * "hostVer": "-",
1534
+ * "uniVer": "-",
1535
+ * "unixVer": "-"
1536
+ * },
1537
+ * "lark": {
1538
+ * "hostVer": "-",
1539
+ * "uniVer": "-",
1540
+ * "unixVer": "-"
1541
+ * },
1542
+ * "qq": {
1543
+ * "hostVer": "-",
1544
+ * "uniVer": "-",
1545
+ * "unixVer": "-"
1546
+ * },
1547
+ * "kuaishou": {
1548
+ * "hostVer": "-",
1549
+ * "uniVer": "-",
1550
+ * "unixVer": "-"
1551
+ * },
1552
+ * "jd": {
1553
+ * "hostVer": "-",
1554
+ * "uniVer": "-",
1555
+ * "unixVer": "-"
1556
+ * }
1557
+ * }
1558
+ * }
1559
+ */
1560
+ 1 |
1561
+ /**
1562
+ * @uniPlatform {
1563
+ * "mp": {
1564
+ * "weixin": {
1565
+ * "hostVer": "√",
1566
+ * "uniVer": "√",
1567
+ * "unixVer": "4.41"
1568
+ * },
1569
+ * "alipay": {
1570
+ * "hostVer": "-",
1571
+ * "uniVer": "-",
1572
+ * "unixVer": "-"
1573
+ * },
1574
+ * "baidu": {
1575
+ * "hostVer": "-",
1576
+ * "uniVer": "-",
1577
+ * "unixVer": "-"
1578
+ * },
1579
+ * "toutiao": {
1580
+ * "hostVer": "-",
1581
+ * "uniVer": "-",
1582
+ * "unixVer": "-"
1583
+ * },
1584
+ * "lark": {
1585
+ * "hostVer": "-",
1586
+ * "uniVer": "-",
1587
+ * "unixVer": "-"
1588
+ * },
1589
+ * "qq": {
1590
+ * "hostVer": "-",
1591
+ * "uniVer": "-",
1592
+ * "unixVer": "-"
1593
+ * },
1594
+ * "kuaishou": {
1595
+ * "hostVer": "-",
1596
+ * "uniVer": "-",
1597
+ * "unixVer": "-"
1598
+ * },
1599
+ * "jd": {
1600
+ * "hostVer": "-",
1601
+ * "uniVer": "-",
1602
+ * "unixVer": "-"
1603
+ * }
1604
+ * }
1605
+ * }
1606
+ */
1607
+ 2;
1608
+ /**
1609
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1610
+ *
1611
+ * @uniPlatform {
1612
+ * "mp": {
1613
+ * "weixin": {
1614
+ * "hostVer": "√",
1615
+ * "uniVer": "√",
1616
+ * "unixVer": "4.41"
1617
+ * },
1618
+ * "alipay": {
1619
+ * "hostVer": "-",
1620
+ * "uniVer": "-",
1621
+ * "unixVer": "-"
1622
+ * },
1623
+ * "baidu": {
1624
+ * "hostVer": "-",
1625
+ * "uniVer": "-",
1626
+ * "unixVer": "-"
1627
+ * },
1628
+ * "toutiao": {
1629
+ * "hostVer": "-",
1630
+ * "uniVer": "-",
1631
+ * "unixVer": "-"
1632
+ * },
1633
+ * "lark": {
1634
+ * "hostVer": "-",
1635
+ * "uniVer": "-",
1636
+ * "unixVer": "-"
1637
+ * },
1638
+ * "qq": {
1639
+ * "hostVer": "-",
1640
+ * "uniVer": "-",
1641
+ * "unixVer": "-"
1642
+ * },
1643
+ * "kuaishou": {
1644
+ * "hostVer": "-",
1645
+ * "uniVer": "-",
1646
+ * "unixVer": "-"
1647
+ * },
1648
+ * "jd": {
1649
+ * "hostVer": "-",
1650
+ * "uniVer": "-",
1651
+ * "unixVer": "-"
1652
+ * }
1653
+ * }
1654
+ * }
1655
+ */
1656
+ city?: string | null;
1657
+ /**
1658
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1659
+ *
1660
+ * @uniPlatform {
1661
+ * "mp": {
1662
+ * "weixin": {
1663
+ * "hostVer": "√",
1664
+ * "uniVer": "√",
1665
+ * "unixVer": "4.41"
1666
+ * },
1667
+ * "alipay": {
1668
+ * "hostVer": "-",
1669
+ * "uniVer": "-",
1670
+ * "unixVer": "-"
1671
+ * },
1672
+ * "baidu": {
1673
+ * "hostVer": "-",
1674
+ * "uniVer": "-",
1675
+ * "unixVer": "-"
1676
+ * },
1677
+ * "toutiao": {
1678
+ * "hostVer": "-",
1679
+ * "uniVer": "-",
1680
+ * "unixVer": "-"
1681
+ * },
1682
+ * "lark": {
1683
+ * "hostVer": "-",
1684
+ * "uniVer": "-",
1685
+ * "unixVer": "-"
1686
+ * },
1687
+ * "qq": {
1688
+ * "hostVer": "-",
1689
+ * "uniVer": "-",
1690
+ * "unixVer": "-"
1691
+ * },
1692
+ * "kuaishou": {
1693
+ * "hostVer": "-",
1694
+ * "uniVer": "-",
1695
+ * "unixVer": "-"
1696
+ * },
1697
+ * "jd": {
1698
+ * "hostVer": "-",
1699
+ * "uniVer": "-",
1700
+ * "unixVer": "-"
1701
+ * }
1702
+ * }
1703
+ * }
1704
+ */
1705
+ country?: string | null;
1706
+ /**
1707
+ * 可选值:
1708
+ * - 'en': 英文;
1709
+ * - 'zh_CN': 简体中文;
1710
+ * - 'zh_TW': 繁体中文;
1711
+ *
1712
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1713
+ *
1714
+ * @uniPlatform {
1715
+ * "mp": {
1716
+ * "weixin": {
1717
+ * "hostVer": "√",
1718
+ * "uniVer": "√",
1719
+ * "unixVer": "4.41"
1720
+ * },
1721
+ * "alipay": {
1722
+ * "hostVer": "-",
1723
+ * "uniVer": "-",
1724
+ * "unixVer": "-"
1725
+ * },
1726
+ * "baidu": {
1727
+ * "hostVer": "-",
1728
+ * "uniVer": "-",
1729
+ * "unixVer": "-"
1730
+ * },
1731
+ * "toutiao": {
1732
+ * "hostVer": "-",
1733
+ * "uniVer": "-",
1734
+ * "unixVer": "-"
1735
+ * },
1736
+ * "lark": {
1737
+ * "hostVer": "-",
1738
+ * "uniVer": "-",
1739
+ * "unixVer": "-"
1740
+ * },
1741
+ * "qq": {
1742
+ * "hostVer": "-",
1743
+ * "uniVer": "-",
1744
+ * "unixVer": "-"
1745
+ * },
1746
+ * "kuaishou": {
1747
+ * "hostVer": "-",
1748
+ * "uniVer": "-",
1749
+ * "unixVer": "-"
1750
+ * },
1751
+ * "jd": {
1752
+ * "hostVer": "-",
1753
+ * "uniVer": "-",
1754
+ * "unixVer": "-"
1755
+ * }
1756
+ * }
1757
+ * }
1758
+ */
1759
+ language?: "en" | "zh_CN" | "zh_TW" | null;
1760
+ /**
1761
+ * @tutorial_weixin https://developers.weixin.qq.com/community/develop/doc/00028edbe3c58081e7cc834705b801
1762
+ *
1763
+ * @uniPlatform {
1764
+ * "mp": {
1765
+ * "weixin": {
1766
+ * "hostVer": "√",
1767
+ * "uniVer": "√",
1768
+ * "unixVer": "4.41"
1769
+ * },
1770
+ * "alipay": {
1771
+ * "hostVer": "-",
1772
+ * "uniVer": "-",
1773
+ * "unixVer": "-"
1774
+ * },
1775
+ * "baidu": {
1776
+ * "hostVer": "-",
1777
+ * "uniVer": "-",
1778
+ * "unixVer": "-"
1779
+ * },
1780
+ * "toutiao": {
1781
+ * "hostVer": "-",
1782
+ * "uniVer": "-",
1783
+ * "unixVer": "-"
1784
+ * },
1785
+ * "lark": {
1786
+ * "hostVer": "-",
1787
+ * "uniVer": "-",
1788
+ * "unixVer": "-"
1789
+ * },
1790
+ * "qq": {
1791
+ * "hostVer": "-",
1792
+ * "uniVer": "-",
1793
+ * "unixVer": "-"
1794
+ * },
1795
+ * "kuaishou": {
1796
+ * "hostVer": "-",
1797
+ * "uniVer": "-",
1798
+ * "unixVer": "-"
1799
+ * },
1800
+ * "jd": {
1801
+ * "hostVer": "-",
1802
+ * "uniVer": "-",
1803
+ * "unixVer": "-"
1804
+ * }
1805
+ * }
1806
+ * }
1807
+ */
1808
+ province?: string | null;
1198
1809
  };
1199
1810
  export type GetUserInfoSuccess = {
1200
1811
  /**
@@ -1589,9 +2200,104 @@ export type GetUserInfoSuccess = {
1589
2200
  */
1590
2201
  iv?: string | null,
1591
2202
  /**
1592
- * 描述信息
1593
- */
1594
- errMsg: string
2203
+ * 描述信息
2204
+ * @uniPlatform {
2205
+ * "mp": {
2206
+ * "weixin": {
2207
+ * "hostVer": "√",
2208
+ * "uniVer": "√",
2209
+ * "unixVer": "4.41"
2210
+ * },
2211
+ * "alipay": {
2212
+ * "hostVer": "-",
2213
+ * "uniVer": "-",
2214
+ * "unixVer": "-"
2215
+ * },
2216
+ * "baidu": {
2217
+ * "hostVer": "-",
2218
+ * "uniVer": "-",
2219
+ * "unixVer": "-"
2220
+ * },
2221
+ * "toutiao": {
2222
+ * "hostVer": "-",
2223
+ * "uniVer": "-",
2224
+ * "unixVer": "-"
2225
+ * },
2226
+ * "lark": {
2227
+ * "hostVer": "-",
2228
+ * "uniVer": "-",
2229
+ * "unixVer": "-"
2230
+ * },
2231
+ * "qq": {
2232
+ * "hostVer": "-",
2233
+ * "uniVer": "-",
2234
+ * "unixVer": "-"
2235
+ * },
2236
+ * "kuaishou": {
2237
+ * "hostVer": "-",
2238
+ * "uniVer": "-",
2239
+ * "unixVer": "-"
2240
+ * },
2241
+ * "jd": {
2242
+ * "hostVer": "-",
2243
+ * "uniVer": "-",
2244
+ * "unixVer": "-"
2245
+ * }
2246
+ * }
2247
+ * }
2248
+ */
2249
+ errMsg: string
2250
+ /**
2251
+ * 需要基础库: `2.7.0`
2252
+ *
2253
+ * 敏感数据对应的云 ID,开通[云开发](https://developers.weixin.qq.com/miniprogram/dev/wxcloudservice/wxcloud/basis/getting-started.html)的小程序才会返回,可通过云调用直接获取开放数据,详细见[云调用直接获取开放数据](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/signature.html#method-cloud)
2254
+ *
2255
+ * @uniPlatform {
2256
+ * "mp": {
2257
+ * "weixin": {
2258
+ * "hostVer": "2.7.0",
2259
+ * "uniVer": "√",
2260
+ * "unixVer": "4.41"
2261
+ * },
2262
+ * "alipay": {
2263
+ * "hostVer": "-",
2264
+ * "uniVer": "-",
2265
+ * "unixVer": "-"
2266
+ * },
2267
+ * "baidu": {
2268
+ * "hostVer": "-",
2269
+ * "uniVer": "-",
2270
+ * "unixVer": "-"
2271
+ * },
2272
+ * "toutiao": {
2273
+ * "hostVer": "-",
2274
+ * "uniVer": "-",
2275
+ * "unixVer": "-"
2276
+ * },
2277
+ * "lark": {
2278
+ * "hostVer": "-",
2279
+ * "uniVer": "-",
2280
+ * "unixVer": "-"
2281
+ * },
2282
+ * "qq": {
2283
+ * "hostVer": "-",
2284
+ * "uniVer": "-",
2285
+ * "unixVer": "-"
2286
+ * },
2287
+ * "kuaishou": {
2288
+ * "hostVer": "-",
2289
+ * "uniVer": "-",
2290
+ * "unixVer": "-"
2291
+ * },
2292
+ * "jd": {
2293
+ * "hostVer": "-",
2294
+ * "uniVer": "-",
2295
+ * "unixVer": "-"
2296
+ * }
2297
+ * }
2298
+ * }
2299
+ */
2300
+ cloudID?: string | null;
1595
2301
  };
1596
2302
  export type GetUserInfoSuccessCallback = (result: GetUserInfoSuccess) => void;
1597
2303
  export type GetUserInfoFail = IUniError;
@@ -2055,21 +2761,204 @@ export type GetUserInfoOptions = {
2055
2761
  */
2056
2762
  timeout?: number | null,
2057
2763
  /**
2058
- * 接口调用成功的回调函数
2764
+ * 接口调用成功的回调函数
2765
+ * @uniPlatform {
2766
+ * "mp": {
2767
+ * "weixin": {
2768
+ * "hostVer": "√",
2769
+ * "uniVer": "√",
2770
+ * "unixVer": "4.41"
2771
+ * },
2772
+ * "alipay": {
2773
+ * "hostVer": "-",
2774
+ * "uniVer": "-",
2775
+ * "unixVer": "-"
2776
+ * },
2777
+ * "baidu": {
2778
+ * "hostVer": "-",
2779
+ * "uniVer": "-",
2780
+ * "unixVer": "-"
2781
+ * },
2782
+ * "toutiao": {
2783
+ * "hostVer": "-",
2784
+ * "uniVer": "-",
2785
+ * "unixVer": "-"
2786
+ * },
2787
+ * "lark": {
2788
+ * "hostVer": "-",
2789
+ * "uniVer": "-",
2790
+ * "unixVer": "-"
2791
+ * },
2792
+ * "qq": {
2793
+ * "hostVer": "-",
2794
+ * "uniVer": "-",
2795
+ * "unixVer": "-"
2796
+ * },
2797
+ * "kuaishou": {
2798
+ * "hostVer": "-",
2799
+ * "uniVer": "-",
2800
+ * "unixVer": "-"
2801
+ * },
2802
+ * "jd": {
2803
+ * "hostVer": "-",
2804
+ * "uniVer": "-",
2805
+ * "unixVer": "-"
2806
+ * }
2807
+ * }
2808
+ * }
2059
2809
  */
2060
2810
  success?: GetUserInfoSuccessCallback | null,
2061
2811
  /**
2062
- * 接口调用失败的回调函数
2812
+ * 接口调用失败的回调函数
2813
+ * @uniPlatform {
2814
+ * "mp": {
2815
+ * "weixin": {
2816
+ * "hostVer": "√",
2817
+ * "uniVer": "√",
2818
+ * "unixVer": "4.41"
2819
+ * },
2820
+ * "alipay": {
2821
+ * "hostVer": "-",
2822
+ * "uniVer": "-",
2823
+ * "unixVer": "-"
2824
+ * },
2825
+ * "baidu": {
2826
+ * "hostVer": "-",
2827
+ * "uniVer": "-",
2828
+ * "unixVer": "-"
2829
+ * },
2830
+ * "toutiao": {
2831
+ * "hostVer": "-",
2832
+ * "uniVer": "-",
2833
+ * "unixVer": "-"
2834
+ * },
2835
+ * "lark": {
2836
+ * "hostVer": "-",
2837
+ * "uniVer": "-",
2838
+ * "unixVer": "-"
2839
+ * },
2840
+ * "qq": {
2841
+ * "hostVer": "-",
2842
+ * "uniVer": "-",
2843
+ * "unixVer": "-"
2844
+ * },
2845
+ * "kuaishou": {
2846
+ * "hostVer": "-",
2847
+ * "uniVer": "-",
2848
+ * "unixVer": "-"
2849
+ * },
2850
+ * "jd": {
2851
+ * "hostVer": "-",
2852
+ * "uniVer": "-",
2853
+ * "unixVer": "-"
2854
+ * }
2855
+ * }
2856
+ * }
2063
2857
  */
2064
2858
  fail?: GetUserInfoFailCallback | null,
2065
2859
  /**
2066
- * 接口调用结束的回调函数(调用成功、失败都会执行)
2860
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
2861
+ * @uniPlatform {
2862
+ * "mp": {
2863
+ * "weixin": {
2864
+ * "hostVer": "√",
2865
+ * "uniVer": "√",
2866
+ * "unixVer": "4.41"
2867
+ * },
2868
+ * "alipay": {
2869
+ * "hostVer": "-",
2870
+ * "uniVer": "-",
2871
+ * "unixVer": "-"
2872
+ * },
2873
+ * "baidu": {
2874
+ * "hostVer": "-",
2875
+ * "uniVer": "-",
2876
+ * "unixVer": "-"
2877
+ * },
2878
+ * "toutiao": {
2879
+ * "hostVer": "-",
2880
+ * "uniVer": "-",
2881
+ * "unixVer": "-"
2882
+ * },
2883
+ * "lark": {
2884
+ * "hostVer": "-",
2885
+ * "uniVer": "-",
2886
+ * "unixVer": "-"
2887
+ * },
2888
+ * "qq": {
2889
+ * "hostVer": "-",
2890
+ * "uniVer": "-",
2891
+ * "unixVer": "-"
2892
+ * },
2893
+ * "kuaishou": {
2894
+ * "hostVer": "-",
2895
+ * "uniVer": "-",
2896
+ * "unixVer": "-"
2897
+ * },
2898
+ * "jd": {
2899
+ * "hostVer": "-",
2900
+ * "uniVer": "-",
2901
+ * "unixVer": "-"
2902
+ * }
2903
+ * }
2904
+ * }
2067
2905
  */
2068
2906
  complete?: GetUserInfoCompleteCallback | null
2069
2907
  };
2070
2908
 
2071
2909
  export interface IOauthFail extends IUniError {
2072
- errCode : OauthErrorCode
2910
+ errCode : OauthErrorCode
2911
+ /**
2912
+ * 需要基础库: `2.24.0`
2913
+ *
2914
+ * errno 错误码,错误码的详细说明参考 [Errno错误码](https://developers.weixin.qq.com/miniprogram/dev/framework/usability/PublicErrno.html)
2915
+ *
2916
+ * @uniPlatform {
2917
+ * "mp": {
2918
+ * "weixin": {
2919
+ * "hostVer": "2.24.0",
2920
+ * "uniVer": "√",
2921
+ * "unixVer": "4.41"
2922
+ * },
2923
+ * "alipay": {
2924
+ * "hostVer": "-",
2925
+ * "uniVer": "-",
2926
+ * "unixVer": "-"
2927
+ * },
2928
+ * "baidu": {
2929
+ * "hostVer": "-",
2930
+ * "uniVer": "-",
2931
+ * "unixVer": "-"
2932
+ * },
2933
+ * "toutiao": {
2934
+ * "hostVer": "-",
2935
+ * "uniVer": "-",
2936
+ * "unixVer": "-"
2937
+ * },
2938
+ * "lark": {
2939
+ * "hostVer": "-",
2940
+ * "uniVer": "-",
2941
+ * "unixVer": "-"
2942
+ * },
2943
+ * "qq": {
2944
+ * "hostVer": "-",
2945
+ * "uniVer": "-",
2946
+ * "unixVer": "-"
2947
+ * },
2948
+ * "kuaishou": {
2949
+ * "hostVer": "-",
2950
+ * "uniVer": "-",
2951
+ * "unixVer": "-"
2952
+ * },
2953
+ * "jd": {
2954
+ * "hostVer": "-",
2955
+ * "uniVer": "-",
2956
+ * "unixVer": "-"
2957
+ * }
2958
+ * }
2959
+ * }
2960
+ */
2961
+ errno?: number | null;
2073
2962
  };
2074
2963
 
2075
2964
  /**