invitation_list.html 5.8 KB
<!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/reset.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
</head>

<body>
<!-- 顶部 -->
<div class="order_top">
    <a href="javascript:history.back(-1)">
        <img src="__TMPL__/public/assets/images/left.png" alt="">
    </a>
    <p>邀请名单</p>
</div>
<div class="invitation_Box" style="margin-top: 50px;">
    <ul class="tationCon1">
        <if condition="$type eq 3">
            <volist name="student" id="vo">
                <li>
                    <div class="tation_one">
                        <div class="tationCon1_left">
                            <div class="tationCon1_Img">
                                <img src="{$vo.avatar}" alt="">
                            </div>
                            <p class="tationCon1_Txt1 one-txt-cut">{$vo.user_nickname}</p>
                        </div>
                        <div class="tationCon1_right">
                            <p class="tationCon1_Txt2">累计收益 ¥{$vo.cumulative_money}</p>
                            <div class="tationCon1_Img2">
                                <img src="__TMPL__/public/assets/images/down.png" alt="">
                            </div>
                        </div>
                    </div>
                    <div class="tation_tow">
                        <!-- 列表 -->
                        <volist name="vo.indent" id="val">
                            <div class="tation_towLi">
                                <div class="tation_towTxt">
                                    <p class="tation_towTxt1 one-txt-cut"></p>
                                    <p class="recordNum">佣金+{$val.total_money}</p>
                                </div>
                                <div class="tation_towTxt">
                                    <if condition="$val.indent_type eq 1">
                                        <p class="recordTxt2">平台订单</p>
                                    </if>
                                    <if condition="$val.indent_type eq 2">
                                        <p class="recordTxt2">业务员订单</p>
                                    </if>
                                    <p class="recordTxt3">{$val.create_time|date="Y-m-d H:i:s",###}</p>
                                </div>
                            </div>
                        </volist>
                    </div>
                </li>
            </volist>
        </if>
        <if condition="$type eq 2">
            <volist name="teacher" id="vo">
                <li>
                    <div class="tation_one">
                        <div class="tationCon1_left">
                            <div class="tationCon1_Img">
                                <img src="{$vo.avatar}" alt="">
                            </div>
                            <p class="tationCon1_Txt1 one-txt-cut">{$vo.user_nickname}</p>
                        </div>
                        <div class="tationCon1_right">
                            <p class="tationCon1_Txt2">累计收益 ¥{$vo.total_commission}</p>
                            <div class="tationCon1_Img2">
                                <img src="__TMPL__/public/assets/images/down.png" alt="">
                            </div>
                        </div>
                    </div>
                    <div class="tation_tow">
                        <!-- 列表 -->
                        <volist name="vo.student" id="val">
                            <div class="tation_towLi">
                                <div class="tation_towTxt">
                                    <div class="tation_tow2">
                                        <div class="tation_towImg">
                                            <img src="{$val.avatar}" alt="">
                                        </div>
                                        <span class="tation_towTxt2">{$val.user_nickname}</span>
                                        <!--<p class="recordTxt2">平台订单</p>-->
                                    </div>
                                    <p class="recordNum">佣金+{$val.indent_money}</p>
                                </div>
                                <div class="tation_towTxt">
                                    <!--<p class="tation_towTxt1 one-txt-cut">购买了《中国上下五千年》</p>-->
                                    <p class="recordTxt3">{$val.create_time|date="Y-m-d H:i:s",###}</p>
                                </div>
                            </div>
                        </volist>
                    </div>
                </li>
            </volist>
        </if>

    </ul>
</div>
<script src="__TMPL__/public/assets/js/base.js"></script>
<script src="__TMPL__/public/assets/js/jquery.js"></script>
<script>
    $(function() {
        $('.tationCon1 li').each(function() {
            $(this).click(function() {
                if (img = $(this).find('.tationCon1_Img2 img').attr('src') == "__TMPL__/public/assets/images/down.png") {
                    img = $(this).find('.tationCon1_Img2 img').attr('src', '__TMPL__/public/assets/images/up.png');
                    $(this).find('.tation_tow').slideDown();
                } else {
                    img = $(this).find('.tationCon1_Img2 img').attr('src', '__TMPL__/public/assets/images/down.png');
                    $(this).find('.tation_tow').slideUp();
                }
            })
        })
    })
</script>
</body>

</html>