<script src="index.ts"></script>
<template>
    <!-- style="margin-bottom: 5rem" -->
    <div class="index-wrap" >
        <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">
            <el-row class="classification">
                <el-col :span="24" @click.native="$router.push('/calc')">
                    <img src="../../assets/image/ico_04@2x.png" style="width: 100%" alt="">
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="24">
                    <img src="../../assets/image/business@2x.png" style="width: 80%;" alt="">
                </el-col>
            </el-row>
            <el-row :gutter="14" style="margin-bottom: 14px;">
                <el-col :span="12" @click.native="hSocialInsurance">
                    <img src="../../assets/image/ico_05@2x.png" style="width: 100%" alt="">
                </el-col>
                <el-col :span="12" @click.native="hFiveSocial">
                    <img src="../../assets/image/ico_06@2x.png" style="width: 100%" alt="">
                </el-col>
            </el-row>
            <el-row :gutter="14" class="classification">
                <el-col :span="12" @click.native="$router.push('/bujiao')">
                    <img src="../../assets/image/homeico_10@2x.png" style="width: 100%" alt="">
                </el-col>
                <el-col :span="12" @click.native="$router.push('/payroll')">
                    <img src="../../assets/image/payroll@2x.png" style="width: 100%" alt="">
                </el-col>
            </el-row>
            <!-- 充值服务 -->
            <el-row>
                <el-col :span="24">
                    <img src="../../assets/image/recharge@2x.png" style="width: 70%;" alt="">
                </el-col>
            </el-row>
            <el-row :gutter="12">
                <el-col :span="12" @click.native="$router.push('/phoneRecharge')">
                    <img src="../../assets/image/phone_recharge@2x.png" style="width: 100%" alt="">
                </el-col>
                <el-col :span="12" @click.native="$router.push('/oilRecharge')">
                    <img src="../../assets/image/oil_recharge@2x.png" style="width: 100%" alt="">
                </el-col>
            </el-row>
            <!-- 政策解读 -->
            <el-row>
                <el-col :span="24">
                    <img src="../../assets/image/policy@2x.png" style="width: 60%;" alt="">
                </el-col>
            </el-row>
            <el-row :gutter="12">
                <el-col :span="12" @click.native="$router.push('/policy?housing_policy')">
                    <img src="../../assets/image/housing_policy@2x.png" style="width: 100%" alt="">
                </el-col>
                <el-col :span="12" @click.native="$router.push('/policy?car_policy')">
                    <img src="../../assets/image/car_policy@2x.png" style="width: 100%" alt="">
                </el-col>
            </el-row>
            <el-row :gutter="12" class="classification">
                <el-col :span="12" @click.native="$router.push('/policy?school_policy')">
                    <img src="../../assets/image/school_policy@2x.png" style="width: 100%" alt="">
                </el-col>
                <el-col :span="12" @click.native="$router.push('/policy?pension_policy')">
                    <img src="../../assets/image/pension_policy@2x.png" style="width: 100%" alt="">
                </el-col>
            </el-row>
            <!-- 服务保障 -->
            <el-row>
                <el-col :span="24">
                    <img src="../../assets/image/service@2x.png" style="width: 60%;" alt="">
                </el-col>
            </el-row>
            <el-row :gutter="20" :style="'margin-bottom:'+data.lastRowMargin">
                <el-col :span="6">
                    <img src="../../assets/image/pro_services@2x.png" style="width: 70%" alt="">
                </el-col>
                <el-col :span="6">
                    <img src="../../assets/image/operation@2x.png" style="width: 70%" alt="">
                </el-col>
                <el-col :span="6" class="hour24">
                    <img src="../../assets/image/24hour@2x.png" style="display: inline-block;width: 58%" alt="">
                </el-col>
                <el-col :span="6">
                    <img src="../../assets/image/quality_assurance@2x.png" style="display: inline-block;width: 70%" alt="">
                </el-col>
            </el-row>
        </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: 0.8rem;
        // margin-top: 1.3rem;
        // margin-bottom: 8rem;
        // margin-bottom: 10rem;
        padding: 0 1.292rem;
        .el-row {
            margin-bottom: 0.833rem;
        }
        .classification {
            margin-bottom: 1.3rem;
        }
        .el-row:last-child {
            // margin-bottom: 5rem;
        }
    }

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

    .btn-calc {
        background: $orange;
    }

    .btn-fund {
        background: $blue;
    }

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

    .el-carousel__item {
        position: static;
    }
    .el-carousel__item img{
        width: 100%;
        // height: auto;
        // height: 100%;
    }
    .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>

