-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharticle-search.html
More file actions
141 lines (120 loc) · 4.55 KB
/
article-search.html
File metadata and controls
141 lines (120 loc) · 4.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>文章</title>
<link rel="icon" href="img/huixing.png" type="image/x-icon"/>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/loading.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" type="text/css" href="css/header-tpl.css"/>
<link rel="stylesheet" href="css/article-search.css" />
</head>
<body lang="zh-CN" class="reader-black-font">
<div class="comet-main block-comet-main-wrap">
<div class="navbar-fixed-container navbar-fixed-container-hook">
</div>
<div class="mian-container">
<div class="container">
<div class="top-nav-wrap top-nav-xs">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="option">
<div class="title">找文章</div>
<div class="search">
<div class="search-wrap">
<input type="text" class="search_bar" placeholder="搜索标题/内容">
<span class="search-icon search-click-hook"></span>
</div>
</div>
</div>
</div>
</div>
</div>
<!--动画加载-->
<div class="loading refresh_load topic_article_load" >
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="article-top-box">
</div>
</div>
<div class="load-more-container-wrap">
<div class="container">
<div class="load-more-wrap load-more-hook">
<div class="loader1 loader" style="display: none">
<div></div>
<div></div>
<div></div>
</div>
<div class="loading-more" style="display: none">
加载更多
</div>
</div>
<div class="load-more-wrap no-more-hook" style="display: none">
<div class="loading-more">
已无更多数据
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/html" id="article_tpl">
<%for(var i = 0; i < list.length; i++) {%>
<div class="hot_zone bottom_line">
<div class="article-detail">
<div class="article-content">
<div class="article-info">
<%if(list[i].userPic == null ){%>
<img src="img/normal-user.png" class="article-creator-pic"/>
<%} else {%>
<img src="<%=list[i].userPic %>" class="article-creator-pic"/>
<% } %>
<span class="real_name"><%=list[i].realName %></span>
<span class="article-time"><%=list[i].createTime.split(' ')[0] %></span>
<h3 class="article-title">
<a href="comment.html?reviewId=<%=list[i].reviewId %>" class="textTitle"><%=list[i].textTitle %></a>
</h3>
</div>
<div style="display:flex">
<div class="article-introduce">
<a href="comment.html?reviewId=<%=list[i].reviewId %>&projectId=<%=list[i].projectId %>" style="color: #959595">
<%:=list[i].textContent%>
</a>
</div>
<!-- 长文评测时显示项目 -->
<%if(list[i].type == 2){%>
<div class="article-icon">
<a href="chain-detail.html?projectId=<%=list[i].projectId %>">
<img class="article-img" src="<%=list[i].projectLogo %>">
</a>
</div>
<%}%>
</div>
<div class="meta">
<a href="comment.html?reviewId=<%=list[i].reviewId %>#toComments" style="margin-right:20px">
<i class="fa fa-commenting"></i> <%=list[i].review %>
</a>
<a class="like-button" data-reviewId="<%:=list[i].reviewId%>"><i class="fa fa-heart"></i> <%=list[i].likes %></a>
</div>
</div>
</div>
</div>
<%}%>
</script>
<script src="js/jquery-2.1.1.js"></script>
<script src="js/template.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/common.js"></script>
<script src="js/article-search.js"></script>
</body>
</html>