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
a8dcb8c8
Commit
a8dcb8c8
authored
Dec 09, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页列表加载100条,优化样式
parent
912f56cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
home.vue
vedio/pages/home.vue
+7
-7
index.vue
vedio/pages/index/index.vue
+2
-3
my.vue
vedio/pages/my/my.vue
+1
-1
recommend.vue
vedio/pages/recommend/recommend.vue
+1
-2
No files found.
vedio/pages/home.vue
View file @
a8dcb8c8
<
template
>
<view
class=
"body"
>
<view
style=
"height: 100%;
"
>
<view
:style=
"
{'height': clientHeight + 'px'}
">
<indexPage
v-show=
"currentPage==0"
ref=
"index"
/>
<recommendPage
v-on:showEditBarH=
"showEditBarH"
v-on:changeBottomBarColor=
"changeBottomBarColor"
v-show=
"currentPage==1"
ref=
"recommend"
/>
<userPage
v-show=
"currentPage==2"
ref=
"user"
/>
</view>
<view
v-if=
"!isShowBlackBar"
class=
"tabs-bar"
style=
"height:
70
px;"
>
<view
v-if=
"!isShowBlackBar"
class=
"tabs-bar"
style=
"height:
65
px;"
>
<view
:class=
"currentPage==0?'tab active': 'tab'"
@
click=
"tabChange(0)"
>
<view
style=
"margin: 12rpx 0 8rpx;"
>
<image
v-if=
"currentPage==0"
class=
"tabs-image"
src=
"/static/tab/index_selected.png"
...
...
@@ -34,7 +34,7 @@
</view>
</view>
<view
v-if=
"isShowBlackBar"
class=
"tabs-bar2"
style=
"height:
70
px;"
>
<view
v-if=
"isShowBlackBar"
class=
"tabs-bar2"
style=
"height:
65
px;"
>
<view
:class=
"currentPage==0?'tab active': 'tab'"
@
click=
"tabChange(0)"
>
<view
style=
"margin: 12rpx 0 8rpx;"
>
<image
v-if=
"currentPage==0"
class=
"tabs-image"
src=
"/static/tab/index_selected.png"
...
...
@@ -100,7 +100,8 @@
currentPage
:
0
,
showEditBar
:
false
,
isFullChoice
:
false
,
isShowBlackBar
:
false
isShowBlackBar
:
false
,
clientHeight
:
app
.
globalData
.
clientHeight
,
}
},
onLoad
(
options
)
{
...
...
@@ -109,12 +110,11 @@
this
.
currentPage
=
index
}
// 禁止截屏
if
(
wx
.
setVisualEffectOnCapture
)
{
wx
.
setVisualEffectOnCapture
({
visualEffect
:
'hidden'
,
success
:
(
res
)
=>
{
},
success
:
(
res
)
=>
{}
})
}
},
...
...
vedio/pages/index/index.vue
View file @
a8dcb8c8
...
...
@@ -5,7 +5,7 @@
<text
@
click=
"showMask=false"
>
我知道了
</text>
</view>
<scroll-view
v-if=
"clientHeight != 0"
scroll-y
:style=
"
{'height': clientHeight + 'px'}"
@scroll="onScroll">
<scroll-view
style=
"height: 100%;"
scroll-y
@
scroll=
"onScroll"
>
<view
class=
"content"
:style=
"'padding-top:'+statusBarHeight+'px'"
>
<swiper
class=
"banner"
:indicator-dots=
"true"
:autoplay=
"true"
:interval=
"2000"
:duration=
"500"
>
<swiper-item
v-for=
"banner in bannerList"
:key=
"banner.vedioId"
@
click=
"handleBanner(banner)"
>
...
...
@@ -214,7 +214,7 @@
clientHeight
:
app
.
globalData
.
clientHeight
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
page
:
1
,
size
:
10
,
size
:
10
0
,
loadStatus
:
'loadmore'
,
};
},
...
...
@@ -273,7 +273,6 @@
});
this
.
page
=
1
this
.
size
=
10
this
.
loadList
()
},
hide
()
{},
...
...
vedio/pages/my/my.vue
View file @
a8dcb8c8
<
template
>
<view
class=
"body"
>
<scroll-view
v-if=
"clientHeight != 0"
scroll-y
:style=
"
{'height': clientHeight + 'px'}"
>
<scroll-view
style=
"height: 100%;"
scroll-y
>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+statusBarHeight+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
...
...
vedio/pages/recommend/recommend.vue
View file @
a8dcb8c8
<
template
>
<view
v-if=
"clientHeight != 0"
:style=
"
{'height': clientHeight + 'px'}
">
<view
style=
"height: 100%;
"
>
<view
class=
"tabContainer"
:style=
"'height:' +titleBarHeight +'px;line-height:'+titleBarHeight +'px;padding-top:'+statusBarHeight+'px;background-color:transparent'"
>
<view
v-if=
"(current==0 && showEdit)"
...
...
@@ -75,7 +75,6 @@
showTap
:
false
,
titleBarHeight
:
app
.
globalData
.
titleBarHeight
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
clientHeight
:
app
.
globalData
.
clientHeight
,
}
},
onLoad
(
e
)
{},
...
...
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