审查视图

public/themes/simpleboot3/portal/personalcenter/mall_profit.html 17.9 KB
anyv authored
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
<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>学考无忧-商场盈利</title>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.min.css" />
    <link rel="stylesheet" href="__TMPL__/public/assets/css/mui.picker.min.css" />
    <link rel="stylesheet" href="__TMPL__/public/assets/css/reset.css" />
    <link rel="stylesheet" href="__TMPL__/public/assets/css/log.css" />
    <style type="text/css">
        .mui-poppicker-header,
        .mui-picker {
            background-color: white;
        }

        .mui-btn-blue,
        .mui-btn-primary,
        input[type=submit] {
            background-color: #FF7700;
            border: 0;
        }

        .mui-pciker-list li.highlight {
            color: #FF7700;
        }
        .mui-dtpicker-header,.mui-dtpicker-title h5{
            background-color: white;
        }
anyv authored
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
        .tx_mask_class {
            display: none;
            z-index: 3;
            width: 100%;
            height: 100%;
            position: fixed;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .tx_maskCon_class {
            width: 100%;
            height: 5.16rem;
            background: #fff;
            position: fixed;
            bottom: 0;
        }

        .three_model_class_name {
            height: 0.36rem;
            margin: 0.08rem;
            font-size: 0.24rem;
            font-weight: 400;
            color: #666666;
            opacity: 1;
            padding: 0.2rem 0;
            line-height: 0;
            border-left: none;
            border-right: none
        }
0  
anyv authored
61 62 63 64 65 66 67 68 69
        .log_ten_shu_name{
            margin-top: 0.12rem;
            width: 3.2rem;
            font-size: 0.28rem;
            cursor: pointer;
            font-weight: 400;
            color: rgba(51, 51, 51, 1);
            opacity: 1;
        }
anyv authored
70 71 72 73
    </style>
</head>

<body>
anyv authored
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


<!--学校弹窗-->
<div class="tx_mask_school" onclick="$(this).hide()">
    <div class="tx_maskCon_school" onclick="zZFun(this)">
        <div class="three_model_school">
            <div class="three_model_school_title">
                选择学校
            </div>
            <div class="three_model_school_data there_university" style="display: block;">
                <volist name="school" id="vo">
                    <div class="three_model_school_name  <eq name='key' value='0'>there_unActive</eq>" onclick="click_school({$vo.id})">{$vo.school}</div>
                </volist>
            </div>
        </div>
    </div>
</div>
<!--班级弹窗-->
<div class="tx_mask_class" onclick="$(this).hide()">
    <div class="tx_maskCon_class" onclick="zZFun(this)">
        <div class="three_model_school">
            <div class="three_model_school_title">
                选择班级
            </div>
            <div class="three_model_school_data there_university banjiadd" style="display: block;">
                <!--<volist name="grade_class_show" id="vo">
                    <div class="three_model_school_name banji">{$vo}</div>
                </volist>-->
            </div>
        </div>
    </div>
</div>



<!--<div class="tx_mask_school">
anyv authored
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
    <div class="tx_maskCon_school">
        <div class="three_model_school">
            <div class="three_model_school_title">
                选择学校-班级
            </div>
            <div class="three_model_school_tab">
                <div class="three_model_school_left three_model_school_hover word_color">
                    学校
                </div>
                <div class="three_model_school_left">
                    班级
                </div>
            </div>
            <div>
                <div class="three_model_school_data there_university" style="display: block;">
                    <volist name="school" id="vo">
                        <div class="three_model_school_name  <eq name='key' value='0'>there_unActive</eq>" onclick="click_school({$vo.id})">{$vo.school}</div>
                    </volist>
                </div>
                <div class="three_model_school_data there_class banjiadd">
                    <volist name="grade_class_show" id="vo">
                        <div class="three_model_school_name banji">{$vo}</div>
                    </volist>
                </div>
            </div>
        </div>
    </div>
anyv authored
137
</div>-->
anyv authored
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
<div class="log_top_co">
    <!-- 顶部 -->
    <div class=" order_top log_top_co">
        <a href="javascript:history.back(-1)">
            <img src="__TMPL__/public/assets/images/left.png" alt="" />
        </a>
        <p>商城盈利</p>
    </div>
</div>
<!-- tab切换 -->
<div class="log_three_tab">
    <div class="log_three_tab_one log_three_tab_two">商城盈利</div>
    <div class="log_three_tab_one">平台盈利</div>
</div>

<div class="log_eleven_hide log_ten_block">
    <!-- 列表 -->
    <div class="log_ten_list">
        <div class="log_ten_list_contant">
            <volist name="indent_goods" id="vo">
                <div class="log_ten_list_one">
                    <div class="log_ten_list_one_center">
                        <div class="log_ten_list_one_center_top txt-cut" style="-webkit-line-clamp: 1;">
4  
anyv authored
161 162 163 164 165 166
                            {$vo.order_number}
                        </div>
                        <div class="log_ten_shu_name txt-cut" style="-webkit-line-clamp: 2;">
                            <volist name="vo.book_name" id="vol">
                                {$vol.book_name},
                            </volist>
anyv authored
167 168 169 170 171 172
                        </div>
                        <div class="log_ten_list_one_center_bottom">
                            <div class="log_ten_list_onb_icon">
                                <img src="__TMPL__/public/assets/images/52.png" alt="" />
                            </div>
                            <div class="log_ten_list_onb_title">
4  
anyv authored
173
                            {$vo.pay_time|date="Y-m-d H:i:s",###}
4  
anyv authored
174
anyv authored
175 176 177
                            </div>
                        </div>
                    </div>
2  
anyv authored
178
                    <div class="log_ten_list_one_right" >
4  
anyv authored
179
                        <div class="log_ten_list_one_right_top"><span></span>{$vo.money}</div>
anyv authored
180 181 182 183 184 185 186 187 188
                    </div>
                </div>
            </volist>
        </div>
    </div>
    <!-- 价格盈利 -->
    <div class="log_ten_money_selcet">
        <div class="log_ten_money_select_top"><span>总盈利:</span>¥{$total_money}</div>
        <div class="log_ten_money_select_bottom">
anyv authored
189
            <div class="log_nine_list_one log_banjis  log_three_select_school2">
anyv authored
190 191 192 193 194
                <div class="log_nine_list_one_left">
                    <div class="log_ten_money_select_title ">
                        选择学校
                    </div>
                </div>
anyv authored
195 196 197 198 199 200 201 202 203 204 205 206
                <div class="log_xue school_grade_class select_school2 xeschool">请选择学校</div>
                <div class="log_nine_list_one_right">
                    <img src="__TMPL__/public/assets/images/29.png" alt="" />
                </div>
            </div>
            <div class="log_nine_list_one log_banjis log_three_select_class2">
                <div class="log_nine_list_one_left">
                    <div class="log_ten_money_select_title ">
                        选择班级
                    </div>
                </div>
                <div class="log_xue school_grade_class select_class2 xegread">请选择班级</div>
anyv authored
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
                <div class="log_nine_list_one_right">
                    <img src="__TMPL__/public/assets/images/29.png" alt="" />
                </div>
            </div>
            <div class="log_nine_list_one log_nineKai">
                <div class="log_nine_list_one_left">
                    <div class="log_ten_money_select_title">
                        开始时间
                    </div>
                </div>
                <div class="log_ks start_time">请选择开始时间</div>
                <div class="log_nine_list_one_right">

                    <img src="__TMPL__/public/assets/images/29.png" alt="" />
                </div>
            </div>
            <div class="log_nine_list_one log_nineJie">
                <div class="log_nine_list_one_left">
                    <div class="log_ten_money_select_title">
                        结束时间
                    </div>
                </div>
                <div class="log_jsu end_time">请选择结束时间</div>
                <div class="log_nine_list_one_right">

                    <img src="__TMPL__/public/assets/images/29.png" alt="" />
                </div>
            </div>
        </div>
    </div>

    <!-- 底部按钮 -->
    <div class="log_three_list_fixed">
        <a href="{:url('Personalcenter/mall_profit')}">
            <div class="log_three_fixed_right log_ten_bottom_btn_left">
                重置
            </div>
        </a>
        <div class="log_three_fixed_right  log_ten_bottom_btn_right" onclick="my_query()">
            查询
        </div>
    </div>
</div>
<!-- 列表 -->
<div class="log_eleven_list log_eleven_hide">
    <volist name="platform_money" id="vo">
        <div class="log_eleven_list_contant">
            <div class="log_eleven_list_contant_left">
                <div class="log_eleven_title">
                    下级购买{$vo.book_name}
                </div>
                <div class="log_eleven_time">
                    <div class="log_eleven_time_icon">
                        <img src="__TMPL__/public/assets/images/52.png" alt="" />
                    </div>
                    <div class="log_eleven_time_num">
                        {$vo.create_time|date="Y-m-d H:i:s",###}
                    </div>
                </div>
            </div>
            <div class="log_eleven_list_contant_right">
                佣金+{$vo.money}
            </div>
        </div>
    </volist>
</div>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/mui.min.js"></script>
<script src="__TMPL__/public/assets/js/mui.picker.min.js"></script>
<script src="__TMPL__/public/assets/js/city.data-3.js"></script>
<script>
4  
anyv authored
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
    var schoolpicker = new mui.PopPicker();
    var classpicker = new mui.PopPicker();
    var class_arr = '';
    zujian();
    function zujian(data_class_arr){
        (function($, doc) {
            $.init();
            school_arr = {$school};
            console.log(data_class_arr,'dfdfds');
            $.ready(function() {
                schoolpicker.setData(school_arr);
                classpicker.setData(data_class_arr);
            });
        })(mui, document);
    }
    var school_name;
    $(".log_three_select_school2").click(function() {
        schoolpicker.show(function(e) {
            school_name = e[0].value;
            $(".select_school2").text(e[0].text);
            $('.select_school2').css('color', '#333333');
            $.post("{:url('Personalcenter/get_grade_class')}",{id:school_name},function(data){
                if(data){
                    data = JSON.parse(data);
                    zujian(data);
                }

            });
        });

    })
    $(".log_three_select_class2").click(function() {
        if(school_name != undefined) {
            classpicker.show(function(e) {
                $(".select_class2").text(e[0].text);
                $('.select_class2').css('color', '#333333');
            });
        } else {
            alert("请先选择学校")
        }
    })
</script>
<script>
anyv authored
322 323 324 325 326 327 328 329 330
    /**
     * 当点击学校时
     */
    function click_school(id){
        $.post("{:url('Personalcenter/get_grade_class')}",{id:id},function(data){
            if(data){
                grade = JSON.parse(data);
                $('.banji').remove();
                for(i=0;i<grade.length;i++){
anyv authored
331
                    $('.banjiadd').append("<div class='three_model_class_name banji'>"+grade[i]+"</div>");
anyv authored
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
                }
            }else{
                $('.banji').remove();
            }

        });
    }

    /**
     *点击班级时
     */
  $(document).on('click','.banji',function(){
      grade = $(this).text();
      $('.school_grade_class').text($xuexiao+" "+grade);
  })

    /**
     * 点击查询
     *
     */
    function my_query(){
anyv authored
353 354
        xeschool = $('.xeschool').text();
        xegread = $('.xegread').text();
anyv authored
355 356
        start_time = $('.start_time').text();
        end_time = $('.end_time').text();
anyv authored
357
4  
anyv authored
358
anyv authored
359
                grade_class =  xeschool+' '+xegread;
4  
anyv authored
360 361 362 363 364 365 366
                console.log(grade_class);
                if(xeschool == '请选择学校'){
                    xeschool = '';
                }
                if(xegread == '请选择班级'){
                    xegread = '';
                }
anyv authored
367 368 369 370 371 372
                if(start_time == '请选择开始时间'){
                    start_time = '';
                }
                if(end_time == '请选择结束时间'){
                    end_time = '';
                }
4  
anyv authored
373 374 375
                window.location.href = "{:url('Personalcenter/mall_profit')}?school="+xeschool+"&start_time="+start_time+"&end_time="+end_time+"&grade="+xegread;

anyv authored
376
         }
anyv authored
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395

</script>
<script>
    $(".log_three_tab>div").click(function() {
        $(this)
            .addClass("log_three_tab_two")
            .addClass("word_color")
            .siblings()
            .removeClass("log_three_tab_two")
            .removeClass("word_color");
        var index = $(this).index();
        console.log(index);
        $(".log_eleven_hide")
            .eq(index)
            .addClass("log_ten_block")
            .siblings()
            .removeClass("log_ten_block");
    });
anyv authored
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
//    var dtpicker = new mui.DtPicker({
//        type: "date", //设置日历初始视图模式
//        beginDate: new Date(2015, 04, 25), //设置开始日期
//        labels: ['年', '月', '日'], //设置默认标签区域提示语
//        customData: {
//            h: [{
//                value: 'AM',
//                text: 'AM'
//            },
//                {
//                    value: 'PM',
//                    text: 'PM'
//                }
//            ]
//        }
//    })
anyv authored
412
    var dtpicker = new mui.DtPicker({
anyv authored
413
        type: "datetime", //设置日历初始视图模式
anyv authored
414
        beginDate: new Date(2015, 04, 25), //设置开始日期
anyv authored
415
        labels: ['年', '月', '日','时','分','秒'], //设置默认标签区域提示语
anyv authored
416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431
    })
    //时间/日期别名
    $('.log_nineKai').click(function(){
        dtpicker.show(function(e) {
            console.log(e);
            $('.log_ks').text(e.text);
            $('.log_ks').css('color', '#333333');
        });
    })
    $('.log_nineJie').click(function(){
        dtpicker.show(function(e) {
            console.log(e);
            $('.log_jsu').text(e.text);
            $('.log_jsu').css('color', '#333333');
        });
    })
anyv authored
432 433 434 435 436 437
//    //学校/班级弹窗
//    $(".log_banjis").click(function() {
//        $(".tx_mask_school").css({
//            display: "block"
//        });
//    });
anyv authored
438 439 440 441 442 443 444
    //tab弹框
    $(".three_model_school_tab>div").click(function() {
        var tabindex = $(this).index();
        $(this).addClass("three_model_school_hover").addClass("word_color").siblings().removeClass("three_model_school_hover").removeClass("word_color");
        $('.three_model_school_data').eq(tabindex).css('display', 'block').siblings().css('display', 'none');
    });
    // tab 大学
anyv authored
445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
//    var $xuexiao
//    $(".there_university div").click(function() {
//        var index = $(this).index();
//        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
//        if($(this).hasClass("there_unActive")) {
//            console.log($(this).text());
//            $xuexiao = $(this).text()
//            $(".there_university").hide();
//            $(".there_class").show();
//            $('.three_model_school_left').eq(0).removeClass('word_color').removeClass('three_model_school_hover');
//            $('.three_model_school_left').eq(1).addClass('word_color').addClass('three_model_school_hover');
//        }
//    });
//    $('.there_class div').click(function() {
//        console.log($xuexiao)
//        var index2 = $(this).index();
//        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
//        if($xuexiao == undefined) {
//            alert('请选择学校')
//        } else if($(this).hasClass("there_unActive")) {
//            var banji = $(this).text();
//            $('.log_xue').text($xuexiao + ' ' + "—" + ' ' + banji);
//            $(".log_xue").css("color","#333")
//            $(".tx_mask_school").hide();
//        }
//    })
    //选择学校
4  
anyv authored
472
/*    $(".log_three_select_school2").click(function() {
anyv authored
473 474 475 476 477
        $(".tx_mask_school").css("display", "block")
    })
    $(".three_model_school_name").click(function() {
        var str = $(this).text();
        console.log(str);
anyv authored
478
        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
anyv authored
479 480 481 482 483 484 485 486 487 488 489
        $(".select_school2").text(str);
        $('.select_school2').css('color', '#333333');
        $(".tx_mask_school").css("display", "none")
    })
    //选择班级
    $(".log_three_select_class2").click(function() {
        $(".tx_mask_class").css("display", "block")
    })
    $("body .banjiadd").on('click', '.three_model_class_name', function () {
        var str = $(this).text();
        console.log(str)
anyv authored
490
        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
anyv authored
491 492 493 494
        $(".select_class2").text(str);
        $('.select_class2').css('color', '#333333');
        $(".tx_mask_class").css("display", "none")
        console.log($(".select_class2").text(str))
anyv authored
495
    })
anyv authored
496 497 498

    function zZFun(e) {
        window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
4  
anyv authored
499
    }*/
anyv authored
500
    // 关闭弹窗
anyv authored
501 502 503 504 505 506
//    $(document).mouseup(function(e) {
//        var _con = $('.tx_maskCon_school');
//        if(!_con.is(e.target) && _con.has(e.target).length === 0) {
//            $('.tx_mask_school').hide()
//        }
//    })
anyv authored
507 508 509 510
</script>
</body>

</html>