Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
8414e96e
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
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看板
提交
8414e96e
编写于
2月 28, 2024
作者:
W
WOSHIMAHAIFENG
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitcode.net/dcloud/hello-uni-app-x
into dev-payment
上级
916081d4
54e414e2
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
380 addition
and
279 deletion
+380
-279
pages.json
pages.json
+269
-267
pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation.test.js
...-color/set-navigation-bar-color-custom-navigation.test.js
+49
-0
pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation.uvue
...bar-color/set-navigation-bar-color-custom-navigation.uvue
+48
-0
pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue
...PI/set-navigation-bar-color/set-navigation-bar-color.uvue
+10
-2
pages/tabBar/template.uvue
pages/tabBar/template.uvue
+4
-2
pages/template/long-list/long-list.uvue
pages/template/long-list/long-list.uvue
+0
-4
pages/template/long-list2/long-list2.uvue
pages/template/long-list2/long-list2.uvue
+0
-4
未找到文件。
pages.json
浏览文件 @
8414e96e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"navigationBarTitleText"
:
"内置组件"
,
"navigationBarTitleText"
:
"内置组件"
,
"backgroundColor"
:
"#F8F8F8"
"backgroundColor"
:
"#F8F8F8"
}
}
},
},
{
{
"path"
:
"pages/component/view/view"
,
"path"
:
"pages/component/view/view"
,
"style"
:
{
"style"
:
{
...
@@ -19,85 +19,84 @@
...
@@ -19,85 +19,84 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"scroll-view"
"navigationBarTitleText"
:
"scroll-view"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
"navigationBarTitleText"
:
"scroll-view-refresher"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
}
},
},
{
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
}
},
},
{
{
"path"
:
"pages/component/swiper/swiper"
,
"path"
:
"pages/component/swiper/swiper"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"swiper"
"navigationBarTitleText"
:
"swiper"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view"
,
"path"
:
"pages/component/list-view/list-view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view"
"navigationBarTitleText"
:
"list-view"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
"navigationBarTitleText"
:
"list-view-multiplex"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"list-view复用input"
,
"navigationBarTitleText"
:
"list-view复用input"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
}
},
},
{
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
}
},
},
//
#ifdef
APP
//
#ifdef
APP
{
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"path"
:
"pages/component/sticky-section/sticky-section"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"sticky-section"
"navigationBarTitleText"
:
"sticky-section"
}
}
},
},
{
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"path"
:
"pages/component/sticky-header/sticky-header"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"sticky-header"
,
"navigationBarTitleText"
:
"sticky-header"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
//#endif
//#endif
{
{
"path"
:
"pages/component/text/text"
,
"path"
:
"pages/component/text/text"
,
"style"
:
{
"style"
:
{
...
@@ -110,24 +109,24 @@
...
@@ -110,24 +109,24 @@
"navigationBarTitleText"
:
"text-props"
"navigationBarTitleText"
:
"text-props"
}
}
},
},
{
{
"path"
:
"pages/component/rich-text/rich-text"
,
"path"
:
"pages/component/rich-text/rich-text"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"rich-text"
"navigationBarTitleText"
:
"rich-text"
}
}
},
},
{
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
"navigationBarTitleText"
:
"rich-text-tags"
}
}
},
},
{
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
"navigationBarTitleText"
:
"rich-text-complex"
}
}
},
},
{
{
"path"
:
"pages/component/progress/progress"
,
"path"
:
"pages/component/progress/progress"
,
"style"
:
{
"style"
:
{
...
@@ -253,51 +252,51 @@
...
@@ -253,51 +252,51 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"redirectPage"
"navigationBarTitleText"
:
"redirectPage"
}
}
},
},
{
{
"path"
:
"pages/component/web-view/web-view"
,
"path"
:
"pages/component/web-view/web-view"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"web-view"
"navigationBarTitleText"
:
"web-view"
}
}
},
},
{
{
"path"
:
"pages/component/web-view-local/web-view-local"
,
"path"
:
"pages/component/web-view-local/web-view-local"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"web-view-local"
"navigationBarTitleText"
:
"web-view-local"
}
}
},
},
//
#ifndef
APP-IOS
//
#ifndef
APP-IOS
{
{
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"联系人"
,
"navigationBarTitleText"
:
"联系人"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
},
},
{
{
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
"navigationBarTitleText"
:
"新增联系人"
}
}
},
},
{
{
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
"navigationBarTitleText"
:
"编辑联系人"
}
}
},
},
{
{
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
{
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
"navigationBarTitleText"
:
"mixinDatacom"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/component/general-attribute/general-attribute"
,
"path"
:
"pages/component/general-attribute/general-attribute"
,
...
@@ -310,19 +309,19 @@
...
@@ -310,19 +309,19 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"general-event"
"navigationBarTitleText"
:
"general-event"
}
}
},
},
{
{
"path"
:
"pages/component/general-event/transition-event"
,
"path"
:
"pages/component/general-event/transition-event"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
"navigationBarTitleText"
:
"transitionend事件"
}
}
},
},
{
{
"path"
:
"pages/component/general-event/touch-event"
,
"path"
:
"pages/component/general-event/touch-event"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
"navigationBarTitleText"
:
"touch-event"
}
}
},
},
{
{
"path"
:
"pages/tabBar/API"
,
"path"
:
"pages/tabBar/API"
,
"style"
:
{
"style"
:
{
...
@@ -341,21 +340,21 @@
...
@@ -341,21 +340,21 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"getApp"
"navigationBarTitleText"
:
"getApp"
}
}
},
},
//
#ifdef
APP-ANDROID
//
#ifdef
APP-ANDROID
{
{
"path"
:
"pages/API/exit/exit"
,
"path"
:
"pages/API/exit/exit"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"exit"
"navigationBarTitleText"
:
"exit"
}
}
},
},
{
{
"path"
:
"pages/API/install-apk/install-apk"
,
"path"
:
"pages/API/install-apk/install-apk"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"install-apk"
,
"navigationBarTitleText"
:
"install-apk"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
...
@@ -381,6 +380,13 @@
...
@@ -381,6 +380,13 @@
"navigationBarTitleText"
:
"设置导航条颜色"
"navigationBarTitleText"
:
"设置导航条颜色"
}
}
},
},
{
"path"
:
"pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarTitleText"
:
"设置状态栏颜色"
}
},
{
{
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"path"
:
"pages/API/set-navigation-bar-title/set-navigation-bar-title"
,
"style"
:
{
"style"
:
{
...
@@ -533,7 +539,7 @@
...
@@ -533,7 +539,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"websocket-global"
"navigationBarTitleText"
:
"websocket-global"
}
}
},
},
//
#ifndef
APP-IOS
//
#ifndef
APP-IOS
{
{
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
...
@@ -546,7 +552,7 @@
...
@@ -546,7 +552,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
"navigationBarTitleText"
:
""
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/get-system-info/get-system-info"
,
"path"
:
"pages/API/get-system-info/get-system-info"
,
...
@@ -566,14 +572,14 @@
...
@@ -566,14 +572,14 @@
"navigationBarTitleText"
:
"get-app-base-info"
"navigationBarTitleText"
:
"get-app-base-info"
}
}
},
},
//
#ifdef
APP
//
#ifdef
APP
{
{
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"get-system-setting"
"navigationBarTitleText"
:
"get-system-setting"
}
}
},
},
//
#endif
//
#endif
//
#ifndef
WEB
//
#ifndef
WEB
{
{
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
...
@@ -586,7 +592,7 @@
...
@@ -586,7 +592,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"保存图片到相册"
"navigationBarTitleText"
:
"保存图片到相册"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/preview-image/preview-image"
,
"path"
:
"pages/API/preview-image/preview-image"
,
...
@@ -617,7 +623,7 @@
...
@@ -617,7 +623,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"event-bus"
"navigationBarTitleText"
:
"event-bus"
}
}
},
},
//
#ifndef
APP-IOS
//
#ifndef
APP-IOS
{
{
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
...
@@ -636,7 +642,7 @@
...
@@ -636,7 +642,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"电量"
"navigationBarTitleText"
:
"电量"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/API/get-window-info/get-window-info"
,
"path"
:
"pages/API/get-window-info/get-window-info"
,
...
@@ -747,12 +753,12 @@
...
@@ -747,12 +753,12 @@
"navigationBarTitleText"
:
"border"
"navigationBarTitleText"
:
"border"
}
}
},
},
{
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"border属性组合示例"
"navigationBarTitleText"
:
"border属性组合示例"
}
}
},
},
{
{
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"style"
:
{
"style"
:
{
...
@@ -909,12 +915,12 @@
...
@@ -909,12 +915,12 @@
"navigationBarTitleText"
:
"margin"
"navigationBarTitleText"
:
"margin"
}
}
},
},
{
{
"path"
:
"pages/CSS/overflow/overflow"
,
"path"
:
"pages/CSS/overflow/overflow"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"overflow"
"navigationBarTitleText"
:
"overflow"
}
}
},
},
{
{
"path"
:
"pages/CSS/padding/padding-bottom"
,
"path"
:
"pages/CSS/padding/padding-bottom"
,
"style"
:
{
"style"
:
{
...
@@ -1023,23 +1029,23 @@
...
@@ -1023,23 +1029,23 @@
"navigationBarTitleText"
:
"Scale"
"navigationBarTitleText"
:
"Scale"
}
}
},
},
{
{
"path"
:
"pages/CSS/transform/rotate"
,
"path"
:
"pages/CSS/transform/rotate"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"Rotate"
"navigationBarTitleText"
:
"Rotate"
}
}
},
},
{
{
"path"
:
"pages/CSS/variable/variable"
,
"path"
:
"pages/CSS/variable/variable"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"css 变量"
"navigationBarTitleText"
:
"css 变量"
}
}
},
},
{
{
"path"
:
"pages/tabBar/template"
,
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"模板"
"navigationBarTitleText"
:
"模板"
}
}
},
},
{
{
"path"
:
"pages/template/list-news/list-news"
,
"path"
:
"pages/template/list-news/list-news"
,
...
@@ -1076,14 +1082,14 @@
...
@@ -1076,14 +1082,14 @@
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
//
#ifdef
APP
//
#ifdef
APP
{
{
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
...
@@ -1104,26 +1110,22 @@
...
@@ -1104,26 +1110,22 @@
"navigationBarTitleText"
:
"半屏弹窗"
"navigationBarTitleText"
:
"半屏弹窗"
}
}
},
},
//
#ifdef
APP
{
{
"path"
:
"pages/template/long-list/long-list"
,
"path"
:
"pages/template/long-list/long-list"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
//
#ifdef
APP
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
//
#endif
}
}
},
},
{
{
"path"
:
"pages/template/long-list2/long-list2"
,
"path"
:
"pages/template/long-list2/long-list2"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"顶部banner长列表"
"navigationBarTitleText"
:
"顶部banner长列表"
,
//
#ifdef
APP
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
//
#endif
}
}
},
},
//
#endif
{
{
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"style"
:
{
"style"
:
{
...
@@ -1142,22 +1144,22 @@
...
@@ -1142,22 +1144,22 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"自定义TabBar"
"navigationBarTitleText"
:
"自定义TabBar"
}
}
},
},
//
#ifdef
WEB
//
#ifdef
WEB
{
{
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
}
}
},
},
//
#endif
//
#endif
//
#ifdef
APP-ANDROID
//
#ifdef
APP-ANDROID
{
{
"path"
:
"pages/template/calendar/calendar"
,
"path"
:
"pages/template/calendar/calendar"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"日历"
"navigationBarTitleText"
:
"日历"
}
}
},
},
{
{
"path"
:
"pages/template/schema/schema"
,
"path"
:
"pages/template/schema/schema"
,
"style"
:
{
"style"
:
{
...
@@ -1172,43 +1174,43 @@
...
@@ -1172,43 +1174,43 @@
}
}
},
},
//
#endif
//
#endif
{
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
{
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
},
//
#ifdef
APP
//
#ifdef
APP
{
{
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"激励视频广告"
,
"navigationBarTitleText"
:
"激励视频广告"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"权限申请监听"
,
"navigationBarTitleText"
:
"权限申请监听"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},
},
{
{
"path"
:
"pages/API/request-payment/request-payment"
,
"path"
:
"pages/API/request-payment/request-payment"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"支付"
,
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
}
}
//
#endif
//
#endif
],
],
"globalStyle"
:
{
"globalStyle"
:
{
...
...
pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation.test.js
0 → 100644
浏览文件 @
8414e96e
const
CURRENT_PAGE_PATH
=
'
/pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation
'
describe
(
'
set statusBar color
'
,
()
=>
{
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
web
'
))
{
it
(
'
dummyTest
'
,
async
()
=>
{
expect
(
1
).
toBe
(
1
)
})
return
}
let
page
const
adbScreenShotArea
=
{
x
:
880
,
y
:
0
,
width
:
60
,
height
:
60
};
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
android 6
'
))
{
adbScreenShotArea
.
x
=
535
adbScreenShotArea
.
width
=
90
adbScreenShotArea
.
height
=
50
}
else
if
(
process
.
env
.
uniTestPlatformInfo
.
startsWith
(
'
android 12
'
))
{
adbScreenShotArea
.
x
=
1160
adbScreenShotArea
.
width
=
70
adbScreenShotArea
.
height
=
80
}
beforeAll
(
async
()
=>
{
page
=
await
program
.
navigateTo
(
CURRENT_PAGE_PATH
)
await
page
.
waitFor
(
1000
)
})
it
(
"
setNavigationBarColor1
"
,
async
()
=>
{
await
page
.
callMethod
(
"
setNavigationBarColor1
"
);
const
image
=
await
program
.
screenshot
({
adb
:
true
,
area
:
adbScreenShotArea
});
expect
(
image
).
toMatchImageSnapshot
();
});
it
(
"
setNavigationBarColor2
"
,
async
()
=>
{
await
page
.
callMethod
(
"
setNavigationBarColor2
"
);
const
image
=
await
program
.
screenshot
({
adb
:
true
,
area
:
adbScreenShotArea
});
expect
(
image
).
toMatchImageSnapshot
();
});
})
pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation.uvue
0 → 100644
浏览文件 @
8414e96e
<template>
<page-head title="setNavigationBarColor"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<button @tap="setNavigationBarColor1" class="uni-btn">
设置状态栏背景绿色,文字白色
</button>
<button @tap="setNavigationBarColor2" class="uni-btn">
设置状态栏背景红色,文字黑色
</button>
</view>
</template>
<script>
export default {
methods: {
setNavigationBarColor1() {
uni.setNavigationBarColor({
frontColor: "#ffffff",
backgroundColor: "#00ff00",
success: () => {
console.log("setNavigationBarColor success");
},
fail: () => {
console.log("setNavigationBarColor fail");
},
complete: () => {
console.log("setNavigationBarColor complete");
},
});
},
setNavigationBarColor2() {
uni.setNavigationBarColor({
frontColor: "#000000",
backgroundColor: "#ff0000",
success: () => {
console.log("setNavigationBarColor success");
},
fail: () => {
console.log("setNavigationBarColor fail");
},
complete: () => {
console.log("setNavigationBarColor complete");
},
});
},
},
};
</script>
pages/API/set-navigation-bar-color/set-navigation-bar-color.uvue
浏览文件 @
8414e96e
...
@@ -7,9 +7,12 @@
...
@@ -7,9 +7,12 @@
<button @tap="setNavigationBarColor2" class="uni-btn">
<button @tap="setNavigationBarColor2" class="uni-btn">
设置导航条背景红色,标题黑色
设置导航条背景红色,标题黑色
</button>
</button>
<button @tap="go
CustomNavigation
" class="uni-btn">
<button @tap="go
NavbarLite
" class="uni-btn">
跳转自定义导航栏页面
跳转自定义导航栏页面
</button>
</button>
<button @tap="goCustomNavigation" class="uni-btn">
跳转设置状态栏页面
</button>
</view>
</view>
</template>
</template>
...
@@ -62,10 +65,15 @@
...
@@ -62,10 +65,15 @@
setLifeCycleNum(num : number) {
setLifeCycleNum(num : number) {
setLifeCycleNum(num)
setLifeCycleNum(num)
},
},
go
CustomNavigation
() {
go
NavbarLite
() {
uni.navigateTo({
uni.navigateTo({
url: '/pages/template/navbar-lite/navbar-lite'
url: '/pages/template/navbar-lite/navbar-lite'
})
})
},
goCustomNavigation(){
uni.navigateTo({
url: '/pages/API/set-navigation-bar-color/set-navigation-bar-color-custom-navigation'
})
}
}
},
},
}
}
...
...
pages/tabBar/template.uvue
浏览文件 @
8414e96e
...
@@ -54,7 +54,8 @@
...
@@ -54,7 +54,8 @@
export default {
export default {
data() {
data() {
return {
return {
list: [
list: [
// #ifdef APP
{
{
id: 'long-list',
id: 'long-list',
url: 'long-list',
url: 'long-list',
...
@@ -71,7 +72,8 @@
...
@@ -71,7 +72,8 @@
url: 'long-list2'
url: 'long-list2'
},
},
] as Page[],
] as Page[],
},
},
// #endif
{
{
id: 'list-news',
id: 'list-news',
url: 'list-news',
url: 'list-news',
...
...
pages/template/long-list/long-list.uvue
浏览文件 @
8414e96e
...
@@ -261,10 +261,6 @@
...
@@ -261,10 +261,6 @@
background-color: #007AFF;
background-color: #007AFF;
}
}
.swiper-list {
flex: 1;
}
.swiper-view {
.swiper-view {
flex: 1;
flex: 1;
}
}
...
...
pages/template/long-list2/long-list2.uvue
浏览文件 @
8414e96e
...
@@ -265,10 +265,6 @@
...
@@ -265,10 +265,6 @@
background-color: #007AFF;
background-color: #007AFF;
}
}
.swiper-list {
flex: 1;
}
.swiper-view {
.swiper-view {
flex: 1;
flex: 1;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录