PC 端 页面 head
This commit is contained in:
@@ -61,6 +61,11 @@ s{background: url(../images/iconC.png) no-repeat;}
|
||||
.headWrap_r .long .search_btn s{background-position: -30px 0;}
|
||||
.headWrap_r .search .search_btn:hover s{background-position: -30px 0;}
|
||||
|
||||
/* 首页 */
|
||||
.btn_toggle_mod_bang{
|
||||
width: 33px; line-height: 24px; text-align: center; border-radius: 4px; margin-left: 5px; cursor: pointer; font-size: 13px;
|
||||
}
|
||||
|
||||
/* 登陆 */
|
||||
.headWrap_r .login{float: right; position: relative; background: #fff; padding-top: 32px;}
|
||||
.headWrap_r .login .login_before{width: 100px; height: 18px; line-height: 20px; padding-left: 20px; cursor: pointer; display: block;}
|
||||
@@ -320,6 +325,8 @@ display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;}
|
||||
.find .opt ul li .on:hover{color: #fff;}
|
||||
.find .opt .no_bor{border-bottom: none;}
|
||||
|
||||
|
||||
|
||||
/*列表*/
|
||||
.result{background: #fff; width: 1100px; overflow: hidden;}
|
||||
.search_tip{text-align: center;}
|
||||
|
||||
@@ -126,9 +126,7 @@ function incShouCangFun(intId) {
|
||||
function addBookshelfFun(NovelInfo) {
|
||||
|
||||
if (!NovelInfo) {
|
||||
NovelInfo = JSON.parse(arrNovel)
|
||||
NovelInfo['c_sort_num'] = strChapterSort;
|
||||
NovelInfo['c_name'] = strChapterName;
|
||||
NovelInfo = arrNovel
|
||||
}
|
||||
|
||||
let arrBookshelf = JSON.parse(localStorage.getItem('strBookshelfKey')) || [];
|
||||
@@ -251,17 +249,14 @@ function displayBookshelf() {
|
||||
|
||||
// 加入阅读记录
|
||||
function addHistoryFun(NovelInfo) {
|
||||
|
||||
// 如果没有传入 NovelInfo,则使用 arrNovel 并补充字段
|
||||
if (!NovelInfo) {
|
||||
NovelInfo = JSON.parse(arrNovel);
|
||||
NovelInfo['c_sort_num'] = strChapterSort;
|
||||
NovelInfo['c_name'] = strChapterName;
|
||||
NovelInfo = arrNovel
|
||||
|
||||
}
|
||||
|
||||
// 获取本地存储中的历史记录
|
||||
let arrBookshelf = JSON.parse(localStorage.getItem('strHistoryKey')) || [];
|
||||
|
||||
// 检查书籍是否已存在
|
||||
const index = arrBookshelf.findIndex(item => item.n_id === NovelInfo.n_id);
|
||||
|
||||
@@ -379,7 +374,7 @@ function displayHistory() {
|
||||
// 方法1:使用 fetch API
|
||||
async function reportStats(data) {
|
||||
try {
|
||||
const response = await fetch('http://api.novel2.com/publish', {
|
||||
const response = await fetch(strPushApi+'/publish', {
|
||||
method: 'POST',
|
||||
// mode: 'no-cors', // 添加这行
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user