人人商城

detail.html 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {template 'common/header'}
  2. <div id="activity-detail">
  3. <style type="text/css">
  4. @charset "utf-8";
  5. html{background:#FFF;color:#000;}
  6. body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td{margin:0;padding:0;}
  7. table{border-collapse:collapse;border-spacing:0;}
  8. fieldset, img{border:0;}
  9. address, caption, cite, code, dfn, th, var{font-style:normal;font-weight:normal;}
  10. ol, ul{list-style:none;}
  11. caption, th{text-align:left;}
  12. h1, h2, h3, h4, h5, h6{font-size:100%;font-weight:normal;}
  13. q:before, q:after{content:'';}
  14. abbr, acronym{border:0;font-variant:normal;}
  15. sup{vertical-align:text-top;}
  16. sub{vertical-align:text-bottom;}
  17. input, textarea, select{font-family:inherit;font-size:inherit;font-weight:inherit;}
  18. input, textarea, select{font-size:100%;}
  19. legend{color:#000;}
  20. body{color:#222;font-family:Helvetica, STHeiti STXihei, Microsoft JhengHei, Microsoft YaHei, Tohoma, Arial;height:100%;position:relative;}
  21. body > .tips{display:none;left:50%;padding:20px;position:fixed;text-align:center;top:50%;width:200px;z-index:100;}
  22. .page{padding:15px;}
  23. .page .page-error, .page .page-loading{line-height:30px;position:relative;text-align:center;}
  24. #activity-detail .page-bizinfo{border-bottom:1px dotted #CCC;}
  25. #activity-detail .page-bizinfo .header{padding:10px 10px 10px;}
  26. #activity-detail .page-bizinfo .header #activity-name{color:#000;font-size:20px;margin-bottom:5px;font-weight:bold;word-break:normal;word-wrap:break-word;}
  27. #activity-detail .page-bizinfo .header #post-date{color:#8c8c8c;font-size:11px;margin:0;}
  28. #activity-detail .page-content{padding:10px;}
  29. #activity-detail .page-content .media{margin-bottom:18px;}
  30. #activity-detail .page-content .media img{width:100%;}
  31. #activity-detail .page-content .text{color:#3e3e3e;font-size:1.5;line-height:1.5;width: 100%;overflow: hidden;zoom:1;}
  32. #activity-detail .page-content .text p{min-height:1.5em;min-height: 1.5em;word-wrap: break-word;word-break:break-all;}
  33. #activity-list .header{font-size:20px;}
  34. #activity-list .page-list{border:1px solid #ccc;border-radius:5px;margin:18px 0;overflow:hidden;}
  35. #activity-list .page-list .line.btn{border-radius:0;margin:0;text-align:left;}
  36. #activity-list .page-list .line.btn .checkbox{height:25px;line-height:25px;padding-left:35px;position:relative;}
  37. #activity-list .page-list .line.btn .checkbox .icons{background-color:#ccc;left:0;position:absolute;top:0;}
  38. #activity-list .page-list .line.btn.off .icons{background-image:none;}
  39. #activity-list #save.btn{background-image:linear-gradient(#22dd22, #009900);background-image:-moz-linear-gradient(#22dd22, #009900);background-image:-ms-linear-gradient(#22dd22, #009900);background-image:-o-linear-gradient(#22dd22, #009900);background-image:-webkit-gradient(linear, left top, left bottom, from(#22dd22), to(#009900));background-image:-webkit-linear-gradient(#22dd22, #009900);}
  40. .vm{vertical-align:middle;}
  41. .tc{text-align:center;}
  42. .db{display:block;}
  43. .dib{display:inline-block;}
  44. .b{font-weight:700;}
  45. .clr{clear:both;}
  46. .text img{max-width:100%;}
  47. .page-url{padding-top:18px;}
  48. .page-url-link{color:#607FA6;font-size:14px;text-decoration:none;text-shadow:0 1px #ffffff;-webkit-text-shadow:0 1px #ffffff;-moz-text-shadow:0 1px #ffffff;}
  49. #mbutton{padding:15px 10px 15px 10px; overflow:hidden; border-bottom:1px #DDD solid;}
  50. #mbutton > span{float:right; display:inline-block; background:#666; border:1px #DDD solid; color:#FFF; height:30px; line-height:30px; padding:0 10px; margin-left:10px;}
  51. #mcover{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);display:none;z-index:20000;}
  52. #mcover img{position:fixed;right: 18px;top:5px;width:260px;height:180px;z-index:20001;}
  53. .message { border-top: 1px dashed #a3a3a3;position: relative;}
  54. .message::before {content: '最新留言'; background: #fff;position: absolute;top: -0.8em;left: 50%;margin-left: -2em;padding: 0 5px;}
  55. .message-head {text-align: right;margin: 20px 0;}
  56. .message-head a{color: #428bca;}
  57. .message-list {}
  58. .message-content {display: flex;font-size: 14px;margin-bottom: 10px;}
  59. .message-content .logo {width: 40px;height: 40px;margin-right: 10px;}
  60. .message-list .name, .message-list .time {color: #999999;}
  61. .reply-list {margin-left: 50px;}
  62. .reply-item {border-top: 1px solid #e7e7eb;padding: 10px 0;}
  63. .reply-item .head:before {content: '';border-left: 2px solid #428bca;margin-right: 5px;}
  64. </style>
  65. <div class="page-bizinfo">
  66. <div class="header">
  67. <h1 id="activity-name">{$detail['title']}</h1>
  68. <span id="post-date">
  69. <span>{php echo date("Y-m-d", $detail['createtime']);}</span>
  70. <span>{$detail['author']}</span>
  71. {if !empty($detail['source'])}<a href="{$detail['source']}">文章来源</a>{/if}
  72. {if !empty($subscribeurl)}<a href="{$subscribeurl}">{$_W['account']['name']}</a>{/if}
  73. <span>阅读:{$detail['click']}次</span>
  74. </span>
  75. </div>
  76. </div>
  77. <div class="page-content">
  78. <div class="text">
  79. {$detail['content']}
  80. </div>
  81. {if !empty($setting['comment_status'])}
  82. <div class="message">
  83. <div class="message-head">
  84. <a href="{php echo murl('site/site/comment', array('article_id' => $id))}">写留言 <img src="{$_W['siteroot']}app/resource/images/reply.png" alt=""></a>
  85. </div>
  86. {loop $article_lists $comment}
  87. <div class="message-list">
  88. <div content="message-item">
  89. <div class="message-content">
  90. <img src="{php echo $comment['avatar']}" alt="" class="logo">
  91. <div class="message-item-content">
  92. <p class="name">{php echo $comment['username']}</p>
  93. <p class="content">
  94. {php echo $comment['content']}
  95. </p>
  96. <p class="time">
  97. {php echo $comment['createtime']}
  98. </p>
  99. </div>
  100. </div>
  101. {loop $comment['son_comment'] $son_comment}
  102. <div class="reply-list">
  103. <div class="reply-item">
  104. <div class="head">
  105. 作者回复
  106. </div>
  107. <p class="content">
  108. {php echo $comment['content']}
  109. </p>
  110. <p class="time">
  111. {php echo date('Y-m-d H:i:s', $son_comment['createtime']);}
  112. </p>
  113. </div>
  114. </div>
  115. {/loop}
  116. </div>
  117. </div>
  118. {/loop}
  119. {$pager}
  120. </div>
  121. {/if}
  122. </div>
  123. </div>
  124. {template 'common/footer'}