Commit c8594842 authored by jyx's avatar jyx

优化收藏列表变动

parent 2187139f
......@@ -54,7 +54,6 @@ let startReadTime = null; // 开始阅读时间
*/
function startCountReadTime() {
startReadTime = new Date();
console.log('AAAAAA---startCountReadTime------->')
}
/**
* 停止阅读计时
......@@ -80,8 +79,6 @@ function endCountReadTime() {
count = endReadTime.getTime() - dayStart.getTime();
}
startReadTime = null;
console.log('AAAAAA---endCountReadTime------->' + count)
setReadTimeCount(count);
}
......@@ -290,7 +287,9 @@ function getBookBeanPackData(callback) {
function getCollects(callback) {
apiPOST({
url: "/book/collectList",
data: {},
data: {
reader: true
},
callback
})
}
......
......@@ -29,6 +29,7 @@
this.initData();
// 监听收藏变动
watchCollectionChange(() => {
console.log('LLLLLLLLLLLLLLLL')
this.refreshCollect();
}, this);
},
......
......@@ -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
......
{
"name": "reader",
"appid": "__UNI__C390C5A",
"description": "",
"versionName": "1.0.0",
"versionCode": 1000,
"transformPx": false,
"name" : "reader",
"appid" : "__UNI__C390C5A",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : 1000,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus": {
"compatible": {
"ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": false,
"autoclose": true,
"delay": 0
"app-plus" : {
"compatible" : {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
/* 模块配置 */
"modules": {
"Payment": {}
"modules" : {
"Payment" : {}
},
/* 应用发布信息 */
"distribute": {
"distribute" : {
/* android打包配置 */
"android": {
"permissions": [
"android" : {
"permissions" : [
"<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_WIFI_STATE\"/>",
......@@ -36,194 +36,194 @@
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>"
],
"permissionExternalStorage": {
"request": "none",
"prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
"permissionExternalStorage" : {
"request" : "none",
"prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
},
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"],
"autoSdkPermissions": true,
"schemes": ""
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"autoSdkPermissions" : true,
"schemes" : ""
},
/* ios打包配置 */
"ios": {
"idfa": false,
"privacyDescription": {
"NSPhotoLibraryUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。",
"NSCameraUsageDescription": "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。",
"NSPhotoLibraryAddUsageDescription": "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
"ios" : {
"idfa" : false,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的相册读取权限。",
"NSCameraUsageDescription" : "您在完成实名认证的过程中需要上传相关证件照片,故需获取您的拍照权限。",
"NSPhotoLibraryAddUsageDescription" : "用于APP日常运行过程中文件存储与读取,包括但不限于上传下载、日志文件等。"
},
"urltypes": "twofiveone"
"urltypes" : "twofiveone"
},
/* SDK配置 */
"sdkConfigs": {
"share": {
"weixin": {
"appid": "",
"UniversalLinks": ""
}
},
"oauth": {},
"ad": {},
"payment": {
"weixin": {
"__platform__": ["ios", "android"],
"appid": "wxaa277a94b5a33c63",
"UniversalLinks": ""
}
},
"speech": {}
},
"icons": {
"android": {
"hdpi": "",
"xhdpi": "",
"xxhdpi": "",
"xxxhdpi": ""
},
"ios": {
"appstore": "",
"ipad": {
"app": "",
"app@2x": "",
"notification": "",
"notification@2x": "",
"proapp@2x": "",
"settings": "",
"settings@2x": "",
"spotlight": "",
"spotlight@2x": ""
},
"iphone": {
"app@2x": "",
"app@3x": "",
"notification@2x": "",
"notification@3x": "",
"settings@2x": "",
"settings@3x": "",
"spotlight@2x": "",
"spotlight@3x": ""
}
}
},
"splashscreen": {
"androidStyle": "default",
"useOriginalMsgbox": true,
"alwaysShowBeforeRender": false,
"autoclose": false,
"waiting": false,
"delay": 0,
"iosStyle": "common",
"android": {
"hdpi": "",
"xhdpi": "",
"xxhdpi": ""
},
"ios": {
"storyboard": "unpackage/res/splash/LaunchScreen.storyboard_.zip"
}
}
},
"uniStatistics": {
"enable": true
"sdkConfigs" : {
"share" : {
"weixin" : {
"appid" : "",
"UniversalLinks" : ""
}
},
"oauth" : {},
"ad" : {},
"payment" : {
"weixin" : {
"__platform__" : [ "ios", "android" ],
"appid" : "wxaa277a94b5a33c63",
"UniversalLinks" : ""
}
},
"speech" : {}
},
"icons" : {
"android" : {
"hdpi" : "",
"xhdpi" : "",
"xxhdpi" : "",
"xxxhdpi" : ""
},
"ios" : {
"appstore" : "",
"ipad" : {
"app" : "",
"app@2x" : "",
"notification" : "",
"notification@2x" : "",
"proapp@2x" : "",
"settings" : "",
"settings@2x" : "",
"spotlight" : "",
"spotlight@2x" : ""
},
"iphone" : {
"app@2x" : "",
"app@3x" : "",
"notification@2x" : "",
"notification@3x" : "",
"settings@2x" : "",
"settings@3x" : "",
"spotlight@2x" : "",
"spotlight@3x" : ""
}
}
},
"splashscreen" : {
"androidStyle" : "default",
"useOriginalMsgbox" : true,
"alwaysShowBeforeRender" : false,
"autoclose" : false,
"waiting" : false,
"delay" : 0,
"iosStyle" : "common",
"android" : {
"hdpi" : "",
"xhdpi" : "",
"xxhdpi" : ""
},
"ios" : {
"storyboard" : "unpackage/res/splash/LaunchScreen.storyboard_.zip"
}
}
},
"uniStatistics" : {
"enable" : true
}
},
/* 快应用特有相关 */
"quickapp": {},
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin": {
"appid": "wxa2aadd56bb72a6d9",
"setting": {
"urlCheck": false,
"es6": false,
"postcss": true,
"minified": true
"mp-weixin" : {
"appid" : "wxa2aadd56bb72a6d9",
"setting" : {
"urlCheck" : false,
"es6" : false,
"postcss" : true,
"minified" : true
},
"usingComponents": true,
"uniStatistics": {
"enable": true
"usingComponents" : true,
"uniStatistics" : {
"enable" : true
},
"optimization": {
"subPackages": true
"optimization" : {
"subPackages" : true
},
"plugins": {
"novel-plugin": {
"version": "latest",
"provider": "wx293c4b6097a8a4d0",
"genericsImplementation": {
"novel": {
"charge-dialog": "/components/charge-dialog/charge-dialog"
"plugins" : {
"novel-plugin" : {
"version" : "latest",
"provider" : "wx293c4b6097a8a4d0",
"genericsImplementation" : {
"novel" : {
"charge-dialog" : "/components/charge-dialog/charge-dialog"
}
}
}
}
// "lazyCodeLoading": "requiredComponents" // 依赖按需注入
},
"mp-alipay": {
"usingComponents": true,
"uniStatistics": {
"enable": false
// "lazyCodeLoading": "requiredComponents" // 依赖按需注入
"mp-alipay" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"mp-baidu": {
"usingComponents": true,
"uniStatistics": {
"enable": false
"mp-baidu" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
}
},
"mp-toutiao": {
"usingComponents": true,
"uniStatistics": {
"enable": false
"mp-toutiao" : {
"usingComponents" : true,
"uniStatistics" : {
"enable" : false
},
"appid": ""
"appid" : ""
},
"uniStatistics": {
"enable": false,
"version": "2"
"uniStatistics" : {
"enable" : false,
"version" : "2"
},
"vueVersion": "2",
"h5": {
"optimization": {
"treeShaking": {
"enable": true
"vueVersion" : "2",
"h5" : {
"optimization" : {
"treeShaking" : {
"enable" : true
}
},
"title": "小说",
"router": {
"base": "./"
"title" : "小说",
"router" : {
"base" : "./"
},
"uniStatistics": {
"enable": true
"uniStatistics" : {
"enable" : true
}
},
"mp-jd": {
"uniStatistics": {
"enable": false
"mp-jd" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-kuaishou": {
"uniStatistics": {
"enable": false
"mp-kuaishou" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-lark": {
"uniStatistics": {
"enable": false
"mp-lark" : {
"uniStatistics" : {
"enable" : false
}
},
"mp-qq": {
"uniStatistics": {
"enable": false
"mp-qq" : {
"uniStatistics" : {
"enable" : false
}
},
"quickapp-webview-huawei": {
"uniStatistics": {
"enable": false
"quickapp-webview-huawei" : {
"uniStatistics" : {
"enable" : false
}
},
"quickapp-webview-union": {
"uniStatistics": {
"enable": false
"quickapp-webview-union" : {
"uniStatistics" : {
"enable" : false
}
}
}
......@@ -54,7 +54,8 @@
},
requestParam: function() {
return {
searchName: this.keyword
searchName: this.keyword,
reader:true
}
}
},
......
......@@ -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 => {
......@@ -68,6 +69,7 @@ const proto = {
this.bookshelfStatus = 0
this.nm_uncollect(customId)
}
noticeCollectionListChange(customId, this.bookshelfStatus)
nm.setBookshelfStatus({
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