go_ping.html 4.3 KB
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>去点评</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/style.css">
</head>
<body style="background-color: #f6f6f6">
<div class="box">
    <div class="choose_ping_box">
        <div class="choose_ping">
            <ul>
                <li>
                    <img src="image/hao_on.png" />
                    <b>好评</b>
                </li>
                <li>
                    <img src="image/cha_off.png" />
                    <b>差评</b>
                </li>
            </ul>
        </div>
    </div>
    <div class="ping_content">
        <div class="ping_title">
            <img src="image/ping_icon.png"/>
            <b>教练评价</b>
        </div>
        <div class="pingList hao_cur">
            <span class="ping_active">专业</span>
            <span>负责</span>
            <span>敬业</span>
            <span>教学认真</span>
            <span>干练</span>
            <span>默默无闻</span>
        </div>
        <div class="pingList cha_cur">
            <span class="ping_active">不专业</span>
            <span>不负责</span>
            <span>不敬业</span>
            <span>不认真</span>
            <span>不干练</span>
            <span>默默无闻</span>
        </div>
        <div class="ping_area">
            <textarea id="wordtext" onfocus="this.value=''; this.onfocus=null;">没有找到合适的标签?点这里发表意见吧~</textarea>
            <em id="wordage">0/500字</em>
        </div>
    </div>
    <div class="btn_tijiao">
        <img src="image/btn_tijiao.png"/>
    </div>
</div>
<!--弹跳框-->
<div class="full_bg"></div>
<div class="yu_tan">
    <div class="yu_tan_box">
        <img src="image/tan_car1.png" class="tan_car"/>
        <h1 class="tan_text">评价成功</h1>
        <h2 class="btn_qr">查看评价</h2>
    </div>
    <div class="cancel"></div>
</div>

<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/study_car.js"></script>
<script>
    $(function(){
       var $div_li=$('.choose_ping li');
       $div_li.click(function(){
          var index= $div_li.index(this);
          if(index==0){
              $(this).children('img').attr("src","image/hao_on.png").parent().siblings()
                  .children('img').attr("src","image/cha_off.png");
              $('.hao_cur').show();
              $('.cha_cur').hide();
          }else{
              $(this).children('img').attr("src","image/cha_on.png").parent().siblings()
                  .children('img').attr("src","image/hao_off.png");
              $('.hao_cur').hide();
              $('.cha_cur').show();
          }
       });
       $('.hao_cur span').click(function(){
          if(!$(this).hasClass('ping_active')){
              $(this).addClass('ping_active');
          }else{
              $(this).removeClass('ping_active');
          }
       });
        $('.cha_cur span').click(function(){
            if(!$(this).hasClass('ping_active')){
                $(this).addClass('ping_active');
            }else{
                $(this).removeClass('ping_active');
            }
        });
        $('.btn_tijiao').click(function(){
            tankuang();
        });
        $('.btn_qr').click(function(){
           window.location.href="look_ping.html";
        });
    });
    var limitNum = 0;
    var pattern =  limitNum + '/500字';
    $('#wordage').html(pattern);
    $('#wordtext').keyup(
        function(){
            var remain = $(this).val().length;
            if(remain > 500){
                pattern = "字数超过500个限制!";
            }else{
                pattern =  remain + '/300字';
            }
            $('#wordage').html(pattern);
        }
    );
</script>
</body>
</html>