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
4e9f5989
Commit
4e9f5989
authored
Oct 12, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
51b9e1da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
home.vue
vedio/pages/home.vue
+11
-11
index.vue
vedio/pages/index/index.vue
+2
-2
No files found.
vedio/pages/home.vue
View file @
4e9f5989
...
@@ -116,18 +116,18 @@
...
@@ -116,18 +116,18 @@
}
}
},
},
onShow
()
{
onShow
()
{
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) {
this
.
$refs
.
user
.
show
();
//
this.$refs.user.show();
}
//
}
}
catch
(
e
)
{
//
} catch (e) {
}
//
}
},
},
mounted
()
{
mounted
()
{
// 渲染完成 初始化首页数据
// 渲染完成 初始化首页数据
...
...
vedio/pages/index/index.vue
View file @
4e9f5989
...
@@ -133,8 +133,8 @@
...
@@ -133,8 +133,8 @@
<view
style=
"display: flex;margin-left: 10rpx;"
>
<view
style=
"display: flex;margin-left: 10rpx;"
>
<view
style=
"flex-grow: 2;display: flex;align-items: center;"
>
<view
style=
"flex-grow: 2;display: flex;align-items: center;"
>
<image
style=
"border-radius:10rpx; width: 100rpx;height: 130rpx;"
<image
style=
"border-radius:10rpx; width: 100rpx;height: 130rpx;
margin-top: 10rpx;
"
src=
"http://sh.mints-id.com/vedioApp/vedio/ZhiZunLongZhu/zzlzshu.jpg
"
mode=
"aspectFill"
></image>
:src=
"newRecordBean.coverImage
"
mode=
"aspectFill"
></image>
<view
style=
"margin: 20rpx;"
>
<view
style=
"margin: 20rpx;"
>
<view
style=
"font-size: 30rpx; color: white;"
>
{{
newRecordBean
.
title
}}
</view>
<view
style=
"font-size: 30rpx; color: white;"
>
{{
newRecordBean
.
title
}}
</view>
<view
style=
"font-size: 24rpx;margin-top: 6rpx;color: white;"
>
上次观看至第
{{
newRecordBean
.
seeIndex
}}
集
<view
style=
"font-size: 24rpx;margin-top: 6rpx;color: white;"
>
上次观看至第
{{
newRecordBean
.
seeIndex
}}
集
...
...
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