<template>
    <!-- <div
        class="login"
        :class="{ loginHeight: bar.value && bar.value.show }"
        :style="{ backgroundImage: `url(${require('../../assets/login.jpg')})` }"
    >
        <img class="logo" v-if="active === 'phone'" src="../../assets/lvzhopu-logo.png" alt="" />
        <img class="logo" v-else src="../../assets/lvzhopu-logo2.png" alt="" />
        <div class="tabs">
            <div class="tab" :class="{ active: active === 'phone' }" @click="active = 'phone'">账号密码登陆</div>
            <div class="tab" :class="{ active: active === 'code' }" @click="active = 'code'">验证码登陆</div>
        </div>

        <van-form @submit="submit" ref="form" v-if="active === 'phone'">
            <div class="field-box">
                <van-field
                    type="tel"
                    name="用户名"
                    placeholder="Account"
                    v-model="form.phone"
                    :rules="[
                        { required: true, message: '请输入手机号码' },
                        {
                            pattern: phonePattern,
                            message: '手机号码格式错误'
                        }
                    ]"
                >
                    <template #left-icon>
                        <img :src="require('@assets/svgs/login_icon_zhanghao.svg')" class="icon" />
                    </template>
                </van-field>
                <van-field
                    type="password"
                    name="密码"
                    placeholder="Password"
                    v-model="form.password"
                    :rules="[{ required: true, message: '请填写密码' }]"
                >
                    <template #left-icon>
                        <img :src="require('@assets/svgs/login_icon_mima.svg')" class="icon" />
                    </template>
                </van-field>
            </div>

            <div class="button"> -->
    <!-- <van-button plain class="forget" @click="$router.replace('/forget')">
          忘记密码？
        </van-button> -->
    <!-- 
                <van-button block native-type="submit" color="#26F50D" class="sure">现在出发！</van-button>
                <van-button class="del" block plain @click="$router.replace('/register')"
                    >暂无古藏站登陆许可 立即申领</van-button
                >
            </div>
        </van-form>

        <van-form @submit="submit" ref="code" v-else>
            <div class="field-box">
                <van-field
                    type="tel"
                    name="手机号码"
                    placeholder="Account"
                    v-model="form.phone"
                    :rules="[
                        { required: true, message: '请输入手机号码' },
                        {
                            pattern: phonePattern,
                            message: '手机号码格式错误'
                        }
                    ]"
                >
                    <template #left-icon>
                        <img :src="require('@assets/svgs/login_icon_zhanghao.svg')" class="icon" />
                    </template>
                </van-field>

                <van-field
                    type="code"
                    name="验证码"
                    placeholder="Verify"
                    v-model="form.code"
                    :rules="[{ required: true, message: '请输入验证码' }]"
                >
                    <template #left-icon>
                        <img :src="require('@assets/svgs/login_icon_code.svg')" class="icon" />
                    </template>
                    <template #button>
                        <van-button
                            class="sub-code"
                            size="small"
                            plain
                            color="#26F50D"
                            @click="sendPhone"
                            :disabled="isSend"
                        >
                            {{ isSend ? `已发送(${sendNum})S` : '发送验证码' }}
                        </van-button>
                    </template>
                </van-field>
            </div>
            <div class="button"> -->
    <!-- <van-button plain class="forget" @click="$router.replace('/forget')">
          忘记密码？
        </van-button> -->
    <!-- 
                <van-button block native-type="submit" color="#26F50D" class="sure">现在出发！</van-button>
                <van-button class="del" block plain @click="$router.replace('/register')"
                    >暂无古藏站登陆许可 立即申领</van-button
                >
            </div>
        </van-form>

        <div class="xieyi">
            <van-checkbox v-model="checked">
                已阅读并同意
                <span @click.stop="$router.push('/agreement?page=service')"> 《用户服务协议》 </span>
                和
                <span @click.stop="$router.push('/agreement')"> 《平台隐私协议》 </span>
            </van-checkbox>
        </div>
    </div> -->
    <div class="content">
        <!-- 登录 -->
        <div v-if="loginRegistrationSwitch == true">
            <!-- 密码登录 -->
            <div v-if="verificationCode == false">
                <div class="login_title_one">Hi,</div>
                <div class="login_title_two">欢迎来到古藏站</div>
                <van-form @submit="submitLogin" ref="loginForm">
                    <div class="login_information">
                        <img :src="require('@assets/login_icon_zhanghao.png')" alt="" class="login_information_img" />
                        <van-field
                            v-model="loginForm.phone"
                            type="tel"
                            placeholder="请输入手机号"
                            :rules="[
                                { required: true, message: '请输入手机号码' },
                                {
                                    pattern: phonePattern,
                                    message: '手机号码格式错误'
                                }
                            ]"
                            class="login_information_con"
                        />
                    </div>
                    <van-divider class="login_divider" />
                    <div class="login_information">
                        <img :src="require('@assets/login_icon_mima.png')" alt="" class="login_information_img" />
                        <van-field
                            v-model="loginForm.password"
                            type="password"
                            placeholder="请输入密码"
                            :rules="[{ required: true, message: '请输入密码' }]"
                            class="login_information_con"
                        />
                    </div>
                    <van-divider class="login_divider" />
                    <div class="login_verification">
                        <div @click="$router.replace('/forget')">忘记密码？</div>
                        <div
                            class="login_verification_con"
                            @click="(verificationCode = true), (verification = true), (active = 'code')"
                        >
                            验证码登录
                        </div>
                    </div>
                    <div class="login">
                        <van-button native-type="submitLogin" color="#28B6FF" class="login_now_con">登录</van-button>
                    </div>
                </van-form>
                <div class="register">
                    <van-button @click="registerNowConLogin" class="register_con">注册</van-button>
                </div>
            </div>
            <!-- 验证码登录 -->
            <div v-if="verificationCode == true">
                <div v-if="verification == true">
                    <div class="login_title_one">Hi,</div>
                    <div class="login_title_two">欢迎来到古藏站</div>
                    <van-form @submit="submitLoginCode" ref="loginFormCode">
                        <div class="login_information">
                            <img
                                :src="require('@assets/login_icon_zhanghao.png')"
                                alt=""
                                class="login_information_img"
                            />
                            <van-field
                                v-model="loginForm.phone"
                                type="tel"
                                placeholder="请输入手机号"
                                :rules="[
                                    { required: true, message: '请输入手机号码' },
                                    {
                                        pattern: phonePattern,
                                        message: '手机号码格式错误'
                                    }
                                ]"
                                class="login_information_con"
                            />
                        </div>
                        <van-divider class="login_divider" />
                        <div class="verification_code_login">
                            <van-button
                                native-type="submitLoginCode"
                                color="#28B6FF"
                                class="verification_code_login_con"
                                >发送验证码</van-button
                            >
                        </div>
                    </van-form>
                </div>
                <div class="verification_code_input" v-if="verification == false">
                    <div class="verification_code_input_con">输入验证码</div>
                    <div class="verification_code_input_one">验证码已发送到 {{ phone }}</div>
                    <div class="verification_code_input_two">
                        <!-- <div v-if="countDownCode == true" style="display: flex">
                            <van-count-down :time="time" format="ss" :auto-start="countDown" @finish="unFinish"/>
                            <div>S后重新发送</div>
                        </div>
                        <div v-else>重新发送</div> -->
                        {{ isSend ? `已发送${sendNum}S` : '重新发送' }}
                    </div>
                    <div class="verification_code_input_three">
                        <!-- 密码输入框 -->
                        <van-password-input
                            :value="value"
                            :mask="false"
                            length="4"
                            :focused="showKeyboard"
                            @focus="showKeyboard = true"
                        />
                        <!-- 数字键盘 -->
                        <van-number-keyboard
                            :show="showKeyboard"
                            v-model="value"
                            theme="custom"
                            extra-key="."
                            close-button-text="完成"
                            @blur="showKeyboard = false"
                            @delete="onDelete"
                            @close="submitLogin"
                        />
                    </div>
                    <div class="verification_code_login_register">
                        <van-button @click="submitLogin" color="#28B6FF" class="register_now_con_login"
                            >登录</van-button
                        >
                    </div>
                </div>
                <div>
                    <div class="account_password_login" @click="(verificationCode = false), (active = 'phone')">
                        账户密码登录
                    </div>
                </div>
            </div>
        </div>
        <!-- 注册 -->
        <div v-if="loginRegistrationSwitch == false">
            <div class="user_registration">用户注册</div>
            <van-form @submit="submit" ref="form">
                <div class="login_information">
                    <img :src="require('@assets/login_icon_zhanghao.png')" alt="" class="login_information_img" />
                    <van-field
                        v-model="form.phone"
                        :maxlength="11"
                        type="tel"
                        placeholder="请输入手机号"
                        class="login_information_con"
                        :rules="[
                            { required: true, message: '请输入手机号码' },
                            {
                                pattern: phonePattern,
                                message: '手机号码格式错误'
                            }
                        ]"
                    />
                </div>
                <van-divider class="login_divider" />
                <div class="login_information">
                    <img :src="require('@assets/verification_code.png')" alt="" class="login_information_img login_information_img_con" />
                    <van-field
                        v-model="form.code"
                        type="tel"
                        placeholder="请输入验证码"
                        :rules="[{ required: true, message: '请输入验证码' }]"
                        class="login_information_con"
                    >
                        <template #button>
                            <div v-if="verifyDisplay == true" class="login_information_verification">
                                <van-count-down
                                    :time="timeOne"
                                    format="ss"
                                    :auto-start="countDownOne"
                                    @finish="onFinish"
                                />
                                <div>S后重新发送</div>
                            </div>
                            <van-button size="small" class="send_verification" @click="sendPhone" v-else
                                >发送验证码</van-button
                            >
                        </template>
                    </van-field>
                </div>
                <van-divider class="login_divider" />
                <div class="login_information">
                    <img :src="require('@assets/login_icon_mima.png')" alt="" class="login_information_img" />
                    <van-field
                        v-model="form.password"
                        type="password"
                        placeholder="建议8-16位，数字、大小写字母组合"
                        :rules="[{ required: true, message: '请填写密码' }]"
                        class="login_information_con"
                    />
                </div>
                <van-divider class="login_divider" />
                <div class="register_now">
                    <van-button native-type="submit" color="#28B6FF" class="register_now_con">立即注册</van-button>
                    <!-- <div class="register_now_con" @click="registerNow">立即注册</div> -->
                </div>
            </van-form>
            <div class="register_now_login" @click="(loginRegistrationSwitch = true), (active = 'phone')">
                账户密码登录
            </div>
        </div>
        <div class="login_tip">
            登录则代表同意
            <span class="login_tip_con" @click.stop="$router.push('/agreement?page=service')">用户协议</span> 和
            <span class="login_tip_con" @click.stop="$router.push('/agreement')">隐私协议</span>
        </div>
    </div>
</template>

<script>
// import phone from '../../mixins/phone';
// import { ref } from 'vue';
// let fromRoute = null;
import phone from '../../mixins/phone';
let fromRoute = null;
import { Toast } from 'vant';
import { ref } from 'vue';
export default {
    mixins: [phone],
    setup() {
        const value = ref('');
        const showKeyboard = ref(false);
        return {
            value,
            showKeyboard
        };
    },
    data() {
        return {
            verification: true,
            verificationCode: false,
            countDownCode: true,
            timeOne: 60000,
            countDownOne: true,
            verifyDisplay: false,
            loginRegistrationSwitch: true,
            phone: '',
            active: 'phone',
            form: {
                phone: '',
                password: '',
                code: '',
                invitor: ''
            },
            loginForm: {
                phone: '',
                password: ''
            }
        };
    },
    beforeRouteEnter(to, from) {
        fromRoute = from;
        console.log(to, from);
    },
    mounted() {
        //不能注，注册页进入用
        if (this.$route.query.number == 1) {
            this.loginRegistrationSwitch = false;
        }
    },
    methods: {
        onFinish() {
            this.verifyDisplay = false;
        },
        unFinish() {
            this.countDownCode = false;
        },
        // 切换注册
        registerNowConLogin() {
            this.loginRegistrationSwitch = false;
        },
        // 发送手机号
        sendPhone() {
            if (this.form.phone == '') {
                Toast('手机号码格式错误');
            } else {
                this.verifyDisplay = true;
                this.sendMsg(this.form.phone);
            }
        },
        // 注册
        submit() {
            if (this.$store.state.invitor) {
                this.form.invitor = this.$store.state.invitor;
            }
            this.$http
                .post('/auth/phoneRegister', this.form)
                .then(res => {
                    localStorage.setItem('nineToken', res);
                    return this.$store.dispatch('getUserInfo');
                })
                .then(() => {
                    this.$toast.success('注册成功');
                    setTimeout(() => {
                        if (!fromRoute.name || fromRoute.name === 'userRegister' || fromRoute.name === 'userLogin') {
                            this.$router.replace('/home');
                        } else {
                            this.$router.back();
                        }
                    }, 1500);
                })
                .catch(e => {
                    if (e) {
                        this.$toast(e.error);
                    }
                });
        },
        // 手机密码登录
        // submitLogin() {
        //     this.checkOne().then(() => {
        //         this.$toast.success('登录成功');
        //         console.log("1111111")
        //         setTimeout(() => {
        //             this.$router.push("/home")
        // this.$router.replace('/home');
        // if (this.$store.state.loginBackUrl) {
        //     this.$router.replace(this.$store.state.loginBackUrl);
        // } else if (
        //     !fromRoute ||
        //     !fromRoute.name ||
        //     fromRoute.name === 'userRegister' ||
        //     fromRoute.name === 'userLogin'
        // ) {
        //     this.$router.replace('/home');
        // } else {
        //     this.$router.back();
        // }
        //         }, 1500);
        //     });
        // },
        // 验证码登录
        // complete() {
        //     this.checkTwo().then(() => {
        //         this.$toast.success('登录成功');
        //         setTimeout(() => {
        //             this.$router.replace('/home');
        //             this.$router.push("/home")
        //             if (this.$store.state.loginBackUrl) {
        //                 this.$router.replace(this.$store.state.loginBackUrl);
        //             } else if (
        //                 !fromRoute ||
        //                 !fromRoute.name ||
        //                 fromRoute.name === 'userRegister' ||
        //                 fromRoute.name === 'userLogin'
        //             ) {
        //                 this.$router.replace('/home');
        //             } else {
        //                 this.$router.back();
        //             }
        //         }, 1500);
        //     });
        // },
        // 验证码登录
        submitLoginCode() {
            this.verification = false;
            this.phone = this.loginForm.phone.substring(0, 3) + '****' + this.loginForm.phone.substring(7, 12);
            this.sendMsg(this.loginForm.phone);
        },
        // 重新获取
        submitLoginCodeOne() {
            this.sendMsg(this.loginForm.phone);
        },
        submitLogin() {
            this.check().then(() => {
                this.$toast.success('登录成功');
                setTimeout(() => {
                    if (this.$store.state.loginBackUrl) {
                        this.$router.replace(this.$store.state.loginBackUrl);
                    } else if (
                        !fromRoute ||
                        !fromRoute.name ||
                        fromRoute.name === 'userRegister' ||
                        fromRoute.name === 'userLogin'
                    ) {
                        this.$router.replace('/home');
                    } else {
                        this.$router.back();
                    }
                }, 1500);
            });
        },
        check() {
            if (this.active === 'phone') {
                return this.loginByPhone(this.loginForm.phone, this.loginForm.password);
            } else {
                // console.log("123312221",this.loginForm.phone,this.value)
                return this.$http
                    .post('/auth/phoneLogin', {
                        phone: this.loginForm.phone,
                        code: this.value
                    })
                    .catch(e => {
                        if (e) {
                            this.$toast(e.error);
                        }
                        return Promise.reject();
                    })
                    .then(res => {
                        localStorage.setItem('nineToken', res);
                        return this.$store.dispatch('getUserInfo');
                    });
            }
        }
        // checkTwo() {
        //     return this.$http
        //         .post('/auth/phoneLogin', {
        //             phone: this.loginForm.phone,
        //             code: this.value
        //         })
        //         .catch(e => {
        //             if (e) {
        //                 this.$toast(e.error);
        //             }
        //             return Promise.reject();
        //         })
        //         .then(res => {
        //             localStorage.setItem('nineToken', res);
        //             return this.$store.dispatch('getUserInfo');
        //         });
        // }
    }
    // mixins: [phone],
    // inject: ['bar'],
    // data() {
    //     return {
    //         active: 'phone',
    //         form: {
    //             phone: '',
    //             password: '',
    //             code: ''
    //         },
    //         checked: false
    //     };
    // },
    // beforeRouteEnter(to, from) {
    //     fromRoute = from;
    // },
    // mounted() {
    //     console.log(this.$store.state.loginBackUrl);
    // },
    // methods: {
    //     sendPhone() {
    //         this.$refs.code.validate('手机号码').then(() => {
    //             this.sendMsg(this.form.phone);
    //         });
    //     },
    //     submit() {
    //         if (!this.checked) {
    //             this.$toast('请先阅读并同意隐私政策');
    //             return;
    //         }
    //         this.$toast.loading({
    //             message: '加载中...',
    //             forbidClick: true
    //         });
    //         this.check().then(() => {
    //             this.$toast.success('登录成功');
    //             setTimeout(() => {
    //                 if (this.$store.state.loginBackUrl) {
    //                     this.$router.replace(this.$store.state.loginBackUrl);
    //                 } else if (
    //                     !fromRoute ||
    //                     !fromRoute.name ||
    //                     fromRoute.name === 'userRegister' ||
    //                     fromRoute.name === 'userLogin'
    //                 ) {
    //                     this.$router.replace('/home');
    //                 } else {
    //                     this.$router.back();
    //                 }
    //             }, 1500);
    //         });
    //     },
    //     check() {
    //         if (this.active === 'phone') {
    //             return this.loginByPhone(this.form.phone, this.form.password);
    //         } else {
    //             return this.$http
    //                 .post('/auth/phoneLogin', {
    //                     phone: this.form.phone,
    //                     code: this.form.code
    //                 })
    //                 .catch(e => {
    //                     if (e) {
    //                         this.$toast(e.error);
    //                     }
    //                     return Promise.reject();
    //                 })
    //                 .then(res => {
    //                     localStorage.setItem('nineToken', res);
    //                     return this.$store.dispatch('getUserInfo');
    //                 });
    //         }
    //     }
    // }
};
</script>

<style lang="less" scoped>
.frist{
    height: 379px;
    background-color: #fff;
}
/deep/ .van-password-input {
    padding-right: 50px;
    .van-password-input__item {
        flex: 1;
    }
}
/deep/ .van-field__control::placeholder {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #5f646f;
}
/deep/ .van-divider::before {
    height: 1px;
    background: #5f646f;
    opacity: 0.2;
}
.content {
    width: 100%;
    height: 100%;
    // position: absolute;
    background: #0f0f27;
    // margin-top: 44px;
    .login_information_verification {
        color: #28b6ff;
        display: flex;
        margin-right: -15px;
    }
    .verification_code_login_register {
        width: 100%;
        margin-top: 144px;
        margin-bottom: 30px;
        padding: 0px 47px 0px 0px;
        box-sizing: border-box;
        .register_now_con_login {
            width: 100%;
            height: 40px;
            border-radius: 8px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
        }
    }
    /deep/ .van-count-down {
        padding-top: 2px;
        box-sizing: border-box;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #28b6ff;
    }
    .login_title_one {
        padding-top: 60px;
        box-sizing: border-box;
        margin-left: 50px;
        margin-bottom: 10px;
        font-size: 28px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffffff;
    }
    .login_title_two {
        margin-left: 50px;
        margin-bottom: 60px;
        font-size: 24px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffffff;
    }
    .login_information {
        display: flex;
        margin-left: 45px;
        .login_information_img {
            width: 24px;
            height: 24px;
            margin-right: 8px;
        }
        .login_information_img_con{
            padding-top: 5PX;
        }
        .van-cell {
            padding: 0;
        }
        .login_information_con {
            width: 250px;
            // height: 24px;
            background: #0f0f27;
            overflow: visible;
        }
        .send_verification {
            background-color: #0f0f27;
            border: none;
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #28b6ff;
            margin-right: -23px;
        }
    }
    .login_information:last-child {
        margin-top: 20px;
    }
    .login_divider {
        padding: 10px 48px 10px 77px;
        box-sizing: border-box;
        // background: #5F646F;
        // opacity: 0.2;
    }
    .login_verification {
        padding: 0px 48px 0px 77px;
        box-sizing: border-box;
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #5f646f;
        display: flex;
        justify-content: space-between;
        .login_verification_con {
            color: #28b6ff;
        }
    }
    .login {
        width: 100%;
        margin-top: 75px;
        padding: 0px 47px 0px 48px;
        box-sizing: border-box;
        .login_now_con {
            width: 100%;
            height: 40px;
            background: #28b6ff;
            border-radius: 8px;
            line-height: 40px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #ffffff;
        }
        .login_con {
            width: 100%;
            height: 40px;
            background: #28b6ff;
            border-radius: 8px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #ffffff;
            line-height: 40px;
            text-align: center;
        }
    }
    .register {
        width: 100%;
        margin-top: 28px;
        padding: 0px 47px 0px 48px;
        box-sizing: border-box;
        margin-bottom: 153px;
        .register_con {
            width: 100%;
            height: 40px;
            border-radius: 8px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #939599;
            background: #29293f;
            border: none;
        }
    }
    .login_tip {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #939599;
        text-align: center;
        .login_tip_con {
            color: #28b6ff;
        }
    }
    .verification_code_login {
        width: 100%;
        padding: 136px 47px 30px 48px;
        box-sizing: border-box;
        .verification_code_login_con {
            width: 100%;
            height: 40px;
            border-radius: 8px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
        }
    }
    .account_password_login {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #28b6ff;
        text-align: center;
        margin-bottom: 167px;
        line-height: 24px;
    }
    .verification_code_input {
        padding: 60px 0 0 50px;
        box-sizing: border-box;
        .verification_code_input_con {
            font-size: 24px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            margin-bottom: 30px;
            color: #ffffff;
        }
        .verification_code_input_one {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #5f646f;
            margin-bottom: 2px;
        }
        .verification_code_input_two {
            font-size: 14px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #28b6ff;
            display: flex;
            .van-count-down {
                color: #28b6ff;
            }
        }
        .verification_code_input_three {
            margin-top: 24px;
            .van-password-input {
                margin: 0;
            }
            /deep/ .van-password-input__security li {
                width: 48px;
                height: 48px;
                background: #29293f;
                border-radius: 4px;
                margin-right: 28px;
                font-size: 24px;
                color: #ffffff;
                flex: 1;
                border: none;
            }
            /deep/ .van-password-input__security li:last-child {
                margin-right: 0;
            }
            /deep/ [class*='van-hairline']:after {
                border: none;
            }
        }
    }
    /deep/ .van-field__control {
        color: #ffffff;
        background: #0f0f27;
    }
    .user_registration {
        padding-top: 60px;
        box-sizing: border-box;
        margin-left: 50px;
        margin-bottom: 50px;
        font-size: 24px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #ffffff;
    }
    .register_now {
        width: 100%;
        padding: 94px 47px 30px 48px;
        box-sizing: border-box;
        .register_now_con {
            width: 100%;
            height: 40px;
            background: #28b6ff;
            border-radius: 8px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
        }
        .register_now_con_login {
            width: 100%;
            height: 40px;
            // background: #28b6ff;
            border-radius: 8px;
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #ffffff;
            text-align: center;
            line-height: 40px;
        }
        .register_now_con_register {
            color: #939599;
            margin-bottom: 153px;
        }
    }
    .register_now_login {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #28b6ff;
        text-align: center;
        margin-bottom: 167px;
        line-height: 24px;
    }
}
// /deep/ .van-button:before{
//     height: 40px;
//     background: #28B6FF;
//     border-radius: 8px;
// }
</style>
