index.html 4.2 KB
<!DOCTYPE html>
<html lang="en">

{include file="public/head"/}
<link rel="stylesheet" href="__CDN__/assets/advertising/css/myInvite.css">

<body>
    <div class="my_invite">
        <!-- 顶部 -->
        <div class="invite_top">
            <div class="invite_now">
                立即邀请
            </div>
            <div class="invite_top_icon"></div>
            <div class="invite_step">
                <div class="invite_step_box layout align_center justify flex_row">
                    <div class="layout justify align_center flex_diection">
                        <div class="invite_step_num">
                            1
                        </div>
                        <div>
                            <p>点击邀请二维码</p>
                            <p>分享给亲友</p>
                        </div>
                    </div>
                    <div class="layout justify align_center flex_diection">
                        <div class="invite_step_num">
                            2
                        </div>
                        <div>
                            <p>亲友扫描二维码</p>
                            <p>加入我们</p>
                        </div>
                    </div>
                    <div class="layout justify align_center flex_diection">
                        <div class="invite_step_num">
                            3
                        </div>
                        <div>
                            <p>亲友参与答题</p>
                            <p>一起赚现金</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="invite_how">
            <div class="layout justify  flex_diection invite_how_box">
                <div class="invite_how_title">怎么收取邀请红包</div>
                <div class="invite_how_first">1.亲友答题成功后立即收取答题奖励{$exp_ratio.0.ratio}%</div>
                <div>2.亲友入驻平台后,可收取亲友平台费的{$exp_ratio.1.ratio}%</div>
            </div>
        </div>
        <div class="layout  flex_row align_left invite_choice">
            <div class="layout justify flex_row align_center invite_choice_l">
                <div class="invite_choice_icon" data-type="1">
                    <img src="__CDN__/assets/advertising/img/sun_31@3x.png" alt="">
                </div>
                <div>邀请赚钱</div>
            </div>
            <div class="layout justify flex_row align_center invite_choice_l">
                <div class="invite_choice_icon" data-type="2">
                    <img src="__CDN__/assets/advertising/img/sun_32@3x.png" alt="">
                </div>
                <div>邀请入驻</div>
            </div>
        </div>
        <div class="btn">邀请二维码</div>
        <!-- 二维码弹窗 -->
        <div class="invite_modal"></div>
        <div class="invite_qr_code">
            <div class="invite_code">
                <!-- <img src="img/sun_28@3x.png" alt="" id="tuli"> -->
            </div>
            <div class="invite_btn">长按图片分享好友</div>
        </div>
    </div>
    {include file="public/js" /}
    <script>
        $(".btn").click(function() {
            $(".invite_modal").show();
            $(".invite_qr_code").show();
            var user_id = "{$user.id}";
            var type = $('.active').attr('data-type');
            $.ajax({
                url:"{:url('home/share/get_poster')}",
                type:"POST",
                data:{'type':type,'user_id':user_id},
                success:function(res){
                    if(res.code == 1){

                    }else{
                        toast(res.msg);
                    }
                },
                error:function(res){
                    toast('与服务器断开连接');
                }
            })
        })
        $(".invite_choice_l").click(function() {
            $(this).addClass('active');
            $(this).find("img").attr("src", "__CDN__/assets/advertising/img/sun_31@3x.png");
            $(this).siblings().find("img").attr("src", "__CDN__/assets/advertising/img/sun_32@3x.png");
            $(this).siblings().removeClass('active');
        })
    </script>
</body>

</html>