Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
uniapp_vedio
Commits
81606868
Commit
81606868
authored
Dec 12, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抖音自定义状态栏
parent
be6c8f61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
31 deletions
+58
-31
pages.json
vedio/pages.json
+32
-28
home.vue
vedio/pages/home.vue
+26
-3
No files found.
vedio/pages.json
View file @
81606868
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
"path"
:
"pages/loading"
,
"path"
:
"pages/loading"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
F2F1FF"
,
"navigationBarTextStyle"
:
"
black"
//用于配置状态栏的字体颜色
"navigationBarTextStyle"
:
"
#000000"
}
}
},
},
//
#endif
//
#endif
...
@@ -22,51 +22,51 @@
...
@@ -22,51 +22,51 @@
"path"
:
"pages/home"
,
"path"
:
"pages/home"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#000000
"
}
}
},
{
},
{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#000000
"
}
}
},
},
{
{
"path"
:
"pages/my/my"
,
"path"
:
"pages/my/my"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"
black"
//用于配置状态栏的字体颜色
"navigationBarTextStyle"
:
"
#000000"
}
}
},
{
},
{
"path"
:
"pages/brower/brower"
,
"path"
:
"pages/brower/brower"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
}
}
},
{
},
{
"path"
:
"pages/recommend/recommend"
,
"path"
:
"pages/recommend/recommend"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
000000"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#ffffff
"
}
}
},
{
},
{
"path"
:
"pages/recommend/follow"
,
"path"
:
"pages/recommend/follow"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#000000
"
}
}
},
{
},
{
"path"
:
"pages/recommend/recommendVideo"
,
"path"
:
"pages/recommend/recommendVideo"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
000000"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#ffffff
"
}
}
}
}
],
],
...
@@ -87,45 +87,49 @@
...
@@ -87,45 +87,49 @@
"path"
:
"video/videoDetail"
,
"path"
:
"video/videoDetail"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
000000"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#ffffff
"
}
}
},
{
},
{
"path"
:
"video/newVideoDetail"
,
"path"
:
"video/newVideoDetail"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
000000"
,
"navigationBarTextStyle"
:
"
black
"
"navigationBarTextStyle"
:
"
#ffffff
"
}
}
}]
}]
},
{
},
{
"root"
:
"pagesD"
,
"root"
:
"pagesD"
,
"pages"
:
[{
"pages"
:
[{
"path"
:
"watchRecord/watchRecord"
,
"path"
:
"watchRecord/watchRecord"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"观看记录"
,
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"black"
//用于配置状态栏的字体颜色
"navigationBarTextStyle"
:
"black"
}
}
},
{
},
{
"path"
:
"payRecord/payRecord"
,
"path"
:
"payRecord/payRecord"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"我的订单"
,
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
}
}
},
{
},
{
"path"
:
"dotRecord/dotRecord"
,
"path"
:
"dotRecord/dotRecord"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"看点记录"
,
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3"
,
"navigationBarBackgroundColor"
:
"#
ffffff"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
}
}
},
{
},
{
"path"
:
"useDotRecord/useDotRecord"
,
"path"
:
"useDotRecord/useDotRecord"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"消费记录"
,
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#
2196f3
"
,
"navigationBarBackgroundColor"
:
"#
ffffff
"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
}
}
}]
}]
...
...
vedio/pages/home.vue
View file @
81606868
...
@@ -117,7 +117,14 @@
...
@@ -117,7 +117,14 @@
let
index
=
options
.
index
??
''
let
index
=
options
.
index
??
''
if
(
index
!=
''
&&
index
!=
undefined
)
{
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
this
.
currentPage
=
index
}
}
// #ifdef MP-TOUTIAO
tt
.
setNavigationBarColor
({
frontColor
:
'#000000'
,
backgroundColor
:
'#ffffff'
})
// #endif
if
(
wx
.
setVisualEffectOnCapture
)
{
if
(
wx
.
setVisualEffectOnCapture
)
{
wx
.
setVisualEffectOnCapture
({
wx
.
setVisualEffectOnCapture
({
...
@@ -133,7 +140,8 @@
...
@@ -133,7 +140,8 @@
try
{
try
{
// 在子组件重写show()代替onShow()
// 在子组件重写show()代替onShow()
if
(
this
.
currentPage
==
0
)
{
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
this
.
$refs
.
index
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
}
else
if
(
this
.
currentPage
==
1
)
{
// this.$refs.recommend.show();
// this.$refs.recommend.show();
}
else
if
(
this
.
currentPage
==
2
)
{
}
else
if
(
this
.
currentPage
==
2
)
{
...
@@ -172,7 +180,22 @@
...
@@ -172,7 +180,22 @@
}
}
},
},
changeBottomBarColor
(
b
)
{
changeBottomBarColor
(
b
)
{
this
.
isShowBlackBar
=
b
this
.
isShowBlackBar
=
b
// #ifdef MP-TOUTIAO
if
(
b
){
tt
.
setNavigationBarColor
({
frontColor
:
'#ffffff'
,
backgroundColor
:
'#000000'
})
}
else
{
tt
.
setNavigationBarColor
({
frontColor
:
'#000000'
,
backgroundColor
:
'#ffffff'
})
}
// #endif
},
},
showEditBarH
(
b
)
{
showEditBarH
(
b
)
{
this
.
showEditBar
=
b
this
.
showEditBar
=
b
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment