<script src="index.ts"></script>
<template>
    <div class="index-wrap" style="margin-bottom: 5rem">
        <div class="index-lunbo">
            <el-carousel :interval="2000" indicator-position="none">
                <!--            <el-carousel-item>-->
                <!--                <img src="../../assets/image/banner/banner_1.jpg" alt="">-->
                <!--            </el-carousel-item>-->
                <el-carousel-item v-for="(item,key) in data.bannerlist">
                    <a :href="item.url"><img :src="item.imageurl" alt=""></a>
                </el-carousel-item>
                <!--<el-carousel-item>-->
                    <!--<img src="../../assets/image/banner/banner_2.jpg" alt="" @click="jiaofei">-->
                <!--</el-carousel-item>-->
                <!--<el-carousel-item>-->
                    <!--<img src="../../assets/image/banner/banner_3.jpg" alt="" @click="yaoqing">-->
                <!--</el-carousel-item>-->
            </el-carousel>
        </div>
        <section class="index-main">
            <router-link class="btn-lg btn-calc text-left" to="/calc">
                <img src="../../assets/image/ico_04.png" alt="">
                <span style="font-size: 1.5rem">社保计算器</span></router-link>
            <!-- to="/social?is_fund=0" -->
            <a class="btn-lg btn-social text-left" @click="hSocialInsurance">
                <img src="../../assets/image/ico_05.png" alt="">
                <span  style="font-size: 1.5rem">社保代缴</span>
            </a>
            <!-- @click="hFiveSocial" to="/social?is_fund=1" -->
            <a class="btn-lg btn-social text-left" @click="hFiveSocial">
                <img src="../../assets/image/ico_06.png" alt="">
                <span  style="font-size: 1.5rem">五险一金</span>
            </a>
            <router-link class="btn-lg btn-social text-left" to="/bujiao">
                <img src="../../assets/image/homeico_10.png" alt="">
                <span  style="font-size: 1.5rem">近三月补缴</span>
            </router-link>
            <router-link class="btn-lg btn-social text-left" to="/payroll">
                <img src="../../assets/image/payroll.png" alt="">
                <span  style="font-size: 1.5rem">工资代发</span>
            </router-link>
        </section>
        <div class="marks" v-show="data.markShow" v-on:click="close">
            <div class="mark-back" @click="close">
                <div class="mark-con">
                   <p class="marks-title">新人专享劵</p>
                   <p class="marks-price">15<span style="font-size: 2rem;padding-left: 0.5rem;padding-bottom: 0.5rem">元</span> </p>
               </div>
            </div>

<!--            <img class="xinimg" src="../../assets/image/reward_03.png" alt="" @click="close">-->
<!--           <div class="mark-con">-->
<!--               <p>新人专享劵</p>-->
<!--               <p>15 <span>元</span>   </p>-->
<!--           </div>-->
        </div>
    </div>
</template>
<script lang="ts" src="./index.ts"></script>

<style lang="scss" scoped>
    @import '@/assets/scss/variables.scss';

    .index-wrap {
        width: 100%;
        overflow-x: hidden;
        /*background: #ffffc4;*/
    }
    section.index-main{
        margin-top: 1rem;
        margin-bottom: 8rem
    }

    section.index-main a.btn-lg {
        display: block;
        color: #ffffff;
        margin: 1.25rem;
        height: 5.8rem;
        line-height: 4.5rem;
        padding-left: 3rem;
        border-radius: 1rem;
        margin-bottom: 2rem;
    }

    section a img {
        width: 4.2rem;
        margin-right: 2rem;
    }

    .btn-calc {
        background: $orange;
    }

    .btn-social {
        background: #18a447;
    }

    .btn-fund {
        background: $blue;
    }

    .index-lunbo  /deep/{
        height: 225px;
        .el-carousel__container{
            height: 225px;
        }
    }
    .el-carousel{
        height: 225px;
    }


    .el-carousel__item img{
        width: 100%;
        height: auto;
    }
    .marks{
        background: rgba(0,0,0,0.5);
        position: fixed;
        top: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
        display: flex;
        justify-content: center;
        align-items: center;
        .mark-back{
            width: 70%;
            height: 400px;
            background: url("../../assets/image/reward_03.png") no-repeat;
            background-size: 100%;
            text-align: center;
            .mark-con{
                text-align: center;
                width: 100%;
                margin-top: 45%;
                .marks-title{
                    font-size: 1.7rem;
                    color: #e48428;
                    line-height: 1rem;
                }
                .marks-price{
                    font-size: 4rem;
                    color: #f7211e;
                }

            }
        }
    }
</style>

