comment_details.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport"
  6. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8. <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
  9. <script type="text/javascript" src="/static/layer/layer.js"></script>
  10. <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.css">
  11. <title>完成详情</title>
  12. <style>
  13. body{
  14. background-color: #F1F1F1;
  15. }
  16. .container{
  17. max-width: 750px;
  18. height: auto;
  19. margin: 0 auto;
  20. padding: 0px 6px;
  21. }
  22. .order-evaluate-info{
  23. width: 100%;
  24. height: 200px;
  25. background-color: #FFFFFF;
  26. border-radius: 10px;
  27. margin-top: 5px;
  28. padding: 0px 13px;
  29. }
  30. .order-evaluate-title{
  31. width: 100%;
  32. height: 35px;
  33. line-height: 35px;
  34. border-bottom: 1.5px solid #148d8f;
  35. color: #148d8f;
  36. font-weight: 600;
  37. font-size: 14px;
  38. letter-spacing: 1px;
  39. }
  40. .evaluate-level{
  41. width: 100%;
  42. height: 35px;
  43. line-height: 35px;
  44. /*border-bottom: 1.5px solid #86C2CC;*/
  45. }
  46. .myfloatleft{
  47. float:left;
  48. }
  49. .myfloatleft span{
  50. font-size: 25px;
  51. letter-spacing: 2px;
  52. color: orange;
  53. }
  54. .myfloatright{
  55. display: inline-block;
  56. float: right;
  57. padding-right: 10px;
  58. letter-spacing: 1px;
  59. }
  60. .comment-content{
  61. width: 100%;
  62. height: 120px;
  63. margin-top: 8px;
  64. overflow: hidden;
  65. }
  66. .comment-text{
  67. width: 100%;
  68. height: auto;
  69. font-size: 14px;
  70. letter-spacing: 1px;
  71. }
  72. .footer-back{
  73. position: fixed;
  74. z-index: 1000;
  75. width: 100%;
  76. height: 45px;
  77. line-height: 45px;
  78. background-color: #ffffff;
  79. bottom: 0;
  80. left: 0;
  81. box-shadow: 0px 0px 10px 0px rgba(26, 25, 26, 0.05);
  82. display: table-cell;
  83. vertical-align: middle;
  84. text-align: center;
  85. }
  86. .footer-back a img{
  87. width: 43px;
  88. height: 43px;
  89. }
  90. </style>
  91. </head>
  92. <body>
  93. <div class="container">
  94. <!-- 评价-->
  95. <div class="order-evaluate-info">
  96. <div class="order-evaluate-title">评价</div>
  97. {if $info['score'] == 1}
  98. <div class="evaluate-level">
  99. <div id="1" class="myfloatleft"><span>★</span></div>
  100. <div class="myfloatright">较差</div>
  101. </div>
  102. {elseif($info['score'] == 2)}
  103. <div class="evaluate-level">
  104. <div id="1" class="myfloatleft"><span>★</span></div>
  105. <div id="1" class="myfloatleft"><span>★</span></div>
  106. <div class="myfloatright">一般</div>
  107. </div>
  108. {elseif($info['score'] == 3)}
  109. <div class="evaluate-level">
  110. <div id="1" class="myfloatleft"><span>★</span></div>
  111. <div id="1" class="myfloatleft"><span>★</span></div>
  112. <div id="1" class="myfloatleft"><span>★</span></div>
  113. <div class="myfloatright">良好</div>
  114. </div>
  115. {elseif($info['score'] == 4)}
  116. <div class="evaluate-level">
  117. <div id="1" class="myfloatleft"><span>★</span></div>
  118. <div id="1" class="myfloatleft"><span>★</span></div>
  119. <div id="1" class="myfloatleft"><span>★</span></div>
  120. <div id="1" class="myfloatleft"><span>★</span></div>
  121. <div class="myfloatright">优秀</div>
  122. </div>
  123. {elseif($info['score'] == 5)}
  124. <div class="evaluate-level">
  125. <div id="1" class="myfloatleft"><span>★</span></div>
  126. <div id="2" class="myfloatleft"><span>★</span></div>
  127. <div id="3" class="myfloatleft"><span>★</span></div>
  128. <div id="4" class="myfloatleft"><span>★</span></div>
  129. <div id="5" class="myfloatleft"><span>★</span></div>
  130. <div class="myfloatright">完美</div>
  131. </div>
  132. {else /}
  133. <div class="evaluate-level">
  134. <div id="1" class="myfloatleft" onmouseover="sidle('1')" οnmοuseοut="myclear()"><span>★</span></div>
  135. <div id="2" class="myfloatleft" onmouseover="sidle('2')" οnmοuseοut="myclear()"><span>★</span></div>
  136. <div id="3" class="myfloatleft" onmouseover="sidle('3')" οnmοuseοut="myclear()"><span>★</span></div>
  137. <div id="4" class="myfloatleft" onmouseover="sidle('4')" οnmοuseοut="myclear()"><span>★</span></div>
  138. <div id="5" class="myfloatleft" onmouseover="sidle('5')" οnmοuseοut="myclear()"><span>★</span></div>
  139. <div class="myfloatright">完美</div>
  140. </div>
  141. {/if}
  142. <div class="comment-content">
  143. <div class="comment-text">{$info['content']}</div>
  144. </div>
  145. </div>
  146. <div class="footer-back">
  147. <a href="javascript:;" onclick="javascript:history.back(-1);"><img src="/img/back.png"></a>
  148. </div>
  149. </div>
  150. </body>
  151. </html>
  152. <script>
  153. function sidle(myvalue){
  154. if(myvalue==1){
  155. $('.myfloatright').html('较差')
  156. }
  157. if(myvalue==2){
  158. $('.myfloatright').html('一般')
  159. }
  160. if(myvalue==3){
  161. $('.myfloatright').html('良好')
  162. }
  163. if(myvalue==4){
  164. $('.myfloatright').html('优秀')
  165. }
  166. if(myvalue==5){
  167. $('.myfloatright').html('完美')
  168. }
  169. for(var i=1;i<=5;i++){//将所有都变白星星
  170. document.getElementById(""+i).innerHTML="<span>☆</span>";
  171. document.getElementById(""+i).setAttribute("style","color:black");
  172. }
  173. for(var i=1;i<=myvalue;i++){//通过传入的id(也是一个数字)确定id以下的div都是橙色星星。
  174. document.getElementById(""+i).innerHTML="<span>★</span>";
  175. document.getElementById(""+i).setAttribute("style","color:orange");
  176. }
  177. }
  178. </script>