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
2e673af8
Commit
2e673af8
authored
Aug 15, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
6bd287bb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
12 deletions
+22
-12
book-list-item2.vue
vedio/components/book-list-item2/book-list-item2.vue
+2
-2
bookshelf.vue
vedio/components/bookshelf/bookshelf.vue
+10
-4
bookshelf-list.vue
vedio/components/bookshelf/components/bookshelf-list.vue
+6
-4
read-time-count-row.vue
vedio/components/read-time-count-row/read-time-count-row.vue
+1
-1
home.vue
vedio/pages/home.vue
+3
-1
No files found.
vedio/components/book-list-item2/book-list-item2.vue
View file @
2e673af8
...
...
@@ -8,7 +8,7 @@
<view
class=
"title"
v-if=
"!last"
>
{{
item
.
title
}}
</view>
<
!--
<
view
class=
"c-flex_row c-align_center label-box"
v-if=
"!last"
>
<view
class=
"c-flex_row c-align_center label-box"
v-if=
"!last"
>
<slot
name=
"footer"
>
<view
class=
"label label-color-1"
v-if=
'showCategory'
>
{{
item
.
categoryName
}}
...
...
@@ -17,7 +17,7 @@
{{
label
.
name
}}
</view>
</slot>
</view>
-->
</view>
</view>
</
template
>
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
2e673af8
...
...
@@ -34,7 +34,10 @@
},
onShow
()
{
// 更新阅读时间统计
this
.
refreshTimeCount
();
let
ref
=
this
.
$refs
.
bookList
;
if
(
ref
)
{
ref
.
refreshTimeCount
();
}
},
onUnload
()
{
// 移除监听
...
...
@@ -43,7 +46,10 @@
},
methods
:
{
show
()
{
let
ref
=
this
.
$refs
.
bookList
;
if
(
ref
)
{
ref
.
refreshTimeCount
();
}
},
hide
()
{
...
...
@@ -72,8 +78,8 @@
this
.
listHeight
=
this
.
windowHeight
-
result
;
})
},
showEditBarR
(
b
)
{
this
.
$emit
(
"showEditBarH"
,
b
);
showEditBarR
(
b
)
{
this
.
$emit
(
"showEditBarH"
,
b
);
},
fullChoice
()
{
this
.
$refs
.
bookList
.
fullChoice
()
...
...
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
2e673af8
...
...
@@ -127,15 +127,17 @@
let
str
=
''
for
(
let
i
=
0
;
i
<
this
.
dataList
.
length
;
i
++
)
{
if
(
this
.
dataList
[
i
].
isChecked
)
{
str
+=
(
this
.
dataList
[
i
].
id
+
','
)
if
(
this
.
dataList
[
i
].
id
)
{
str
+=
(
this
.
dataList
[
i
].
id
+
','
)
}
}
}
console
.
log
(
'AAAA'
+
str
)
collectionBook
(
false
,
str
,
(
success
,
data
)
=>
{
if
(
success
)
{
this
.
showEditBar
=
false
this
.
refreshList
()
if
(
success
)
{
this
.
showEditBar
=
false
this
.
refreshList
()
// noticeCollectionListChange('', false)
}
})
...
...
vedio/components/read-time-count-row/read-time-count-row.vue
View file @
2e673af8
...
...
@@ -80,7 +80,7 @@
.labelimg
{
margin-top
:
10rpx
;
margin-right
:
1
0rpx
;
margin-right
:
2
0rpx
;
width
:
65rpx
;
height
:
70rpx
;
}
...
...
vedio/pages/home.vue
View file @
2e673af8
...
...
@@ -109,7 +109,9 @@
},
onShow
()
{
try
{
if
(
this
.
currentPage
==
3
)
{
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
shelf
.
show
();
}
else
if
(
this
.
currentPage
==
3
)
{
this
.
$refs
.
user
.
show
();
}
}
catch
(
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