1b1f6b4140de80007021257489fd68c9.php 21.8 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:49:"themes/simpleboot3/user/yuyue/my_yuyue_coach.html";i:1534265694;}*/ ?>
<!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="/static/css/common.css">
    <link rel="stylesheet" href="/static/css/style.css">
    <style>
        .yuyueMenu li {
            width: 20%;
        }

        .yu_tan .yu_tan_box .tan_text {
            width: 100%;
        }

        .yuyueList {
            margin-bottom: 0.2666666667rem;
        }
    </style>
</head>
<body style="background-color: #f6f6f6">
<div class="box">
    <div class="yuyueTop">
        <div class="head_left">
            <img src="<?php echo $p_info['headimgurl']; ?>">
            <b class="uesr_name"><?php echo $p_info['user_nickname']; ?></b>
        </div>
        <div class="study_right">
            <b class="study_num"><?php echo $yjxs; ?></b>
            <i>已教学学时</i>
        </div>
    </div>
    <div class="yuyueMenu">
        <ul>
            <li class="yuyue_cur">
                <b>全部</b>
            </li>
            <li><b>待学车</b></li>
            <li><b>进行中</b></li>
            <li><b>待点评</b></li>
            <li><b>已点评</b></li>
        </ul>
    </div>
    <div class="yuyue_box">
        <!--全部-->
        <div class="yuyue-content">
            <?php if(empty($data) || (($data instanceof \think\Collection || $data instanceof \think\Paginator ) && $data->isEmpty())): ?>
                <div class="no_yuyue">
                    <img src="/static/image/no_yuyue.png">
                </div>
                <?php else: if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <div class="yuyueList">
                        <div class="yList_top">
                            <b><?php echo yuyue_status_name($vo['status']); ?></b>
                            <i><?php echo date("Y-m-d",$vo['create_time']); ?></i>
                        </div>
                        <div class="yList_info">
                            <img src="<?php echo $vo['headimgurl']; ?>" class="yu_user_head"/>
                            <div class="yu_user_info">
                                <b class="user_name"><?php echo $vo['user_nickname']; ?></b>
                                <i class="user_fun"><?php echo id_gname($vo['uid']); ?></i>
                            </div>
                            <div class="yu_date">
                                <b class="yu_week"><?php echo $vo['yuyue_week']; ?></b>
                                <i class="yu_times"><?php echo $vo['yuyue_begin']; ?>:00 - <?php echo $vo['yuyue_end']; ?>:00</i>
                            </div>
                        </div>
                        <?php switch($vo['status']): case "1": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">开始学车</b>
                                    <b class="click_jindu"
                                       onclick=location.href="<?php echo url('user/comment/jindu',array('id'=>$vo['uid'],'yuyue_id'=>$vo['id'])); ?>">查看进度</b>
                                </div>
                            <?php break; case "2": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/pingjia_by_coach',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">去评价</b>
                                </div>
                            <?php break; case "3": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/show',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">查看评价</b>
                                </div>
                            <?php break; case "4": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">学车完毕</b>
                                </div>
                            <?php break; default: endswitch; ?>
                    </div>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </div>
        <!--待学车-->
        <div class="yuyue-content hide">
            <?php if(empty($data1) || (($data1 instanceof \think\Collection || $data1 instanceof \think\Paginator ) && $data1->isEmpty())): ?>
                <div class="no_yuyue">
                    <img src="/static/image/no_yuyue.png">
                </div>
                <?php else: if(is_array($data1) || $data1 instanceof \think\Collection || $data1 instanceof \think\Paginator): $i = 0; $__LIST__ = $data1;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <div class="yuyueList">
                        <div class="yList_top">
                            <b><?php echo yuyue_status_name($vo['status']); ?></b>
                            <i><?php echo date("Y-m-d",$vo['create_time']); ?></i>
                        </div>
                        <div class="yList_info">
                            <img src="<?php echo $vo['headimgurl']; ?>" class="yu_user_head"/>
                            <div class="yu_user_info">
                                <b class="user_name"><?php echo $vo['user_nickname']; ?></b>
                                <i class="user_fun"><?php echo id_gname($vo['uid']); ?></i>
                            </div>
                            <div class="yu_date">
                                <b class="yu_week"><?php echo $vo['yuyue_week']; ?></b>
                                <i class="yu_times"><?php echo $vo['yuyue_begin']; ?>:00 - <?php echo $vo['yuyue_end']; ?>:00</i>
                            </div>
                        </div>
                        <?php switch($vo['status']): case "1": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">开始学车</b>
                                    <b class="click_jindu"
                                       onclick=location.href="<?php echo url('user/comment/jindu',array('id'=>$vo['uid'],'yuyue_id'=>$vo['id'])); ?>">查看进度</b>
                                </div>
                            <?php break; case "2": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/pingjia_by_coach',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">去评价</b>
                                </div>
                            <?php break; case "3": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/show',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">查看评价</b>
                                </div>
                            <?php break; case "4": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">学车完毕</b>
                                </div>
                            <?php break; default: endswitch; ?>
                    </div>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </div>
        <!--学车中-->
        <div class="yuyue-content hide">
            <?php if(empty($data2) || (($data2 instanceof \think\Collection || $data2 instanceof \think\Paginator ) && $data2->isEmpty())): ?>
                <div class="no_yuyue">
                    <img src="/static/image/no_yuyue.png">
                </div>
                <?php else: if(is_array($data2) || $data2 instanceof \think\Collection || $data2 instanceof \think\Paginator): $i = 0; $__LIST__ = $data2;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <div class="yuyueList">
                        <div class="yList_top">
                            <b><?php echo yuyue_status_name($vo['status']); ?></b>
                            <i><?php echo date("Y-m-d",$vo['create_time']); ?></i>
                        </div>
                        <div class="yList_info">
                            <img src="<?php echo $vo['headimgurl']; ?>" class="yu_user_head"/>
                            <div class="yu_user_info">
                                <b class="user_name"><?php echo $vo['user_nickname']; ?></b>
                                <i class="user_fun"><?php echo id_gname($vo['uid']); ?></i>
                            </div>
                            <div class="yu_date">
                                <b class="yu_week"><?php echo $vo['yuyue_week']; ?></b>
                                <i class="yu_times"><?php echo $vo['yuyue_begin']; ?>:00 - <?php echo $vo['yuyue_end']; ?>:00</i>
                            </div>
                        </div>
                        <?php switch($vo['status']): case "1": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">开始学车</b>
                                    <b class="click_jindu"
                                       onclick=location.href="<?php echo url('user/comment/jindu',array('id'=>$vo['uid'],'yuyue_id'=>$vo['id'])); ?>">查看进度</b>
                                </div>
                            <?php break; case "2": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/pingjia_by_coach',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">去评价</b>
                                </div>
                            <?php break; case "3": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/show',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">查看评价</b>
                                </div>
                            <?php break; case "4": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">学车完毕</b>
                                </div>
                            <?php break; default: endswitch; ?>
                    </div>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </div>
        <!--待点评-->
        <div class="yuyue-content hide">
            <?php if(empty($data3) || (($data3 instanceof \think\Collection || $data3 instanceof \think\Paginator ) && $data3->isEmpty())): ?>
                <div class="no_yuyue">
                    <img src="/static/image/no_yuyue.png">
                </div>
                <?php else: if(is_array($data3) || $data3 instanceof \think\Collection || $data3 instanceof \think\Paginator): $i = 0; $__LIST__ = $data3;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <div class="yuyueList">
                        <div class="yList_top">
                            <b><?php echo yuyue_status_name($vo['status']); ?></b>
                            <i><?php echo date("Y-m-d",$vo['create_time']); ?></i>
                        </div>
                        <div class="yList_info">
                            <img src="<?php echo $vo['headimgurl']; ?>" class="yu_user_head"/>
                            <div class="yu_user_info">
                                <b class="user_name"><?php echo $vo['user_nickname']; ?></b>
                                <i class="user_fun"><?php echo id_gname($vo['uid']); ?></i>
                            </div>
                            <div class="yu_date">
                                <b class="yu_week"><?php echo $vo['yuyue_week']; ?></b>
                                <i class="yu_times"><?php echo $vo['yuyue_begin']; ?>:00 - <?php echo $vo['yuyue_end']; ?>:00</i>
                            </div>
                        </div>
                        <?php switch($vo['status']): case "1": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">开始学车</b>
                                    <b class="click_jindu"
                                       onclick=location.href="<?php echo url('user/comment/jindu',array('id'=>$vo['uid'],'yuyue_id'=>$vo['id'])); ?>">查看进度</b>
                                </div>
                            <?php break; case "2": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/pingjia_by_coach',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">去评价</b>
                                </div>
                            <?php break; case "3": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/show',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">查看评价</b>
                                </div>
                            <?php break; case "4": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">学车完毕</b>
                                </div>
                            <?php break; default: endswitch; ?>
                    </div>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </div>
        <!--已点评-->
        <div class="yuyue-content hide">
            <?php if(empty($data4) || (($data4 instanceof \think\Collection || $data4 instanceof \think\Paginator ) && $data4->isEmpty())): ?>
                <div class="no_yuyue">
                    <img src="/static/image/no_yuyue.png">
                </div>
                <?php else: if(is_array($data4) || $data4 instanceof \think\Collection || $data4 instanceof \think\Paginator): $i = 0; $__LIST__ = $data4;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>

                    <div class="yuyueList">
                        <div class="yList_top">
                            <b><?php echo yuyue_status_name($vo['status']); ?></b>
                            <i><?php echo date("Y-m-d",$vo['create_time']); ?></i>
                        </div>
                        <div class="yList_info">
                            <img src="<?php echo $vo['headimgurl']; ?>" class="yu_user_head"/>
                            <div class="yu_user_info">
                                <b class="user_name"><?php echo $vo['user_nickname']; ?></b>
                                <i class="user_fun"><?php echo id_gname($vo['uid']); ?></i>
                            </div>
                            <div class="yu_date">
                                <b class="yu_week"><?php echo $vo['yuyue_week']; ?></b>
                                <i class="yu_times"><?php echo $vo['yuyue_begin']; ?>:00 - <?php echo $vo['yuyue_end']; ?>:00</i>
                            </div>
                        </div>
                        <?php switch($vo['status']): case "1": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">开始学车</b>
                                    <b class="click_jindu"
                                       onclick=location.href="<?php echo url('user/comment/jindu',array('id'=>$vo['uid'],'yuyue_id'=>$vo['id'])); ?>">查看进度</b>
                                </div>
                            <?php break; case "2": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/pingjia_by_coach',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">去评价</b>
                                </div>
                            <?php break; case "3": ?>
                                <div class="yuyue_btn" onclick=location.href="<?php echo url('user/comment/show',array('id'=>
                                    $vo['uid'],'yuyue_id'=>$vo['id'])); ?>">
                                    <b class="click_yuyue">查看评价</b>
                                </div>
                            <?php break; case "4": ?>
                                <div class="yuyue_btn">
                                    <b class="click_yuyue" data-id="<?php echo $vo['id']; ?>">学车完毕</b>
                                </div>
                            <?php break; default: endswitch; ?>
                    </div>
                <?php endforeach; endif; else: echo "" ;endif; endif; ?>
        </div>
    </div>
    <div class="no_yuyue">
        <img src="/static/image/no_yuyue.png">
    </div>
    <div class="btn_yuyue">
        <img src="/static/image/btn_yuyue.png">
    </div>
</div>
<!--弹跳框-->
<div class="full_bg"></div>
<div class="yu_tan">
    <div class="yu_tan_box">
        <img src="/static/image/tan_car1.png" class="tan_car"/>
        <h1 class="tan_text">是否确认学员已开始学车?</h1>
        <h2 class="btn_qr">确认</h2>
    </div>
    <div class="cancel"></div>
</div>
<!--ceshi-->
<input type="hidden" value="60" class="yu_time"/>
<script type="text/javascript" src="/static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/study_car.js"></script>
<script>
    $(function () {
        var num = $('.yuyue-content').children();
        var id = null;
        console.log(num.length);
        if (num.length == 0) {
            $('.no_yuyue').show();
            $('.btn_yuyue').show();
        } else {
            $('.no_yuyue').hide();
            $('.btn_yuyue').hide();
        }
        $('.yList_top').each(function () {
            var colorHtml = $(this).children('b').html();
            if (colorHtml == "待学车") {
                $(this).children('b').css("color", "#53a6fa");
            }
        });
        $('.click_yuyue').click(function () {
            var con_text = $(this).html().trim();
            id = $(this).attr('data-id');
            if (con_text == "开始学车") {
                tankuang();
                $('.btn_qr').click(function () {
                    console.log(id);
                    get('<?php echo url("kaishi_xue"); ?>', {
                        id: id
                    }).then(function (res) {
                        console.log(res);
                        if(res.code == '1'){
                            history.go(0);
                        }
                    })
                    $("html").css("overflow", "auto");
                    $("body").css("overflow", "auto");
                    $(".full_bg").hide();
                    $(".yu_tan").hide();
                });
            } else if (con_text == "学车完毕") {
                $('.tan_text').html("是否确认学员该次已学车完毕?");
                tankuang();
                $('.btn_qr').click(function () {
                    get('<?php echo url("wanbi_xue"); ?>', {
                        id: id
                    }).then(function (res) {
                        console.log(res);
                        if(res.code == '1'){
                            history.go(0);
                        }
                    })
                    $("html").css("overflow", "auto");
                    $("body").css("overflow", "auto");
                    $(".full_bg").hide();
                    $(".yu_tan").hide();
                });
            }
        });

        function get(url/*后台的地址*/, obj/*后台需要的数据*/) {
            var promise = new Promise(function (resolve, reject) {
                $.ajax({
                    url: url,
                    data: obj,
                    success: function (res) {
                        resolve(res);
                    },
                    failure: function (err) {
                        reject(err);
                    }
                })
            });//等一下发嗯
            return promise;
        }

        var $div_li = $(".yuyueMenu ul li");
        $div_li.click(function () {
            $(this).addClass("yuyue_cur")
                .siblings().removeClass("yuyue_cur");
            var index = $div_li.index(this);
            $("div.yuyue_box > div").eq(index).show().siblings().hide();
        });
        /*$('.btn_qr').click(function () {
            get('<?php echo url("wanbi_xue"); ?>', {
                id: id
            }).then(function (res) {
                console.log(res);
                if(res.code == '1'){
                    history.go(0);
                }
            })
        });*/
    });
</script>
</body>
</html>