<!DOCTYPE html>
<html class="pixel-ratio-2 retina ios ios-13 ios-13-2-3 ios-gt-12 ios-gt-11 ios-gt-10 ios-gt-9 ios-gt-8 ios-gt-7 ios-gt-6">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{$Think.lang.lxb_logs}</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,viewport-fit=cover">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="/alllang/static/css/light7.css">
    <link rel="stylesheet" href="/alllang/static/css/common.css">
    <link rel="stylesheet" href="/alllang/static/css/deposit-record.css">
    <link rel="stylesheet" href="/alllang/static/css/account.css"></head>

  <body style="">
    <div class="page index-page page-current page-inited" id="invitation">
      <header class="bar bar-nav fxbt">
        <a href="/index/ctrl/lixibao.html" class="icon icon-left pull-left"></a>
        <div class="title">{$Think.lang.lxb_logs}</div></header>
      <div class="content scroll-wrapper">
        {if $list}
        {volist name='list' id='v'}
        <?php
        $v['addtime'] = date("Y-m-d H:i:s ",$v['addtime']);
        $type = '';
        if ($v['type'] == 1) {
            $type = lang('lxb_zrlxb');
        }elseif ($v['type'] == 2) {
            $n = $v['status'] ? lang('lxb_ydz') : lang('lxb_wdz');
            $type = lang('lxb_lxbzc').'('.$n.')';
        }elseif ($v['type'] == 3) {
            $type = lang('lxb_mrsy');
        }

        $lixbao = Db::name('xy_lixibao_list')->find($v['sid']);
        $name = $lixbao['name'].'('.$lixbao['day'].lang('day').')'.$lixbao['bili']*100 .'% ';
        $name = $type.''.$name;

        if ($v['is_sy'] == 1) {
            $notice = lang('zcsy_sjsy').$v['real_num'];
        }else if ($v['is_sy'] == -1) {
            $notice = lang('wdqtqtq_wsy').':'.$v['shouxu'];
        }else{
            $notice = lang('lcz').'...';
        }

        ?>
        <div class="big-box">
          <div class="jkdwhak">
            <div class="jkdwhak-item">
              <div class="lajek-1">{$name|raw}</div>
              <div class="lajek-2">{$Think.lang.lxb_crje}{$v.num}</div></div>
            <div class="jkdwhak-item">
              <div class="lajek-3">{$Think.lang.lxb_crsj}{$v.addtime}</div>
              <div class="lajek-4">{$type}</div>
             </div>
             <?php if($v['is_qu']==0){ ?>

             <div class="ddea"><div class="take-out" onclick="doTakeOut('{$v.id}', '{$v.shouxu}')">{$Think.lang.lxb_qc}</div></div>

             <?php } ?>
          </div>
        </div>
        {/volist}
        {else\}

        {/if}


        {empty name='list'}<div data-v-4cc7eec5="" class="no_more" style="">{$Think.lang.zwsj}</div>{else}{$pagehtml|raw|default=''}{/empty}
      </div>
    </div>
    <div id="modal-overlay" class="modal-overlay"></div>
    <div id="modal" class="modal">
      <div class="modal-inner">
        <div class="dasd-title">Are you sure?</div>
        <div class="btn-box">
          <div class="cancel-btn">{$Think.lang.quxiao}</div>
          <div class="confirm-btn">{$Think.lang.queding}</div></div>
      </div>
    </div>
    <script type="text/javascript" src="/alllang/static/js/jquery.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="/alllang/static/js/light7.js" charset="utf-8"></script>
    <script type="text/javascript" src="/alllang/static/js/utils.js" charset="utf-8"></script>
    <script>
        var id = 0;
        var shouxu = 0;

        function doTakeOut(lid, lshouxu) {
            id = lid;
            shouxu = Number(lshouxu);
            var tips = '{$Think.lang.lxb_qdquchu} ' + shouxu + ' {$Think.lang.lxb_qdsxf}';
            $('.dasd-title').html(tips);
            $('#modal-overlay').addClass('modal-overlay-visible');
            $('#modal').show();
            setTimeout(function () {
                $('#modal').removeClass('modal-out').addClass('modal-in');
            }, 50);
        }

        $('#modal-overlay').click(function () {
            return false;
        });
        $('.cancel-btn').click(function () {
            $('#modal-overlay').removeClass('modal-overlay-visible');
            $('#modal').removeClass('modal-in').addClass('modal-out');
            setTimeout(function () {
                    $('#modal').hide();
                },
                200)
        })
        $('.confirm-btn').click(function () {
            $('#modal-overlay').removeClass('modal-overlay-visible');
            $('#modal').removeClass('modal-in').addClass('modal-out');
            $.ajax({
                url: '/index/ctrl/lixibao_chu',
                data: {
                    id: id
                },
                type: 'POST',
                success: function (data) {
                    if (data.code == 0) {
                        $('#modal').hide();
                        $.toast(data.info);
                        setTimeout(function () {
                                window.location.reload();
                            },
                            1500);
                    } else {
                        $('#modal').hide();
                        $.toast(data.info);
                    }
                }
            });
        })
    </script>
  </body>

</html>