|
@@ -1,6 +1,7 @@
|
|
|
<include file="block/meta_xw" />
|
|
<include file="block/meta_xw" />
|
|
|
<include file="block/header_xm" />
|
|
<include file="block/header_xm" />
|
|
|
<link rel="stylesheet" href="__TMPL__/static/css/inside.css">
|
|
<link rel="stylesheet" href="__TMPL__/static/css/inside.css">
|
|
|
|
|
+<link rel="stylesheet" href="__TMPL__/static/css/dianzan.css">
|
|
|
<!-- nav -->
|
|
<!-- nav -->
|
|
|
<include file="block/nav" />
|
|
<include file="block/nav" />
|
|
|
|
|
|
|
@@ -17,8 +18,20 @@
|
|
|
<h1>{$info.title}</h1>
|
|
<h1>{$info.title}</h1>
|
|
|
<div class="art-message">
|
|
<div class="art-message">
|
|
|
<span>发布时间:{:date('Y-m-d',$info.create_time)}</span>
|
|
<span>发布时间:{:date('Y-m-d',$info.create_time)}</span>
|
|
|
- <span>浏览量:{$info.hits}</span>
|
|
|
|
|
|
|
+ <!-- <span>浏览量:{$info.hits}</span> -->
|
|
|
|
|
+ <span>浏览量:<?php $ly=rand(100,999);echo $ly;?></span>
|
|
|
<span>来源:{$info.author|default='站内'}</span>
|
|
<span>来源:{$info.author|default='站内'}</span>
|
|
|
|
|
+ <span style="margin:0px 0px 0px 5px;">点赞量:</span><span id="praise-txt" style="margin:0px 0px 0px 0px;"><?php echo intval($ly/3);?></span>
|
|
|
|
|
+ <!-- {$info.hits} -->
|
|
|
|
|
+
|
|
|
|
|
+ <span>
|
|
|
|
|
+ <!-- -->
|
|
|
|
|
+ <div class="praise">
|
|
|
|
|
+ <span id="praise"><img src="__TMPL__/static/images/00.png" id="praise-img" ></span>
|
|
|
|
|
+
|
|
|
|
|
+ <span id="add-num" style="display: none;"><em class="add-animation hover">+1</em></span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="remark">
|
|
<div class="remark">
|
|
|
概述:{$info.description}
|
|
概述:{$info.description}
|
|
@@ -122,6 +135,37 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+ /*
|
|
|
|
|
+ * 动态点赞
|
|
|
|
|
+ * 此效果包含css3,部分浏览器不兼容(如:IE10以下的版本)
|
|
|
|
|
+ */
|
|
|
|
|
+ $(function(){
|
|
|
|
|
+ $("#praise").click(function(){
|
|
|
|
|
+ var praise_img = $("#praise-img");
|
|
|
|
|
+ var text_box = $("#add-num");
|
|
|
|
|
+ var praise_txt = $("#praise-txt");
|
|
|
|
|
+ var num=parseInt(praise_txt.text());
|
|
|
|
|
+ if(praise_img.attr("src") == ("__TMPL__/static/images/11.png")){
|
|
|
|
|
+ $(this).html("<img src='__TMPL__/static/images/00.png' id='praise-img' class='animation' />");
|
|
|
|
|
+ praise_txt.removeClass("hover");
|
|
|
|
|
+ text_box.show().html("<em class='add-animation'>-1</em>");
|
|
|
|
|
+ $(".add-animation").removeClass("hover");
|
|
|
|
|
+ num -=1;
|
|
|
|
|
+ praise_txt.text(num)
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $(this).html("<img src='__TMPL__/static/images/11.png' id='praise-img' class='animation' />");
|
|
|
|
|
+ praise_txt.addClass("hover");
|
|
|
|
|
+ text_box.show().html("<em class='add-animation'>+1</em>");
|
|
|
|
|
+ $(".add-animation").addClass("hover");
|
|
|
|
|
+ num +=1;
|
|
|
|
|
+ praise_txt.text(num)
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
<!-- content over -->
|
|
<!-- content over -->
|
|
|
<!-- 页脚 -->
|
|
<!-- 页脚 -->
|