<div class="indexFooter_wrapper" id="footerContent">
    <div class="indexFooter clearfix">
        <div class="clearfix float">
            <div class="float clearfix">
                <ul class="footer_list  float">
                    <li class="fc">个人</li>
                    <li><a href="javascript:;" @click="handlerResumeIndex">登记简历</a></li>
                    <li><a href="javascript:;" @click="handlerPersonalJobApplyList">求职管理</a></li>
                    <li><a href="{#:url('index/job/index')#}">最新职位</a></li>
                    <li><a href="{#:url('index/company/index')#}">企业信息</a></li>
                </ul>

                <ul class="footer_list float">
                    <li class="fc">企业</li>
                    <li><a href="javascript:;" @click="handlerCompanyIndex">企业入驻</a></li>
                    <li><a href="javascript:;" @click="handlerAddJob">发布招聘</a></li>
                    <li><a href="javascript:;" @click="handlerCompanyService">会员服务</a></li>
                    <li><a href="javascript:;" @click="handlerCompanyJobApplyList">招聘管理</a></li>
                </ul>

                <?php 
                    $explain_data1 = model('Explain')->where('is_display',1)->order('sort_id desc,id asc')->limit(4)->column('id,title,link_url'); 
                    $explain_list1 = [];
                    foreach($explain_data1 as $key=>$value){
                        $arr = $value;
                        if($arr['link_url']==''){
                            $arr['link_url'] = url('index/explain/show',['id'=>$arr['id']]);
                            $arr['target'] = '_self';
                        }else{
                            $arr['target'] = '_blank';
                        }
                        $explain_list1[] = $arr;
                    }
                ?>
                <ul class="footer_list float">
                    <li class="fc">特色</li>
                    {#volist name="explain_list1" id="vo"#}
                    <li><a target="{#$vo.target#}" href="{#$vo.link_url#}">{#$vo.title#}</a></li>
                    {#/volist#}
                </ul>

                <?php 
                    $help_list = model('Help')->where('is_display',1)->order('sort_id desc')->limit(4)->column('id,title,cid'); 
                ?>
                <ul class="footer_list float">
                    <li class="fc">帮助</li>
                    {#volist name="help_list" id="vo"#}
                    <li><a href="{#:url('index/help/show',['id'=>$vo.id])#}">{#$vo.title#}</a></li>
                    {#/volist#}
                </ul>
            </div>
            <div class="code_box float clearfix">
                <div class="float code1">
                    <p>微信公众号</p>
                    <div class="img">
                        <img class="codeImg" class="codeImg" src="{#$global_config.wechat_qrcode#}" />
                    </div>
                </div>
                <div class="float code2">
                    <P>手机微信版</P>
                    <div class="img1">
                        <img v-cloak class="codeImg" class="codeImg" :src="mobileQrcode" />
                    </div>
                </div>
            </div>
        </div>
        <div class="footer_contactType">
            <p class="contact_title">联系电话</p>
            <div class="contact_tel">
                <img src="__ROOT__/assets/images/contact_icon.png">
                <span>{#$global_config.contact_tel#}</span>
            </div>
            <p class="job_time">服务时间：{#$global_config.service_time#}</p>
            <p class="job_QQ">客服QQ：<a target="_blank"
                    href="http://wpa.qq.com/msgrd?v=3&uin={#$global_config.service_qq#}&site=在线客服&menu=yes">{#$global_config.service_qq#}</a>
            </p>
        </div>
    </div>

    <div class="indexFooter_nav_con">
        <ul class="indexFooter_nav clearfix">
            <li><a>网站首页</a></li>
            <?php 
                $explain_data2 = model('Explain')->where('is_display',1)->order('sort_id desc,id asc')->limit(4)->page(2)->column('id,title,link_url'); 
                $explain_list2 = [];
                foreach($explain_data2 as $key=>$value){
                    $arr = $value;
                    if($arr['link_url']==''){
                        $arr['link_url'] = url('index/explain/show',['id'=>$arr['id']]);
                        $arr['target'] = '_self';
                    }else{
                        $arr['target'] = '_blank';
                    }
                    $explain_list2[] = $arr;
                }
            ?>
            {#volist name="explain_list2" id="vo"#}
            <li><a target="{#$vo.target#}" href="{#$vo.link_url#}">{#$vo.title#}</a></li>
            {#/volist#}
        </ul>
    </div>
    <div class="footer_text1">
        <span>{#$global_config.bottom_other#}</span> <span
            class="address">联系地址：{#$global_config.contact_address#}</span>
    </div>
    <div class="footer_text2">
        {#if condition="$global_config.service_license!=''"#}
        <span><a>《人力资源服务许可证》编号:{#$global_config.service_license#}</a></span>
        {#/if#}
        <span><a target="_blank" href="https://beian.miit.gov.cn/">网站备案:{#$global_config.icp#}</a></span>
        {#if condition="$global_config.network_security!=''"#}
        <span class="security"><a target="_blank"
                href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode={#:findNumByStr($global_config.network_security)#}">公网安备:{#$global_config.network_security#}</a></span>
        {#/if#}
        {#if condition="$global_config.statistics!=''"#}
        {#:htmlspecialchars_decode($global_config.statistics)#}
        {#/if#}
    </div>
</div>

<script>
    let version = "<?php echo config('version.version')?>";
    console.log('\n' + ' %c 74cmsSE v' + version + '  %c https://www.74cms.com ' + '\n', 'color: #fadfa3; background: #030307; padding:5px 0;', 'background: #fadfa3; padding:5px 0;');

    var app = new Vue({
        el: '#footerContent',
        data: {
            mobileQrcode: ''
        },
        created: function () {
            this.mobileQrcode = qscms.apiUrl + qscms.apiList.qrcode + "?type=normal&url={#$global_config.mobile_domain#}"
        },
        methods: {
            handlerResumeIndex: function () {
                location.href = qscms.locationList.personalResume
            },
            handlerPersonalJobApplyList: function () {
                location.href = qscms.locationList.personalJobApplyList
            },
            handlerCompanyIndex: function () {
                location.href = qscms.locationList.indexCompany
            },
            handlerAddJob: function () {
                httpget(qscms.apiList.companyCheckJobaddNum, {}).then(function (res) {
                    if (res.data.enable_addjob_num <= 0) {
                        this.$confirm('您当前是' +
                            res.data.setmeal_name +
                            '，当前可发布职位数为0，建议您立即升级套餐或将暂时不招聘的职位设为关闭！', '系统提示', {
                            confirmButtonText: '升级套餐',
                            type: 'warning'
                        })
                            .then(function () {
                                location.href = qscms.locationList.companySetmealAdd
                            })
                            .catch(function () { })
                        return false
                    } else {
                        location.href = qscms.locationList.companyJobAdd
                    }
                }).catch(function () { })
            },
            handlerCompanyService: function () {
                location.href = qscms.locationList.companyService
            },
            handlerCompanyJobApplyList: function () {
                location.href = qscms.locationList.companyJobApplyList
            },
        }
    })
</script>