审查视图

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
                            111
anyv authored
162
                        </div>
0  
anyv authored
163
                        <div class="log_ten_shu_name txt-cut" style="-webkit-line-clamp: 2;">一大堆的民治都是的萨哈大大一大堆的民治都是的萨哈大大一大堆的民治都是的萨哈大大姐撒旦教哦和卡视角断开连接案件断开连接</div>
anyv authored
164 165 166 167 168
                        <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
169 170

                                1111
anyv authored
171 172 173
                            </div>
                        </div>
                    </div>
1  
anyv authored
174
                    <div class="log_ten_list_one_right" style="margin-top: 0.16rem;">
4  
anyv authored
175
                        <div class="log_ten_list_one_right_top"><span></span>20</div>
anyv authored
176 177 178 179 180 181 182 183 184
                    </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
185
            <div class="log_nine_list_one log_banjis  log_three_select_school2">
anyv authored
186 187 188 189 190
                <div class="log_nine_list_one_left">
                    <div class="log_ten_money_select_title ">
                        选择学校
                    </div>
                </div>
anyv authored
191 192 193 194 195 196 197 198 199 200 201 202
                <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
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
                <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
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
    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
318 319 320 321 322 323 324 325 326
    /**
     * 当点击学校时
     */
    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
327
                    $('.banjiadd').append("<div class='three_model_class_name banji'>"+grade[i]+"</div>");
anyv authored
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348
                }
            }else{
                $('.banji').remove();
            }

        });
    }

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

    /**
     * 点击查询
     *
     */
    function my_query(){
anyv authored
349 350
        xeschool = $('.xeschool').text();
        xegread = $('.xegread').text();
anyv authored
351 352
        start_time = $('.start_time').text();
        end_time = $('.end_time').text();
anyv authored
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368

        if(xeschool == '请选择学校'){
            alert('请选择学校');
        }else{
            if(xegread == '请选择班级'){
                alert('请选择班级');
            }else{
                grade_class =  xeschool+' '+xegread;
                if(start_time == '请选择开始时间'){
                    start_time = '';
                }
                if(end_time == '请选择结束时间'){
                    end_time = '';
                }
                window.location.href = "{:url('Personalcenter/mall_profit')}?grade_class="+grade_class+"&start_time="+start_time+"&end_time="+end_time;
            }
anyv authored
369
        }
anyv authored
370
         }
anyv authored
371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389

</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
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
//    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
406
    var dtpicker = new mui.DtPicker({
anyv authored
407
        type: "datetime", //设置日历初始视图模式
anyv authored
408
        beginDate: new Date(2015, 04, 25), //设置开始日期
anyv authored
409
        labels: ['年', '月', '日','时','分','秒'], //设置默认标签区域提示语
anyv authored
410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
    })
    //时间/日期别名
    $('.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
426 427 428 429 430 431
//    //学校/班级弹窗
//    $(".log_banjis").click(function() {
//        $(".tx_mask_school").css({
//            display: "block"
//        });
//    });
anyv authored
432 433 434 435 436 437 438
    //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
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465
//    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
466
/*    $(".log_three_select_school2").click(function() {
anyv authored
467 468 469 470 471
        $(".tx_mask_school").css("display", "block")
    })
    $(".three_model_school_name").click(function() {
        var str = $(this).text();
        console.log(str);
anyv authored
472
        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
anyv authored
473 474 475 476 477 478 479 480 481 482 483
        $(".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
484
        $(this).addClass("there_unActive").siblings().removeClass("there_unActive");
anyv authored
485 486 487 488
        $(".select_class2").text(str);
        $('.select_class2').css('color', '#333333');
        $(".tx_mask_class").css("display", "none")
        console.log($(".select_class2").text(str))
anyv authored
489
    })
anyv authored
490 491 492

    function zZFun(e) {
        window.event ? (window.event.cancelBubble = true) : e.stopPropagation();
4  
anyv authored
493
    }*/
anyv authored
494
    // 关闭弹窗
anyv authored
495 496 497 498 499 500
//    $(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
501 502 503 504
</script>
</body>

</html>