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
e3f5ed2d
Commit
e3f5ed2d
authored
May 31, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
ebb216d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
bookshelf.vue
vedio/components/bookshelf/bookshelf.vue
+4
-1
warehouse.vue
vedio/components/warehouse/warehouse.vue
+5
-5
No files found.
vedio/components/bookshelf/bookshelf.vue
View file @
e3f5ed2d
<
template
>
<
template
>
<z-paging
style=
"height: 100%;"
>
<z-paging>
<c-navi
id=
'navi'
></c-navi>
<c-navi
id=
'navi'
></c-navi>
<book-search-box
id=
'search'
:searchType=
'searchType'
></book-search-box>
<book-search-box
id=
'search'
:searchType=
'searchType'
></book-search-box>
<read-time-count-row
id=
'count'
ref=
'timeCount'
@
resize=
'resizeTimeCount'
></read-time-count-row>
<read-time-count-row
id=
'count'
ref=
'timeCount'
@
resize=
'resizeTimeCount'
></read-time-count-row>
...
@@ -57,6 +57,8 @@
...
@@ -57,6 +57,8 @@
},
},
methods
:
{
methods
:
{
show
()
{
show
()
{
this
.
$refs
.
timeCount
.
refresh
()
this
.
initHeight
();
this
.
initHeight
();
// 监听用户变动
// 监听用户变动
watchUserInfoChange
((
info
)
=>
{
watchUserInfoChange
((
info
)
=>
{
...
@@ -103,6 +105,7 @@
...
@@ -103,6 +105,7 @@
query
.
select
(
"#navi"
).
boundingClientRect
();
query
.
select
(
"#navi"
).
boundingClientRect
();
query
.
select
(
"#search"
).
boundingClientRect
();
query
.
select
(
"#search"
).
boundingClientRect
();
query
.
select
(
"#count"
).
boundingClientRect
();
query
.
select
(
"#count"
).
boundingClientRect
();
query
.
select
(
"#count"
).
boundingClientRect
();
query
.
exec
((
res
)
=>
{
query
.
exec
((
res
)
=>
{
let
result
=
0
;
let
result
=
0
;
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
...
...
vedio/components/warehouse/warehouse.vue
View file @
e3f5ed2d
<
template
>
<
template
>
<z-paging
style=
"height: 100%;"
>
<z-paging>
<c-navi
id=
'navi'
></c-navi>
<c-navi
id=
'navi'
></c-navi>
<book-search-box
id=
'search'
></book-search-box>
<book-search-box
id=
'search'
></book-search-box>
<CategoryBar
id=
'category'
:range=
'categorys'
:current=
'currentIndex'
@
change=
'changeCategory'
<CategoryBar
id=
'category'
:range=
'categorys'
:current=
'currentIndex'
@
change=
'changeCategory'
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
},
},
computed
:
{
computed
:
{
showEmpty
:
function
()
{
showEmpty
:
function
()
{
...
@@ -75,8 +75,8 @@
...
@@ -75,8 +75,8 @@
watch
:
{
watch
:
{
categroyChange
:
{
categroyChange
:
{
handler
:
function
(
n
,
o
)
{
handler
:
function
(
n
,
o
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
this
.
$refs
[
`bookList
${
n
.
currentIndex
}
`
][
0
].
initRefresh
();
// let ref = this.$refs.bookList;
// let ref = this.$refs.bookList;
// if (ref) {
// if (ref) {
// ref[n.currentIndex].initRefresh();
// ref[n.currentIndex].initRefresh();
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
result
=
result
+
item
.
height
;
result
=
result
+
item
.
height
;
})
})
this
.
listHeight
=
this
.
windowHeight
-
result
;
this
.
listHeight
=
this
.
windowHeight
-
result
-
(
this
.
windowHeight
*
0.1
)
;
})
})
},
},
changeCategory
(
e
)
{
changeCategory
(
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