@tarojs/taro-h5 3.3.16 → 3.4.0-beta.1
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.
- package/dist/index.cjs.js +9439 -10025
- package/dist/index.js +10767 -0
- package/dist/taroApis.js +1 -1
- package/package.json +9 -13
- package/src/api/ad/index.ts +5 -0
- package/src/api/ai/facial.ts +6 -0
- package/src/api/ai/index.ts +2 -0
- package/src/api/ai/visual.ts +4 -0
- package/src/api/alipay/index.ts +4 -0
- package/src/api/base/crypto.ts +4 -0
- package/src/api/base/debug.ts +5 -0
- package/src/api/base/index.ts +23 -0
- package/src/api/base/performance.ts +5 -0
- package/src/api/base/system/index.ts +2 -0
- package/src/api/base/system/info.ts +64 -0
- package/src/api/base/system/network.ts +70 -0
- package/src/api/base/update.ts +5 -0
- package/src/api/base/weapp/app-event.ts +19 -0
- package/src/api/base/weapp/life-cycle.ts +5 -0
- package/src/api/canvas/CanvasContext.ts +230 -0
- package/src/api/canvas/canvasGetImageData.ts +27 -0
- package/src/api/canvas/canvasPutImageData.ts +24 -0
- package/src/api/canvas/canvasToTempFilePath.ts +24 -0
- package/src/api/canvas/createCanvasContext.ts +18 -0
- package/src/api/canvas/index.ts +10 -0
- package/src/api/cloud/index.ts +27 -0
- package/src/api/data-analysis/index.ts +6 -0
- package/src/api/device/accelerometer.ts +87 -0
- package/src/api/device/accessibility.ts +4 -0
- package/src/api/device/battery.ts +5 -0
- package/src/api/device/bluetooth-ble.ts +19 -0
- package/src/api/device/bluetooth-peripheral.ts +6 -0
- package/src/api/device/bluetooth.ts +16 -0
- package/src/api/device/calendar.ts +5 -0
- package/src/api/device/clipboard.ts +67 -0
- package/src/api/device/compass.ts +67 -0
- package/src/api/device/contact.ts +5 -0
- package/src/api/device/crypto.ts +4 -0
- package/src/api/device/gyroscope.ts +7 -0
- package/src/api/device/iBeacon.ts +10 -0
- package/src/api/device/index.ts +22 -0
- package/src/api/device/keyboard.ts +7 -0
- package/src/api/device/memory.ts +5 -0
- package/src/api/device/motion.ts +85 -0
- package/src/api/device/nfc.ts +10 -0
- package/src/api/device/phone.ts +30 -0
- package/src/api/device/scan.ts +7 -0
- package/src/api/device/screen.ts +9 -0
- package/src/api/device/vibrate.ts +36 -0
- package/src/api/device/wifi.ts +13 -0
- package/src/api/ext/index.ts +5 -0
- package/src/api/files/index.ts +11 -0
- package/src/api/framework/index.ts +10 -0
- package/src/api/index.ts +25 -0
- package/src/api/location/chooseLocation.ts +106 -0
- package/src/api/location/index.ts +19 -0
- package/src/api/location/style.css +8 -8
- package/src/api/media/audio/index.ts +105 -0
- package/src/api/media/background-audio.ts +12 -0
- package/src/api/media/camera.ts +4 -0
- package/src/api/media/editor.ts +29 -0
- package/src/api/media/image/chooseImage.ts +78 -0
- package/src/api/media/image/getImageInfo.ts +35 -0
- package/src/api/media/image/index.ts +13 -0
- package/src/api/media/image/previewImage.ts +101 -0
- package/src/api/media/index.ts +13 -0
- package/src/api/media/live.ts +5 -0
- package/src/api/media/map.ts +4 -0
- package/src/api/media/media-recorder.ts +4 -0
- package/src/api/media/recorder.ts +6 -0
- package/src/api/media/video/index.ts +82 -0
- package/src/api/media/video-decoder.ts +4 -0
- package/src/api/media/video-processing.ts +4 -0
- package/src/api/media/voip.ts +17 -0
- package/src/api/navigate/index.ts +7 -0
- package/src/api/{fileTransfer/downloadFile.js → network/download.ts} +16 -27
- package/src/api/network/index.ts +7 -0
- package/src/api/network/mdns.ts +13 -0
- package/src/api/{request/index.js → network/request/index.ts} +9 -6
- package/src/api/network/tcp.ts +4 -0
- package/src/api/network/udp.ts +4 -0
- package/src/api/{fileTransfer/uploadFile.js → network/upload.ts} +28 -32
- package/src/api/{fileTransfer/utils.js → network/utils.ts} +0 -0
- package/src/api/network/websocket/index.ts +88 -0
- package/src/api/{webSocket/socketTask.js → network/websocket/socketTask.ts} +17 -7
- package/src/api/open-api/account.ts +4 -0
- package/src/api/open-api/address.ts +4 -0
- package/src/api/open-api/authorize.ts +5 -0
- package/src/api/open-api/card.ts +5 -0
- package/src/api/open-api/channels-live.ts +9 -0
- package/src/api/open-api/customer-service.ts +4 -0
- package/src/api/open-api/facial.ts +7 -0
- package/src/api/open-api/favorites.ts +5 -0
- package/src/api/open-api/group.ts +4 -0
- package/src/api/open-api/index.ts +18 -0
- package/src/api/open-api/invoice.ts +5 -0
- package/src/api/open-api/license-plate.ts +4 -0
- package/src/api/open-api/login.ts +6 -0
- package/src/api/open-api/red-package.ts +4 -0
- package/src/api/open-api/settings.ts +5 -0
- package/src/api/open-api/soter.ts +6 -0
- package/src/api/open-api/subscribe-message.ts +4 -0
- package/src/api/open-api/user-info.ts +5 -0
- package/src/api/open-api/werun.ts +5 -0
- package/src/api/payment/index.ts +5 -0
- package/src/api/route/index.ts +10 -0
- package/src/api/share/index.ts +13 -0
- package/src/api/storage/background-fetch.ts +7 -0
- package/src/api/storage/index.ts +181 -0
- package/src/api/swan/index.ts +31 -0
- package/src/{taro/index.js → api/taro.ts} +89 -149
- package/src/api/{createAnimation/index.js → ui/animation/index.ts} +51 -35
- package/src/api/ui/background.ts +5 -0
- package/src/api/ui/custom-component.ts +4 -0
- package/src/api/ui/fonts.ts +4 -0
- package/src/api/ui/index.ts +12 -0
- package/src/api/ui/interaction/actionSheet.ts +212 -0
- package/src/api/{interactive/index.js → ui/interaction/index.ts} +93 -77
- package/src/api/ui/interaction/modal.ts +237 -0
- package/src/api/{interactive/toast.js → ui/interaction/toast.ts} +35 -33
- package/src/api/ui/menu.ts +4 -0
- package/src/api/ui/navigation-bar/index.ts +52 -0
- package/src/api/ui/pull-down-refresh.ts +27 -0
- package/src/api/ui/scroll/index.ts +85 -0
- package/src/api/ui/sticky.ts +4 -0
- package/src/api/ui/tab-bar.ts +326 -0
- package/src/api/ui/window.ts +37 -0
- package/src/api/utils/handler.ts +105 -0
- package/src/api/utils/{index.js → index.ts} +36 -115
- package/src/api/worker/index.ts +4 -0
- package/src/api/wxml/index.ts +9 -0
- package/src/api/wxml/nodesRef.ts +49 -0
- package/src/api/{createSelectorQuery/index.js → wxml/selectorQuery.ts} +75 -94
- package/src/index.ts +6 -0
- package/src/types/api.d.ts +4 -0
- package/src/types/define.d.ts +2 -0
- package/{types → src/types}/index.d.ts +0 -0
- package/{types → src/types}/type.ts +1 -1
- package/src/api/accelerometer/index.js +0 -105
- package/src/api/audio/index.js +0 -137
- package/src/api/canvas/canvasGetImageData.js +0 -44
- package/src/api/canvas/canvasPutImageData.js +0 -45
- package/src/api/canvas/canvasToTempFilePath.js +0 -49
- package/src/api/canvas/createCanvasContext.js +0 -340
- package/src/api/canvas/index.js +0 -4
- package/src/api/clipboard/index.js +0 -113
- package/src/api/compass/index.js +0 -99
- package/src/api/deviceMotion/index.js +0 -105
- package/src/api/fileTransfer/index.js +0 -2
- package/src/api/image/chooseImage.js +0 -87
- package/src/api/image/getImageInfo.js +0 -74
- package/src/api/image/index.js +0 -7
- package/src/api/image/previewImage.js +0 -94
- package/src/api/index.js +0 -29
- package/src/api/interactive/actionSheet.js +0 -214
- package/src/api/interactive/modal.js +0 -256
- package/src/api/location/chooseLocation.js +0 -143
- package/src/api/location/index.js +0 -5
- package/src/api/navigationBar/index.js +0 -57
- package/src/api/open/index.js +0 -5
- package/src/api/others/index.js +0 -43
- package/src/api/pullDownRefresh/index.js +0 -51
- package/src/api/scroll/index.js +0 -99
- package/src/api/storage/index.js +0 -211
- package/src/api/system/index.js +0 -9
- package/src/api/system/info.js +0 -36
- package/src/api/system/network.js +0 -68
- package/src/api/tabBar/index.js +0 -402
- package/src/api/unsupportedApi/index.js +0 -278
- package/src/api/vibrate/index.js +0 -49
- package/src/api/video/index.js +0 -87
- package/src/api/webSocket/index.js +0 -103
- package/src/api/window/index.js +0 -38
- package/src/index.cjs.js +0 -11
- package/src/index.js +0 -6
package/src/api/tabBar/index.js
DELETED
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import Taro from '@tarojs/api'
|
|
2
|
-
import { shouldBeObject, getParameterError, isValidColor, successHandler, errorHandler } from '../utils'
|
|
3
|
-
|
|
4
|
-
let tabConf
|
|
5
|
-
|
|
6
|
-
export function initTabBarApis (config = {}) {
|
|
7
|
-
tabConf = config.tabBar
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* 为 tabBar 某一项的右上角添加文本
|
|
12
|
-
* @param {Object} options
|
|
13
|
-
* @param {number} options.index tabBar 的哪一项,从左边算起
|
|
14
|
-
* @param {string} options.text 显示的文本,超过 4 个字符则显示成 ...
|
|
15
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
16
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
17
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
18
|
-
*/
|
|
19
|
-
export function setTabBarBadge (options = {}) {
|
|
20
|
-
// options must be an Object
|
|
21
|
-
const isObject = shouldBeObject(options)
|
|
22
|
-
if (!isObject.res) {
|
|
23
|
-
const res = { errMsg: `setTabBarBadge${isObject.msg}` }
|
|
24
|
-
console.error(res.errMsg)
|
|
25
|
-
return Promise.reject(res)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const {
|
|
29
|
-
index,
|
|
30
|
-
text,
|
|
31
|
-
success,
|
|
32
|
-
fail,
|
|
33
|
-
complete
|
|
34
|
-
} = options
|
|
35
|
-
const res = { errMsg: 'setTabBarBadge:ok' }
|
|
36
|
-
|
|
37
|
-
if (typeof index !== 'number') {
|
|
38
|
-
res.errMsg = getParameterError({
|
|
39
|
-
name: 'setTabBarBadge',
|
|
40
|
-
para: 'index',
|
|
41
|
-
correct: 'Number',
|
|
42
|
-
wrong: index
|
|
43
|
-
})
|
|
44
|
-
console.error(res.errMsg)
|
|
45
|
-
return errorHandler(fail, complete)(res)
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (typeof text !== 'string') {
|
|
49
|
-
res.errMsg = getParameterError({
|
|
50
|
-
name: 'setTabBarBadge',
|
|
51
|
-
para: 'text',
|
|
52
|
-
correct: 'String',
|
|
53
|
-
wrong: text
|
|
54
|
-
})
|
|
55
|
-
console.error(res.errMsg)
|
|
56
|
-
return errorHandler(fail, complete)(res)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
Taro.eventCenter.trigger('__taroSetTabBarBadge', {
|
|
60
|
-
index,
|
|
61
|
-
text,
|
|
62
|
-
successHandler: successHandler(success, complete),
|
|
63
|
-
errorHandler: errorHandler(fail, complete)
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* 移除 tabBar 某一项右上角的文本
|
|
69
|
-
* @param {Object} options
|
|
70
|
-
* @param {number} options.index tabBar 的哪一项,从左边算起
|
|
71
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
72
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
73
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
74
|
-
*/
|
|
75
|
-
export function removeTabBarBadge (options = {}) {
|
|
76
|
-
// options must be an Object
|
|
77
|
-
const isObject = shouldBeObject(options)
|
|
78
|
-
if (!isObject.res) {
|
|
79
|
-
const res = { errMsg: `removeTabBarBadge${isObject.msg}` }
|
|
80
|
-
console.error(res.errMsg)
|
|
81
|
-
return Promise.reject(res)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const {
|
|
85
|
-
index,
|
|
86
|
-
success,
|
|
87
|
-
fail,
|
|
88
|
-
complete
|
|
89
|
-
} = options
|
|
90
|
-
const res = { errMsg: 'removeTabBarBadge:ok' }
|
|
91
|
-
|
|
92
|
-
if (typeof index !== 'number') {
|
|
93
|
-
res.errMsg = getParameterError({
|
|
94
|
-
name: 'removeTabBarBadge',
|
|
95
|
-
para: 'index',
|
|
96
|
-
correct: 'Number',
|
|
97
|
-
wrong: index
|
|
98
|
-
})
|
|
99
|
-
console.error(res.errMsg)
|
|
100
|
-
return errorHandler(fail, complete)(res)
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
Taro.eventCenter.trigger('__taroRemoveTabBarBadge', {
|
|
104
|
-
index,
|
|
105
|
-
successHandler: successHandler(success, complete),
|
|
106
|
-
errorHandler: errorHandler(fail, complete)
|
|
107
|
-
})
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 显示 tabBar 某一项的右上角的红点
|
|
112
|
-
* @param {Object} options
|
|
113
|
-
* @param {number} options.index tabBar 的哪一项,从左边算起
|
|
114
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
115
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
116
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
117
|
-
*/
|
|
118
|
-
export function showTabBarRedDot (options = {}) {
|
|
119
|
-
// options must be an Object
|
|
120
|
-
const isObject = shouldBeObject(options)
|
|
121
|
-
if (!isObject.res) {
|
|
122
|
-
const res = { errMsg: `showTabBarRedDot${isObject.msg}` }
|
|
123
|
-
console.error(res.errMsg)
|
|
124
|
-
return Promise.reject(res)
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
const {
|
|
128
|
-
index,
|
|
129
|
-
success,
|
|
130
|
-
fail,
|
|
131
|
-
complete
|
|
132
|
-
} = options
|
|
133
|
-
const res = { errMsg: 'showTabBarRedDot:ok' }
|
|
134
|
-
|
|
135
|
-
if (typeof index !== 'number') {
|
|
136
|
-
res.errMsg = getParameterError({
|
|
137
|
-
name: 'showTabBarRedDot',
|
|
138
|
-
para: 'index',
|
|
139
|
-
correct: 'Number',
|
|
140
|
-
wrong: index
|
|
141
|
-
})
|
|
142
|
-
console.error(res.errMsg)
|
|
143
|
-
return errorHandler(fail, complete)(res)
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
Taro.eventCenter.trigger('__taroShowTabBarRedDotHandler', {
|
|
147
|
-
index,
|
|
148
|
-
successHandler: successHandler(success, complete),
|
|
149
|
-
errorHandler: errorHandler(fail, complete)
|
|
150
|
-
})
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* 隐藏 tabBar 某一项的右上角的红点
|
|
155
|
-
* @param {Object} options
|
|
156
|
-
* @param {number} options.index tabBar 的哪一项,从左边算起
|
|
157
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
158
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
159
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
160
|
-
*/
|
|
161
|
-
export function hideTabBarRedDot (options = {}) {
|
|
162
|
-
// options must be an Object
|
|
163
|
-
const isObject = shouldBeObject(options)
|
|
164
|
-
if (!isObject.res) {
|
|
165
|
-
const res = { errMsg: `hideTabBarRedDot${isObject.msg}` }
|
|
166
|
-
console.error(res.errMsg)
|
|
167
|
-
return Promise.reject(res)
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
const {
|
|
171
|
-
index,
|
|
172
|
-
success,
|
|
173
|
-
fail,
|
|
174
|
-
complete
|
|
175
|
-
} = options
|
|
176
|
-
const res = { errMsg: 'hideTabBarRedDot:ok' }
|
|
177
|
-
|
|
178
|
-
if (typeof index !== 'number') {
|
|
179
|
-
res.errMsg = getParameterError({
|
|
180
|
-
name: 'hideTabBarRedDot',
|
|
181
|
-
para: 'index',
|
|
182
|
-
correct: 'Number',
|
|
183
|
-
wrong: index
|
|
184
|
-
})
|
|
185
|
-
console.error(res.errMsg)
|
|
186
|
-
return errorHandler(fail, complete)(res)
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
Taro.eventCenter.trigger('__taroHideTabBarRedDotHandler', {
|
|
190
|
-
index,
|
|
191
|
-
successHandler: successHandler(success, complete),
|
|
192
|
-
errorHandler: errorHandler(fail, complete)
|
|
193
|
-
})
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* 显示 tabBar
|
|
198
|
-
* @param {Object} options
|
|
199
|
-
* @param {boolean} [options.animation=false] 是否需要动画效果
|
|
200
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
201
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
202
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
203
|
-
*/
|
|
204
|
-
export function showTabBar (options = {}) {
|
|
205
|
-
// options must be an Object
|
|
206
|
-
const isObject = shouldBeObject(options)
|
|
207
|
-
if (!isObject.res) {
|
|
208
|
-
const res = { errMsg: `showTabBar${isObject.msg}` }
|
|
209
|
-
console.error(res.errMsg)
|
|
210
|
-
return Promise.reject(res)
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
const {
|
|
214
|
-
animation,
|
|
215
|
-
success,
|
|
216
|
-
fail,
|
|
217
|
-
complete
|
|
218
|
-
} = options
|
|
219
|
-
|
|
220
|
-
const res = { errMsg: 'showTabBar:ok' }
|
|
221
|
-
|
|
222
|
-
if (options.hasOwnProperty('animation') && typeof animation !== 'boolean') {
|
|
223
|
-
res.errMsg = getParameterError({
|
|
224
|
-
name: 'showTabBar',
|
|
225
|
-
para: 'animation',
|
|
226
|
-
correct: 'Boolean',
|
|
227
|
-
wrong: animation
|
|
228
|
-
})
|
|
229
|
-
console.error(res.errMsg)
|
|
230
|
-
return errorHandler(fail, complete)(res)
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
Taro.eventCenter.trigger('__taroShowTabBar', {
|
|
234
|
-
animation,
|
|
235
|
-
successHandler: successHandler(success, complete),
|
|
236
|
-
errorHandler: errorHandler(success, complete)
|
|
237
|
-
})
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* 隐藏 tabBar
|
|
242
|
-
* @param {Object} options
|
|
243
|
-
* @param {boolean} [options.animation=false] 是否需要动画效果
|
|
244
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
245
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
246
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
247
|
-
*/
|
|
248
|
-
export function hideTabBar (options = {}) {
|
|
249
|
-
// options must be an Object
|
|
250
|
-
const isObject = shouldBeObject(options)
|
|
251
|
-
if (!isObject.res) {
|
|
252
|
-
const res = { errMsg: `hideTabBar${isObject.msg}` }
|
|
253
|
-
console.error(res.errMsg)
|
|
254
|
-
return Promise.reject(res)
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
const {
|
|
258
|
-
animation,
|
|
259
|
-
success,
|
|
260
|
-
fail,
|
|
261
|
-
complete
|
|
262
|
-
} = options
|
|
263
|
-
|
|
264
|
-
const res = { errMsg: 'hideTabBar:ok' }
|
|
265
|
-
|
|
266
|
-
if (options.hasOwnProperty('animation') && typeof animation !== 'boolean') {
|
|
267
|
-
res.errMsg = getParameterError({
|
|
268
|
-
name: 'hideTabBar',
|
|
269
|
-
para: 'animation',
|
|
270
|
-
correct: 'Boolean',
|
|
271
|
-
wrong: animation
|
|
272
|
-
})
|
|
273
|
-
console.error(res.errMsg)
|
|
274
|
-
return errorHandler(fail, complete)(res)
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
Taro.eventCenter.trigger('__taroHideTabBar', {
|
|
278
|
-
animation,
|
|
279
|
-
successHandler: successHandler(success, complete),
|
|
280
|
-
errorHandler: errorHandler(success, complete)
|
|
281
|
-
})
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* 动态设置 tabBar 的整体样式
|
|
286
|
-
* @param {Object} options
|
|
287
|
-
* @param {string} options.color tab 上的文字默认颜色,HexColor
|
|
288
|
-
* @param {string} options.selectedColor tab 上的文字选中时的颜色,HexColor
|
|
289
|
-
* @param {string} options.backgroundColor tab 的背景色,HexColor
|
|
290
|
-
* @param {'black'|'white'} options.borderStyle tabBar上边框的颜色, 仅支持 black/white
|
|
291
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
292
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
293
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
294
|
-
*/
|
|
295
|
-
export function setTabBarStyle (options = {}) {
|
|
296
|
-
// options must be an Object
|
|
297
|
-
const isObject = shouldBeObject(options)
|
|
298
|
-
if (!isObject.res) {
|
|
299
|
-
const res = { errMsg: `setTabBarStyle${isObject.msg}` }
|
|
300
|
-
console.error(res.errMsg)
|
|
301
|
-
return Promise.reject(res)
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
const {
|
|
305
|
-
color,
|
|
306
|
-
selectedColor,
|
|
307
|
-
backgroundColor,
|
|
308
|
-
borderStyle,
|
|
309
|
-
success,
|
|
310
|
-
fail,
|
|
311
|
-
complete
|
|
312
|
-
} = options
|
|
313
|
-
const res = { errMsg: 'setTabBarStyle:ok' }
|
|
314
|
-
|
|
315
|
-
let errMsg
|
|
316
|
-
if (color && !isValidColor(color)) {
|
|
317
|
-
errMsg = 'color'
|
|
318
|
-
} else if (selectedColor && !isValidColor(selectedColor)) {
|
|
319
|
-
errMsg = 'selectedColor'
|
|
320
|
-
} else if (backgroundColor && !isValidColor(backgroundColor)) {
|
|
321
|
-
errMsg = 'backgroundColor'
|
|
322
|
-
} else if (borderStyle && !/^(black|white)$/.test(borderStyle)) {
|
|
323
|
-
errMsg = 'borderStyle'
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
if (errMsg) {
|
|
327
|
-
res.errMsg = `setTabBarStyle:fail invalid ${errMsg}`
|
|
328
|
-
return errorHandler(fail, complete)(res)
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
if (!tabConf) {
|
|
332
|
-
res.errMsg = 'setTabBarStyle:fail'
|
|
333
|
-
return Promise.reject(res)
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
const obj = {}
|
|
337
|
-
if (color) obj.color = color
|
|
338
|
-
if (selectedColor) obj.selectedColor = selectedColor
|
|
339
|
-
if (backgroundColor) obj.backgroundColor = backgroundColor
|
|
340
|
-
if (borderStyle) obj.borderStyle = borderStyle
|
|
341
|
-
|
|
342
|
-
Taro.eventCenter.trigger('__taroSetTabBarStyle', {
|
|
343
|
-
color,
|
|
344
|
-
selectedColor,
|
|
345
|
-
backgroundColor,
|
|
346
|
-
borderStyle,
|
|
347
|
-
successHandler: successHandler(success, complete),
|
|
348
|
-
errorHandler: errorHandler(success, complete)
|
|
349
|
-
})
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* 动态设置 tabBar 某一项的内容
|
|
354
|
-
* @param {Object} options
|
|
355
|
-
* @param {number} options.index tabBar 的哪一项,从左边算起
|
|
356
|
-
* @param {string} [options.text] tab 上的按钮文字
|
|
357
|
-
* @param {string} [options.iconPath] 图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,当 postion 为 top 时,此参数无效,不支持网络图片
|
|
358
|
-
* @param {string} [options.selectedIconPath] 选中时的图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px ,当 postion 为 top 时,此参数无效
|
|
359
|
-
* @param {function} [options.success] 接口调用成功的回调函数
|
|
360
|
-
* @param {function} [options.fail] 接口调用失败的回调函数
|
|
361
|
-
* @param {function} [options.complete] 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
362
|
-
*/
|
|
363
|
-
export function setTabBarItem (options = {}) {
|
|
364
|
-
// options must be an Object
|
|
365
|
-
const isObject = shouldBeObject(options)
|
|
366
|
-
if (!isObject.res) {
|
|
367
|
-
const res = { errMsg: `setTabBarItem${isObject.msg}` }
|
|
368
|
-
console.error(res.errMsg)
|
|
369
|
-
return Promise.reject(res)
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
const {
|
|
373
|
-
index,
|
|
374
|
-
text,
|
|
375
|
-
iconPath,
|
|
376
|
-
selectedIconPath,
|
|
377
|
-
success,
|
|
378
|
-
fail,
|
|
379
|
-
complete
|
|
380
|
-
} = options
|
|
381
|
-
const res = { errMsg: 'setTabBarItem:ok' }
|
|
382
|
-
|
|
383
|
-
if (typeof index !== 'number') {
|
|
384
|
-
res.errMsg = getParameterError({
|
|
385
|
-
name: 'setTabBarItem',
|
|
386
|
-
para: 'index',
|
|
387
|
-
correct: 'Number',
|
|
388
|
-
wrong: index
|
|
389
|
-
})
|
|
390
|
-
console.error(res.errMsg)
|
|
391
|
-
return errorHandler(fail, complete)(res)
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
Taro.eventCenter.trigger('__taroSetTabBarItem', {
|
|
395
|
-
index,
|
|
396
|
-
text,
|
|
397
|
-
iconPath,
|
|
398
|
-
selectedIconPath,
|
|
399
|
-
successHandler: successHandler(success, complete),
|
|
400
|
-
errorHandler: errorHandler(success, complete)
|
|
401
|
-
})
|
|
402
|
-
}
|
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { temporarilyNotSupport } from '../utils'
|
|
2
|
-
|
|
3
|
-
// onAndSyncApis
|
|
4
|
-
// export const onSocketOpen = temporarilyNotSupport('onSocketOpen')
|
|
5
|
-
// export const onSocketError = temporarilyNotSupport('onSocketError')
|
|
6
|
-
// export const onSocketMessage = temporarilyNotSupport('onSocketMessage')
|
|
7
|
-
// export const onSocketClose = temporarilyNotSupport('onSocketClose')
|
|
8
|
-
export const onBackgroundAudioPlay = temporarilyNotSupport('onBackgroundAudioPlay')
|
|
9
|
-
export const onBackgroundAudioPause = temporarilyNotSupport('onBackgroundAudioPause')
|
|
10
|
-
export const onBackgroundAudioStop = temporarilyNotSupport('onBackgroundAudioStop')
|
|
11
|
-
// export const onNetworkStatusChange = temporarilyNotSupport('onNetworkStatusChange')
|
|
12
|
-
// export const onAccelerometerChange = temporarilyNotSupport('onAccelerometerChange')
|
|
13
|
-
// export const onCompassChange = temporarilyNotSupport('onCompassChange')
|
|
14
|
-
// export const onDeviceMotionChange = temporarilyNotSupport('onDeviceMotionChange')
|
|
15
|
-
export const onBluetoothAdapterStateChange = temporarilyNotSupport('onBluetoothAdapterStateChange')
|
|
16
|
-
export const onBluetoothDeviceFound = temporarilyNotSupport('onBluetoothDeviceFound')
|
|
17
|
-
export const onBLEConnectionStateChange = temporarilyNotSupport('onBLEConnectionStateChange')
|
|
18
|
-
export const onBLECharacteristicValueChange = temporarilyNotSupport('onBLECharacteristicValueChange')
|
|
19
|
-
export const onBeaconUpdate = temporarilyNotSupport('onBeaconUpdate')
|
|
20
|
-
export const onBeaconServiceChange = temporarilyNotSupport('onBeaconServiceChange')
|
|
21
|
-
export const onUserCaptureScreen = temporarilyNotSupport('onUserCaptureScreen')
|
|
22
|
-
export const onHCEMessage = temporarilyNotSupport('onHCEMessage')
|
|
23
|
-
export const onGetWifiList = temporarilyNotSupport('onGetWifiList')
|
|
24
|
-
export const onWifiConnected = temporarilyNotSupport('onWifiConnected')
|
|
25
|
-
// export const setStorageSync = temporarilyNotSupport('setStorageSync')
|
|
26
|
-
// export const getStorageSync = temporarilyNotSupport('getStorageSync')
|
|
27
|
-
// export const getStorageInfoSync = temporarilyNotSupport('getStorageInfoSync')
|
|
28
|
-
// export const removeStorageSync = temporarilyNotSupport('removeStorageSync')
|
|
29
|
-
// export const clearStorageSync = temporarilyNotSupport('clearStorageSync')
|
|
30
|
-
// export const getSystemInfoSync = temporarilyNotSupport('getSystemInfoSync')
|
|
31
|
-
export const getExtConfigSync = temporarilyNotSupport('getExtConfigSync')
|
|
32
|
-
export const getLogManager = temporarilyNotSupport('getLogManager')
|
|
33
|
-
export const onMemoryWarning = temporarilyNotSupport('onMemoryWarning')
|
|
34
|
-
export const reportAnalytics = temporarilyNotSupport('reportAnalytics')
|
|
35
|
-
export const navigateToSmartGameProgram = temporarilyNotSupport('navigateToSmartGameProgram')
|
|
36
|
-
|
|
37
|
-
// 文件
|
|
38
|
-
export const getFileSystemManager = temporarilyNotSupport('getFileSystemManager')
|
|
39
|
-
|
|
40
|
-
// noPromiseApis
|
|
41
|
-
// 媒体
|
|
42
|
-
export const stopRecord = temporarilyNotSupport('stopRecord')
|
|
43
|
-
export const getRecorderManager = temporarilyNotSupport('getRecorderManager')
|
|
44
|
-
export const pauseVoice = temporarilyNotSupport('pauseVoice')
|
|
45
|
-
export const stopVoice = temporarilyNotSupport('stopVoice')
|
|
46
|
-
export const pauseBackgroundAudio = temporarilyNotSupport('pauseBackgroundAudio')
|
|
47
|
-
export const stopBackgroundAudio = temporarilyNotSupport('stopBackgroundAudio')
|
|
48
|
-
export const getBackgroundAudioManager = temporarilyNotSupport('getBackgroundAudioManager')
|
|
49
|
-
export const createAudioContext = temporarilyNotSupport('createAudioContext')
|
|
50
|
-
// export const createInnerAudioContext = temporarilyNotSupport('createInnerAudioContext')
|
|
51
|
-
// export const createVideoContext = temporarilyNotSupport('createVideoContext')
|
|
52
|
-
export const createCameraContext = temporarilyNotSupport('createCameraContext')
|
|
53
|
-
export const createLivePlayerContext = temporarilyNotSupport('createLivePlayerContext')
|
|
54
|
-
export const createLivePusherContext = temporarilyNotSupport('createLivePusherContext')
|
|
55
|
-
|
|
56
|
-
// 位置
|
|
57
|
-
export const createMapContext = temporarilyNotSupport('createMapContext')
|
|
58
|
-
|
|
59
|
-
// 设备
|
|
60
|
-
export const canIUse = temporarilyNotSupport('canIUse')
|
|
61
|
-
// export const startAccelerometer = temporarilyNotSupport('startAccelerometer')
|
|
62
|
-
// export const stopAccelerometer = temporarilyNotSupport('stopAccelerometer')
|
|
63
|
-
// export const startCompass = temporarilyNotSupport('startCompass')
|
|
64
|
-
// export const stopCompass = temporarilyNotSupport('stopCompass')
|
|
65
|
-
// export const startDeviceMotionListening = temporarilyNotSupport('startDeviceMotionListening')
|
|
66
|
-
// export const stopDeviceMotionListening = temporarilyNotSupport('stopDeviceMotionListening')
|
|
67
|
-
|
|
68
|
-
// 界面
|
|
69
|
-
// export const hideToast = temporarilyNotSupport('hideToast')
|
|
70
|
-
// export const hideLoading = temporarilyNotSupport('hideLoading')
|
|
71
|
-
export const hideHomeButton = temporarilyNotSupport('hideHomeButton')
|
|
72
|
-
export const showNavigationBarLoading = temporarilyNotSupport('showNavigationBarLoading')
|
|
73
|
-
export const hideNavigationBarLoading = temporarilyNotSupport('hideNavigationBarLoading')
|
|
74
|
-
// export const createAnimation = temporarilyNotSupport('createAnimation')
|
|
75
|
-
// export const pageScrollTo = temporarilyNotSupport('pageScrollTo')
|
|
76
|
-
// export const createSelectorQuery = temporarilyNotSupport('createSelectorQuery')
|
|
77
|
-
// export const createCanvasContext = temporarilyNotSupport('createCanvasContext')
|
|
78
|
-
// export const createContext = temporarilyNotSupport('createContext')
|
|
79
|
-
export const drawCanvas = temporarilyNotSupport('drawCanvas')
|
|
80
|
-
export const hideKeyboard = temporarilyNotSupport('hideKeyboard')
|
|
81
|
-
// export const stopPullDownRefresh = temporarilyNotSupport('stopPullDownRefresh')
|
|
82
|
-
export const createIntersectionObserver = temporarilyNotSupport('createIntersectionObserver')
|
|
83
|
-
|
|
84
|
-
// 自定义组件
|
|
85
|
-
// export const nextTick = temporarilyNotSupport('nextTick')
|
|
86
|
-
|
|
87
|
-
// 菜单
|
|
88
|
-
export const getMenuButtonBoundingClientRect = temporarilyNotSupport('getMenuButtonBoundingClientRect')
|
|
89
|
-
|
|
90
|
-
// 窗口
|
|
91
|
-
// export const onWindowResize = temporarilyNotSupport('onWindowResize')
|
|
92
|
-
// export const offWindowResize = temporarilyNotSupport('offWindowResize')
|
|
93
|
-
|
|
94
|
-
// 拓展接口
|
|
95
|
-
// export const arrayBufferToBase64 = temporarilyNotSupport('arrayBufferToBase64')
|
|
96
|
-
// export const base64ToArrayBuffer = temporarilyNotSupport('base64ToArrayBuffer')
|
|
97
|
-
|
|
98
|
-
export const getAccountInfoSync = temporarilyNotSupport('getAccountInfoSync')
|
|
99
|
-
export const getUpdateManager = temporarilyNotSupport('getUpdateManager')
|
|
100
|
-
export const createWorker = temporarilyNotSupport('createWorker')
|
|
101
|
-
|
|
102
|
-
// otherApis
|
|
103
|
-
// 网络
|
|
104
|
-
// export const uploadFile = temporarilyNotSupport('uploadFile')
|
|
105
|
-
// export const downloadFile = temporarilyNotSupport('downloadFile')
|
|
106
|
-
// export const connectSocket = temporarilyNotSupport('connectSocket')
|
|
107
|
-
// export const sendSocketMessage = temporarilyNotSupport('sendSocketMessage')
|
|
108
|
-
// export const closeSocket = temporarilyNotSupport('closeSocket')
|
|
109
|
-
|
|
110
|
-
// 媒体
|
|
111
|
-
// export const chooseImage = temporarilyNotSupport('chooseImage')
|
|
112
|
-
// export const previewImage = temporarilyNotSupport('previewImage')
|
|
113
|
-
// export const getImageInfo = temporarilyNotSupport('getImageInfo')
|
|
114
|
-
export const saveImageToPhotosAlbum = temporarilyNotSupport('saveImageToPhotosAlbum')
|
|
115
|
-
export const startRecord = temporarilyNotSupport('startRecord')
|
|
116
|
-
export const playVoice = temporarilyNotSupport('playVoice')
|
|
117
|
-
export const setInnerAudioOption = temporarilyNotSupport('setInnerAudioOption')
|
|
118
|
-
export const getAvailableAudioSources = temporarilyNotSupport('getAvailableAudioSources')
|
|
119
|
-
export const getBackgroundAudioPlayerState = temporarilyNotSupport('getBackgroundAudioPlayerState')
|
|
120
|
-
export const playBackgroundAudio = temporarilyNotSupport('playBackgroundAudio')
|
|
121
|
-
export const seekBackgroundAudio = temporarilyNotSupport('seekBackgroundAudio')
|
|
122
|
-
// export const chooseVideo = temporarilyNotSupport('chooseVideo')
|
|
123
|
-
export const saveVideoToPhotosAlbum = temporarilyNotSupport('saveVideoToPhotosAlbum')
|
|
124
|
-
export const loadFontFace = temporarilyNotSupport('loadFontFace')
|
|
125
|
-
|
|
126
|
-
// 文件
|
|
127
|
-
export const saveFile = temporarilyNotSupport('saveFile')
|
|
128
|
-
export const getFileInfo = temporarilyNotSupport('getFileInfo')
|
|
129
|
-
export const getSavedFileList = temporarilyNotSupport('getSavedFileList')
|
|
130
|
-
export const getSavedFileInfo = temporarilyNotSupport('getSavedFileInfo')
|
|
131
|
-
export const removeSavedFile = temporarilyNotSupport('removeSavedFile')
|
|
132
|
-
export const openDocument = temporarilyNotSupport('openDocument')
|
|
133
|
-
|
|
134
|
-
// 数据缓存
|
|
135
|
-
// export const setStorage = temporarilyNotSupport('setStorage')
|
|
136
|
-
// export const getStorage = temporarilyNotSupport('getStorage')
|
|
137
|
-
// export const getStorageInfo = temporarilyNotSupport('getStorageInfo')
|
|
138
|
-
// export const removeStorage = temporarilyNotSupport('removeStorage')
|
|
139
|
-
// export const clearStorage = temporarilyNotSupport('clearStorage')
|
|
140
|
-
|
|
141
|
-
// 导航
|
|
142
|
-
// export const navigateBack = temporarilyNotSupport('navigateBack')
|
|
143
|
-
// export const navigateTo = temporarilyNotSupport('navigateTo')
|
|
144
|
-
// export const redirectTo = temporarilyNotSupport('redirectTo')
|
|
145
|
-
// export const switchTab = temporarilyNotSupport('switchTab')
|
|
146
|
-
// export const reLaunch = temporarilyNotSupport('reLaunch')
|
|
147
|
-
|
|
148
|
-
// 位置
|
|
149
|
-
// export const getLocation = temporarilyNotSupport('getLocation')
|
|
150
|
-
// export const chooseLocation = temporarilyNotSupport('chooseLocation')
|
|
151
|
-
// export const openLocation = temporarilyNotSupport('openLocation')
|
|
152
|
-
|
|
153
|
-
// 设备
|
|
154
|
-
// export const getSystemInfo = temporarilyNotSupport('getSystemInfo')
|
|
155
|
-
// export const getNetworkType = temporarilyNotSupport('getNetworkType')
|
|
156
|
-
// export const makePhoneCall = temporarilyNotSupport('makePhoneCall')
|
|
157
|
-
// export const scanCode = temporarilyNotSupport('scanCode')
|
|
158
|
-
// export const setClipboardData = temporarilyNotSupport('setClipboardData')
|
|
159
|
-
// export const getClipboardData = temporarilyNotSupport('getClipboardData')
|
|
160
|
-
export const openBluetoothAdapter = temporarilyNotSupport('openBluetoothAdapter')
|
|
161
|
-
export const closeBluetoothAdapter = temporarilyNotSupport('closeBluetoothAdapter')
|
|
162
|
-
export const getBluetoothAdapterState = temporarilyNotSupport('getBluetoothAdapterState')
|
|
163
|
-
export const startBluetoothDevicesDiscovery = temporarilyNotSupport('startBluetoothDevicesDiscovery')
|
|
164
|
-
export const stopBluetoothDevicesDiscovery = temporarilyNotSupport('stopBluetoothDevicesDiscovery')
|
|
165
|
-
export const getBluetoothDevices = temporarilyNotSupport('getBluetoothDevices')
|
|
166
|
-
export const getConnectedBluetoothDevices = temporarilyNotSupport('getConnectedBluetoothDevices')
|
|
167
|
-
export const createBLEConnection = temporarilyNotSupport('createBLEConnection')
|
|
168
|
-
export const closeBLEConnection = temporarilyNotSupport('closeBLEConnection')
|
|
169
|
-
export const getBLEDeviceServices = temporarilyNotSupport('getBLEDeviceServices')
|
|
170
|
-
export const getBLEDeviceCharacteristics = temporarilyNotSupport('getBLEDeviceCharacteristics')
|
|
171
|
-
export const readBLECharacteristicValue = temporarilyNotSupport('readBLECharacteristicValue')
|
|
172
|
-
export const writeBLECharacteristicValue = temporarilyNotSupport('writeBLECharacteristicValue')
|
|
173
|
-
export const notifyBLECharacteristicValueChange = temporarilyNotSupport('notifyBLECharacteristicValueChange')
|
|
174
|
-
export const startBeaconDiscovery = temporarilyNotSupport('startBeaconDiscovery')
|
|
175
|
-
export const stopBeaconDiscovery = temporarilyNotSupport('stopBeaconDiscovery')
|
|
176
|
-
export const getBeacons = temporarilyNotSupport('getBeacons')
|
|
177
|
-
export const setScreenBrightness = temporarilyNotSupport('setScreenBrightness')
|
|
178
|
-
export const getScreenBrightness = temporarilyNotSupport('getScreenBrightness')
|
|
179
|
-
export const setKeepScreenOn = temporarilyNotSupport('setKeepScreenOn')
|
|
180
|
-
// export const vibrateLong = temporarilyNotSupport('vibrateLong')
|
|
181
|
-
// export const vibrateShort = temporarilyNotSupport('vibrateShort')
|
|
182
|
-
export const addPhoneContact = temporarilyNotSupport('addPhoneContact')
|
|
183
|
-
export const getHCEState = temporarilyNotSupport('getHCEState')
|
|
184
|
-
export const startHCE = temporarilyNotSupport('startHCE')
|
|
185
|
-
export const stopHCE = temporarilyNotSupport('stopHCE')
|
|
186
|
-
export const sendHCEMessage = temporarilyNotSupport('sendHCEMessage')
|
|
187
|
-
export const startWifi = temporarilyNotSupport('startWifi')
|
|
188
|
-
export const stopWifi = temporarilyNotSupport('stopWifi')
|
|
189
|
-
export const connectWifi = temporarilyNotSupport('connectWifi')
|
|
190
|
-
export const getWifiList = temporarilyNotSupport('getWifiList')
|
|
191
|
-
export const setWifiList = temporarilyNotSupport('setWifiList')
|
|
192
|
-
export const getConnectedWifi = temporarilyNotSupport('getConnectedWifi')
|
|
193
|
-
|
|
194
|
-
// 界面
|
|
195
|
-
// export const showToast = temporarilyNotSupport('showToast')
|
|
196
|
-
// export const showLoading = temporarilyNotSupport('showLoading')
|
|
197
|
-
// export const showModal = temporarilyNotSupport('showModal')
|
|
198
|
-
// export const showActionSheet = temporarilyNotSupport('showActionSheet')
|
|
199
|
-
// export const setNavigationBarTitle = temporarilyNotSupport('setNavigationBarTitle')
|
|
200
|
-
// export const setNavigationBarColor = temporarilyNotSupport('setNavigationBarColor')
|
|
201
|
-
// export const setTabBarBadge = temporarilyNotSupport('setTabBarBadge')
|
|
202
|
-
// export const removeTabBarBadge = temporarilyNotSupport('removeTabBarBadge')
|
|
203
|
-
// export const showTabBarRedDot = temporarilyNotSupport('showTabBarRedDot')
|
|
204
|
-
// export const hideTabBarRedDot = temporarilyNotSupport('hideTabBarRedDot')
|
|
205
|
-
// export const setTabBarStyle = temporarilyNotSupport('setTabBarStyle')
|
|
206
|
-
// export const setTabBarItem = temporarilyNotSupport('setTabBarItem')
|
|
207
|
-
// export const showTabBar = temporarilyNotSupport('showTabBar')
|
|
208
|
-
// export const hideTabBar = temporarilyNotSupport('hideTabBar')
|
|
209
|
-
export const setTopBarText = temporarilyNotSupport('setTopBarText')
|
|
210
|
-
// export const startPullDownRefresh = temporarilyNotSupport('startPullDownRefresh')
|
|
211
|
-
// export const canvasToTempFilePath = temporarilyNotSupport('canvasToTempFilePath')
|
|
212
|
-
// export const canvasGetImageData = temporarilyNotSupport('canvasGetImageData')
|
|
213
|
-
// export const canvasPutImageData = temporarilyNotSupport('canvasPutImageData')
|
|
214
|
-
|
|
215
|
-
export const setBackgroundColor = temporarilyNotSupport('setBackgroundColor')
|
|
216
|
-
export const setBackgroundTextStyle = temporarilyNotSupport('setBackgroundTextStyle')
|
|
217
|
-
|
|
218
|
-
// 第三方平台
|
|
219
|
-
export const getExtConfig = temporarilyNotSupport('getExtConfig')
|
|
220
|
-
|
|
221
|
-
// 开放接口
|
|
222
|
-
export const login = temporarilyNotSupport('login')
|
|
223
|
-
export const checkSession = temporarilyNotSupport('checkSession')
|
|
224
|
-
export const authorize = temporarilyNotSupport('authorize')
|
|
225
|
-
export const getUserInfo = temporarilyNotSupport('getUserInfo')
|
|
226
|
-
export const checkIsSupportFacialRecognition = temporarilyNotSupport('checkIsSupportFacialRecognition')
|
|
227
|
-
export const startFacialRecognitionVerify = temporarilyNotSupport('startFacialRecognitionVerify')
|
|
228
|
-
export const startFacialRecognitionVerifyAndUploadVideo = temporarilyNotSupport('startFacialRecognitionVerifyAndUploadVideo')
|
|
229
|
-
export const faceVerifyForPay = temporarilyNotSupport('faceVerifyForPay')
|
|
230
|
-
// export const requestPayment = temporarilyNotSupport('requestPayment')
|
|
231
|
-
export const showShareMenu = temporarilyNotSupport('showShareMenu')
|
|
232
|
-
export const hideShareMenu = temporarilyNotSupport('hideShareMenu')
|
|
233
|
-
export const updateShareMenu = temporarilyNotSupport('updateShareMenu')
|
|
234
|
-
export const getShareInfo = temporarilyNotSupport('getShareInfo')
|
|
235
|
-
export const chooseAddress = temporarilyNotSupport('chooseAddress')
|
|
236
|
-
export const addCard = temporarilyNotSupport('addCard')
|
|
237
|
-
export const openCard = temporarilyNotSupport('openCard')
|
|
238
|
-
export const openSetting = temporarilyNotSupport('openSetting')
|
|
239
|
-
export const getSetting = temporarilyNotSupport('getSetting')
|
|
240
|
-
export const getWeRunData = temporarilyNotSupport('getWeRunData')
|
|
241
|
-
export const navigateToMiniProgram = temporarilyNotSupport('navigateToMiniProgram')
|
|
242
|
-
export const navigateBackMiniProgram = temporarilyNotSupport('navigateBackMiniProgram')
|
|
243
|
-
export const chooseInvoice = temporarilyNotSupport('chooseInvoice')
|
|
244
|
-
export const chooseInvoiceTitle = temporarilyNotSupport('chooseInvoiceTitle')
|
|
245
|
-
export const checkIsSupportSoterAuthentication = temporarilyNotSupport('checkIsSupportSoterAuthentication')
|
|
246
|
-
export const startSoterAuthentication = temporarilyNotSupport('startSoterAuthentication')
|
|
247
|
-
export const checkIsSoterEnrolledInDevice = temporarilyNotSupport('checkIsSoterEnrolledInDevice')
|
|
248
|
-
export const exitMiniProgram = temporarilyNotSupport('exitMiniProgram')
|
|
249
|
-
|
|
250
|
-
export const setEnableDebug = temporarilyNotSupport('setEnableDebug')
|
|
251
|
-
|
|
252
|
-
// 百度小程序专有 API
|
|
253
|
-
// 百度小程序 AI 相关
|
|
254
|
-
export const ocrIdCard = temporarilyNotSupport('ocrIdCard')
|
|
255
|
-
export const ocrBankCard = temporarilyNotSupport('ocrBankCard')
|
|
256
|
-
export const ocrDrivingLicense = temporarilyNotSupport('ocrDrivingLicense')
|
|
257
|
-
export const ocrVehicleLicense = temporarilyNotSupport('ocrVehicleLicense')
|
|
258
|
-
export const textReview = temporarilyNotSupport('textReview')
|
|
259
|
-
export const textToAudio = temporarilyNotSupport('textToAudio')
|
|
260
|
-
export const imageAudit = temporarilyNotSupport('imageAudit')
|
|
261
|
-
export const advancedGeneralIdentify = temporarilyNotSupport('advancedGeneralIdentify')
|
|
262
|
-
export const objectDetectIdentify = temporarilyNotSupport('objectDetectIdentify')
|
|
263
|
-
export const carClassify = temporarilyNotSupport('carClassify')
|
|
264
|
-
export const dishClassify = temporarilyNotSupport('dishClassify')
|
|
265
|
-
export const logoClassify = temporarilyNotSupport('logoClassify')
|
|
266
|
-
export const animalClassify = temporarilyNotSupport('animalClassify')
|
|
267
|
-
export const plantClassify = temporarilyNotSupport('plantClassify')
|
|
268
|
-
|
|
269
|
-
// 用户信息
|
|
270
|
-
export const getSwanId = temporarilyNotSupport('getSwanId')
|
|
271
|
-
|
|
272
|
-
// 百度收银台支付
|
|
273
|
-
export const requestPolymerPayment = temporarilyNotSupport('requestPolymerPayment')
|
|
274
|
-
|
|
275
|
-
// 打开小程序
|
|
276
|
-
export const navigateToSmartProgram = temporarilyNotSupport('navigateToSmartProgram')
|
|
277
|
-
export const navigateBackSmartProgram = temporarilyNotSupport('navigateBackSmartProgram')
|
|
278
|
-
export const preloadSubPackage = temporarilyNotSupport('preloadSubPackage')
|