Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
23e24be7
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6060
Star
93
Fork
166
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
19
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
19
Issue
19
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
23e24be7
编写于
1月 20, 2024
作者:
DCloud-yinjiacheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新API示例
上级
20fdb4dc
变更
22
显示空白变更内容
内联
并排
Showing
22 changed file
with
281 addition
and
310 deletion
+281
-310
pages/API/get-app-authorize-setting/get-app-authorize-setting.uvue
.../get-app-authorize-setting/get-app-authorize-setting.uvue
+40
-42
pages/API/get-app-base-info/get-app-base-info.uvue
pages/API/get-app-base-info/get-app-base-info.uvue
+18
-20
pages/API/get-current-pages/get-current-pages.uvue
pages/API/get-current-pages/get-current-pages.uvue
+8
-10
pages/API/get-element-by-id/get-element-by-id-multiple-root-node.uvue
...t-element-by-id/get-element-by-id-multiple-root-node.uvue
+2
-2
pages/API/get-element-by-id/get-element-by-id.uvue
pages/API/get-element-by-id/get-element-by-id.uvue
+16
-18
pages/API/get-launch-options-sync/get-launch-options-sync.uvue
.../API/get-launch-options-sync/get-launch-options-sync.uvue
+6
-8
pages/API/get-location/get-location.uvue
pages/API/get-location/get-location.uvue
+33
-35
pages/API/get-network-type/get-network-type.uvue
pages/API/get-network-type/get-network-type.uvue
+13
-15
pages/API/get-system-setting/get-system-setting.uvue
pages/API/get-system-setting/get-system-setting.uvue
+33
-35
pages/API/get-window-info/get-window-info.uvue
pages/API/get-window-info/get-window-info.uvue
+13
-15
pages/API/interceptor/interceptor.uvue
pages/API/interceptor/interceptor.uvue
+1
-1
pages/API/interceptor/page1.uvue
pages/API/interceptor/page1.uvue
+2
-2
pages/API/interceptor/page2.uvue
pages/API/interceptor/page2.uvue
+2
-2
pages/API/load-font-face/load-font-face-child.uvue
pages/API/load-font-face/load-font-face-child.uvue
+22
-24
pages/API/load-font-face/load-font-face.uvue
pages/API/load-font-face/load-font-face.uvue
+21
-23
pages/API/navigator/new-page/new-page-1.uvue
pages/API/navigator/new-page/new-page-1.uvue
+1
-1
pages/API/navigator/new-page/new-page-3.uvue
pages/API/navigator/new-page/new-page-3.uvue
+1
-1
pages/API/nodes-info/nodes-info.uvue
pages/API/nodes-info/nodes-info.uvue
+2
-1
pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue
...PI/set-navigation-bar-color/set-navigation-bar-color.uvue
+11
-13
pages/API/set-navigation-bar-title/set-navigation-bar-title.uvue
...PI/set-navigation-bar-title/set-navigation-bar-title.uvue
+8
-10
pages/API/websocket-global/websocket-global.uvue
pages/API/websocket-global/websocket-global.uvue
+14
-16
pages/API/websocket-socketTask/websocket-socketTask.uvue
pages/API/websocket-socketTask/websocket-socketTask.uvue
+14
-16
未找到文件。
pages/API/get-app-authorize-setting/get-app-authorize-setting.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
...
...
@@ -50,7 +49,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
export default {
...
...
pages/API/get-app-base-info/get-app-base-info.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
...
...
@@ -18,7 +17,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
type Item = {
...
...
pages/API/get-current-pages/get-current-pages.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="getCurrentPages"></page-head>
<view class="uni-padding-wrap">
<button @click="_getCurrentPages">getCurrentPages</button>
...
...
@@ -10,7 +9,6 @@
</template>
</view>
</view>
</view>
</template>
<script>
...
...
pages/API/get-element-by-id/get-element-by-id-multiple-root-node.uvue
浏览文件 @
23e24be7
<template>
<view class="uni-padding-wrap">
<page-head id="page-head" title="getElementById-multiple-root-node"></page-head>
<view class="uni-padding-wrap">
<text id="text">this is text</text>
<view id="view" class="uni-common-mt" style="border: 1px solid red">this is view</view>
<button class="uni-btn" @click="changePageHeadBackgroundColor">
...
...
pages/API/get-element-by-id/get-element-by-id.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head id="page-head" title="getElementById"></page-head>
<view class="uni-padding-wrap">
<text id="text">this is text</text>
...
...
@@ -17,7 +16,6 @@
跳转多根节点示例
</button>
</view>
</view>
</template>
<script lang="uts">
...
...
pages/API/get-launch-options-sync/get-launch-options-sync.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="getLaunchOptionsSync"></page-head>
<view class="uni-padding-wrap">
<button @click="getLaunchOptionsSync">getLaunchOptionsSync</button>
...
...
@@ -8,7 +7,6 @@
<text style="margin-top: 5px">{{ launchOptionsPath }}</text>
</view>
</view>
</view>
</template>
<script lang="uts">
...
...
pages/API/get-location/get-location.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head :title="title"></page-head>
<view style="padding: 4px;">
<text class="hello-text">
...
...
@@ -36,7 +35,6 @@
<button class="uni-btn" type="default" @tap="getLocationTap">获取定位</button>
</view>
</view>
</view>
</template>
<script lang="uts">
type ItemType = {
...
...
pages/API/get-network-type/get-network-type.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view style="background:#FFFFFF; padding:20px;">
...
...
@@ -17,7 +16,6 @@
<button class="uni-common-mt" @tap="clear">清空</button>
</view>
</view>
</view>
</template>
<script>
export default {
...
...
pages/API/get-system-setting/get-system-setting.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
...
...
@@ -42,7 +41,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
...
...
pages/API/get-window-info/get-window-info.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-common-mt">
<view class="uni-list">
...
...
@@ -18,7 +17,6 @@
</view>
</view>
</view>
</view>
</template>
<script>
import { setStatusBarHeight } from '@/store/index.uts'
...
...
pages/API/interceptor/interceptor.uvue
浏览文件 @
23e24be7
<template>
<view>
<view
style="flex: 1;"
>
<button @click="addInterceptor">添加路由拦截器</button>
<button @click="removeInterceptor">移除路由拦截器</button>
<text>点击下方按钮{{msg}}</text>
...
...
pages/API/interceptor/page1.uvue
浏览文件 @
23e24be7
<template>
<view>
<view
style="flex: 1;"
>
<text style="text-align: center;">测试页面 1</text>
</view>
</template>
...
...
pages/API/interceptor/page2.uvue
浏览文件 @
23e24be7
<template>
<view>
<view
style="flex: 1;"
>
<text style="text-align: center;">测试页面 2</text>
</view>
</template>
...
...
pages/API/load-font-face/load-font-face-child.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="loadFontFace-child"></page-head>
<view class="uni-padding-wrap">
<text class="font-size-20">上一页全局加载字体:</text>
...
...
@@ -24,7 +23,6 @@
>font-family: 阿里妈妈刀隶体-woff2</text
> -->
</view>
</view>
</template>
<script>
...
...
pages/API/load-font-face/load-font-face.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="loadFontFace"></page-head>
<view class="uni-padding-wrap">
<text class="font-size-20">全局加载字体:</text>
...
...
@@ -23,7 +22,6 @@
<text class="item" style="font-family: AlimamaDaoLiTiWOFF2">font-family: 阿里妈妈刀隶体-woff2</text>
<button class="uni-btn" @click="navigateToChild">跳转子页面测试字体生效范围</button>
</view>
</view>
</template>
<script>
export default {
...
...
pages/API/navigator/new-page/new-page-1.uvue
浏览文件 @
23e24be7
<template>
<view class="uni-padding-wrap">
<page-head title="new-page-1" />
<view class="uni-padding-wrap">
<text>onLoad 接收到参数</text>
<text>data: {{ data }}</text>
<button @tap="navigateBackWithDelta2" class="uni-btn">
...
...
pages/API/navigator/new-page/new-page-3.uvue
浏览文件 @
23e24be7
<template>
<view class="uni-padding-wrap">
<view class="uni-padding-wrap"
style="flex: 1;"
>
<page-head title="new-page-3" />
</view>
</template>
pages/API/nodes-info/nodes-info.uvue
浏览文件 @
23e24be7
...
...
@@ -93,6 +93,7 @@
<style>
.page {
padding: 15px;
flex: 1;
}
.btn {
...
...
pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="setNavigationBarColor"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<button @tap="setNavigationBarColor1" class="uni-btn">
...
...
@@ -12,7 +11,6 @@
跳转自定义导航栏页面
</button>
</view>
</view>
</template>
<script>
...
...
pages/API/set-navigation-bar-title/set-navigation-bar-title.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="setNavigationBarTitle"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<button @tap="setNavigationBarNewTitle" class="uni-btn">
...
...
@@ -9,7 +8,6 @@
设置超长标题
</button>
</view>
</view>
</template>
<script>
...
...
pages/API/websocket-global/websocket-global.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="websocket通讯示例"></page-head>
<view class="uni-padding-wrap">
<view class="uni-btn-v">
...
...
@@ -16,7 +15,6 @@
<text class="websocket-tips">发送消息后会收到一条服务器返回的消息(与发送的消息内容一致)</text>
</view>
</view>
</view>
</template>
<script>
...
...
pages/API/websocket-socketTask/websocket-socketTask.uvue
浏览文件 @
23e24be7
<template>
<view>
<page-head title="websocket通讯示例"></page-head>
<view class="uni-padding-wrap">
<view class="uni-btn-v">
...
...
@@ -16,7 +15,6 @@
<text class="websocket-tips">发送消息后会收到一条服务器返回的消息(与发送的消息内容一致)</text>
</view>
</view>
</view>
</template>
<script>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录