comment_details.html 6.4 KB

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