| | |
| | | </div> --> |
| | | <div class="logins_content"> |
| | | <div class="login_title animated slideInDown"> |
| | | <span>{{ '手机号登录' }}</span> |
| | | <span>{{ $t('hj8') }}</span> |
| | | </div> |
| | | <div class="login_forms"> |
| | | <div class="top_forms"> |
| | |
| | | <div class="password"> |
| | | <input type="password" placeholder="登录密码" v-model="userPassword" @input="handleInput()" /> |
| | | </div> --> |
| | | <el-input placeholder="请输入手机号" :size="medium" maxlength="11" v-model="userName" clearable> |
| | | <el-input :placeholder="$t('hj9')" :size="medium" maxlength="11" v-model="userName" clearable> |
| | | </el-input> |
| | | <el-input style="margin-top: 0.46rem;" show-password placeholder="登录密码" :size="medium" v-model="userPassword" @input="handleInput()"> |
| | | <el-input style="margin-top: 0.46rem;" show-password :placeholder="$t('hj10')" :size="medium" |
| | | v-model="userPassword" @input="handleInput()"> |
| | | </el-input> |
| | | </div> |
| | | <div class="bottom_btns" :class="btnClass ? 'on' : 'off'" > |
| | | <div class="top_btn " @click="loginIN" :class="dengl ? 'animated pulse' : ''"> |
| | | <span>{{ '安全登录' }}</span> |
| | | <span>{{ $t('hj11') }}</span> |
| | | </div> |
| | | <div class="mes" @click="getApp()"> |
| | | <span>{{ '忘记密码?' }}</span> |
| | | <span>{{ $t('hj12') }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="line"> |
| | | <div class="left_line"></div> |
| | | <div class="center_line"> |
| | | <span>{{ '其他登录方式' }}</span> |
| | | <span>{{ $t('hj13') }}</span> |
| | | </div> |
| | | <div class="right_line"></div> |
| | | </div> |
| | |
| | | <div class="appImg" @click="getApp()"><img src="@/assets/img/google.png"/></div> |
| | | <div class="appImg" @click="getApp()"><img src="@/assets/img/facebook.png"/></div> |
| | | </div> |
| | | <div class="myzh"><span class="mes">没有账户?</span><span @click="$router.push('/register')" class="mes" style="color: rgb(54,124,248);">{{ '注册' }}</span> </div> |
| | | <div class="myzh"><span class="mes">{{ $t('hj14') }}?</span><span @click="$router.push('/register')" class="mes" |
| | | style="color: rgb(54,124,248);">{{ $t('hj15') }}</span> </div> |
| | | </div> |
| | | <el-alert |
| | | v-show="alertShow" |
| | | :closable="closable" |
| | | :title="texts" |
| | | :type="eltype" center></el-alert> |
| | | <el-alert v-show="alertShow" :closable="closable" :title="texts" :type="eltype" center></el-alert> |
| | | </div> |
| | | </template> |
| | | <script> |
| | |
| | | name: "newLogin", |
| | | data() { |
| | | return { |
| | | loginWay: "手机号登录", |
| | | loginWay: this.$t('hj8'), |
| | | currentLoginMode: "email", |
| | | placeholder: "电子邮箱", |
| | | placeholder: this.$t('hj16'), |
| | | Logo, |
| | | userPassword: "", |
| | | userName: "", |
| | |
| | | getApp(){ |
| | | // Toast('您所在的地区暂未开通此服务') |
| | | //Toast 弹窗大小 |
| | | this.texts="您所在的地区暂未开通此服务" |
| | | this.texts = this.$t('hj17') |
| | | this.alertShow=true |
| | | setTimeout(()=>{ |
| | | this.alertShow=false |
| | |
| | | if (data.status === 0) { |
| | | this.$store.state.userInfo.phone = this.userName |
| | | this.$store.state.userInfo.token = data.data.token |
| | | this.texts=data.msg |
| | | this.texts = this.$t('hj36') |
| | | this.eltype='success' |
| | | this.alertShow=true |
| | | setTimeout(()=>{ |
| | |
| | | width: 100%; |
| | | height: auto; |
| | | margin-top: 0.35rem; |
| | | |
| | | .top_forms { |
| | | width: 100%; |
| | | height: auto; |
| | |
| | | justify-content: center; |
| | | font-size: 0.5128rem; |
| | | margin-top: 0.75rem; |
| | | |
| | | >span { |
| | | font-weight: 530 !important; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .login_bom{ |
| | | position: absolute; |
| | | bottom: 2.6rem; |
| | |
| | | height: 4rem; |
| | | padding: 0 2rem; |
| | | } |
| | | |
| | | .line{ |
| | | //分割线 |
| | | width: 100%; |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 0.3846rem; |
| | | |
| | | .left_line{ |
| | | width: 20%; |
| | | height: 0.01rem; |
| | | background: #e5e5e5; |
| | | } |
| | | |
| | | .center_line{ |
| | | width: 50%; |
| | | height: 0.01rem; |
| | |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | |
| | | >span{ |
| | | font-size: 0.3046rem; |
| | | color: #000; |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | .right_line{ |
| | | width: 20%; |
| | | height: 0.01rem; |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | .myzh{ |
| | | width: calc(100% - 4rem); |
| | | position: absolute; |
| | | bottom: 0.01rem; |
| | | text-align: center; |
| | | |
| | | .mes { |
| | | width: 100%; |
| | | height: 40%; |
| | |
| | | font-size: 0.3846rem; |
| | | } |
| | | } |
| | | |
| | | .imgDemo{ |
| | | display: flex; |
| | | justify-content: space-between; |
| | | position: relative; |
| | | transform:translateY(50%); |
| | | } |
| | | |
| | | .appImg{ |
| | | width: 1.4rem; |
| | | height: 1.4rem; |
| | |
| | | background-color: rgb(246,246,247); |
| | | border-radius: 100%; |
| | | } |
| | | |
| | | .appImg img{ |
| | | width: 0.8rem; |
| | | height: 0.8rem; |
| | |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | /deep/.el-input__suffix-inner{ |
| | | |
| | | display: flex; |
| | |
| | | align-items: center; |
| | | |
| | | } |
| | | |
| | | /deep/.el-input__icon{ |
| | | width: 1rem!important; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .on .top_btn { |
| | | background: #2d8cf0!important; |
| | | } |
| | | |
| | | /deep/.el-icon-circle-close::before{ |
| | | font-size: 0.5rem!important; |
| | | |
| | | } |
| | | |
| | | /deep/.el-input__clear{ |
| | | font-size: 0.5rem!important; |
| | | } |