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
c8594842
Commit
c8594842
authored
Jan 03, 2025
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化收藏列表变动
parent
2187139f
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
251 additions
and
249 deletions
+251
-249
index.js
vedio/common/services/index.js
+5
-6
bookshelf.vue
vedio/components/bookshelf/bookshelf.vue
+2
-1
bookshelf-list.vue
vedio/components/bookshelf/components/bookshelf-list.vue
+1
-2
manifest.json
vedio/manifest.json
+229
-229
search-result.vue
.../page-subs/sub_A/book-search/components/search-result.vue
+2
-1
novelManager.js
vedio/utils/novelManager.js
+12
-10
No files found.
vedio/common/services/index.js
View file @
c8594842
...
...
@@ -53,8 +53,7 @@ let startReadTime = null; // 开始阅读时间
* 开始阅读计时
*/
function
startCountReadTime
()
{
startReadTime
=
new
Date
();
console
.
log
(
'AAAAAA---startCountReadTime------->'
)
startReadTime
=
new
Date
();
}
/**
* 停止阅读计时
...
...
@@ -79,9 +78,7 @@ function endCountReadTime() {
let
dayStart
=
stringToDate
(
end
.
join
(
"-"
))
count
=
endReadTime
.
getTime
()
-
dayStart
.
getTime
();
}
startReadTime
=
null
;
console
.
log
(
'AAAAAA---endCountReadTime------->'
+
count
)
startReadTime
=
null
;
setReadTimeCount
(
count
);
}
...
...
@@ -290,7 +287,9 @@ function getBookBeanPackData(callback) {
function
getCollects
(
callback
)
{
apiPOST
({
url
:
"/book/collectList"
,
data
:
{},
data
:
{
reader
:
true
},
callback
})
}
...
...
vedio/components/bookshelf/bookshelf.vue
View file @
c8594842
...
...
@@ -28,7 +28,8 @@
onReady
()
{
this
.
initData
();
// 监听收藏变动
watchCollectionChange
(()
=>
{
watchCollectionChange
(()
=>
{
console
.
log
(
'LLLLLLLLLLLLLLLL'
)
this
.
refreshCollect
();
},
this
);
},
...
...
vedio/components/bookshelf/components/bookshelf-list.vue
View file @
c8594842
...
...
@@ -92,8 +92,7 @@
uni
.
$emit
(
'goWareHouse'
)
return
}
gotoBookContentPage
(
e
.
detail
.
data
.
wechatRecord
.
wxId
,
e
.
detail
.
id
)
gotoBookContentPage
(
e
.
detail
.
data
.
wechatRecord
.
wxId
,
e
.
detail
.
data
.
id
)
},
showEditBarR
(
e
)
{
this
.
showEditBar
=
e
...
...
vedio/manifest.json
View file @
c8594842
This diff is collapsed.
Click to expand it.
vedio/page-subs/sub_A/book-search/components/search-result.vue
View file @
c8594842
...
...
@@ -54,7 +54,8 @@
},
requestParam
:
function
()
{
return
{
searchName
:
this
.
keyword
searchName
:
this
.
keyword
,
reader
:
true
}
}
},
...
...
vedio/utils/novelManager.js
View file @
c8594842
...
...
@@ -4,7 +4,8 @@ import {
import
{
startCountReadTime
,
endCountReadTime
endCountReadTime
,
noticeCollectionListChange
}
from
"@/common/services/index.js"
var
novelPlugin
=
requirePlugin
(
"novel-plugin"
);
...
...
@@ -22,13 +23,13 @@ const proto = {
this
.
nm
=
nm
this
.
myId
=
data
.
id
novelPlugin
.
setLoggerConfig
({
info
:
true
,
debug
:
true
,
log
:
true
,
warn
:
true
,
error
:
true
,
})
//
novelPlugin.setLoggerConfig({
//
info: true,
//
debug: true,
//
log: true,
//
warn: true,
//
error: true,
//
})
const
customId
=
nm
.
getCustomServerParams
()
this
.
getContent
(
customId
).
then
(
res
=>
{
...
...
@@ -54,8 +55,8 @@ const proto = {
//开始阅读书籍时
if
(
obj
.
event_id
===
'start_read'
)
{
this
.
nm_report
(
customId
)
// 开始记录阅读时长
this
.
nm_report
(
customId
)
// 开始记录阅读时长
startCountReadTime
()
}
...
...
@@ -68,6 +69,7 @@ const proto = {
this
.
bookshelfStatus
=
0
this
.
nm_uncollect
(
customId
)
}
noticeCollectionListChange
(
customId
,
this
.
bookshelfStatus
)
nm
.
setBookshelfStatus
({
bookshelfStatus
:
this
.
bookshelfStatus
})
...
...
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