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
019aa62e
Commit
019aa62e
authored
Dec 12, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复推荐剧跳转慢,优化样式
parent
c61de996
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
434 additions
and
448 deletions
+434
-448
App.vue
vedio/App.vue
+6
-15
index.vue
vedio/components/home/index.vue
+418
-422
my.vue
vedio/components/home/my.vue
+4
-3
home.vue
vedio/pages/home.vue
+6
-8
No files found.
vedio/App.vue
View file @
019aa62e
...
...
@@ -52,21 +52,11 @@
// checkUpdate(this);
// #ifdef H5
if
(
window
.
location
.
host
===
'www.baosheji.cn'
)
{
var
icp
=
document
.
createElement
(
'div'
);
icp
.
innerText
=
'京ICP备18032652号'
;
icp
.
style
.
color
=
'white'
;
icp
.
style
.
textAlign
=
'center'
;
icp
.
style
.
position
=
'fixed'
;
icp
.
style
.
bottom
=
'0'
;
icp
.
style
.
left
=
'0'
;
icp
.
style
.
right
=
'0'
;
icp
.
style
.
zIndex
=
'100'
;
document
.
body
.
appendChild
(
icp
);
}
// #endif
uni
.
getSystemInfo
({
success
:
(
res
=>
{
this
.
globalData
.
clientHeight
=
res
.
windowHeight
-
65
})
});
},
onShow
:
function
(
options
)
{
this
.
globalData
.
resetLogin
=
true
...
...
@@ -89,6 +79,7 @@
// baseUrl: 'http://test.mints-id.com/camera-api/miniApi',
// baseUrl: 'http://192.168.110.71:8301/miniApi',
titleButtonWidth
:
38
,
clientHeight
:
0
,
token
:
''
,
userId
:
0
,
inviteUId
:
''
,
...
...
vedio/components/home/index.vue
View file @
019aa62e
...
...
@@ -13,8 +13,7 @@
<image
:src=
"maskImage2"
mode=
"widthFix"
></image>
</view>
<scroll-view
v-if=
"clientHeight != 0"
scroll-y=
"true"
:style=
"
{'height': clientHeight + 'px'}"
@scroll="onScroll">
<scroll-view
style=
"height: 100%;"
scroll-y
@
scroll=
"onScroll"
>
<view
class=
"content"
>
<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)"
>
...
...
@@ -49,7 +48,6 @@
<image
v-else
style=
"width: 50rpx;height: 50rpx;display: flex;align-items: right;margin-right: 10rpx;"
src=
"../../static/index/y4.png"
></image>
</view>
</view>
...
...
@@ -211,7 +209,7 @@
maskImage2
:
'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find2.png'
,
clientHeight
:
0
,
page
:
1
,
size
:
10
,
size
:
10
0
,
loadStatus
:
'loadmore'
};
},
...
...
@@ -288,7 +286,7 @@
});
this
.
page
=
1
this
.
size
=
10
// this.size = 10
this
.
loadList
()
},
hide
()
{},
...
...
@@ -353,7 +351,6 @@
let
that
=
this
;
let
loadEpisode_id
=
uni
.
getStorageSync
(
'tt_episode_id'
)
||
''
;
let
loadAlbum_id
=
uni
.
getStorageSync
(
'tt_album_id'
)
||
''
;
setTimeout
(()
=>
{
that
.
post
({
url
:
'/vedio/firstVedio/douyin'
,
data
:
{
...
...
@@ -379,7 +376,6 @@
}
}
});
},
800
);
}
}
};
...
...
vedio/components/home/my.vue
View file @
019aa62e
<
template
>
<view
class=
"body"
>
<z-paging
style=
"height: 100%;background-color: #f5f5f5;"
>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'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:'+10+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<view>
<view
style=
"font-size: 32rpx;color: black;margin-left: 20rpx;"
>
用户ID:
{{
userBean
.
idcode
}}
</view>
...
...
@@ -60,7 +61,7 @@
<view
style=
"display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"
>
{{
versionName
}}
</view>
</
z-paging
>
</
scroll-view
>
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
@
paySuccess=
"paySuccess"
>
</coin-popup>
<kefu-popup
:show=
"showKefuPop"
@
close=
"showKefuPop = false"
/>
...
...
vedio/pages/home.vue
View file @
019aa62e
<
template
>
<view
class=
"body"
>
<view
style=
"height: 92%;
"
>
<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"
>
<view
v-if=
"!isShowBlackBar"
class=
"tabs-bar"
style=
"height: 65px;"
>
<view
:class=
"currentPage==0?'tab active': 'tab'"
:style=
"'padding-bottom:' + bottomSafePadding + 'px;'"
@
click=
"tabChange(0)"
>
<view
style=
"margin: 16rpx 0 11rpx;"
>
...
...
@@ -37,7 +37,7 @@
</view>
</view>
<view
v-if=
"isShowBlackBar"
class=
"tabs-bar2"
>
<view
v-if=
"isShowBlackBar"
class=
"tabs-bar2"
style=
"height: 65px;"
>
<view
:class=
"currentPage==0?'tab active': 'tab'"
:style=
"'padding-bottom:' + bottomSafePadding + 'px;'"
@
click=
"tabChange(0)"
>
<view
style=
"margin: 16rpx 0 11rpx;"
>
...
...
@@ -110,7 +110,8 @@
currentPage
:
0
,
showEditBar
:
false
,
isFullChoice
:
false
,
isShowBlackBar
:
false
isShowBlackBar
:
false
,
clientHeight
:
app
.
globalData
.
clientHeight
,
}
},
onLoad
(
options
)
{
...
...
@@ -129,12 +130,9 @@
if
(
wx
.
setVisualEffectOnCapture
)
{
wx
.
setVisualEffectOnCapture
({
visualEffect
:
'hidden'
,
success
:
(
res
)
=>
{
},
success
:
(
res
)
=>
{}
})
}
},
onShow
()
{
try
{
...
...
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