@dcloudio/uni-app-x 0.7.58 → 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 +459 -0
  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,833 @@
1
+ import { RequestPaymentFailImpl as RequestPaymentFailImplement } from './unierror.uts'
2
+
3
+ export type RequestPaymentFailImpl = RequestPaymentFailImplement
4
+ export interface UniPaymentProvider extends UniProvider {
5
+ requestPayment(options: RequestPaymentOptions): void;
6
+ }
7
+ export interface Uni {
8
+ /**
9
+ * @description 请求支付
10
+ * @param {RequestPaymentOptions} options
11
+ * @example
12
+ * ```typescript
13
+ * uni.requestPayment({
14
+ * provider: "alipay",
15
+ * orderInfo: "",
16
+ * success: function (res) {
17
+ * console.log("支付成功"+JSON.stringify(res))
18
+ * }
19
+ * });
20
+ * ```
21
+ * @tutorial-uni-app https://uniapp.dcloud.net.cn/api/plugins/payment.html#requestpayment
22
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
23
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/request-payment.html#requestpayment
24
+ * @uniPlatform {
25
+ * "app": {
26
+ * "android": {
27
+ * "osVer": "5.0",
28
+ * "uniVer": "√",
29
+ * "unixVer": "4.02"
30
+ * },
31
+ * "ios": {
32
+ * "osVer": "12.0",
33
+ * "uniVer": "√",
34
+ * "unixVer": "4.18"
35
+ * },
36
+ * "harmony": {
37
+ * "osVer": "3.0",
38
+ * "uniVer": "4.26",
39
+ * "unixVer": "4.61"
40
+ * }
41
+ * },
42
+ * "mp": {
43
+ * "weixin": {
44
+ * "hostVer": "√",
45
+ * "uniVer": "√",
46
+ * "unixVer": "4.41"
47
+ * },
48
+ * "alipay": {
49
+ * "hostVer": "√",
50
+ * "uniVer": "√",
51
+ * "unixVer": "x"
52
+ * },
53
+ * "baidu": {
54
+ * "hostVer": "√",
55
+ * "uniVer": "√",
56
+ * "unixVer": "x"
57
+ * },
58
+ * "toutiao": {
59
+ * "hostVer": "√",
60
+ * "uniVer": "√",
61
+ * "unixVer": "x"
62
+ * },
63
+ * "lark": {
64
+ * "hostVer": "√",
65
+ * "uniVer": "√",
66
+ * "unixVer": "x"
67
+ * },
68
+ * "qq": {
69
+ * "hostVer": "√",
70
+ * "uniVer": "√",
71
+ * "unixVer": "x"
72
+ * },
73
+ * "kuaishou": {
74
+ * "hostVer": "√",
75
+ * "uniVer": "√",
76
+ * "unixVer": "x"
77
+ * },
78
+ * "jd": {
79
+ * "hostVer": "√",
80
+ * "uniVer": "√",
81
+ * "unixVer": "x"
82
+ * }
83
+ * },
84
+ * "web": {
85
+ * "uniVer": "x",
86
+ * "unixVer": "x"
87
+ * }
88
+ * }
89
+ */
90
+ requestPayment(options: RequestPaymentOptions): void;
91
+ }
92
+ /**
93
+ * 错误码
94
+ */
95
+ export type RequestPaymentErrorCode =
96
+ /**
97
+ * 正在处理中,支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态
98
+ * @uniPlatform {
99
+ * "app": {
100
+ * "android": {
101
+ * "osVer": "5.0",
102
+ * "uniVer": "√",
103
+ * "unixVer": "4.02"
104
+ * },
105
+ * "ios": {
106
+ * "osVer": "12.0",
107
+ * "uniVer": "√",
108
+ * "unixVer": "4.18"
109
+ * },
110
+ * "harmony": {
111
+ * "osVer": "3.0",
112
+ * "uniVer": "4.27",
113
+ * "unixVer": "4.61"
114
+ * }
115
+ * },
116
+ * "web": {
117
+ * "uniVer": "x",
118
+ * "unixVer": "x"
119
+ * }
120
+ * }
121
+ */
122
+ 700600 |
123
+ /**
124
+ * 订单支付失败。
125
+ * @uniPlatform {
126
+ * "app": {
127
+ * "android": {
128
+ * "osVer": "5.0",
129
+ * "uniVer": "√",
130
+ * "unixVer": "4.02"
131
+ * },
132
+ * "ios": {
133
+ * "osVer": "12.0",
134
+ * "uniVer": "√",
135
+ * "unixVer": "4.18"
136
+ * },
137
+ * "harmony": {
138
+ * "osVer": "3.0",
139
+ * "uniVer": "4.27",
140
+ * "unixVer": "4.61"
141
+ * }
142
+ * },
143
+ * "web": {
144
+ * "uniVer": "x",
145
+ * "unixVer": "x"
146
+ * }
147
+ * }
148
+ */
149
+ 701100 |
150
+ /**
151
+ * 重复请求。
152
+ * @uniPlatform {
153
+ * "app": {
154
+ * "android": {
155
+ * "osVer": "5.0",
156
+ * "uniVer": "√",
157
+ * "unixVer": "4.02"
158
+ * },
159
+ * "ios": {
160
+ * "osVer": "12.0",
161
+ * "uniVer": "√",
162
+ * "unixVer": "4.18"
163
+ * },
164
+ * "harmony": {
165
+ * "osVer": "3.0",
166
+ * "uniVer": "4.27",
167
+ * "unixVer": "4.61"
168
+ * }
169
+ * },
170
+ * "web": {
171
+ * "uniVer": "x",
172
+ * "unixVer": "x"
173
+ * }
174
+ * }
175
+ */
176
+ 701110 |
177
+ /**
178
+ * 用户中途取消。
179
+ * @uniPlatform {
180
+ * "app": {
181
+ * "android": {
182
+ * "osVer": "5.0",
183
+ * "uniVer": "√",
184
+ * "unixVer": "4.02"
185
+ * },
186
+ * "ios": {
187
+ * "osVer": "12.0",
188
+ * "uniVer": "√",
189
+ * "unixVer": "4.18"
190
+ * },
191
+ * "harmony": {
192
+ * "osVer": "3.0",
193
+ * "uniVer": "4.27",
194
+ * "unixVer": "4.61"
195
+ * }
196
+ * },
197
+ * "web": {
198
+ * "uniVer": "x",
199
+ * "unixVer": "x"
200
+ * }
201
+ * }
202
+ */
203
+ 700601 |
204
+ /**
205
+ * 网络连接出错。
206
+ * @uniPlatform {
207
+ * "app": {
208
+ * "android": {
209
+ * "osVer": "5.0",
210
+ * "uniVer": "√",
211
+ * "unixVer": "4.02"
212
+ * },
213
+ * "ios": {
214
+ * "osVer": "12.0",
215
+ * "uniVer": "√",
216
+ * "unixVer": "4.18"
217
+ * },
218
+ * "harmony": {
219
+ * "osVer": "3.0",
220
+ * "uniVer": "4.27",
221
+ * "unixVer": "4.61"
222
+ * }
223
+ * },
224
+ * "web": {
225
+ * "uniVer": "x",
226
+ * "unixVer": "x"
227
+ * }
228
+ * }
229
+ */
230
+ 700602 |
231
+ /**
232
+ * 支付结果未知(有可能已经支付成功),请查询商家订单列表中订单的支付状态。
233
+ * @uniPlatform {
234
+ * "app": {
235
+ * "android": {
236
+ * "osVer": "5.0",
237
+ * "uniVer": "√",
238
+ * "unixVer": "4.02"
239
+ * },
240
+ * "ios": {
241
+ * "osVer": "12.0",
242
+ * "uniVer": "√",
243
+ * "unixVer": "4.18"
244
+ * },
245
+ * "harmony": {
246
+ * "osVer": "3.0",
247
+ * "uniVer": "4.27",
248
+ * "unixVer": "4.61"
249
+ * }
250
+ * },
251
+ * "web": {
252
+ * "uniVer": "x",
253
+ * "unixVer": "x"
254
+ * }
255
+ * }
256
+ */
257
+ 700603 |
258
+ /**
259
+ * 其它支付错误。
260
+ * @uniPlatform {
261
+ * "app": {
262
+ * "android": {
263
+ * "osVer": "5.0",
264
+ * "uniVer": "√",
265
+ * "unixVer": "4.02"
266
+ * },
267
+ * "ios": {
268
+ * "osVer": "12.0",
269
+ * "uniVer": "√",
270
+ * "unixVer": "4.18"
271
+ * },
272
+ * "harmony": {
273
+ * "osVer": "3.0",
274
+ * "uniVer": "4.27",
275
+ * "unixVer": "4.61"
276
+ * }
277
+ * },
278
+ * "web": {
279
+ * "uniVer": "x",
280
+ * "unixVer": "x"
281
+ * }
282
+ * }
283
+ */
284
+ 700000 |
285
+ /**
286
+ * 微信没有安装。
287
+ * @uniPlatform {
288
+ * "app": {
289
+ * "android": {
290
+ * "osVer": "5.0",
291
+ * "uniVer": "√",
292
+ * "unixVer": "4.02"
293
+ * },
294
+ * "ios": {
295
+ * "osVer": "12.0",
296
+ * "uniVer": "√",
297
+ * "unixVer": "4.18"
298
+ * },
299
+ * "harmony": {
300
+ * "osVer": "3.0",
301
+ * "uniVer": "4.27",
302
+ * "unixVer": "4.61"
303
+ * }
304
+ * },
305
+ * "web": {
306
+ * "uniVer": "x",
307
+ * "unixVer": "x"
308
+ * }
309
+ * }
310
+ */
311
+ 700604 |
312
+ /**
313
+ * 服务供应商获取失败。
314
+ * @uniPlatform {
315
+ * "app": {
316
+ * "android": {
317
+ * "osVer": "5.0",
318
+ * "uniVer": "√",
319
+ * "unixVer": "4.02"
320
+ * },
321
+ * "ios": {
322
+ * "osVer": "12.0",
323
+ * "uniVer": "√",
324
+ * "unixVer": "4.18"
325
+ * },
326
+ * "harmony": {
327
+ * "osVer": "3.0",
328
+ * "uniVer": "4.27",
329
+ * "unixVer": "4.61"
330
+ * }
331
+ * },
332
+ * "web": {
333
+ * "uniVer": "x",
334
+ * "unixVer": "x"
335
+ * }
336
+ * }
337
+ */
338
+ 700605 |
339
+ /**
340
+ * 支付未完成。
341
+ * @uniPlatform {
342
+ * "app": {
343
+ * "android": {
344
+ * "osVer": "5.0",
345
+ * "uniVer": "x",
346
+ * "unixVer": "4.31"
347
+ * },
348
+ * "ios": {
349
+ * "osVer": "12.0",
350
+ * "uniVer": "x",
351
+ * "unixVer": "4.31"
352
+ * },
353
+ * "harmony": {
354
+ * "osVer": "3.0",
355
+ * "uniVer": "4.31",
356
+ * "unixVer": "4.61"
357
+ * }
358
+ * },
359
+ * "web": {
360
+ * "uniVer": "x",
361
+ * "unixVer": "x"
362
+ * }
363
+ * }
364
+ */
365
+ 700607 |
366
+ /**
367
+ * 服务商返回参数错误。
368
+ * @uniPlatform {
369
+ * "app": {
370
+ * "android": {
371
+ * "osVer": "5.0",
372
+ * "uniVer": "x",
373
+ * "unixVer": "4.31"
374
+ * },
375
+ * "ios": {
376
+ * "osVer": "12.0",
377
+ * "uniVer": "x",
378
+ * "unixVer": "4.31"
379
+ * },
380
+ * "harmony": {
381
+ * "osVer": "3.0",
382
+ * "uniVer": "4.31",
383
+ * "unixVer": "4.61"
384
+ * }
385
+ * },
386
+ * "web": {
387
+ * "uniVer": "x",
388
+ * "unixVer": "x"
389
+ * }
390
+ * }
391
+ */
392
+ 700608 |
393
+ /**
394
+ * 没有配置对应的URL Scheme。
395
+ * @uniPlatform {
396
+ * "app": {
397
+ * "android": {
398
+ * "osVer": "5.0",
399
+ * "uniVer": "√",
400
+ * "unixVer": "4.02"
401
+ * },
402
+ * "ios": {
403
+ * "osVer": "12.0",
404
+ * "uniVer": "√",
405
+ * "unixVer": "4.18"
406
+ * },
407
+ * "harmony": {
408
+ * "osVer": "x",
409
+ * "uniVer": "x",
410
+ * "unixVer": "x"
411
+ * }
412
+ * },
413
+ * "web": {
414
+ * "uniVer": "x",
415
+ * "unixVer": "x"
416
+ * }
417
+ * }
418
+ */
419
+ 700800 |
420
+ /**
421
+ * 没有配置对应的Universal Link。
422
+ * @uniPlatform {
423
+ * "app": {
424
+ * "android": {
425
+ * "osVer": "5.0",
426
+ * "uniVer": "√",
427
+ * "unixVer": "4.02"
428
+ * },
429
+ * "ios": {
430
+ * "osVer": "12.0",
431
+ * "uniVer": "√",
432
+ * "unixVer": "4.18"
433
+ * },
434
+ * "harmony": {
435
+ * "osVer": "x",
436
+ * "uniVer": "x",
437
+ * "unixVer": "x"
438
+ * }
439
+ * },
440
+ * "web": {
441
+ * "uniVer": "x",
442
+ * "unixVer": "x"
443
+ * }
444
+ * }
445
+ */
446
+ 700801;
447
+
448
+
449
+ export type RequestPayment = (options: RequestPaymentOptions) => void;
450
+ export type RequestPaymentSuccess = {
451
+ /**
452
+ * 返回数据
453
+ * @uniPlatform {
454
+ * "app": {
455
+ * "android": {
456
+ * "osVer": "5.0",
457
+ * "uniVer": "√",
458
+ * "unixVer": "4.02"
459
+ * },
460
+ * "ios": {
461
+ * "osVer": "12.0",
462
+ * "uniVer": "√",
463
+ * "unixVer": "4.18"
464
+ * },
465
+ * "harmony": {
466
+ * "osVer": "3.0",
467
+ * "uniVer": "4.25",
468
+ * "unixVer": "4.61"
469
+ * }
470
+ * },
471
+ * "mp": {
472
+ * "weixin": {
473
+ * "hostVer": "√",
474
+ * "uniVer": "√",
475
+ * "unixVer": "4.41"
476
+ * },
477
+ * "alipay": {
478
+ * "hostVer": "√",
479
+ * "uniVer": "√",
480
+ * "unixVer": "x"
481
+ * },
482
+ * "baidu": {
483
+ * "hostVer": "√",
484
+ * "uniVer": "√",
485
+ * "unixVer": "x"
486
+ * },
487
+ * "toutiao": {
488
+ * "hostVer": "√",
489
+ * "uniVer": "√",
490
+ * "unixVer": "x"
491
+ * },
492
+ * "lark": {
493
+ * "hostVer": "√",
494
+ * "uniVer": "√",
495
+ * "unixVer": "x"
496
+ * },
497
+ * "qq": {
498
+ * "hostVer": "√",
499
+ * "uniVer": "√",
500
+ * "unixVer": "x"
501
+ * },
502
+ * "kuaishou": {
503
+ * "hostVer": "√",
504
+ * "uniVer": "√",
505
+ * "unixVer": "x"
506
+ * },
507
+ * "jd": {
508
+ * "hostVer": "√",
509
+ * "uniVer": "√",
510
+ * "unixVer": "x"
511
+ * }
512
+ * },
513
+ * "web": {
514
+ * "uniVer": "x",
515
+ * "unixVer": "x"
516
+ * }
517
+ * }
518
+ */
519
+ data: object | null
520
+ };
521
+ export type RequestPaymentSuccessCallback = (result: RequestPaymentSuccess) => void;
522
+ export type RequestPaymentFail = IRequestPaymentFail;
523
+ export type RequestPaymentFailCallback = (result: RequestPaymentFail) => void;
524
+ export type RequestPaymentComplete = any
525
+ export interface IRequestPaymentFail extends IUniError {
526
+ errCode: RequestPaymentErrorCode
527
+ };
528
+ export type RequestPaymentCompleteCallback = (result: RequestPaymentComplete) => void;
529
+ export type RequestPaymentOptions = {
530
+ /**
531
+ * 支付服务提供商,通过 [uni.getProvider](https://doc.dcloud.net.cn/uni-app-x/api/provider.html) 获取,目前支持支付宝支付(alipay),微信支付(wxpay)
532
+ * @uniPlatform {
533
+ * "app": {
534
+ * "android": {
535
+ * "osVer": "5.0",
536
+ * "uniVer": "√",
537
+ * "unixVer": "4.02"
538
+ * },
539
+ * "ios": {
540
+ * "osVer": "12.0",
541
+ * "uniVer": "√",
542
+ * "unixVer": "4.18"
543
+ * },
544
+ * "harmony": {
545
+ * "osVer": "3,0",
546
+ * "uniVer": "4.25",
547
+ * "unixVer": "4.61"
548
+ * }
549
+ * },
550
+ * "web": {
551
+ * "uniVer": "x",
552
+ * "unixVer": "x"
553
+ * }
554
+ * }
555
+ */
556
+ provider: string,
557
+ /**
558
+ * 订单数据
559
+ * @uniPlatform {
560
+ * "app": {
561
+ * "android": {
562
+ * "osVer": "5.0",
563
+ * "uniVer": "√",
564
+ * "unixVer": "4.02"
565
+ * },
566
+ * "ios": {
567
+ * "osVer": "12.0",
568
+ * "uniVer": "√",
569
+ * "unixVer": "4.18"
570
+ * },
571
+ * "harmony": {
572
+ * "osVer": "3.0",
573
+ * "uniVer": "4.25",
574
+ * "unixVer": "4.61"
575
+ * }
576
+ * },
577
+ * "mp": {
578
+ * "weixin": {
579
+ * "hostVer": "√",
580
+ * "uniVer": "√",
581
+ * "unixVer": "x"
582
+ * },
583
+ * "alipay": {
584
+ * "hostVer": "√",
585
+ * "uniVer": "√",
586
+ * "unixVer": "x"
587
+ * },
588
+ * "baidu": {
589
+ * "hostVer": "√",
590
+ * "uniVer": "√",
591
+ * "unixVer": "x"
592
+ * },
593
+ * "toutiao": {
594
+ * "hostVer": "√",
595
+ * "uniVer": "√",
596
+ * "unixVer": "x"
597
+ * },
598
+ * "lark": {
599
+ * "hostVer": "√",
600
+ * "uniVer": "√",
601
+ * "unixVer": "x"
602
+ * },
603
+ * "qq": {
604
+ * "hostVer": "√",
605
+ * "uniVer": "√",
606
+ * "unixVer": "x"
607
+ * },
608
+ * "kuaishou": {
609
+ * "hostVer": "√",
610
+ * "uniVer": "√",
611
+ * "unixVer": "x"
612
+ * },
613
+ * "jd": {
614
+ * "hostVer": "√",
615
+ * "uniVer": "√",
616
+ * "unixVer": "x"
617
+ * }
618
+ * },
619
+ * "web": {
620
+ * "uniVer": "x",
621
+ * "unixVer": "x"
622
+ * }
623
+ * }
624
+ */
625
+ orderInfo: string,
626
+ /**
627
+ * 接口调用成功的回调函数
628
+ * @uniPlatform {
629
+ * "app": {
630
+ * "android": {
631
+ * "osVer": "5.0",
632
+ * "uniVer": "√",
633
+ * "unixVer": "4.02"
634
+ * },
635
+ * "ios": {
636
+ * "osVer": "12.0",
637
+ * "uniVer": "√",
638
+ * "unixVer": "4.18"
639
+ * },
640
+ * "harmony": {
641
+ * "osVer": "3,0",
642
+ * "uniVer": "4.25",
643
+ * "unixVer": "4.61"
644
+ * }
645
+ * },
646
+ * "mp": {
647
+ * "weixin": {
648
+ * "hostVer": "√",
649
+ * "uniVer": "√",
650
+ * "unixVer": "4.41"
651
+ * },
652
+ * "alipay": {
653
+ * "hostVer": "√",
654
+ * "uniVer": "√",
655
+ * "unixVer": "x"
656
+ * },
657
+ * "baidu": {
658
+ * "hostVer": "√",
659
+ * "uniVer": "√",
660
+ * "unixVer": "x"
661
+ * },
662
+ * "toutiao": {
663
+ * "hostVer": "√",
664
+ * "uniVer": "√",
665
+ * "unixVer": "x"
666
+ * },
667
+ * "lark": {
668
+ * "hostVer": "√",
669
+ * "uniVer": "√",
670
+ * "unixVer": "x"
671
+ * },
672
+ * "qq": {
673
+ * "hostVer": "√",
674
+ * "uniVer": "√",
675
+ * "unixVer": "x"
676
+ * },
677
+ * "kuaishou": {
678
+ * "hostVer": "√",
679
+ * "uniVer": "√",
680
+ * "unixVer": "x"
681
+ * },
682
+ * "jd": {
683
+ * "hostVer": "√",
684
+ * "uniVer": "√",
685
+ * "unixVer": "x"
686
+ * }
687
+ * },
688
+ * "web": {
689
+ * "uniVer": "x",
690
+ * "unixVer": "x"
691
+ * }
692
+ * }
693
+ */
694
+ success: RequestPaymentSuccessCallback | null,
695
+ /**
696
+ * 接口调用失败的回调函数
697
+ * @uniPlatform {
698
+ * "app": {
699
+ * "android": {
700
+ * "osVer": "5.0",
701
+ * "uniVer": "√",
702
+ * "unixVer": "4.02"
703
+ * },
704
+ * "ios": {
705
+ * "osVer": "12.0",
706
+ * "uniVer": "√",
707
+ * "unixVer": "4.18"
708
+ * },
709
+ * "harmony": {
710
+ * "osVer": "3.0",
711
+ * "uniVer": "4.25",
712
+ * "unixVer": "4.61"
713
+ * }
714
+ * },
715
+ * "mp": {
716
+ * "weixin": {
717
+ * "hostVer": "√",
718
+ * "uniVer": "√",
719
+ * "unixVer": "4.41"
720
+ * },
721
+ * "alipay": {
722
+ * "hostVer": "√",
723
+ * "uniVer": "√",
724
+ * "unixVer": "x"
725
+ * },
726
+ * "baidu": {
727
+ * "hostVer": "√",
728
+ * "uniVer": "√",
729
+ * "unixVer": "x"
730
+ * },
731
+ * "toutiao": {
732
+ * "hostVer": "√",
733
+ * "uniVer": "√",
734
+ * "unixVer": "x"
735
+ * },
736
+ * "lark": {
737
+ * "hostVer": "√",
738
+ * "uniVer": "√",
739
+ * "unixVer": "x"
740
+ * },
741
+ * "qq": {
742
+ * "hostVer": "√",
743
+ * "uniVer": "√",
744
+ * "unixVer": "x"
745
+ * },
746
+ * "kuaishou": {
747
+ * "hostVer": "√",
748
+ * "uniVer": "√",
749
+ * "unixVer": "x"
750
+ * },
751
+ * "jd": {
752
+ * "hostVer": "√",
753
+ * "uniVer": "√",
754
+ * "unixVer": "x"
755
+ * }
756
+ * },
757
+ * "web": {
758
+ * "uniVer": "x",
759
+ * "unixVer": "x"
760
+ * }
761
+ * }
762
+ */
763
+ fail: RequestPaymentFailCallback | null,
764
+ /**
765
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
766
+ * @uniPlatform {
767
+ * "app": {
768
+ * "android": {
769
+ * "osVer": "5.0",
770
+ * "uniVer": "√",
771
+ * "unixVer": "4.02"
772
+ * },
773
+ * "ios": {
774
+ * "osVer": "12.0",
775
+ * "uniVer": "√",
776
+ * "unixVer": "4.18"
777
+ * },
778
+ * "harmony": {
779
+ * "osVer": "3.0",
780
+ * "uniVer": "4.25",
781
+ * "unixVer": "4.61"
782
+ * }
783
+ * },
784
+ * "mp": {
785
+ * "weixin": {
786
+ * "hostVer": "√",
787
+ * "uniVer": "√",
788
+ * "unixVer": "4.41"
789
+ * },
790
+ * "alipay": {
791
+ * "hostVer": "√",
792
+ * "uniVer": "√",
793
+ * "unixVer": "x"
794
+ * },
795
+ * "baidu": {
796
+ * "hostVer": "√",
797
+ * "uniVer": "√",
798
+ * "unixVer": "x"
799
+ * },
800
+ * "toutiao": {
801
+ * "hostVer": "√",
802
+ * "uniVer": "√",
803
+ * "unixVer": "x"
804
+ * },
805
+ * "lark": {
806
+ * "hostVer": "√",
807
+ * "uniVer": "√",
808
+ * "unixVer": "x"
809
+ * },
810
+ * "qq": {
811
+ * "hostVer": "√",
812
+ * "uniVer": "√",
813
+ * "unixVer": "x"
814
+ * },
815
+ * "kuaishou": {
816
+ * "hostVer": "√",
817
+ * "uniVer": "√",
818
+ * "unixVer": "x"
819
+ * },
820
+ * "jd": {
821
+ * "hostVer": "√",
822
+ * "uniVer": "√",
823
+ * "unixVer": "x"
824
+ * }
825
+ * },
826
+ * "web": {
827
+ * "uniVer": "x",
828
+ * "unixVer": "x"
829
+ * }
830
+ * }
831
+ */
832
+ complete?: RequestPaymentCompleteCallback | null
833
+ };