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
......
{ {
"name": "reader", "name" : "reader",
"appid": "__UNI__C390C5A", "appid" : "__UNI__C390C5A",
"description": "", "description" : "",
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": 1000, "versionCode" : 1000,
"transformPx": false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
"app-plus": { "app-plus" : {
"compatible": { "compatible" : {
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 "ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
}, },
"usingComponents": true, "usingComponents" : true,
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": false, "waiting" : false,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
/* 模块配置 */ /* 模块配置 */
"modules": { "modules" : {
"Payment": {} "Payment" : {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute": { "distribute" : {
/* android打包配置 */ /* android打包配置 */
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
...@@ -36,194 +36,194 @@ ...@@ -36,194 +36,194 @@
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>" "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>"
], ],
"permissionExternalStorage": { "permissionExternalStorage" : {
"request": "none", "request" : "none",
"prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
}, },
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"autoSdkPermissions": true, "autoSdkPermissions" : true,
"schemes": "" "schemes" : ""
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios": { "ios" : {
"idfa": false, "idfa" : false,
"privacyDescription": { "privacyDescription" : {
"NSPhotoLibraryUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。", "NSPhotoLibraryUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。",
"NSCameraUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。", "NSCameraUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。",
"NSPhotoLibraryAddUsageDescription": "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。" "NSPhotoLibraryAddUsageDescription" : "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
}, },
"urltypes": "twofiveone" "urltypes" : "twofiveone"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs": { "sdkConfigs" : {
"share": { "share" : {
"weixin": { "weixin" : {
"appid": "", "appid" : "",
"UniversalLinks": "" "UniversalLinks" : ""
} }
}, },
"oauth": {}, "oauth" : {},
"ad": {}, "ad" : {},
"payment": { "payment" : {
"weixin": { "weixin" : {
"__platform__": ["ios", "android"], "__platform__" : [ "ios", "android" ],
"appid": "wxaa277a94b5a33c63", "appid" : "wxaa277a94b5a33c63",
"UniversalLinks": "" "UniversalLinks" : ""
} }
}, },
"speech": {} "speech" : {}
}, },
"icons": { "icons" : {
"android": { "android" : {
"hdpi": "", "hdpi" : "",
"xhdpi": "", "xhdpi" : "",
"xxhdpi": "", "xxhdpi" : "",
"xxxhdpi": "" "xxxhdpi" : ""
}, },
"ios": { "ios" : {
"appstore": "", "appstore" : "",
"ipad": { "ipad" : {
"app": "", "app" : "",
"app@2x": "", "app@2x" : "",
"notification": "", "notification" : "",
"notification@2x": "", "notification@2x" : "",
"proapp@2x": "", "proapp@2x" : "",
"settings": "", "settings" : "",
"settings@2x": "", "settings@2x" : "",
"spotlight": "", "spotlight" : "",
"spotlight@2x": "" "spotlight@2x" : ""
}, },
"iphone": { "iphone" : {
"app@2x": "", "app@2x" : "",
"app@3x": "", "app@3x" : "",
"notification@2x": "", "notification@2x" : "",
"notification@3x": "", "notification@3x" : "",
"settings@2x": "", "settings@2x" : "",
"settings@3x": "", "settings@3x" : "",
"spotlight@2x": "", "spotlight@2x" : "",
"spotlight@3x": "" "spotlight@3x" : ""
} }
} }
}, },
"splashscreen": { "splashscreen" : {
"androidStyle": "default", "androidStyle" : "default",
"useOriginalMsgbox": true, "useOriginalMsgbox" : true,
"alwaysShowBeforeRender": false, "alwaysShowBeforeRender" : false,
"autoclose": false, "autoclose" : false,
"waiting": false, "waiting" : false,
"delay": 0, "delay" : 0,
"iosStyle": "common", "iosStyle" : "common",
"android": { "android" : {
"hdpi": "", "hdpi" : "",
"xhdpi": "", "xhdpi" : "",
"xxhdpi": "" "xxhdpi" : ""
}, },
"ios": { "ios" : {
"storyboard": "unpackage/res/splash/LaunchScreen.storyboard_.zip" "storyboard" : "unpackage/res/splash/LaunchScreen.storyboard_.zip"
} }
} }
}, },
"uniStatistics": { "uniStatistics" : {
"enable": true "enable" : true
} }
}, },
/* 快应用特有相关 */ /* 快应用特有相关 */
"quickapp": {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin": { "mp-weixin" : {
"appid": "wxa2aadd56bb72a6d9", "appid" : "wxa2aadd56bb72a6d9",
"setting": { "setting" : {
"urlCheck": false, "urlCheck" : false,
"es6": false, "es6" : false,
"postcss": true, "postcss" : true,
"minified": true "minified" : true
}, },
"usingComponents": true, "usingComponents" : true,
"uniStatistics": { "uniStatistics" : {
"enable": true "enable" : true
}, },
"optimization": { "optimization" : {
"subPackages": true "subPackages" : true
}, },
"plugins": { "plugins" : {
"novel-plugin": { "novel-plugin" : {
"version": "latest", "version" : "latest",
"provider": "wx293c4b6097a8a4d0", "provider" : "wx293c4b6097a8a4d0",
"genericsImplementation": { "genericsImplementation" : {
"novel": { "novel" : {
"charge-dialog": "/components/charge-dialog/charge-dialog" "charge-dialog" : "/components/charge-dialog/charge-dialog"
} }
} }
} }
} }
// "lazyCodeLoading": "requiredComponents" // 依赖按需注入
}, },
"mp-alipay": { // "lazyCodeLoading": "requiredComponents" // 依赖按需注入
"usingComponents": true, "mp-alipay" : {
"uniStatistics": { "usingComponents" : true,
"enable": false "uniStatistics" : {
"enable" : false
} }
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true, "usingComponents" : true,
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true, "usingComponents" : true,
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
}, },
"appid": "" "appid" : ""
}, },
"uniStatistics": { "uniStatistics" : {
"enable": false, "enable" : false,
"version": "2" "version" : "2"
}, },
"vueVersion": "2", "vueVersion" : "2",
"h5": { "h5" : {
"optimization": { "optimization" : {
"treeShaking": { "treeShaking" : {
"enable": true "enable" : true
} }
}, },
"title": "小说", "title" : "小说",
"router": { "router" : {
"base": "./" "base" : "./"
}, },
"uniStatistics": { "uniStatistics" : {
"enable": true "enable" : true
} }
}, },
"mp-jd": { "mp-jd" : {
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
}, },
"mp-kuaishou": { "mp-kuaishou" : {
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
}, },
"mp-lark": { "mp-lark" : {
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
}, },
"mp-qq": { "mp-qq" : {
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
}, },
"quickapp-webview-huawei": { "quickapp-webview-huawei" : {
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
}, },
"quickapp-webview-union": { "quickapp-webview-union" : {
"uniStatistics": { "uniStatistics" : {
"enable": false "enable" : false
} }
} }
} }
...@@ -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