<template>
    <footer>
        <div class="container">
            <section class="ft-register clearfix">
                <h3>仅需几个简单步骤，即可创建账户！</h3>
                <div class="register-wrap">
                    <div class="register-cont">
                        <input type="text" placeholder="请输入手机号作为注册账号" v-model="phoneNum" />
                    </div>
                    <a href="javascript:;" @click="toReg">立即注册</a>
                </div>
            </section>
            <section class="ft-link border-t clearfix">
                <ul class="ft-nav">
                    <li>
                        <router-link to="/security">安全</router-link>
                    </li>
                    <li>
                        <router-link to="/about">关于</router-link>
                    </li>
                    <li>
                        <router-link to="/help">帮助</router-link>
                    </li>
                </ul>
                <div class="ft-phone">
                    <p>400-687-3977&nbsp;&nbsp;工作日 9:00-18:00</p>
                </div>
            </section>
            <section class="ft-add border-t">
                <p>版权归北京源奉济生网络科技有限公司所有 京ICP备19029235号 地址：北京市海淀区志新路9号三层303</p>
            </section>
        </div>
        <div class="tool-bar"></div>
    </footer>
</template>

<script>
export default {
    name: "portalFooter",
    methods: {
        toReg() {
            this.$router.push({
                path: "/register",
                query: {
                    phoneNum: this.phoneNum
                }
            });
        }
    },
    data() {
        return {
            phoneNum: ""
        };
    }
};
</script>

<style lang="less" scoped>
@import "../../../assets/styles/common.css";
footer {
    background: #111;
    color: #fff;
    overflow: hidden;
    font-weight: 500;
    .ft-register {
        margin: 32px 0;
        h3 {
            margin: 0;
            font-size: 24px;
            line-height: 40px;
            font-weight: 500;
        }
        .register-wrap {
            width: 530px;
            height: 70px;
            margin: 0 auto;
            font-weight: 400;
            border-radius: 6px;
            overflow: hidden;
            margin-top: 20px;
            background: #fff;
            .register-cont {
                width: 350px;
                float: left;
                input {
                    width: 100%;
                    height: 70px;
                    line-height: 30px;
                    padding: 20px;
                    border: 0;
                    border-radius: 6px;
                    font-size: 18px;
                    vertical-align: middle;
                    box-sizing: border-box;
                    background: #fff;
                }
            }
            a {
                width: 180px;
                height: 70px;
                line-height: 70px;
                float: left;
                display: block;
                background: #3d86e9;
                color: #fff;
                font-size: 24px;
                cursor: pointer;
            }
        }
    }
    .ft-link {
        height: 90px;
        line-height: 90px;
        .ft-nav {
            float: left;
            li {
                float: left;
                margin: 0 20px;
                list-style-type: none;
                a {
                    color: #fff;
                    &:hover {
                        color: #3d86e9;
                    }
                }
            }
        }
        .ft-phone {
            float: right;
            p {
                background: url(~assets/images/icon-phone.png) left center
                    no-repeat;
                padding-left: 32px;
            }
        }
    }
    .ft-add {
        height: 56px;
        line-height: 56px;
        p {
            font-size: 12px;
            color: #bababa;
        }
    }
}
.container {
    width: 1080px;
    margin: 0 auto;
}

.border-t::before {
    content: "";
    display: block;
    width: 1080px;
    height: 1px;
    background: url(~assets/images/border-t.png);
}
</style>
