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 @@
"navigationBarTitleText"
:
"内置组件"
,
"backgroundColor"
:
"#F8F8F8"
}
},
},
{
"path"
:
"pages/component/view/view"
,
"style"
:
{
...
...
@@ -19,85 +19,84 @@
"style"
:
{
"navigationBarTitleText"
:
"scroll-view"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/swiper/swiper"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper"
}
},
{
"path"
:
"pages/component/list-view/list-view"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view复用input"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
},
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
},
//
#ifdef
APP
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-section"
}
},
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-header"
,
"enablePullDownRefresh"
:
false
}
},
//#endif
},
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view-refresher"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-props"
,
"style"
:
{
"navigationBarTitleText"
:
"非下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/scroll-view/scroll-view-custom-refresher-props"
,
"style"
:
{
"navigationBarTitleText"
:
"自定义下拉刷新的scroll-view属性示例"
}
},
{
"path"
:
"pages/component/swiper/swiper"
,
"style"
:
{
"navigationBarTitleText"
:
"swiper"
}
},
{
"path"
:
"pages/component/list-view/list-view"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex"
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-input"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view复用input"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/component/list-view/list-view-multiplex-video"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-multiplex-video"
}
},
{
"path"
:
"pages/component/list-view/list-view-children-in-slot"
,
"style"
:
{
"navigationBarTitleText"
:
"list-view-children-in-slot"
}
},
//
#ifdef
APP
{
"path"
:
"pages/component/sticky-section/sticky-section"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-section"
}
},
{
"path"
:
"pages/component/sticky-header/sticky-header"
,
"style"
:
{
"navigationBarTitleText"
:
"sticky-header"
,
"enablePullDownRefresh"
:
false
}
},
//#endif
{
"path"
:
"pages/component/text/text"
,
"style"
:
{
...
...
@@ -110,24 +109,24 @@
"navigationBarTitleText"
:
"text-props"
}
},
{
"path"
:
"pages/component/rich-text/rich-text"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
}
},
{
"path"
:
"pages/component/rich-text/rich-text"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-tags"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-tags"
}
},
{
"path"
:
"pages/component/rich-text/rich-text-complex"
,
"style"
:
{
"navigationBarTitleText"
:
"rich-text-complex"
}
},
{
"path"
:
"pages/component/progress/progress"
,
"style"
:
{
...
...
@@ -253,51 +252,51 @@
"style"
:
{
"navigationBarTitleText"
:
"redirectPage"
}
},
{
"path"
:
"pages/component/web-view/web-view"
,
"style"
:
{
"navigationBarTitleText"
:
"web-view"
}
},
{
"path"
:
"pages/component/web-view-local/web-view-local"
,
"style"
:
{
"navigationBarTitleText"
:
"web-view-local"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"style"
:
{
"navigationBarTitleText"
:
"联系人"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
}
},
},
{
"path"
:
"pages/component/web-view/web-view"
,
"style"
:
{
"navigationBarTitleText"
:
"web-view"
}
},
{
"path"
:
"pages/component/web-view-local/web-view-local"
,
"style"
:
{
"navigationBarTitleText"
:
"web-view-local"
}
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/component/unicloud-db-contacts/list"
,
"style"
:
{
"navigationBarTitleText"
:
"联系人"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/add"
,
"style"
:
{
"navigationBarTitleText"
:
"新增联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/edit"
,
"style"
:
{
"navigationBarTitleText"
:
"编辑联系人"
}
},
{
"path"
:
"pages/component/unicloud-db-contacts/detail"
,
"style"
:
{
"navigationBarTitleText"
:
""
}
},
{
"path"
:
"pages/component/mixin-datacom/mixin-datacom"
,
"style"
:
{
"navigationBarTitleText"
:
"mixinDatacom"
}
},
//
#endif
{
"path"
:
"pages/component/general-attribute/general-attribute"
,
...
...
@@ -310,19 +309,19 @@
"style"
:
{
"navigationBarTitleText"
:
"general-event"
}
},
{
"path"
:
"pages/component/general-event/transition-event"
,
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
}
},
{
"path"
:
"pages/component/general-event/touch-event"
,
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
}
},
},
{
"path"
:
"pages/component/general-event/transition-event"
,
"style"
:
{
"navigationBarTitleText"
:
"transitionend事件"
}
},
{
"path"
:
"pages/component/general-event/touch-event"
,
"style"
:
{
"navigationBarTitleText"
:
"touch-event"
}
},
{
"path"
:
"pages/tabBar/API"
,
"style"
:
{
...
...
@@ -341,21 +340,21 @@
"style"
:
{
"navigationBarTitleText"
:
"getApp"
}
},
},
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/API/exit/exit"
,
"style"
:
{
"navigationBarTitleText"
:
"exit"
}
},
{
"path"
:
"pages/API/install-apk/install-apk"
,
"style"
:
{
"navigationBarTitleText"
:
"install-apk"
,
"enablePullDownRefresh"
:
false
}
},
},
{
"path"
:
"pages/API/install-apk/install-apk"
,
"style"
:
{
"navigationBarTitleText"
:
"install-apk"
,
"enablePullDownRefresh"
:
false
}
},
//
#endif
{
"path"
:
"pages/API/get-current-pages/get-current-pages"
,
...
...
@@ -381,6 +380,13 @@
"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"
,
"style"
:
{
...
...
@@ -533,7 +539,7 @@
"style"
:
{
"navigationBarTitleText"
:
"websocket-global"
}
},
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/API/unicloud-call-function/unicloud-call-function"
,
...
...
@@ -546,7 +552,7 @@
"style"
:
{
"navigationBarTitleText"
:
""
}
},
},
//
#endif
{
"path"
:
"pages/API/get-system-info/get-system-info"
,
...
...
@@ -566,14 +572,14 @@
"navigationBarTitleText"
:
"get-app-base-info"
}
},
//
#ifdef
APP
//
#ifdef
APP
{
"path"
:
"pages/API/get-system-setting/get-system-setting"
,
"style"
:
{
"navigationBarTitleText"
:
"get-system-setting"
}
},
//
#endif
},
//
#endif
//
#ifndef
WEB
{
"path"
:
"pages/API/get-app-authorize-setting/get-app-authorize-setting"
,
...
...
@@ -586,7 +592,7 @@
"style"
:
{
"navigationBarTitleText"
:
"保存图片到相册"
}
},
},
//
#endif
{
"path"
:
"pages/API/preview-image/preview-image"
,
...
...
@@ -617,7 +623,7 @@
"style"
:
{
"navigationBarTitleText"
:
"event-bus"
}
},
},
//
#ifndef
APP-IOS
{
"path"
:
"pages/API/unicloud-file-api/unicloud-file-api"
,
...
...
@@ -636,7 +642,7 @@
"style"
:
{
"navigationBarTitleText"
:
"电量"
}
},
},
//
#endif
{
"path"
:
"pages/API/get-window-info/get-window-info"
,
...
...
@@ -747,12 +753,12 @@
"navigationBarTitleText"
:
"border"
}
},
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"style"
:
{
"navigationBarTitleText"
:
"border属性组合示例"
}
},
{
"path"
:
"pages/CSS/border/complex-border/complex-border"
,
"style"
:
{
"navigationBarTitleText"
:
"border属性组合示例"
}
},
{
"path"
:
"pages/CSS/box-shadow/box-shadow"
,
"style"
:
{
...
...
@@ -909,12 +915,12 @@
"navigationBarTitleText"
:
"margin"
}
},
{
"path"
:
"pages/CSS/overflow/overflow"
,
"style"
:
{
"navigationBarTitleText"
:
"overflow"
}
},
{
"path"
:
"pages/CSS/overflow/overflow"
,
"style"
:
{
"navigationBarTitleText"
:
"overflow"
}
},
{
"path"
:
"pages/CSS/padding/padding-bottom"
,
"style"
:
{
...
...
@@ -1023,23 +1029,23 @@
"navigationBarTitleText"
:
"Scale"
}
},
{
"path"
:
"pages/CSS/transform/rotate"
,
"style"
:
{
"navigationBarTitleText"
:
"Rotate"
}
},
{
"path"
:
"pages/CSS/variable/variable"
,
"style"
:
{
"navigationBarTitleText"
:
"css 变量"
}
},
{
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"navigationBarTitleText"
:
"模板"
}
{
"path"
:
"pages/CSS/transform/rotate"
,
"style"
:
{
"navigationBarTitleText"
:
"Rotate"
}
},
{
"path"
:
"pages/CSS/variable/variable"
,
"style"
:
{
"navigationBarTitleText"
:
"css 变量"
}
},
{
"path"
:
"pages/tabBar/template"
,
"style"
:
{
"navigationBarTitleText"
:
"模板"
}
},
{
"path"
:
"pages/template/list-news/list-news"
,
...
...
@@ -1076,14 +1082,14 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},
},
//
#ifdef
APP
{
"path"
:
"pages/template/scroll-sticky/scroll-sticky"
,
"style"
:
{
"navigationBarTitleText"
:
"scroll-view自定义滚动吸顶"
}
},
},
//
#endif
{
"path"
:
"pages/template/scroll-fold-nav/scroll-fold-nav"
,
...
...
@@ -1104,26 +1110,22 @@
"navigationBarTitleText"
:
"半屏弹窗"
}
},
//
#ifdef
APP
{
"path"
:
"pages/template/long-list/long-list"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
//
#ifdef
APP
,
"enablePullDownRefresh"
:
true
//
#endif
"navigationBarTitleText"
:
"顶部搜索框随时下移长列表"
,
"enablePullDownRefresh"
:
true
}
},
{
"path"
:
"pages/template/long-list2/long-list2"
,
"style"
:
{
"navigationBarTitleText"
:
"顶部banner长列表"
//
#ifdef
APP
,
"enablePullDownRefresh"
:
true
//
#endif
"navigationBarTitleText"
:
"顶部banner长列表"
,
"enablePullDownRefresh"
:
true
}
},
//
#endif
{
"path"
:
"pages/template/pull-zoom-image/pull-zoom-image"
,
"style"
:
{
...
...
@@ -1142,22 +1144,22 @@
"style"
:
{
"navigationBarTitleText"
:
"自定义TabBar"
}
},
//
#ifdef
WEB
{
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"style"
:
{
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
}
},
//
#endif
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/template/calendar/calendar"
,
"style"
:
{
"navigationBarTitleText"
:
"日历"
}
},
},
//
#ifdef
WEB
{
"path"
:
"pages/template/browser-canvas/browser-canvas"
,
"style"
:
{
"navigationBarTitleText"
:
"如何使用浏览器 canvas"
}
},
//
#endif
//
#ifdef
APP-ANDROID
{
"path"
:
"pages/template/calendar/calendar"
,
"style"
:
{
"navigationBarTitleText"
:
"日历"
}
},
{
"path"
:
"pages/template/schema/schema"
,
"style"
:
{
...
...
@@ -1172,43 +1174,43 @@
}
},
//
#endif
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
}
},
//
#ifdef
APP
{
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
"style"
:
{
"navigationBarTitleText"
:
"激励视频广告"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
"style"
:
{
"navigationBarTitleText"
:
"权限申请监听"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/request-payment/request-payment"
,
"style"
:
{
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
}
}
{
"path"
:
"pages/webview-screenshot-comparison/webview-screenshot-comparison"
,
"style"
:
{
"navigationBarTitleText"
:
"截图对比测试"
,
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"pages/webview-screenshot/webview-screenshot"
,
"style"
:
{
"navigationBarTitleText"
:
"webview 截图测试"
,
"navigationStyle"
:
"custom"
}
},
//
#ifdef
APP
{
"path"
:
"pages/API/rewarded-video-ad/rewarded-video-ad"
,
"style"
:
{
"navigationBarTitleText"
:
"激励视频广告"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/create-request-permission-listener/create-request-permission-listener"
,
"style"
:
{
"navigationBarTitleText"
:
"权限申请监听"
,
"enablePullDownRefresh"
:
false
}
},
{
"path"
:
"pages/API/request-payment/request-payment"
,
"style"
:
{
"navigationBarTitleText"
:
"支付"
,
"enablePullDownRefresh"
:
false
}
}
//
#endif
],
"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 @@
<button @tap="setNavigationBarColor2" class="uni-btn">
设置导航条背景红色,标题黑色
</button>
<button @tap="go
CustomNavigation
" class="uni-btn">
<button @tap="go
NavbarLite
" class="uni-btn">
跳转自定义导航栏页面
</button>
<button @tap="goCustomNavigation" class="uni-btn">
跳转设置状态栏页面
</button>
</view>
</template>
...
...
@@ -62,10 +65,15 @@
setLifeCycleNum(num : number) {
setLifeCycleNum(num)
},
go
CustomNavigation
() {
go
NavbarLite
() {
uni.navigateTo({
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 @@
export default {
data() {
return {
list: [
list: [
// #ifdef APP
{
id: 'long-list',
url: 'long-list',
...
...
@@ -71,7 +72,8 @@
url: 'long-list2'
},
] as Page[],
},
},
// #endif
{
id: 'list-news',
url: 'list-news',
...
...
pages/template/long-list/long-list.uvue
浏览文件 @
8414e96e
...
...
@@ -261,10 +261,6 @@
background-color: #007AFF;
}
.swiper-list {
flex: 1;
}
.swiper-view {
flex: 1;
}
...
...
pages/template/long-list2/long-list2.uvue
浏览文件 @
8414e96e
...
...
@@ -265,10 +265,6 @@
background-color: #007AFF;
}
.swiper-list {
flex: 1;
}
.swiper-view {
flex: 1;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录