增加emoji支持,界面优化

This commit is contained in:
xiongxiaoyang 2019-11-11 18:06:25 +08:00
parent 910e0816df
commit 3facf6cc21
3 changed files with 21 additions and 18 deletions

View File

@ -1,16 +1,16 @@
/* /*
Navicat MySQL Data Transfer Navicat MySQL Data Transfer
Source Server : 148.70.59.92 Source Server :
Source Server Version : 80013 Source Server Version : 80017
Source Host : 148.70.59.92:3306 Source Host : 120.79.187.46:3306
Source Database : books Source Database : books
Target Server Type : MYSQL Target Server Type : MYSQL
Target Server Version : 80013 Target Server Version : 80017
File Encoding : 65001 File Encoding : 65001
Date: 2019-10-23 17:43:04 Date: 2019-11-11 17:43:17
*/ */
SET FOREIGN_KEY_CHECKS=0; SET FOREIGN_KEY_CHECKS=0;
@ -31,10 +31,10 @@ CREATE TABLE `book` (
`visit_count` bigint(20) DEFAULT '103', `visit_count` bigint(20) DEFAULT '103',
`update_time` datetime NOT NULL, `update_time` datetime NOT NULL,
`soft_cat` int(10) DEFAULT '0', `soft_cat` int(10) DEFAULT '0',
`soft_tag` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '', `soft_tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `key_uniq_name_author` (`book_name`,`author`) USING BTREE UNIQUE KEY `key_uniq_name_author` (`book_name`,`author`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6117 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=6320 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ---------------------------- -- ----------------------------
-- Table structure for book_content -- Table structure for book_content
@ -45,10 +45,10 @@ CREATE TABLE `book_content` (
`book_id` bigint(20) NOT NULL, `book_id` bigint(20) NOT NULL,
`index_id` bigint(20) DEFAULT NULL, `index_id` bigint(20) DEFAULT NULL,
`index_num` int(5) NOT NULL, `index_num` int(5) NOT NULL,
`content` mediumtext CHARACTER SET utf8 COLLATE utf8_general_ci, `content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `key_bookid_indexnum` (`book_id`,`index_num`) USING BTREE UNIQUE KEY `key_bookid_indexnum` (`book_id`,`index_num`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=3148778 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=3158081 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ---------------------------- -- ----------------------------
-- Table structure for book_index -- Table structure for book_index
@ -58,10 +58,10 @@ CREATE TABLE `book_index` (
`id` bigint(20) NOT NULL AUTO_INCREMENT, `id` bigint(20) NOT NULL AUTO_INCREMENT,
`book_id` bigint(20) NOT NULL, `book_id` bigint(20) NOT NULL,
`index_num` int(5) NOT NULL, `index_num` int(5) NOT NULL,
`index_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL, `index_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `unq_bookid_indexNum` (`book_id`,`index_num`) UNIQUE KEY `unq_bookid_indexNum` (`book_id`,`index_num`)
) ENGINE=InnoDB AUTO_INCREMENT=3563133 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=3572436 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ---------------------------- -- ----------------------------
-- Table structure for category -- Table structure for category
@ -74,7 +74,7 @@ CREATE TABLE `category` (
`get_url` varchar(100) DEFAULT NULL, `get_url` varchar(100) DEFAULT NULL,
`req_url` varchar(100) DEFAULT '本站请求的URL', `req_url` varchar(100) DEFAULT '本站请求的URL',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ---------------------------- -- ----------------------------
-- Table structure for screen_bullet -- Table structure for screen_bullet
@ -87,7 +87,7 @@ CREATE TABLE `screen_bullet` (
`create_time` datetime NOT NULL, `create_time` datetime NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `key_content_id` (`content_id`) KEY `key_content_id` (`content_id`)
) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=79 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ---------------------------- -- ----------------------------
-- Table structure for user -- Table structure for user
@ -98,7 +98,7 @@ CREATE TABLE `user` (
`login_name` varchar(50) NOT NULL, `login_name` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL, `password` varchar(100) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ---------------------------- -- ----------------------------
-- Table structure for user_ref_book -- Table structure for user_ref_book
@ -109,4 +109,4 @@ CREATE TABLE `user_ref_book` (
`user_id` bigint(20) NOT NULL, `user_id` bigint(20) NOT NULL,
`book_id` bigint(20) NOT NULL, `book_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

View File

@ -58,8 +58,9 @@ index:
- {bookName: 我有一座恐怖屋,bookAuthor: 我会修空调} - {bookName: 我有一座恐怖屋,bookAuthor: 我会修空调}
#mysql编码
mysql:
charset: utf8mb4

View File

@ -157,7 +157,7 @@
position: fixed; position: fixed;
width: 100%; width: 100%;
left: 0px; left: 0px;
bottom: 20px; bottom: 110px;
text-align: center; text-align: center;
} }
@ -257,6 +257,8 @@
var s = document.getElementsByTagName("script")[0]; var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s); s.parentNode.insertBefore(bp, s);
$("#chaptercontent").css("min-height",($(window).height()-260)+"px");
})(); })();