Commit c8594842 authored by jyx's avatar jyx

优化收藏列表变动

parent 2187139f
...@@ -54,7 +54,6 @@ let startReadTime = null; // 开始阅读时间 ...@@ -54,7 +54,6 @@ let startReadTime = null; // 开始阅读时间
*/ */
function startCountReadTime() { function startCountReadTime() {
startReadTime = new Date(); startReadTime = new Date();
console.log('AAAAAA---startCountReadTime------->')
} }
/** /**
* 停止阅读计时 * 停止阅读计时
...@@ -80,8 +79,6 @@ function endCountReadTime() { ...@@ -80,8 +79,6 @@ function endCountReadTime() {
count = endReadTime.getTime() - dayStart.getTime(); count = endReadTime.getTime() - dayStart.getTime();
} }
startReadTime = null; startReadTime = null;
console.log('AAAAAA---endCountReadTime------->' + count)
setReadTimeCount(count); setReadTimeCount(count);
} }
...@@ -290,7 +287,9 @@ function getBookBeanPackData(callback) { ...@@ -290,7 +287,9 @@ function getBookBeanPackData(callback) {
function getCollects(callback) { function getCollects(callback) {
apiPOST({ apiPOST({
url: "/book/collectList", url: "/book/collectList",
data: {}, data: {
reader: true
},
callback callback
}) })
} }
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
this.initData(); this.initData();
// 监听收藏变动 // 监听收藏变动
watchCollectionChange(() => { watchCollectionChange(() => {
console.log('LLLLLLLLLLLLLLLL')
this.refreshCollect(); this.refreshCollect();
}, this); }, this);
}, },
......
...@@ -92,8 +92,7 @@ ...@@ -92,8 +92,7 @@
uni.$emit('goWareHouse') uni.$emit('goWareHouse')
return return
} }
gotoBookContentPage(e.detail.data.wechatRecord.wxId, e.detail.data.id)
gotoBookContentPage(e.detail.data.wechatRecord.wxId, e.detail.id)
}, },
showEditBarR(e) { showEditBarR(e) {
this.showEditBar = e this.showEditBar = e
......
This diff is collapsed.
...@@ -54,7 +54,8 @@ ...@@ -54,7 +54,8 @@
}, },
requestParam: function() { requestParam: function() {
return { return {
searchName: this.keyword searchName: this.keyword,
reader:true
} }
} }
}, },
......
...@@ -4,7 +4,8 @@ import { ...@@ -4,7 +4,8 @@ import {
import { import {
startCountReadTime, startCountReadTime,
endCountReadTime endCountReadTime,
noticeCollectionListChange
} from "@/common/services/index.js" } from "@/common/services/index.js"
var novelPlugin = requirePlugin("novel-plugin"); var novelPlugin = requirePlugin("novel-plugin");
...@@ -22,13 +23,13 @@ const proto = { ...@@ -22,13 +23,13 @@ const proto = {
this.nm = nm this.nm = nm
this.myId = data.id this.myId = data.id
novelPlugin.setLoggerConfig({ // novelPlugin.setLoggerConfig({
info: true, // info: true,
debug: true, // debug: true,
log: true, // log: true,
warn: true, // warn: true,
error: true, // error: true,
}) // })
const customId = nm.getCustomServerParams() const customId = nm.getCustomServerParams()
this.getContent(customId).then(res => { this.getContent(customId).then(res => {
...@@ -68,6 +69,7 @@ const proto = { ...@@ -68,6 +69,7 @@ const proto = {
this.bookshelfStatus = 0 this.bookshelfStatus = 0
this.nm_uncollect(customId) this.nm_uncollect(customId)
} }
noticeCollectionListChange(customId, this.bookshelfStatus)
nm.setBookshelfStatus({ nm.setBookshelfStatus({
bookshelfStatus: this.bookshelfStatus bookshelfStatus: this.bookshelfStatus
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment