Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
524ab7d4
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
6018
Star
91
Fork
164
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
524ab7d4
编写于
10月 28, 2024
作者:
zhaofengliang920817
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' into dev-share
上级
eaeaa109
8b19183b
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
572 addition
and
159 deletion
+572
-159
App.uvue
App.uvue
+39
-39
main.uts
main.uts
+12
-12
manifest.json
manifest.json
+2
-2
pages.json
pages.json
+381
-33
pages/API/dialog-page/dialog-page.test.js
pages/API/dialog-page/dialog-page.test.js
+7
-0
pages/API/dialog-page/next-page.uvue
pages/API/dialog-page/next-page.uvue
+2
-1
pages/API/privacy/privacy.uvue
pages/API/privacy/privacy.uvue
+8
-0
pages/component/button/button.uvue
pages/component/button/button.uvue
+9
-1
pages/component/button/privacy.uvue
pages/component/button/privacy.uvue
+7
-7
pages/component/native-view/native-view.uvue
pages/component/native-view/native-view.uvue
+13
-2
pages/component/rich-text/rich-text.test.js
pages/component/rich-text/rich-text.test.js
+18
-10
pages/component/rich-text/rich-text.uvue
pages/component/rich-text/rich-text.uvue
+26
-18
pages/component/video/video.uvue
pages/component/video/video.uvue
+2
-2
pages/pages.test.js
pages/pages.test.js
+7
-7
pages/tabBar/API.uvue
pages/tabBar/API.uvue
+2
-6
pages/tabBar/CSS.uvue
pages/tabBar/CSS.uvue
+1
-1
pages/tabBar/component.uvue
pages/tabBar/component.uvue
+15
-3
pages/tabBar/generateMenu.uts
pages/tabBar/generateMenu.uts
+0
-11
pages/tabBar/template.uvue
pages/tabBar/template.uvue
+1
-1
uni_modules/uni-upgrade-center-app/changelog.md
uni_modules/uni-upgrade-center-app/changelog.md
+4
-0
uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue
...onents/uni-upgrade-center-app/uni-upgrade-center-app.uvue
+11
-0
uni_modules/uni-upgrade-center-app/package.json
uni_modules/uni-upgrade-center-app/package.json
+5
-3
未找到文件。
App.uvue
浏览文件 @
524ab7d4
...
...
@@ -49,15 +49,15 @@
// 统计上报 - 应用启动
// #ifdef APP-ANDROID || APP-IOS || WEB
uni.report({
name: 'uni-app-launch',
options: res,
success(res_data) {
console.log(res_data);
}, fail(err) {
console.log(err);
}
})
//
uni.report({
//
name: 'uni-app-launch',
//
options: res,
//
success(res_data) {
//
console.log(res_data);
//
}, fail(err) {
//
console.log(err);
//
}
//
})
// #endif
// #ifdef APP
if (process.env.NODE_ENV !== 'development') { //真机运行可以注释此条件
...
...
@@ -90,14 +90,14 @@
// #ifdef APP-ANDROID || APP-IOS || WEB
// 统计上报 - 应用显示
uni.report({
name: 'uni-app-show',
success(res_data) {
console.log(res_data);
}, fail(err) {
console.log(err);
}
})
//
uni.report({
//
name: 'uni-app-show',
//
success(res_data) {
//
console.log(res_data);
//
}, fail(err) {
//
console.log(err);
//
}
//
})
// #endif
},
onHide: function () {
...
...
@@ -107,14 +107,14 @@
// #ifdef APP-ANDROID || APP-IOS || WEB
// 统计上报 - 应用进入后台
uni.report({
name: 'uni-app-hide',
success(res) {
console.log(res);
}, fail(err) {
console.log(err);
}
})
//
uni.report({
//
name: 'uni-app-hide',
//
success(res) {
//
console.log(res);
//
}, fail(err) {
//
console.log(err);
//
}
//
})
// #endif
},
// #ifdef APP-ANDROID
...
...
@@ -139,20 +139,20 @@
onExit() {
console.log('App Exit')
},
onError(err : any) {
// #ifdef APP-ANDROID || APP-IOS || WEB
// 统计上报 - 应用发生错误
uni.report({
name: 'uni-app-error',
options: err,
success(res) {
console.log(res);
}, fail(err) {
console.log(err);
}
})
// #endif
},
//
onError(err : any) {
//
// #ifdef APP-ANDROID || APP-IOS || WEB
//
// 统计上报 - 应用发生错误
//
uni.report({
//
name: 'uni-app-error',
//
options: err,
//
success(res) {
//
console.log(res);
//
}, fail(err) {
//
console.log(err);
//
}
//
})
//
// #endif
//
},
// #endif
methods: {
increasetLifeCycleNum() {
...
...
main.uts
浏览文件 @
524ab7d4
// 仅测试 console.log 时机问题
import './test-main-console.uts'
// #ifdef APP-ANDROID || APP-IOS || WEB
import { uniStat } from '@/uni_modules/uni-stat/plugin.uts'
//
import { uniStat } from '@/uni_modules/uni-stat/plugin.uts'
// #endif
import App from './App.uvue'
import { createSSRApp } from 'vue'
// 统计配置
const collectItems = {
uniStatPageLog: true
}
//
//
统计配置
//
const collectItems = {
//
uniStatPageLog: true
//
}
const statOptions = {
debug: false,
collectItems: collectItems,
}
//
const statOptions = {
//
debug: false,
//
collectItems: collectItems,
//
}
export function createApp() {
const app = createSSRApp(App)
// #ifdef APP-ANDROID || APP-IOS || WEB
app.use(uniStat, statOptions)
// #endif
//
//
#ifdef APP-ANDROID || APP-IOS || WEB
//
app.use(uniStat, statOptions)
//
//
#endif
// app.mixin({
// onReady() {
// setTimeout(() => {
...
...
manifest.json
浏览文件 @
524ab7d4
...
...
@@ -2,8 +2,8 @@
"name"
:
"Hello uni-app x"
,
"appid"
:
"__UNI__HelloUniAppX"
,
"description"
:
""
,
"versionName"
:
"1.6"
,
"versionCode"
:
1060
0
,
"versionName"
:
"1.6
.3
"
,
"versionCode"
:
1060
3
,
"uni-app-x"
:
{},
/*
快应用特有相关
*/
"quickapp"
:
{},
...
...
pages.json
浏览文件 @
524ab7d4
...
...
@@ -16,9 +16,10 @@
"path"
:
"pages/tabBar/component"
,
"style"
:
{
"navigationBarTitleText"
:
"内置组件"
,
"backgroundColor
"
:
"#F8F8F
8"
"backgroundColor
Content"
:
"#f8f8f
8"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/view/view"
,
"group"
:
"0,1,0"
,
...
...
@@ -26,6 +27,8 @@
"navigationBarTitleText"
:
"view | 基本视图容器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/scroll-view/scroll-view"
,
"group"
:
"0,1,1"
,
...
...
@@ -33,30 +36,40 @@
"navigationBarTitleText"
:
"scroll-view | 可滚动视图容器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/swiper/swiper"
,
"group"
:
"0,1,2"
,
...
...
@@ -64,6 +77,8 @@
"navigationBarTitleText"
:
"swiper | 滑块视图容器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/list-view"
,
"group"
:
"0,1,6"
,
...
...
@@ -71,6 +86,8 @@
"navigationBarTitleText"
:
"list-view | 列表容器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/list-view-refresh"
,
"style"
:
{
...
...
@@ -78,12 +95,16 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
{
...
...
@@ -91,18 +112,24 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"group"
:
"0,1,7,1"
,
...
...
@@ -110,6 +137,8 @@
"navigationBarTitleText"
:
"sticky-section | 吸顶布局容器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"group"
:
"0,1,7,0"
,
...
...
@@ -118,6 +147,8 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/text/text"
,
"group"
:
"0,2,1"
,
...
...
@@ -125,12 +156,16 @@
"navigationBarTitleText"
:
"text | 文本"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/text/text-props"
,
"style"
:
{
"navigationBarTitleText"
:
"text-props"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/rich-text/rich-text"
,
"group"
:
"0,2,2"
,
...
...
@@ -138,18 +173,24 @@
"navigationBarTitleText"
:
"rich-text | 富文本"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/progress/progress"
,
"group"
:
"0,2,3"
,
...
...
@@ -157,6 +198,8 @@
"navigationBarTitleText"
:
"progress | 进度条"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/form/form"
,
"group"
:
"0,3,2"
,
...
...
@@ -164,6 +207,8 @@
"navigationBarTitleText"
:
"form | 表单"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
||
MP-WEIXIN
{
"path"
:
"pages/component/button/button"
,
"group"
:
"0,3,0"
,
...
...
@@ -171,12 +216,16 @@
"navigationBarTitleText"
:
"button | 按钮"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
||
MP-WEIXIN
{
"path"
:
"pages/component/button/buttonstatus"
,
"style"
:
{
"navigationBarTitleText"
:
"buttonstatus"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/radio/radio"
,
"group"
:
"0,3,8"
,
...
...
@@ -184,6 +233,8 @@
"navigationBarTitleText"
:
"radio | 单选框"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/checkbox/checkbox"
,
"group"
:
"0,3,1"
,
...
...
@@ -191,6 +242,8 @@
"navigationBarTitleText"
:
"checkbox | 多选框"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/input/input"
,
"group"
:
"0,3,3"
,
...
...
@@ -198,6 +251,8 @@
"navigationBarTitleText"
:
"input | 输入框"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/textarea/textarea"
,
"group"
:
"0,3,11"
,
...
...
@@ -205,6 +260,8 @@
"navigationBarTitleText"
:
"textarea | 多行输入框"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/slider/slider"
,
"group"
:
"0,3,9"
,
...
...
@@ -212,12 +269,16 @@
"navigationBarTitleText"
:
"slider | 滑动选择器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/slider/slider-in-swiper"
,
"style"
:
{
"navigationBarTitleText"
:
"slider-in-swiper"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/picker-view/picker-view"
,
"group"
:
"0,3,7"
,
...
...
@@ -225,6 +286,8 @@
"navigationBarTitleText"
:
"picker-view | 嵌入页面的滚动选择器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/switch/switch"
,
"group"
:
"0,3,10"
,
...
...
@@ -232,6 +295,8 @@
"navigationBarTitleText"
:
"switch | 开关选择器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/image/image"
,
"group"
:
"0,5,0"
,
...
...
@@ -239,30 +304,40 @@
"navigationBarTitleText"
:
"image | 图片"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/image/image-format"
,
"style"
:
{
"navigationBarTitleText"
:
"image-format"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/image/image-mode"
,
"style"
:
{
"navigationBarTitleText"
:
"image-mode"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/image/image-path"
,
"style"
:
{
"navigationBarTitleText"
:
"image-path"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/image/image-large"
,
"style"
:
{
"navigationBarTitleText"
:
"大图测试"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/video/video"
,
"group"
:
"0,5,1"
,
...
...
@@ -270,12 +345,16 @@
"navigationBarTitleText"
:
"video | 视频"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/video/video-format"
,
"style"
:
{
"navigationBarTitleText"
:
"video-format"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/navigator/navigator"
,
"group"
:
"0,4,0"
,
...
...
@@ -283,18 +362,24 @@
"navigationBarTitleText"
:
"navigator | 页面链接"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/navigator/navigate"
,
"style"
:
{
"navigationBarTitleText"
:
"navigatePage"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/navigator/redirect"
,
"style"
:
{
"navigationBarTitleText"
:
"redirectPage"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/web-view/web-view"
,
"group"
:
"0,9"
,
...
...
@@ -302,6 +387,8 @@
"navigationBarTitleText"
:
"web-view"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/web-view/web-view/web-view-local"
,
"group"
:
"0,9"
,
...
...
@@ -309,6 +396,8 @@
"navigationBarTitleText"
:
"本地网页"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/unicloud-db/unicloud-db/contacts/list"
,
"group"
:
"0,11"
,
...
...
@@ -317,24 +406,32 @@
"enablePullDownRefresh"
:
true
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/unicloud-db/unicloud-db/contacts/add"
,
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/unicloud-db/unicloud-db/contacts/edit"
,
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/unicloud-db/unicloud-db/contacts/detail"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/unicloud-db/unicloud-db/mixin-datacom/mixin-datacom"
,
"group"
:
"0,11"
,
...
...
@@ -342,6 +439,7 @@
"navigationBarTitleText"
:
"mixinDatacom"
}
},
//
#endif
{
"path"
:
"pages/component/global-properties/global-properties"
,
"group"
:
"0,0"
,
...
...
@@ -376,7 +474,7 @@
"navigationBarTitleText"
:
"Touch Events bubbles"
}
},
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/component/nested-scroll-header/nested-scroll-header"
,
"group"
:
"0,1,8,0"
,
...
...
@@ -385,7 +483,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/component/nested-scroll-body/nested-scroll-body"
,
"group"
:
"0,1,8,1"
,
...
...
@@ -394,6 +492,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/swiper/swiper-list-view"
,
"style"
:
{
...
...
@@ -401,6 +500,7 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
WEB
{
"path"
:
"pages/component/movable-view/movable-view"
,
...
...
@@ -428,6 +528,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/map/map"
,
"group"
:
"0,6"
,
...
...
@@ -435,6 +536,7 @@
"navigationBarTitleText"
:
"map | 地图"
}
},
//
#endif
//
#ifdef
WEB
{
"path"
:
"pages/component/cover-view/cover-view"
,
...
...
@@ -453,6 +555,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/list-view/issue-2199"
,
"style"
:
{
...
...
@@ -460,6 +563,8 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/canvas/canvas"
,
"group"
:
"0,7"
,
...
...
@@ -467,12 +572,16 @@
"navigationBarTitleText"
:
"canvas | 画布"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/canvas/canvas-context"
,
"style"
:
{
"navigationBarTitleText"
:
"createCanvasContextAsync"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/canvas/canvas/ball"
,
"group"
:
"0,7"
,
...
...
@@ -480,6 +589,8 @@
"navigationBarTitleText"
:
"ball"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/component/canvas/canvas/doodle"
,
"group"
:
"0,7"
,
...
...
@@ -487,7 +598,8 @@
"navigationBarTitleText"
:
"涂鸦"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/component/native-view/native-view"
,
"group"
:
"0,2,4"
,
...
...
@@ -496,7 +608,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/component/ad/ad"
,
"group"
:
"0,8"
,
...
...
@@ -506,7 +618,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/component/ad/list-view-ad"
,
"style"
:
{
...
...
@@ -519,9 +631,10 @@
"path"
:
"pages/tabBar/API"
,
"style"
:
{
"navigationBarTitleText"
:
"接口"
,
"backgroundColor
"
:
"#F8F8F
8"
"backgroundColor
Content"
:
"#f8f8f
8"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-app/get-app"
,
"group"
:
"1,0,0"
,
...
...
@@ -529,6 +642,7 @@
"navigationBarTitleText"
:
"getApp | 获取当前应用实例"
}
},
//
#endif
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/exit/exit"
,
...
...
@@ -548,6 +662,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
"group"
:
"1,0,1"
,
...
...
@@ -556,6 +671,8 @@
"enablePullDownRefresh"
:
true
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-current-pages/set-page-style-disable-pull-down-refresh"
,
"style"
:
{
...
...
@@ -563,6 +680,8 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-launch-options-sync/get-launch-options-sync"
,
"group"
:
"1,1,4,0"
,
...
...
@@ -570,6 +689,8 @@
"navigationBarTitleText"
:
"getLaunchOptionsSync | 获取启动参数"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-enter-options-sync/get-enter-options-sync"
,
"group"
:
"1,1,4,1"
,
...
...
@@ -577,6 +698,7 @@
"navigationBarTitleText"
:
"getEnterOptionsSync | 获取本次启动时的参数"
}
},
//
#endif
{
"path"
:
"pages/API/animation-frame/animation-frame"
,
"group"
:
"1,0,2"
,
...
...
@@ -584,6 +706,7 @@
"navigationBarTitleText"
:
"animationFrame | 动画帧"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/navigator/navigator"
,
"group"
:
"1,2,0"
,
...
...
@@ -591,6 +714,8 @@
"navigationBarTitleText"
:
"navigator | 页面跳转"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color"
,
"group"
:
"1,2,2"
,
...
...
@@ -598,6 +723,8 @@
"navigationBarTitleText"
:
"setNavigationBarColor | 设置导航条颜色"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"group"
:
"1,2,3"
,
...
...
@@ -605,6 +732,7 @@
"navigationBarTitleText"
:
"setNavigationBarTitle | 设置导航条标题"
}
},
//
#endif
{
"path"
:
"pages/API/set-page-backgroundColorContent/set-page-backgroundColorContent"
,
"group"
:
"1,2"
,
...
...
@@ -612,24 +740,31 @@
"navigationBarTitleText"
:
"设置页面容器背景色"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/navigator/new-page/new-page-1"
,
"style"
:
{
"navigationBarTitleText"
:
"新页面-1"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/navigator/new-page/new-page-3"
,
"style"
:
{
"navigationBarTitleText"
:
"新页面-3"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/navigator/new-page/onLoad"
,
"style"
:
{
"navigationBarTitleText"
:
"onLoad 生命周期测试"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/pull-down-refresh/pull-down-refresh"
,
"group"
:
"1,2,5"
,
...
...
@@ -638,6 +773,8 @@
"enablePullDownRefresh"
:
true
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/storage/storage"
,
"group"
:
"1,10"
,
...
...
@@ -645,7 +782,8 @@
"navigationBarTitleText"
:
"storage | key-value本地数据存储"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/get-file-system-manager/get-file-system-manager"
,
"group"
:
"1,11,0"
,
...
...
@@ -654,7 +792,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/env/env"
,
"group"
:
"1,1,0"
,
...
...
@@ -663,6 +801,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/show-action-sheet/show-action-sheet"
,
"group"
:
"1,4,1"
,
...
...
@@ -670,6 +809,8 @@
"navigationBarTitleText"
:
"showActionSheet | 弹出操作菜单"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/show-modal/show-modal"
,
"group"
:
"1,4,2"
,
...
...
@@ -677,6 +818,8 @@
"navigationBarTitleText"
:
"showModal | 显示模态弹窗"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/show-loading/show-loading"
,
"group"
:
"1,4,3"
,
...
...
@@ -684,6 +827,8 @@
"navigationBarTitleText"
:
"showLoading | 显示 loading 提示框"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/show-toast/show-toast"
,
"group"
:
"1,4,4"
,
...
...
@@ -691,6 +836,8 @@
"navigationBarTitleText"
:
"showToast | 显示消息提示框"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/load-font-face/load-font-face"
,
"group"
:
"1,4,5"
,
...
...
@@ -698,12 +845,16 @@
"navigationBarTitleText"
:
"loadFontFace | 动态加载字体"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/load-font-face/load-font-face-child"
,
"style"
:
{
"navigationBarTitleText"
:
"动态加载字体-子页面"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-location/get-location"
,
"group"
:
"1,9,0"
,
...
...
@@ -711,6 +862,7 @@
"navigationBarTitleText"
:
"getLocation | 获取当前位置"
}
},
//
#endif
//
#ifdef
WEB
{
"path"
:
"pages/API/open-location/open-location"
,
...
...
@@ -729,6 +881,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/interceptor/interceptor"
,
"group"
:
"1,1,3"
,
...
...
@@ -736,18 +889,24 @@
"navigationBarTitleText"
:
"interceptor | 拦截器"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/interceptor/page1"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 1"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/interceptor/page2"
,
"style"
:
{
"navigationBarTitleText"
:
"拦截器测试页面 2"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/request/request"
,
"group"
:
"1,5,0"
,
...
...
@@ -755,6 +914,8 @@
"navigationBarTitleText"
:
"request | 发起网络请求"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/upload-file/upload-file"
,
"group"
:
"1,5,1"
,
...
...
@@ -762,6 +923,8 @@
"navigationBarTitleText"
:
"uploadFile | 上传文件"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/download-file/download-file"
,
"group"
:
"1,5,2"
,
...
...
@@ -769,12 +932,16 @@
"navigationBarTitleText"
:
"downloadFile | 下载文件"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/websocket/socketTask"
,
"style"
:
{
"navigationBarTitleText"
:
"socketTask"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/websocket/websocket"
,
"group"
:
"1,5,4"
,
...
...
@@ -782,6 +949,7 @@
"navigationBarTitleText"
:
"websocket"
}
},
//
#endif
{
"path"
:
"pages/API/unicloud/unicloud/cloud-function"
,
"group"
:
"1,17,0"
,
...
...
@@ -796,6 +964,7 @@
"navigationBarTitleText"
:
"cloud object | 云对象"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-system-info/get-system-info"
,
"group"
:
"1,6,0"
,
...
...
@@ -803,6 +972,8 @@
"navigationBarTitleText"
:
"getSystemInfo | 获取系统信息"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-device-info/get-device-info"
,
"group"
:
"1,6,1"
,
...
...
@@ -810,6 +981,8 @@
"navigationBarTitleText"
:
"getDeviceInfo | 获取设备信息"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/get-app-base-info/get-app-base-info"
,
"group"
:
"1,6,3"
,
...
...
@@ -817,7 +990,8 @@
"navigationBarTitleText"
:
"getAppBaseInfo | 获取APP基础信息"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"group"
:
"1,6,5"
,
...
...
@@ -826,7 +1000,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/element-takesnapshot/element-takesnapshot"
,
"group"
:
"1,30"
,
...
...
@@ -836,7 +1010,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
"group"
:
"1,6,4"
,
...
...
@@ -845,6 +1019,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/preview-image/preview-image"
,
"group"
:
"1,7,1"
,
...
...
@@ -852,6 +1027,8 @@
"navigationBarTitleText"
:
"previewImage | 图片预览"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/choose-image/choose-image"
,
"group"
:
"1,7,0"
,
...
...
@@ -859,6 +1036,8 @@
"navigationBarTitleText"
:
"chooseImage | 拍照或从相册选择图片"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-image-info/get-image-info"
,
"group"
:
"1,7,3"
,
...
...
@@ -866,7 +1045,8 @@
"navigationBarTitleText"
:
"getImageInfo | 获取图片信息"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/compress-image/compress-image"
,
"group"
:
"1,7,4"
,
...
...
@@ -875,6 +1055,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/choose-video/choose-video"
,
"group"
:
"1,7,5"
,
...
...
@@ -882,7 +1063,8 @@
"navigationBarTitleText"
:
"chooseVideo | 拍摄视频或从相册中选择视频"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/save-image-to-photos-album/save-image-to-photos-album"
,
"group"
:
"1,7,2"
,
...
...
@@ -891,7 +1073,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/save-video-to-photos-album/save-video-to-photos-album"
,
"group"
:
"1,7,6"
,
...
...
@@ -900,6 +1082,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-video-info/get-video-info"
,
"group"
:
"1,7,7"
,
...
...
@@ -907,7 +1090,8 @@
"navigationBarTitleText"
:
"getVideoInfo | 获取视频信息"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/compress-video/compress-video"
,
"group"
:
"1,7,8"
,
...
...
@@ -916,6 +1100,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-network-type/get-network-type"
,
"group"
:
"1,5,3"
,
...
...
@@ -923,6 +1108,8 @@
"navigationBarTitleText"
:
"getNetworkType | 获取网络类型"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/page-scroll-to/page-scroll-to"
,
"group"
:
"1,2,6"
,
...
...
@@ -930,6 +1117,8 @@
"navigationBarTitleText"
:
"pageScrollTo | 将页面滚动到指定位置"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/event-bus/event-bus"
,
"group"
:
"1,1,1"
,
...
...
@@ -937,6 +1126,8 @@
"navigationBarTitleText"
:
"eventBus | 事件总线"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/unicloud/unicloud/cloud-storage"
,
"group"
:
"1,17,2"
,
...
...
@@ -944,6 +1135,7 @@
"navigationBarTitleText"
:
"cloud storage | 云存储"
}
},
//
#endif
{
"path"
:
"pages/API/unicloud/unicloud/database"
,
"group"
:
"1,17,3"
,
...
...
@@ -951,6 +1143,7 @@
"navigationBarTitleText"
:
"database | 数据库"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-battery-info/get-battery-info"
,
"group"
:
"1,6,7"
,
...
...
@@ -958,6 +1151,8 @@
"navigationBarTitleText"
:
"getBatteryInfo | 获取电池电量信息"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-window-info/get-window-info"
,
"group"
:
"1,6,2"
,
...
...
@@ -965,6 +1160,8 @@
"navigationBarTitleText"
:
"getWindowInfo | 获取窗口信息"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-window-info/window-area"
,
"style"
:
{
...
...
@@ -972,7 +1169,8 @@
"navigationStyle"
:
"custom"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/element-draw/element-draw"
,
"group"
:
"1,30"
,
...
...
@@ -982,7 +1180,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/facial-recognition-meta-info/facial-recognition-meta-info"
,
"group"
:
"1,12,1"
,
...
...
@@ -992,7 +1190,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/get-univerify-manager/get-univerify-manager"
,
"group"
:
"1,12,0"
,
...
...
@@ -1002,6 +1200,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/rpx2px/rpx2px"
,
"group"
:
"1,4,6"
,
...
...
@@ -1010,6 +1209,7 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
...
...
@@ -1020,7 +1220,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/request-payment/request-payment"
,
"group"
:
"1,14,0"
,
...
...
@@ -1030,7 +1230,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/create-rewarded-video-ad/create-rewarded-video-ad"
,
"group"
:
"1,13,0"
,
...
...
@@ -1040,6 +1240,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
||
MP-WEIXIN
{
"path"
:
"pages/API/request-payment/request-payment/request-payment-uni-pay"
,
"group"
:
"1,14"
,
...
...
@@ -1048,6 +1249,7 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
APP-IOS
{
"path"
:
"pages/API/virtual-payment/virtual-payment"
,
...
...
@@ -1067,6 +1269,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
||
MP-WEIXIN
{
"path"
:
"pages/API/request-payment/request-payment/order-detail"
,
"style"
:
{
...
...
@@ -1074,6 +1277,7 @@
"enablePullDownRefresh"
:
false
}
},
//
#endif
//
#ifdef
WEB
{
"path"
:
"pages/API/make-phone-call/make-phone-call"
,
...
...
@@ -1126,7 +1330,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/theme-change/theme-change"
,
"group"
:
"1,4,7"
,
...
...
@@ -1136,6 +1340,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id"
,
"group"
:
"1,3,0"
,
...
...
@@ -1143,12 +1348,16 @@
"navigationBarTitleText"
:
"getElementById | 通过 id 获取 element"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/get-element-by-id/get-element-by-id-multiple-root-node"
,
"style"
:
{
"navigationBarTitleText"
:
"获取节点-多根节点"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/create-selector-query/create-selector-query"
,
"group"
:
"1,3,1"
,
...
...
@@ -1156,7 +1365,8 @@
"navigationBarTitleText"
:
"createSelectorQuery | 创建 SelectorQuery 实例"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/get-native-view/element-getnativeview"
,
"group"
:
"1,30"
,
...
...
@@ -1173,7 +1383,7 @@
"navigationBarTitleText"
:
"UniResizeObserver"
}
},
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/provider/provider"
,
"group"
:
"1,1,6"
,
...
...
@@ -1182,7 +1392,7 @@
}
},
//
#endif
//
#if
ndef
WEB
//
#if
def
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/privacy/privacy"
,
"group"
:
"1,1,8"
,
...
...
@@ -1191,6 +1401,7 @@
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/uni-push/uni-push"
,
"group"
:
"1,15,0"
,
...
...
@@ -1198,6 +1409,8 @@
"navigationBarTitleText"
:
"推送"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/dialog-page/dialog-page"
,
"group"
:
"1,2,1"
,
...
...
@@ -1205,25 +1418,32 @@
"navigationBarTitleText"
:
"dialogPage"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/dialog-page/next-page"
,
"style"
:
{
"navigationBarTitleText"
:
"dialogNextPage"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/dialog-page/dialog-1"
,
"style"
:
{
"navigationBarTitleText"
:
"dialogPage1"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/API/dialog-page/dialog-2"
,
"style"
:
{
"navigationBarTitleText"
:
"dialogPage1"
}
},
//
#ifndef
WEB
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
{
"path"
:
"pages/API/create-interstitial-ad/create-interstitial-ad"
,
"group"
:
"1,13,1"
,
...
...
@@ -1237,9 +1457,10 @@
"path"
:
"pages/tabBar/CSS"
,
"style"
:
{
"navigationBarTitleText"
:
"CSS"
,
"backgroundColor
"
:
"#F8F8F
8"
"backgroundColor
Content"
:
"#f8f8f
8"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/background/background-color"
,
"group"
:
"2,8,1"
,
...
...
@@ -1247,6 +1468,8 @@
"navigationBarTitleText"
:
"background-color"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/background/background-image"
,
"group"
:
"2,8,2"
,
...
...
@@ -1254,6 +1477,8 @@
"navigationBarTitleText"
:
"background-image"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-bottom"
,
"group"
:
"2,13,22"
,
...
...
@@ -1261,6 +1486,8 @@
"navigationBarTitleText"
:
"border-bottom"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-color"
,
"group"
:
"2,13,11"
,
...
...
@@ -1268,6 +1495,8 @@
"navigationBarTitleText"
:
"border-color"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-left"
,
"group"
:
"2,13,23"
,
...
...
@@ -1275,6 +1504,8 @@
"navigationBarTitleText"
:
"border-left"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-radius"
,
"group"
:
"2,13,16"
,
...
...
@@ -1282,6 +1513,8 @@
"navigationBarTitleText"
:
"border-radius"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-right"
,
"group"
:
"2,13,24"
,
...
...
@@ -1289,6 +1522,8 @@
"navigationBarTitleText"
:
"border-right"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-style"
,
"group"
:
"2,13,1"
,
...
...
@@ -1296,6 +1531,8 @@
"navigationBarTitleText"
:
"border-style"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-top"
,
"group"
:
"2,13,21"
,
...
...
@@ -1303,6 +1540,8 @@
"navigationBarTitleText"
:
"border-top"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-width"
,
"group"
:
"2,13,6"
,
...
...
@@ -1310,6 +1549,8 @@
"navigationBarTitleText"
:
"border-width"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border"
,
"group"
:
"2,13,0"
,
...
...
@@ -1317,6 +1558,8 @@
"navigationBarTitleText"
:
"border"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"group"
:
"2,13"
,
...
...
@@ -1324,6 +1567,8 @@
"navigationBarTitleText"
:
"border属性组合示例"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/dynamic-border"
,
"group"
:
"2,13"
,
...
...
@@ -1331,6 +1576,8 @@
"navigationBarTitleText"
:
"border动态修改"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/border/border-update"
,
"group"
:
"2,13"
,
...
...
@@ -1338,6 +1585,8 @@
"navigationBarTitleText"
:
"border更新样式"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"group"
:
"2,15"
,
...
...
@@ -1345,6 +1594,8 @@
"navigationBarTitleText"
:
"box-shadow"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/display/flex"
,
"group"
:
"2,5"
,
...
...
@@ -1352,6 +1603,8 @@
"navigationBarTitleText"
:
"flex"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/display/none"
,
"group"
:
"2,5"
,
...
...
@@ -1359,6 +1612,8 @@
"navigationBarTitleText"
:
"none"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/align-content"
,
"group"
:
"2,7,6"
,
...
...
@@ -1366,6 +1621,8 @@
"navigationBarTitleText"
:
"align-content"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/align-items"
,
"group"
:
"2,7,4"
,
...
...
@@ -1373,6 +1630,8 @@
"navigationBarTitleText"
:
"align-items"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/flex-basis"
,
"group"
:
"2,7,9"
,
...
...
@@ -1380,6 +1639,8 @@
"navigationBarTitleText"
:
"flex-basis"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/flex-direction"
,
"group"
:
"2,7,1"
,
...
...
@@ -1387,6 +1648,8 @@
"navigationBarTitleText"
:
"flex-direction"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/flex-flow"
,
"group"
:
"2,7,10"
,
...
...
@@ -1394,6 +1657,8 @@
"navigationBarTitleText"
:
"flex-flow"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/flex-grow"
,
"group"
:
"2,7,7"
,
...
...
@@ -1401,6 +1666,8 @@
"navigationBarTitleText"
:
"flex-grow"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/flex-shrink"
,
"group"
:
"2,7,8"
,
...
...
@@ -1408,6 +1675,8 @@
"navigationBarTitleText"
:
"flex-shrink"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/flex"
,
"group"
:
"2,7,0"
,
...
...
@@ -1415,6 +1684,8 @@
"navigationBarTitleText"
:
"flex"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/flex/justify-content"
,
"group"
:
"2,7,2"
,
...
...
@@ -1422,6 +1693,8 @@
"navigationBarTitleText"
:
"justify-content"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/height"
,
"group"
:
"2,1,0"
,
...
...
@@ -1429,6 +1702,8 @@
"navigationBarTitleText"
:
"height"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/max-height"
,
"group"
:
"2,1,2"
,
...
...
@@ -1436,6 +1711,8 @@
"navigationBarTitleText"
:
"max-height"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/max-width"
,
"group"
:
"2,0,2"
,
...
...
@@ -1443,6 +1720,8 @@
"navigationBarTitleText"
:
"max-width"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/min-height"
,
"group"
:
"2,1,1"
,
...
...
@@ -1450,6 +1729,8 @@
"navigationBarTitleText"
:
"min-height"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/min-width"
,
"group"
:
"2,0,1"
,
...
...
@@ -1457,6 +1738,8 @@
"navigationBarTitleText"
:
"min-width"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/position"
,
"group"
:
"2,9,0"
,
...
...
@@ -1464,6 +1747,8 @@
"navigationBarTitleText"
:
"position"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/width"
,
"group"
:
"2,0,0"
,
...
...
@@ -1471,6 +1756,8 @@
"navigationBarTitleText"
:
"width"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/z-index"
,
"group"
:
"2,10"
,
...
...
@@ -1478,6 +1765,8 @@
"navigationBarTitleText"
:
"z-index"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/layout/visibility"
,
"group"
:
"2,6"
,
...
...
@@ -1485,6 +1774,8 @@
"navigationBarTitleText"
:
"visibility"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/margin/margin-bottom"
,
"group"
:
"2,2,2"
,
...
...
@@ -1492,6 +1783,8 @@
"navigationBarTitleText"
:
"margin-bottom"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/margin/margin-left"
,
"group"
:
"2,2,3"
,
...
...
@@ -1499,6 +1792,8 @@
"navigationBarTitleText"
:
"margin-left"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/margin/margin-right"
,
"group"
:
"2,2,4"
,
...
...
@@ -1506,6 +1801,8 @@
"navigationBarTitleText"
:
"margin-right"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/margin/margin-top"
,
"group"
:
"2,2,1"
,
...
...
@@ -1513,6 +1810,8 @@
"navigationBarTitleText"
:
"margin-top"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/margin/margin"
,
"group"
:
"2,2,0"
,
...
...
@@ -1520,6 +1819,8 @@
"navigationBarTitleText"
:
"margin"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/overflow/overflow"
,
"group"
:
"2,11"
,
...
...
@@ -1527,6 +1828,8 @@
"navigationBarTitleText"
:
"overflow"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/padding/padding-bottom"
,
"group"
:
"2,3,2"
,
...
...
@@ -1534,6 +1837,8 @@
"navigationBarTitleText"
:
"padding-bottom"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/padding/padding-left"
,
"group"
:
"2,3,3"
,
...
...
@@ -1541,6 +1846,8 @@
"navigationBarTitleText"
:
"padding-left"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/padding/padding-right"
,
"group"
:
"2,3,4"
,
...
...
@@ -1548,6 +1855,8 @@
"navigationBarTitleText"
:
"padding-right"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/padding/padding-top"
,
"group"
:
"2,3,1"
,
...
...
@@ -1555,6 +1864,8 @@
"navigationBarTitleText"
:
"padding-top"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/padding/padding"
,
"group"
:
"2,3,0"
,
...
...
@@ -1562,6 +1873,8 @@
"navigationBarTitleText"
:
"padding"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/color"
,
"group"
:
"2,14,0"
,
...
...
@@ -1569,6 +1882,8 @@
"navigationBarTitleText"
:
"color"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/font-family"
,
"group"
:
"2,14,2"
,
...
...
@@ -1576,6 +1891,8 @@
"navigationBarTitleText"
:
"font-family"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/font-size"
,
"group"
:
"2,14,1"
,
...
...
@@ -1583,6 +1900,8 @@
"navigationBarTitleText"
:
"font-size"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/font-style"
,
"group"
:
"2,14,3"
,
...
...
@@ -1590,6 +1909,8 @@
"navigationBarTitleText"
:
"font-style"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/font-weight"
,
"group"
:
"2,14,4"
,
...
...
@@ -1597,6 +1918,8 @@
"navigationBarTitleText"
:
"font-weight"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/letter-spacing"
,
"group"
:
"2,14,14"
,
...
...
@@ -1604,6 +1927,8 @@
"navigationBarTitleText"
:
"letter-spacing"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/line-height"
,
"group"
:
"2,14,12"
,
...
...
@@ -1611,6 +1936,8 @@
"navigationBarTitleText"
:
"line-height"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/text-align"
,
"group"
:
"2,14,10"
,
...
...
@@ -1618,6 +1945,8 @@
"navigationBarTitleText"
:
"text-align"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/text-overflow"
,
"group"
:
"2,14,11"
,
...
...
@@ -1625,6 +1954,8 @@
"navigationBarTitleText"
:
"text-overflow"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/text/text-decoration-line"
,
"group"
:
"2,14,6"
,
...
...
@@ -1632,6 +1963,8 @@
"navigationBarTitleText"
:
"text-decoration-line"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/transition/transition"
,
"group"
:
"2,16"
,
...
...
@@ -1639,6 +1972,8 @@
"navigationBarTitleText"
:
"transition"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/pointer-events/pointer-events"
,
"group"
:
"2,18"
,
...
...
@@ -1646,6 +1981,8 @@
"navigationBarTitleText"
:
"pointer-events"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/transform/translate"
,
"group"
:
"2,17"
,
...
...
@@ -1653,6 +1990,8 @@
"navigationBarTitleText"
:
"translate"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/transform/scale"
,
"group"
:
"2,17"
,
...
...
@@ -1660,6 +1999,8 @@
"navigationBarTitleText"
:
"scale"
}
},
//
#endif
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/transform/rotate"
,
"group"
:
"2,17"
,
...
...
@@ -1667,6 +2008,7 @@
"navigationBarTitleText"
:
"rotate"
}
},
//
#endif
{
"path"
:
"pages/CSS/variable/variable"
,
"group"
:
"2,20"
,
...
...
@@ -1674,17 +2016,21 @@
"navigationBarTitleText"
:
"css 变量"
}
},
//
#ifdef
APP-ANDROID
||
APP-IOS
||
WEB
{
"path"
:
"pages/CSS/overflow/overflow-visible-event"
,
"group"
:
"2,11"
,
"style"
:
{
"navigationBarTitleText"
:
"overflow-visible-event"
}
},
}
//
#endif
,
{
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"navigationBarTitleText"
:
"模板"
"navigationBarTitleText"
:
"模板"
,
"backgroundColorContent"
:
"#f8f8f8"
}
},
{
...
...
@@ -1889,15 +2235,17 @@
//
#endif
],
"globalStyle"
:
{
//
#ifdef
APP-ANDROID
"hideStatusBar"
:
false
,
"hideBottomNavigationIndicator"
:
false
,
//
#endif
"pageOrientation"
:
"portrait"
,
"navigationBarTitleText"
:
"Hello uniapp x"
,
"navigationBarTextStyle"
:
"@navigationBarTextStyle"
,
"navigationBarBackgroundColor"
:
"@navigationBarBackgroundColor"
,
"backgroundColorContent"
:
"@backgroundColorContent"
,
"backgroundColor"
:
"@backgroundColor"
,
"backgroundTextStyle"
:
"@backgroundTextStyle"
,
"hideStatusBar"
:
false
,
"hideBottomNavigationIndicator"
:
false
"backgroundTextStyle"
:
"@backgroundTextStyle"
},
"tabBar"
:
{
"color"
:
"@tabBarColor"
,
...
...
@@ -2863,4 +3211,4 @@
]
}
]
}
\ No newline at end of file
}
pages/API/dialog-page/dialog-page.test.js
浏览文件 @
524ab7d4
...
...
@@ -6,6 +6,13 @@ const FIRST_PAGE_PATH = '/pages/API/dialog-page/dialog-page'
const
NEXT_PAGE_PATH
=
'
/pages/API/dialog-page/next-page
'
describe
(
'
dialog page
'
,
()
=>
{
if
(
process
.
env
.
UNI_AUTOMATOR_APP_WEBVIEW
==
'
true
'
)
{
it
(
'
skip app-webview
'
,
()
=>
{
expect
(
1
).
toBe
(
1
)
})
return
}
let
page
;
let
initLifeCycleNum
;
let
lifecycleNum
;
...
...
pages/API/dialog-page/next-page.uvue
浏览文件 @
524ab7d4
...
...
@@ -90,6 +90,7 @@
url: '/pages/API/dialog-page/dialog-1?name=dialog1',
success(res) {
console.log('openDialogPage1ToHomePage success', res)
uni.showToast({title: '在首页打开了 dialogPage'})
},
fail(err) {
console.log('openDialogPage1ToHomePage fail', err)
...
...
@@ -107,4 +108,4 @@
}
}
}
</script>
</script>
pages/API/privacy/privacy.uvue
浏览文件 @
524ab7d4
...
...
@@ -15,6 +15,9 @@
<button class="privacy-button" type="primary" @tap="resetPrivacyAuthorization">
重置隐私协议授权状态
</button>
<button class="privacy-button" @tap="openPrivacyDialog">
显示隐私政策弹框
</button>
</view>
</view>
</template>
...
...
@@ -63,6 +66,11 @@
},
resetPrivacyAuthorization(){
uni.resetPrivacyAuthorization()
},
openPrivacyDialog(){
uni.openDialogPage({
url: '/pages/component/button/privacy',
})
}
}
}
...
...
pages/component/button/button.uvue
浏览文件 @
524ab7d4
...
...
@@ -38,6 +38,11 @@
uni.navigateTo({
url: 'buttonstatus',
})
},
openPrivacyDialog() {
uni.openDialogPage({
url: '/pages/component/button/privacy',
})
},
//用于自动化测试
checkUniButtonElement() : boolean {
...
...
@@ -71,7 +76,10 @@
<enum-data :items="type_enum" title="按钮的类型" @change="radio_change_type_enum"></enum-data>
<input-data :defaultValue="text" title="按钮的文案" type="text" @confirm="confirm_text_input"></input-data>
<view style="height: 10px;"></view>
<button @click="navigateToChild">更多示例</button>
<button @click="openPrivacyDialog">open-type实现隐私政策弹框</button>
<view style="height: 10px;"></view>
<button @click="navigateToChild">更多示例</button>
<view style="height: 10px;"></view>
</view>
</scroll-view>
</template>
...
...
pages/component/button/privacy.uvue
浏览文件 @
524ab7d4
<template>
<view class="dialog-container">
<view class="dialog-content">
<view style="width: 100%;justify-content: center;align-items: center;">
<view style="width: 100%;justify-content: center;align-items: center;
background-color: #fff;
">
<image src="../image/logo.png" style="margin-top: 25px;width: 60px;height: 60px;"></image>
</view>
<text style="text-align: center;
margin-top: 20px;font-size: 20px;color: black
;"> 个人信息保护指引</text>
<scroll-view
style="flex: 1;align-content: center;margin-top: 10px;margin-left: 25px;margin-right: 25px
;"
<text style="text-align: center;
padding-top: 20px;font-size: 20px;color: black;background-color: #fff
;"> 个人信息保护指引</text>
<scroll-view
style="flex: 1;align-content: center;padding-top: 10px;padding-left: 25px;padding-right: 25px;background-color: #fff
;"
show-scrollbar="false">
<rich-text style="font-size: 14px;color: red;" :nodes="htmlString" @itemclick="itemClick"></rich-text>
</scroll-view>
...
...
@@ -67,9 +67,9 @@
}
.dialog-content {
height:
43
%;
height:
60
%;
width: 80%;
background-color: #fff;
/* background-color: #fff; */
border-radius: 12px;
}
...
...
@@ -80,10 +80,10 @@
.button {
border: 0px;
border-radius: 0px;
font-size:
20
px;
font-size:
15
px;
color: lightgrey;
text-align: center;
line-height:
6
0px;
line-height:
4
0px;
}
.button-hover1 {
...
...
pages/component/native-view/native-view.uvue
浏览文件 @
524ab7d4
<template>
<view>
<view>
<text class="tips">说明:如果本地无 uts 插件编译环境请提交打包自定义基座查看效果</text>
<!-- native-button 通过 native-view 绑定原生button 实现的UTS插件-标准模式组件 -->
<native-button class="native-button" style="width: 200px; height: 100px;" :text="buttonText" @buttonTap="ontap"
@load="onload"></native-button>
<!-- native-time-picker 通过 native-view 绑定原生time-picker 实现的UTS插件-标准模式组件 -->
<native-time-picker class="native-time-picker" :hour=2 :minute=3 @changed="onChanged"></native-time-picker>
</view>
</template>
...
...
@@ -38,7 +41,15 @@
}
</script>
<style>
<style>
.tips {
font-size: 14px;
color: #BEBEBE;
margin: 25px auto 25px auto;
text-align: center;
}
.native-button {
height: 100px;
width: 100px;
...
...
pages/component/rich-text/rich-text.test.js
浏览文件 @
524ab7d4
const
PAGE_PATH
=
'
/pages/component/rich-text/rich-text
'
const
PAGE_PATH
=
'
/pages/component/rich-text/rich-text
'
describe
(
'
rich-text-test
'
,
()
=>
{
// 先屏蔽 android 及 web 平台
...
...
@@ -9,12 +9,12 @@ describe('rich-text-test', () => {
})
return
}
let
page
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
await
page
.
waitFor
(
1500
);
})
let
page
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
PAGE_PATH
)
await
page
.
waitFor
(
1500
);
})
it
(
'
richt-text-height
'
,
async
()
=>
{
...
...
@@ -54,5 +54,13 @@ describe('rich-text-test', () => {
autoTest
:
false
});
});
})
it
(
'
rich-text parent click
'
,
async
()
=>
{
const
element
=
await
page
.
$
(
'
#rich-text-parent
'
)
await
element
.
tap
()
await
page
.
waitFor
(
500
)
const
element2
=
await
page
.
$
(
'
#rich-text-str
'
)
expect
(
await
element2
.
text
()).
toBe
(
"
true
"
)
})
})
pages/component/rich-text/rich-text.uvue
浏览文件 @
524ab7d4
...
...
@@ -16,12 +16,16 @@
<text class="uni-subtitle-text">selectable</text>
<button type="default" @click="changeText">修改文本内容</button>
</view>
<view class="text-box">
<view class="text-box"
id="rich-text-parent" @click="richTextParentClick"
>
<rich-text id="richtext" style="border: 1px; border-style: solid; border-color: red;" :selectable="true"
:nodes="text"></rich-text>
<view>
<text>rich-text-parent</text>
<text id='rich-text-str'>{{richTextStr}}</text>
</view>
</view>
</view>
</view>
</view>
<rich-text v-if="autoTest" id="test-rich-text" :nodes="testNodes" :selectable="true" @itemclick="itemClickForTest" style="position: fixed;width: 100px;height: 100px;"></rich-text>
</template>
...
...
@@ -31,11 +35,12 @@
return {
text: "<span>hello uni-app x!</span><br/><span>uni-app x,终极跨平台方案</span>",
richTextHeight: 0,
richTextElement: null as UniElement | null,
// 自动化测试
autoTest: false,
testNodes: '<img src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png"></img>',
isItemClickTrigger: false
richTextElement: null as UniElement | null,
// 自动化测试
autoTest: false,
testNodes: '<img src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png"></img>',
isItemClickTrigger: false,
richTextStr: false
}
},
onReady() {
...
...
@@ -61,16 +66,19 @@
this.richTextHeight = elRect.height
console.log('richTextHeight:', this.richTextHeight)
}
},
// 自动化测试
itemClickForTest(_ : RichTextItemClickEvent) {
this.isItemClickTrigger = true;
},
getBoundingClientRectForTest() : DOMRect {
return uni.getElementById('test-rich-text')?.getBoundingClientRect()!;
},
getWindowInfoForTest() : GetWindowInfoResult {
return uni.getWindowInfo();
},
// 自动化测试
itemClickForTest(_ : RichTextItemClickEvent) {
this.isItemClickTrigger = true;
},
getBoundingClientRectForTest() : DOMRect {
return uni.getElementById('test-rich-text')?.getBoundingClientRect()!;
},
getWindowInfoForTest() : GetWindowInfoResult {
return uni.getWindowInfo();
},
richTextParentClick() {
this.richTextStr = true;
}
}
}
...
...
@@ -81,4 +89,4 @@
padding: 20px 0;
background-color: white;
}
</style>
</style>
pages/component/video/video.uvue
浏览文件 @
524ab7d4
...
...
@@ -10,7 +10,7 @@
:http-cache="httpCache" :play-strategy="playStrategy" :danmu-list="danmuList" @play="onPlay" @pause="onPause"
@ended="onEnded" @timeupdate="onTimeUpdate" @waiting="onWaiting" @error="onError" @progress="onProgress"
@fullscreenclick="onFullScreenClick" @controlstoggle="onControlsToggle" @fullscreenchange="onFullScreenChange">
<!-- #ifdef APP
-ANDROID
-->
<!-- #ifdef APP -->
<image v-if="subCompEnable && subCompShow" class="img-fast-backward"
src="../../../static/test-video/fast-backward.png" @tap="fastBackward"></image>
<image v-if="subCompEnable && subCompShow" class="img-fast-forward"
...
...
@@ -26,7 +26,7 @@
<button type="primary" @click="pause">视频格式示例</button>
</navigator>
</view>
<!-- #ifdef APP
-ANDROID
-->
<!-- #ifdef APP -->
<view class="uni-flex uni-btn-v" style="justify-content: space-between;align-items: center;">
<text class="uni-title" style="width: 80%;">子组件实现快进、快退、发送弹幕功能(全屏后显示)</text>
<switch :checked="subCompEnable" @change="onSubCompEnableChange" />
...
...
pages/pages.test.js
浏览文件 @
524ab7d4
...
...
@@ -270,12 +270,12 @@ const pages = [
'
/pages/template/custom-long-list/custom-long-list
'
,
'
/pages/template/test-background-color-content/test-background-color-content
'
,
'
/pages/template/slider-100/slider-100
'
,
]
if
(
isAndroid
&&
isWeb
)
{
pages
.
push
(
'
/pages/API/get-battery-info/get-battery-info
'
,
)
]
if
(
isAndroid
&&
isWeb
)
{
pages
.
push
(
'
/pages/API/get-battery-info/get-battery-info
'
,
)
}
if
(
isApp
&&
!
isAppWebview
)
{
...
...
@@ -417,6 +417,6 @@ describe("page screenshot test", () => {
return
`__pages_test__/
${
currentPagePath
.
replace
(
/
\/
/g
,
"
-
"
).
substring
(
1
)}
`
}
})
await
page
.
waitFor
(
5
00
);
await
page
.
waitFor
(
8
00
);
});
});
pages/tabBar/API.uvue
浏览文件 @
524ab7d4
<template>
<!-- #ifdef APP -->
<scroll-view style="flex: 1;
background-color: #f8f8f8
" enable-back-to-top="true">
<scroll-view style="flex: 1;" enable-back-to-top="true">
<!-- #endif -->
<view class="uni-container">
<view v-if="!hasLeftWin" class="uni-header-logo">
...
...
@@ -79,11 +79,7 @@
goPage(url : string) {
if (url == '/set-tab-bar') {
this.showPop()
}else if (url == '/show-privacy-dialog') {
uni.openDialogPage({
url: '/pages/component/button/privacy',
})
} else {
}else {
if (this.hasLeftWin) {
uni.reLaunch({ url })
} else {
...
...
pages/tabBar/CSS.uvue
浏览文件 @
524ab7d4
<template>
<!-- #ifdef APP -->
<scroll-view style="flex: 1;
background-color: #f8f8f8
" enable-back-to-top="true">
<scroll-view style="flex: 1;" enable-back-to-top="true">
<!-- #endif -->
<view class="uni-container">
<view v-if="!hasLeftWin" class="uni-header-logo">
...
...
pages/tabBar/component.uvue
浏览文件 @
524ab7d4
<template>
<!-- #ifdef APP -->
<scroll-view style="flex: 1;
background-color: #f8f8f8
" enable-back-to-top="true">
<scroll-view style="flex: 1;" enable-back-to-top="true">
<!-- #endif -->
<view class="uni-container">
<view v-if="!hasLeftWin" class="uni-header-logo">
...
...
@@ -113,7 +113,19 @@
// #endif
onReady() {
// #ifdef UNI-APP-X && APP
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
uni.getPrivacySetting({
success(res) {
if (res.needAuthorization) {
uni.onPrivacyAuthorizationChange((res) => {
if (!res.needAuthorization) {
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
}
})
} else {
checkUpdate(this.$refs['upgradePopup'] as UniUpgradeCenterAppComponentPublicInstance)
}
}
})
// #endif
},
onShow() {
...
...
@@ -132,4 +144,4 @@
.item {
margin-bottom: 12px;
}
</style>
</style>
pages/tabBar/generateMenu.uts
浏览文件 @
524ab7d4
...
...
@@ -157,17 +157,6 @@ function addSetTabBarPage(menuItem : MenuItem) {
},
group: null,
items: []
} as MenuItem)
menuItem.items.push({
id: 'show-privacy-dialog',
name: '隐私政策',
index: 0,
path: 'show-privacy-dialog',
style: {
navigationBarTitleText: '隐私政策弹框'
},
group: null,
items: []
} as MenuItem)
}
}
pages/tabBar/template.uvue
浏览文件 @
524ab7d4
<template>
<!-- #ifdef APP -->
<scroll-view style="flex: 1;
background-color: #f8f8f8
" enable-back-to-top="true">
<scroll-view style="flex: 1;" enable-back-to-top="true">
<!-- #endif -->
<view class="uni-container">
<view v-if="!hasLeftWin" class="uni-header-logo">
...
...
uni_modules/uni-upgrade-center-app/changelog.md
浏览文件 @
524ab7d4
## 0.8.5(2024-10-26)
-
优化 去除不必要代码
## 0.8.4(2024-10-26)
-
修复 uni-app x 项目升级到 4.31 alpha 后中间有空隙的Bug
## 0.8.3(2024-07-31)
-
修复 部分类型报错
## 0.8.2(2024-07-15)
...
...
uni_modules/uni-upgrade-center-app/components/uni-upgrade-center-app/uni-upgrade-center-app.uvue
浏览文件 @
524ab7d4
...
...
@@ -8,6 +8,8 @@
src="/uni_modules/uni-upgrade-center-app/static/app/bg_top.png"></image>
</view>
<view class="content-space"></view>
<view class="content-body">
<view class="content-body-title">
<text class="text title">{{subTitle}}</text>
...
...
@@ -372,6 +374,15 @@
border-bottom-style: solid;
}
.content-space {
width: 100%;
height: 50px;
background-color: #fff;
position: absolute;
top: 140px;
z-index: -1;
}
.content-top-image {
width: 100%;
position: relative;
...
...
uni_modules/uni-upgrade-center-app/package.json
浏览文件 @
524ab7d4
{
"id"
:
"uni-upgrade-center-app"
,
"displayName"
:
"升级中心 uni-upgrade-center - App"
,
"version"
:
"0.8.
3
"
,
"version"
:
"0.8.
5
"
,
"description"
:
"uni升级中心 - 客户端检查更新"
,
"keywords"
:
[
"uniCloud"
,
...
...
@@ -47,8 +47,10 @@
},
"client"
:
{
"App"
:
{
"app-vue"
:
"y"
,
"app-nvue"
:
"y"
"app-vue"
:
"y"
,
"app-nvue"
:
"y"
,
"app-harmony"
:
"u"
,
"app-uvue"
:
"y"
},
"H5-mobile"
:
{
"Safari"
:
"n"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录