Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
程序yang
unidocs-zh
提交
b31c5ea5
U
unidocs-zh
项目概览
程序yang
/
unidocs-zh
与 Fork 源项目一致
Fork自
DCloud / unidocs-zh
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b31c5ea5
编写于
2月 14, 2022
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 404 打点、百度统计
上级
81488be5
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
151 addition
and
98 deletion
+151
-98
docs/.vuepress/theme/config/navbar.js
docs/.vuepress/theme/config/navbar.js
+2
-1
docs/.vuepress/theme/layouts/404.vue
docs/.vuepress/theme/layouts/404.vue
+44
-0
docs/.vuepress/theme/layouts/Layout.vue
docs/.vuepress/theme/layouts/Layout.vue
+2
-1
docs/.vuepress/theme/mixin/navProvider.js
docs/.vuepress/theme/mixin/navProvider.js
+1
-1
docs/.vuepress/theme/util/index.js
docs/.vuepress/theme/util/index.js
+8
-1
docs/api/README.md
docs/api/README.md
+94
-94
未找到文件。
docs/.vuepress/
markdown/navbar.config
.js
→
docs/.vuepress/
theme/config/navbar
.js
浏览文件 @
b31c5ea5
...
...
@@ -5,6 +5,7 @@
* items
* type // link、links。
* rel
* needOutbound // 是否显示外链图标
*/
export
const
navbar
=
[
{
...
...
@@ -127,7 +128,7 @@ export const navbar = [
},
{
text
:
'
HBuilder
'
,
link
:
'
https://
www.dcloud.io/hbuilderx.html
'
,
link
:
'
https://
hx.dcloud.net.cn/
'
,
type
:
"
link
"
,
target
:
'
_blank
'
,
needOutbound
:
false
...
...
docs/.vuepress/theme/layouts/404.vue
0 → 100644
浏览文件 @
b31c5ea5
<
template
>
<div
class=
"theme-container"
>
<div
class=
"theme-default-content"
>
<h1>
404
</h1>
<blockquote>
{{
getMsg
()
}}
</blockquote>
<RouterLink
to=
"/"
>
Take me home.
</RouterLink>
</div>
</div>
</
template
>
<
script
>
const
msgs
=
[
`There's nothing here.`
,
`How did we get here?`
,
`That's a Four-Oh-Four.`
,
`Looks like we've got some broken links.`
,
];
export
default
{
methods
:
{
getMsg
()
{
return
msgs
[
Math
.
floor
(
Math
.
random
()
*
msgs
.
length
)];
},
},
mounted
()
{
const
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'
post
'
,
'
https://b1ecec17-5c3f-4de9-8b5b-ab739a9a47d5.bspapp.com/unidocs-zh-stat
'
);
xhr
.
setRequestHeader
(
'
content-type
'
,
'
application/json;charset=utf-8
'
);
xhr
.
send
(
JSON
.
stringify
({
params
:
{
fullPath
:
this
.
$route
.
fullPath
,
hash
:
this
.
$route
.
hash
,
path
:
this
.
$route
.
path
,
params
:
this
.
$route
.
params
,
query
:
this
.
$route
.
query
,
},
})
);
},
};
</
script
>
docs/.vuepress/theme/layouts/Layout.vue
浏览文件 @
b31c5ea5
...
...
@@ -54,7 +54,7 @@ import Page from '@theme/components/Page.vue'
import
Sidebar
from
'
@theme/components/Sidebar.vue
'
import
Footer
from
'
@theme/components/Footer.vue
'
;
import
SiderBarBottom
from
'
../components/SiderBarBottom.vue
'
;
import
{
resolveSidebarItems
,
forbidScroll
}
from
'
../util
'
import
{
resolveSidebarItems
,
forbidScroll
,
BaiduStat
}
from
'
../util
'
import
navProvider
from
'
../mixin/navProvider
'
;
export
default
{
...
...
@@ -119,6 +119,7 @@ export default {
}
},
mounted
()
{
BaiduStat
()
this
.
$router
.
afterEach
(()
=>
{
this
.
isSidebarOpen
=
false
})
...
...
docs/.vuepress/theme/mixin/navProvider.js
浏览文件 @
b31c5ea5
import
{
navbar
}
from
'
../
../markdown/navbar.config
'
;
import
{
navbar
}
from
'
../
config/navbar
'
;
export
default
{
data
()
{
...
...
docs/.vuepress/theme/util/index.js
浏览文件 @
b31c5ea5
...
...
@@ -278,3 +278,10 @@ export const os = {
}
}
};
export
const
BaiduStat
=
()
=>
{
const
hm
=
document
.
createElement
(
"
script
"
);
hm
.
src
=
"
https://hm.baidu.com/hm.js?fe3b7a223fc08c795f0f4b6350703e6f
"
;
const
s
=
document
.
getElementsByTagName
(
"
script
"
)[
0
];
s
.
parentNode
.
insertBefore
(
hm
,
s
);
}
\ No newline at end of file
docs/api/README.md
浏览文件 @
b31c5ea5
...
...
@@ -186,24 +186,24 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.request
](
api/
request/request?id=request
)
|发起网络请求|
|
[
uni.request
](
request/request?id=request
)
|发起网络请求|
##### 上传、下载
|API|说明|
|:-|:-|
|
[
uni.uploadFile
](
api/
request/network-file?id=uploadfile
)
|上传文件|
|
[
uni.downloadFile
](
api/
request/network-file?id=downloadfile
)
|下载文件|
|
[
uni.uploadFile
](
request/network-file?id=uploadfile
)
|上传文件|
|
[
uni.downloadFile
](
request/network-file?id=downloadfile
)
|下载文件|
##### WebSocket
|API|说明|
|:-|:-|
|
[
uni.connectSocket
](
api/
request/websocket?id=connectsocket
)
|创建 WebSocket 连接|
|
[
uni.onSocketOpen
](
api/
request/websocket?id=onsocketopen
)
|监听 WebSocket 打开|
|
[
uni.onSocketError
](
api/
request/websocket?id=onsocketerror
)
|监听 WebSocket 错误|
|
[
uni.sendSocketMessage
](
api/
request/websocket?id=sendsocketmessage
)
|发送 WebSocket 消息|
|
[
uni.onSocketMessage
](
api/
request/websocket?id=onsocketmessage
)
|接受 WebSocket 消息|
|
[
uni.closeSocket
](
api/
request/websocket?id=closesocket
)
|关闭 WebSocket 连接|
|
[
uni.onSocketClose
](
api/
request/websocket?id=onsocketclose
)
|监听 WebSocket 关闭|
|
[
uni.connectSocket
](
request/websocket?id=connectsocket
)
|创建 WebSocket 连接|
|
[
uni.onSocketOpen
](
request/websocket?id=onsocketopen
)
|监听 WebSocket 打开|
|
[
uni.onSocketError
](
request/websocket?id=onsocketerror
)
|监听 WebSocket 错误|
|
[
uni.sendSocketMessage
](
request/websocket?id=sendsocketmessage
)
|发送 WebSocket 消息|
|
[
uni.onSocketMessage
](
request/websocket?id=onsocketmessage
)
|接受 WebSocket 消息|
|
[
uni.closeSocket
](
request/websocket?id=closesocket
)
|关闭 WebSocket 连接|
|
[
uni.onSocketClose
](
request/websocket?id=onsocketclose
)
|监听 WebSocket 关闭|
##### SocketTask
|API|说明|
...
...
@@ -220,77 +220,77 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.chooseImage
](
api/
media/image?id=chooseimage
)
|从相册选择图片,或者拍照|
|
[
uni.previewImage
](
api/
media/image?id=unipreviewimageobject
)
|预览图片|
|
[
uni.closePreviewImage
](
api/
media/image?id=closepreviewimage
)
|关闭预览图片|
|
[
uni.getImageInfo
](
api/
media/image?id=getimageinfo
)
|获取图片信息|
|
[
uni.saveImageToPhotosAlbum
](
api/
media/image?id=saveimagetophotosalbum
)
|保存图片到系统相册|
|
[
uni.chooseImage
](
media/image?id=chooseimage
)
|从相册选择图片,或者拍照|
|
[
uni.previewImage
](
media/image?id=unipreviewimageobject
)
|预览图片|
|
[
uni.closePreviewImage
](
media/image?id=closepreviewimage
)
|关闭预览图片|
|
[
uni.getImageInfo
](
media/image?id=getimageinfo
)
|获取图片信息|
|
[
uni.saveImageToPhotosAlbum
](
media/image?id=saveimagetophotosalbum
)
|保存图片到系统相册|
##### 文件
|API|说明|
|:-|:-|
|
[
uni.chooseFile
](
api/
media/file?id=chooseFile
)
|从本地选择文件|
|
[
uni.chooseFile
](
media/file?id=chooseFile
)
|从本地选择文件|
##### 录音管理
|API|说明|
|:-|:-|
|
[
uni.getRecorderManager
](
api/
media/record-manager
)
|录音管理|
|
[
uni.getRecorderManager
](
media/record-manager
)
|录音管理|
##### 背景音频播放管理
|API|说明|
|:-|:-|
|
[
uni.getBackgroundAudioManager
](
api/
media/background-audio-manager
)
|背景音频播放管理|
|
[
uni.getBackgroundAudioManager
](
media/background-audio-manager
)
|背景音频播放管理|
##### 音频组件管理
|API|说明|
|:-|:-|
|
[
uni.createInnerAudioContext
](
api/
media/audio-context
)
|音频组件管理|
|
[
uni.createInnerAudioContext
](
media/audio-context
)
|音频组件管理|
##### 视频
|API|说明|
|:-|:-|
|
[
uni.chooseVideo
](
api/
media/video?id=choosevideo
)
|从相册选择视频,或者拍摄|
|
[
uni.chooseMedia
](
api/
media/video?id=choosemedia
)
|拍摄或从手机相册中选择图片或视频。|
|
[
uni.saveVideoToPhotosAlbum
](
api/
media/video?id=savevideotophotosalbum
)
|保存视频到系统相册|
|
[
uni.chooseVideo
](
media/video?id=choosevideo
)
|从相册选择视频,或者拍摄|
|
[
uni.chooseMedia
](
media/video?id=choosemedia
)
|拍摄或从手机相册中选择图片或视频。|
|
[
uni.saveVideoToPhotosAlbum
](
media/video?id=savevideotophotosalbum
)
|保存视频到系统相册|
|
[
uni.createVideoContext
](
/api/media/video-context?id=createvideocontext
)
|视频组件管理|
##### 相机组件管理
|API|说明|
|:-|:-|
|
[
uni.createCameraContext
](
api/
media/camera-context.md
)
|相机组件管理|
|
[
uni.createCameraContext
](
media/camera-context.md
)
|相机组件管理|
##### 直播组件管理
|API|说明|
|:-|:-|
|
[
uni.createLivePlayerContext
](
api/
media/live-player-context.md
)
|直播组件管理|
|
[
uni.createLivePlayerContext
](
media/live-player-context.md
)
|直播组件管理|
#### 文件
|API|说明|
|:-|:-|
|
[
uni.saveFile
](
api/
file/file?id=savefile
)
|保存文件|
|
[
uni.getSavedFileList
](
api/
file/file?id=getsavedfilelist
)
|获取已保存的文件列表|
|
[
uni.getSavedFileInfo
](
api/
file/file?id=getsavedfileinfo
)
|获取已保存的文件信息|
|
[
uni.removeSavedFile
](
api/
file/file?id=removesavedfile
)
|删除已保存的文件信息|
|
[
uni.saveFile
](
file/file?id=savefile
)
|保存文件|
|
[
uni.getSavedFileList
](
file/file?id=getsavedfilelist
)
|获取已保存的文件列表|
|
[
uni.getSavedFileInfo
](
file/file?id=getsavedfileinfo
)
|获取已保存的文件信息|
|
[
uni.removeSavedFile
](
file/file?id=removesavedfile
)
|删除已保存的文件信息|
|
[
uni.getFileInfo
](
/api/file/file?id=getfileinfo
)
|获取文件信息|
|
[
uni.openDocument
](
api/
file/file?id=opendocument
)
|打开文件|
|
[
uni.openDocument
](
file/file?id=opendocument
)
|打开文件|
#### 数据缓存
|API|说明|
|:-|:-|
|
[
uni.getStorage
](
api/
storage/storage?id=setstorage
)
|获取本地数据缓存|
|
[
uni.getStorageSync
](
api/
storage/storage?id=setstoragesync
)
|获取本地数据缓存|
|
[
uni.setStorage
](
api/
storage/storage?id=getstorage
)
|设置本地数据缓存|
|
[
uni.setStorageSync
](
api/
storage/storage?id=getstoragesync
)
|设置本地数据缓存|
|
[
uni.getStorageInfo
](
api/
storage/storage?id=getstorageinfo
)
|获取本地缓存的相关信息|
|
[
uni.getStorageInfoSync
](
api/
storage/storage?id=getstorageinfosync
)
|获取本地缓存的相关信息|
|
[
uni.removeStorage
](
api/
storage/storage?id=removestorage
)
|删除本地缓存内容|
|
[
uni.removeStorageSync
](
api/
storage/storage?id=removestoragesync
)
|删除本地缓存内容|
|
[
uni.clearStorage
](
api/
storage/storage?id=clearstorage
)
|清理本地数据缓存|
|
[
uni.clearStorageSync
](
api/
storage/storage?id=clearstoragesync
)
|清理本地数据缓存|
|
[
uni.getStorage
](
storage/storage?id=setstorage
)
|获取本地数据缓存|
|
[
uni.getStorageSync
](
storage/storage?id=setstoragesync
)
|获取本地数据缓存|
|
[
uni.setStorage
](
storage/storage?id=getstorage
)
|设置本地数据缓存|
|
[
uni.setStorageSync
](
storage/storage?id=getstoragesync
)
|设置本地数据缓存|
|
[
uni.getStorageInfo
](
storage/storage?id=getstorageinfo
)
|获取本地缓存的相关信息|
|
[
uni.getStorageInfoSync
](
storage/storage?id=getstorageinfosync
)
|获取本地缓存的相关信息|
|
[
uni.removeStorage
](
storage/storage?id=removestorage
)
|删除本地缓存内容|
|
[
uni.removeStorageSync
](
storage/storage?id=removestoragesync
)
|删除本地缓存内容|
|
[
uni.clearStorage
](
storage/storage?id=clearstorage
)
|清理本地数据缓存|
|
[
uni.clearStorageSync
](
storage/storage?id=clearstoragesync
)
|清理本地数据缓存|
#### 位置
...
...
@@ -298,18 +298,18 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.getLocation
](
api/
location/location?id=getlocation
)
|获取当前位置|
|
[
uni.chooseLocation
](
api/
location/location?id=chooselocation
)
|打开地图选择位置|
|
[
uni.getLocation
](
location/location?id=getlocation
)
|获取当前位置|
|
[
uni.chooseLocation
](
location/location?id=chooselocation
)
|打开地图选择位置|
##### 查看位置
|API|说明|
|:-|:-|
|
[
uni.openLocation
](
api/
location/open-location?id=openlocation
)
|打开内置地图|
|
[
uni.openLocation
](
location/open-location?id=openlocation
)
|打开内置地图|
##### 地图组件控制
|API|说明|
|:-|:-|
|
[
uni.createMapContext
](
api/
location/map?id=createmapcontext
)
|地图组件控制|
|
[
uni.createMapContext
](
location/map?id=createmapcontext
)
|地图组件控制|
#### 设备
...
...
@@ -317,8 +317,8 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.getSystemInfo
](
api/
system/info?id=getsysteminfo
)
|获取系统信息|
|
[
uni.getSystemInfoSync
](
api/
system/info?id=getsysteminfosync
)
|获取系统信息|
|
[
uni.getSystemInfo
](
system/info?id=getsysteminfo
)
|获取系统信息|
|
[
uni.getSystemInfoSync
](
system/info?id=getsysteminfosync
)
|获取系统信息|
|
[
uni.canIUse
](
/api/system/info?id=caniuse
)
|判断应用的 API,回调,参数,组件等是否在当前版本可用|
##### 内存
...
...
@@ -329,25 +329,25 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.getNetworkType
](
api/
system/network?id=getnetworktype
)
|获取网络类型|
|
[
uni.onNetworkStatusChange
](
api/
system/network?id=onnetworkstatuschange
)
|监听网络状态变化|
|
[
uni.offNetworkStatusChange
](
api/
system/network?id=offnetworkstatuschange
)
|取消监听网络状态变化|
|
[
uni.getNetworkType
](
system/network?id=getnetworktype
)
|获取网络类型|
|
[
uni.onNetworkStatusChange
](
system/network?id=onnetworkstatuschange
)
|监听网络状态变化|
|
[
uni.offNetworkStatusChange
](
system/network?id=offnetworkstatuschange
)
|取消监听网络状态变化|
##### 加速度计
|API|说明|
|:-|:-|
|
[
uni.onAccelerometerChange
](
api/
system/accelerometer?id=onaccelerometerchange
)
|监听加速度数据|
|
[
uni.offAccelerometerChange
](
api/
system/accelerometer?id=offaccelerometerchange
)
|取消监听加速度数据|
|
[
uni.startAccelerometer
](
api/
system/accelerometer?id=startaccelerometer
)
|开始监听加速度数据|
|
[
uni.stopAccelerometer
](
api/
system/accelerometer?id=stopaccelerometer
)
|停止监听加速度数据|
|
[
uni.onAccelerometerChange
](
system/accelerometer?id=onaccelerometerchange
)
|监听加速度数据|
|
[
uni.offAccelerometerChange
](
system/accelerometer?id=offaccelerometerchange
)
|取消监听加速度数据|
|
[
uni.startAccelerometer
](
system/accelerometer?id=startaccelerometer
)
|开始监听加速度数据|
|
[
uni.stopAccelerometer
](
system/accelerometer?id=stopaccelerometer
)
|停止监听加速度数据|
##### 罗盘
|API|说明|
|:-|:-|
|
[
uni.onCompassChange
](
api/
system/compass?id=oncompasschange
)
|监听罗盘数据|
|
[
uni.offCompassChange
](
api/
system/compass?id=offcompasschange
)
|取消监听罗盘数据|
|
[
uni.startCompass
](
api/
system/compass?id=startcompass
)
|开始监听罗盘数据|
|
[
uni.stopCompass
](
api/
system/compass?id=stopcompass
)
|停止监听罗盘数据|
|
[
uni.onCompassChange
](
system/compass?id=oncompasschange
)
|监听罗盘数据|
|
[
uni.offCompassChange
](
system/compass?id=offcompasschange
)
|取消监听罗盘数据|
|
[
uni.startCompass
](
system/compass?id=startcompass
)
|开始监听罗盘数据|
|
[
uni.stopCompass
](
system/compass?id=stopcompass
)
|停止监听罗盘数据|
##### 陀螺仪
|API|说明|
...
...
@@ -359,25 +359,25 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.makePhoneCall
](
api/
system/phone?id=makephonecall
)
|拨打电话|
|
[
uni.makePhoneCall
](
system/phone?id=makephonecall
)
|拨打电话|
##### 扫码
|API|说明|
|:-|:-|
|
[
uni.scanCode
](
api/
system/barcode?id=scancode
)
|扫码|
|
[
uni.scanCode
](
system/barcode?id=scancode
)
|扫码|
##### 剪切板
|API|说明|
|:-|:-|
|
[
uni.setClipboardData
](
api/
system/clipboard?id=setclipboarddata
)
|设置剪贴板内容|
|
[
uni.getClipboardData
](
api/
system/clipboard?id=getclipboarddata
)
|获取剪贴板内容|
|
[
uni.setClipboardData
](
system/clipboard?id=setclipboarddata
)
|设置剪贴板内容|
|
[
uni.getClipboardData
](
system/clipboard?id=getclipboarddata
)
|获取剪贴板内容|
##### 屏幕亮度
|API|说明|
|:-|:-|
|
[
uni.setScreenBrightness
](
api/
system/brightness?id=setscreenbrightness
)
|设置屏幕亮度|
|
[
uni.getScreenBrightness
](
api/
system/brightness?id=getscreenbrightness
)
|获取屏幕亮度|
|
[
uni.setKeepScreenOn
](
api/
system/brightness?id=setkeepscreenon
)
|设置是否保持常亮状态|
|
[
uni.setScreenBrightness
](
system/brightness?id=setscreenbrightness
)
|设置屏幕亮度|
|
[
uni.getScreenBrightness
](
system/brightness?id=getscreenbrightness
)
|获取屏幕亮度|
|
[
uni.setKeepScreenOn
](
system/brightness?id=setkeepscreenon
)
|设置是否保持常亮状态|
##### 用户截屏事件
|API|说明|
...
...
@@ -387,14 +387,14 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.vibrate
](
api/
system/vibrate?id=vibrate
)
|使手机发生振动|
|
[
uni.vibrateLong
](
api/
system/vibrate?id=vibratelong
)
|使手机发生较长时间的振动|
|
[
uni.vibrateShort
](
api/
system/vibrate?id=vibrateshort
)
|使手机发生较短时间的振动|
|
[
uni.vibrate
](
system/vibrate?id=vibrate
)
|使手机发生振动|
|
[
uni.vibrateLong
](
system/vibrate?id=vibratelong
)
|使手机发生较长时间的振动|
|
[
uni.vibrateShort
](
system/vibrate?id=vibrateshort
)
|使手机发生较短时间的振动|
##### 手机联系人
|API|说明|
|:-|:-|
|
[
uni.addPhoneContact
](
api/
system/contact?id=addphonecontact
)
|添加手机通讯录|
|
[
uni.addPhoneContact
](
system/contact?id=addphonecontact
)
|添加手机通讯录|
##### 蓝牙
|API|说明|
...
...
@@ -444,20 +444,20 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.showToast
](
api/
ui/prompt?id=showtoast
)
|显示提示框|
|
[
uni.showLoading
](
api/
ui/prompt?id=showloading
)
|显示加载提示框|
|
[
uni.hideToast
](
api/
ui/prompt?id=hidetoast
)
|隐藏提示框|
|
[
uni.hideLoading
](
api/
ui/prompt?id=hideloading
)
|隐藏加载提示框|
|
[
uni.showModal
](
api/
ui/prompt?id=showmodal
)
|显示模态弹窗|
|
[
uni.showActionSheet
](
api/
ui/prompt?id=showactionsheet
)
|显示菜单列表|
|
[
uni.showToast
](
ui/prompt?id=showtoast
)
|显示提示框|
|
[
uni.showLoading
](
ui/prompt?id=showloading
)
|显示加载提示框|
|
[
uni.hideToast
](
ui/prompt?id=hidetoast
)
|隐藏提示框|
|
[
uni.hideLoading
](
ui/prompt?id=hideloading
)
|隐藏加载提示框|
|
[
uni.showModal
](
ui/prompt?id=showmodal
)
|显示模态弹窗|
|
[
uni.showActionSheet
](
ui/prompt?id=showactionsheet
)
|显示菜单列表|
##### 设置导航条
|API|说明|
|:-|:-|
|
[
uni.setNavigationBarTitle
](
api/
ui/navigationbar?id=setnavigationbartitle
)
|设置当前页面标题|
|
[
uni.setNavigationBarTitle
](
ui/navigationbar?id=setnavigationbartitle
)
|设置当前页面标题|
|
[
uni.setNavigationBarColor
](
/api/ui/navigationbar?id=setnavigationbarcolor
)
|设置页面导航条颜色|
|
[
uni.showNavigationBarLoading
](
api/
ui/navigationbar?id=shownavigationbarloading
)
|显示导航条加载动画|
|
[
uni.hideNavigationBarLoading
](
api/
ui/navigationbar?id=hidenavigationbarloading
)
|隐藏导航条加载动画|
|
[
uni.showNavigationBarLoading
](
ui/navigationbar?id=shownavigationbarloading
)
|显示导航条加载动画|
|
[
uni.hideNavigationBarLoading
](
ui/navigationbar?id=hidenavigationbarloading
)
|隐藏导航条加载动画|
##### 设置TabBar
|API|说明|
...
...
@@ -508,7 +508,7 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.createSelectorQuery
](
api/
ui/nodes-info?id=createselectorquery
)
|创建查询请求|
|
[
uni.createSelectorQuery
](
ui/nodes-info?id=createselectorquery
)
|创建查询请求|
|
[
selectorQuery.select
](
/api/ui/nodes-info?id=selectorquery-对象的方法列表
)
|根据选择器选择单个节点|
|
[
selectorQuery.selectAll
](
/api/ui/nodes-info?id=selectorquery-对象的方法列表
)
|根据选择器选择全部节点|
|
[
selectorQuery.selectViewport
](
/api/ui/nodes-info?id=selectorquery-对象的方法列表
)
|选择显示区域|
...
...
@@ -520,7 +520,7 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.createIntersectionObserver
](
api/
ui/intersection-observer?id=createintersectionobserver
)
|创建 IntersectionObserver 对象|
|
[
uni.createIntersectionObserver
](
ui/intersection-observer?id=createintersectionobserver
)
|创建 IntersectionObserver 对象|
|
[
intersectionObserver.relativeTo
](
/api/ui/intersection-observer?id=intersectionobserver-对象的方法列表
)
|指定参照节点|
|
[
intersectionObserver.relativeToViewport
](
/api/ui/intersection-observer?id=intersectionobserver-对象的方法列表
)
|指定页面显示区域作为参照区域|
|
[
intersectionObserver.observe
](
/api/ui/intersection-observer?id=intersectionobserver-对象的方法列表
)
|指定目标节点并开始监听|
...
...
@@ -543,22 +543,22 @@ uni.addInterceptor({
|API|说明|
|:-|:-|
|
[
uni.getProvider
](
api/
plugins/provider?id=getprovider
)
|获取服务供应商|
|
[
uni.login
](
api/
plugins/login?id=login
)
|登录|
|
[
uni.getUserInfo
](
api/
plugins/login?id=getuserinfo
)
|获取用户信息|
|
[
uni.getuserprofile
](
api/
plugins/login?id=getuserprofile
)
|获取用户信息。每次请求都会弹出授权窗口,用户同意后返回 userInfo|
|
[
uni.checkSession
](
api/
plugins/login?id=checkSession
)
|检查登录状态是否过期|
|
[
uni.preLogin
](
api/
plugins/login?id=prelogin
)
|预登录|
|
[
uni.closeAuthView
](
api/
plugins/login?id=closeauthview
)
|关闭一键登录页面|
|
[
uni.getCheckBoxState
](
api/
plugins/login?id=getcheckboxstate
)
|获取一键登录条款勾选框状态|
|
[
uni.getUniverifyManager
](
api/
plugins/login?id=getUniverifyManager
)
|获取全局唯一的一键登录管理器 univerifyManager|
|
[
uni.share
](
api/
plugins/share?id=share
)
|分享|
|
[
uni.shareWithSystem
](
api/
plugins/share?id=sharewithsystem
)
|使用系统分享|
|
[
uni.requestPayment
](
api/
plugins/payment?id=requestpayment
)
|支付|
|
[
uni.subscribePush
](
api/
plugins/push?id=subscribepush
)
|开启推送|
|
[
uni.unsubscribePush
](
api/
plugins/push?id=unsubscribepush
)
|关闭推送|
|
[
uni.onPush
](
api/
plugins/push?id=onpush
)
|监听透传数据|
|
[
uni.offPush
](
api/
plugins/push?id=offpush
)
|移除监听透传数据|
|
[
uni.getProvider
](
plugins/provider?id=getprovider
)
|获取服务供应商|
|
[
uni.login
](
plugins/login?id=login
)
|登录|
|
[
uni.getUserInfo
](
plugins/login?id=getuserinfo
)
|获取用户信息|
|
[
uni.getuserprofile
](
plugins/login?id=getuserprofile
)
|获取用户信息。每次请求都会弹出授权窗口,用户同意后返回 userInfo|
|
[
uni.checkSession
](
plugins/login?id=checkSession
)
|检查登录状态是否过期|
|
[
uni.preLogin
](
plugins/login?id=prelogin
)
|预登录|
|
[
uni.closeAuthView
](
plugins/login?id=closeauthview
)
|关闭一键登录页面|
|
[
uni.getCheckBoxState
](
plugins/login?id=getcheckboxstate
)
|获取一键登录条款勾选框状态|
|
[
uni.getUniverifyManager
](
plugins/login?id=getUniverifyManager
)
|获取全局唯一的一键登录管理器 univerifyManager|
|
[
uni.share
](
plugins/share?id=share
)
|分享|
|
[
uni.shareWithSystem
](
plugins/share?id=sharewithsystem
)
|使用系统分享|
|
[
uni.requestPayment
](
plugins/payment?id=requestpayment
)
|支付|
|
[
uni.subscribePush
](
plugins/push?id=subscribepush
)
|开启推送|
|
[
uni.unsubscribePush
](
plugins/push?id=unsubscribepush
)
|关闭推送|
|
[
uni.onPush
](
plugins/push?id=onpush
)
|监听透传数据|
|
[
uni.offPush
](
plugins/push?id=offpush
)
|移除监听透传数据|
#### 平台扩展
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录