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
0ba3fa26
Commit
0ba3fa26
authored
Jun 24, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
7f0ea379
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
index.vue
vedio/components/home/index.vue
+4
-6
home.vue
vedio/pages/home.vue
+2
-2
No files found.
vedio/components/home/index.vue
View file @
0ba3fa26
...
...
@@ -11,7 +11,7 @@
<image
class=
"mt-30"
mode=
"widthFix"
:src=
"maskImage1"
></image>
<image
:src=
"maskImage2"
mode=
"widthFix"
></image>
</view>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<view
class=
"search-wrap"
>
...
...
@@ -107,10 +107,9 @@
style=
"font-size: 30rpx;font-weight: 777;margin-top: 20rpx;margin-bottom: 10rpx;margin-left: 4rpx;"
>
推荐
</view>
-->
<
u-sticky></u-sticky
>
<
!--
<u-sticky></u-sticky>
--
>
<view
style=
"width: 100%;"
>
<!--
<u-sticky
bgColor=
"#fff"
>
-->
<u-tabs
:current=
"typeIndex"
:list=
"typesList"
@
change=
"popHandleChange"
lineWidth=
"30"
keyName=
'type'
lineColor=
"#0faeff"
:activeStyle=
"
{
color: '#0faeff',
...
...
@@ -120,7 +119,6 @@
color: '#808080',
transform: 'scale(1)'
}">
</u-tabs>
<!--
</u-sticky>
-->
</view>
<view
style=
"column-count: 2;column-gap: 20rpx;margin-top: 20rpx;"
>
...
...
@@ -367,6 +365,8 @@
if
(
data
.
list
)
{
this
.
typeId
=
data
.
list
[
0
].
typeId
this
.
typesList
=
data
.
list
this
.
$refs
.
paging
.
reload
();
}
}
});
...
...
@@ -389,8 +389,6 @@
success
:
({
data
})
=>
{
// this.$refs.paging.complete(data.list);
this
.
$refs
.
paging
.
complete
(
data
.
list
);
}
});
...
...
vedio/pages/home.vue
View file @
0ba3fa26
...
...
@@ -135,7 +135,7 @@
})
}
},
onShow
()
{
onShow
()
{
try
{
// 在子组件重写show()代替onShow()
if
(
this
.
currentPage
==
0
)
{
...
...
@@ -178,7 +178,7 @@
this
.
currentPage
=
index
;
this
.
loadComponentData
();
},
loadComponentData
()
{
loadComponentData
()
{
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
this
.
$refs
.
recommend
.
hide
();
...
...
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