jiangping
2024-05-11 6548996bfac9dd02e21e1fd9519109fc8b5dfeb2
company/src/views/login.vue
@@ -1,7 +1,7 @@
<template>
    <div class="wrap">
        <div class="introduce">
            <h2>云易保客户服务系统</h2>
            <h2>{{systemTitle}}</h2>
        </div>
        <div class="login">
            <h1>系统登录&nbsp;/&nbsp;LOGIN IN</h1>
@@ -22,7 +22,7 @@
                <template v-else>
                    <el-input v-model="phone" placeholder="请输入手机号" prefix-icon="el-icon-phone" maxlength="11" v-trim/>
                    <div class="captcha-input">
                        <el-input v-model="code" placeholder="请输入验证码" prefix-icon="eva-icon-shield" maxlength="4" @keypress.enter.native="login" v-trim/>
                        <el-input v-model="code" placeholder="请输入验证码" prefix-icon="eva-icon-shield" @keypress.enter.native="login" v-trim/>
                        <el-button type="primary" style="width: 120px; margin-left: 20px;" @click="send" v-if="num === 0">发送验证码</el-button>
                        <el-button type="primary" style="width: 120px; margin-left: 20px;" v-else>{{num}}</el-button>
                    </div>
@@ -42,6 +42,7 @@
        name: 'Login',
        data () {
            return {
                systemTitle: process.env.VUE_APP_SYSTEM_TITLE,
                loading: false,
                username: '',
                password: '',
@@ -183,6 +184,7 @@
        },
        created () {
            this.refreshCaptcha()
            document.title=this.systemTitle
        }
    }
</script>