123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
- <script type="text/javascript" src="/static/layer/layer.js"></script>
- <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.css">
- <title>完成详情</title>
- <style>
- body{
- background-color: #F1F1F1;
- }
- .container{
- max-width: 750px;
- height: auto;
- margin: 0 auto;
- padding: 0px 6px;
- }
- .order-evaluate-info{
- width: 100%;
- height: 200px;
- background-color: #FFFFFF;
- border-radius: 10px;
- margin-top: 5px;
- padding: 0px 13px;
- }
- .order-evaluate-title{
- width: 100%;
- height: 35px;
- line-height: 35px;
- border-bottom: 1.5px solid #148d8f;
- color: #148d8f;
- font-weight: 600;
- font-size: 14px;
- letter-spacing: 1px;
- }
- .evaluate-level{
- width: 100%;
- height: 35px;
- line-height: 35px;
- /*border-bottom: 1.5px solid #86C2CC;*/
- }
- .myfloatleft{
- float:left;
- }
- .myfloatleft span{
- font-size: 25px;
- letter-spacing: 2px;
- color: orange;
- }
- .myfloatright{
- display: inline-block;
- float: right;
- padding-right: 10px;
- letter-spacing: 1px;
- }
- .comment-content{
- width: 100%;
- height: 120px;
- margin-top: 8px;
- overflow: hidden;
- }
- .comment-text{
- width: 100%;
- height: auto;
- font-size: 14px;
- letter-spacing: 1px;
- }
- .footer-back{
- position: fixed;
- z-index: 1000;
- width: 100%;
- height: 45px;
- line-height: 45px;
- background-color: #ffffff;
- bottom: 0;
- left: 0;
- box-shadow: 0px 0px 10px 0px rgba(26, 25, 26, 0.05);
- display: table-cell;
- vertical-align: middle;
- text-align: center;
- }
- .footer-back a img{
- width: 43px;
- height: 43px;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <!-- 评价-->
- <div class="order-evaluate-info">
- <div class="order-evaluate-title">评价</div>
- {if $info['score'] == 1}
- <div class="evaluate-level">
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div class="myfloatright">较差</div>
- </div>
- {elseif($info['score'] == 2)}
- <div class="evaluate-level">
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div class="myfloatright">一般</div>
- </div>
- {elseif($info['score'] == 3)}
- <div class="evaluate-level">
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div class="myfloatright">良好</div>
- </div>
- {elseif($info['score'] == 4)}
- <div class="evaluate-level">
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div class="myfloatright">优秀</div>
- </div>
- {elseif($info['score'] == 5)}
- <div class="evaluate-level">
- <div id="1" class="myfloatleft"><span>★</span></div>
- <div id="2" class="myfloatleft"><span>★</span></div>
- <div id="3" class="myfloatleft"><span>★</span></div>
- <div id="4" class="myfloatleft"><span>★</span></div>
- <div id="5" class="myfloatleft"><span>★</span></div>
- <div class="myfloatright">完美</div>
- </div>
- {else /}
- <div class="evaluate-level">
- <div id="1" class="myfloatleft" onmouseover="sidle('1')" οnmοuseοut="myclear()"><span>★</span></div>
- <div id="2" class="myfloatleft" onmouseover="sidle('2')" οnmοuseοut="myclear()"><span>★</span></div>
- <div id="3" class="myfloatleft" onmouseover="sidle('3')" οnmοuseοut="myclear()"><span>★</span></div>
- <div id="4" class="myfloatleft" onmouseover="sidle('4')" οnmοuseοut="myclear()"><span>★</span></div>
- <div id="5" class="myfloatleft" onmouseover="sidle('5')" οnmοuseοut="myclear()"><span>★</span></div>
- <div class="myfloatright">完美</div>
- </div>
- {/if}
- <div class="comment-content">
- <div class="comment-text">{$info['content']}</div>
- </div>
- </div>
- <div class="footer-back">
- <a href="javascript:;" onclick="javascript:history.back(-1);"><img src="/img/back.png"></a>
- </div>
- </div>
- </body>
- </html>
- <script>
- function sidle(myvalue){
- if(myvalue==1){
- $('.myfloatright').html('较差')
- }
- if(myvalue==2){
- $('.myfloatright').html('一般')
- }
- if(myvalue==3){
- $('.myfloatright').html('良好')
- }
- if(myvalue==4){
- $('.myfloatright').html('优秀')
- }
- if(myvalue==5){
- $('.myfloatright').html('完美')
- }
- for(var i=1;i<=5;i++){//将所有都变白星星
- document.getElementById(""+i).innerHTML="<span>☆</span>";
- document.getElementById(""+i).setAttribute("style","color:black");
- }
- for(var i=1;i<=myvalue;i++){//通过传入的id(也是一个数字)确定id以下的div都是橙色星星。
- document.getElementById(""+i).innerHTML="<span>★</span>";
- document.getElementById(""+i).setAttribute("style","color:orange");
- }
- }
- </script>
|