|
@@ -1,3 +1,4 @@
|
|
|
|
+require('../css/information.less')
|
|
const {
|
|
const {
|
|
post,
|
|
post,
|
|
throttle,
|
|
throttle,
|
|
@@ -33,17 +34,17 @@ function getInfomation() {
|
|
}
|
|
}
|
|
var list = data.details;
|
|
var list = data.details;
|
|
$("h1").html(showName);
|
|
$("h1").html(showName);
|
|
- $("h1").css({
|
|
|
|
- "color": "#267FD7",
|
|
|
|
- "borderBottom": "4px solid #E9E9E9",
|
|
|
|
- "padding": "0px 60px 50px 0px"
|
|
|
|
- });
|
|
|
|
|
|
+ // $("h1").css({
|
|
|
|
+ // "color": "#267FD7",
|
|
|
|
+ // "borderBottom": "4px solid #E9E9E9",
|
|
|
|
+ // "padding": "0px 60px 50px 0px"
|
|
|
|
+ // });
|
|
for (var i = 0; i < list.length; i++) {
|
|
for (var i = 0; i < list.length; i++) {
|
|
item = list[i];
|
|
item = list[i];
|
|
item.content = item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
|
|
item.content = item.content.replace(/{imageUrlPrefix}/g, imageUrlPrefix);
|
|
anchors = '<li><i></i><a href="#' + item.title +
|
|
anchors = '<li><i></i><a href="#' + item.title +
|
|
'">' + item.title + '</a></li><li class="anchor-line"></li>';
|
|
'">' + item.title + '</a></li><li class="anchor-line"></li>';
|
|
- str = '<div class="title"><h2 id="' + item.title +
|
|
|
|
|
|
+ str = '<div class="infoBox"><div class="title"> <div class= "circleBox"><span class="circle"> <span></div> <h2 class="titleH2" id="' + item.title +
|
|
'">'
|
|
'">'
|
|
if (getUrlArgObject('type') == 8) {
|
|
if (getUrlArgObject('type') == 8) {
|
|
str += '【' + item.title + '】'
|
|
str += '【' + item.title + '】'
|
|
@@ -51,10 +52,8 @@ function getInfomation() {
|
|
str += item.title
|
|
str += item.title
|
|
}
|
|
}
|
|
str += '</h2></div>' +
|
|
str += '</h2></div>' +
|
|
- '<div><pre>' + item.content + '</pre><div>';
|
|
|
|
- if (i != list.length - 1 && getUrlArgObject('type') != 8) {
|
|
|
|
- str += '<div class="line"></div>'
|
|
|
|
- }
|
|
|
|
|
|
+ '<div><pre>' + item.content + '</pre><div></div>';
|
|
|
|
+ str = `<div class="infoWrapper">${str}</div>`
|
|
$(".infos").append(str);
|
|
$(".infos").append(str);
|
|
$(".anchors ul").append(anchors);
|
|
$(".anchors ul").append(anchors);
|
|
}
|
|
}
|