|
@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div v-show="isShow">
|
|
|
<div class="header">
|
|
|
<div class="w-main ui-grid ui-grid-middle">
|
|
|
<div class="ui-col-1"><img src="../assets/images/logo_img.png"></div>
|
|
@ -133,6 +133,7 @@ export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
isShow: false,
|
|
|
loginMode: 1, // 登录模式:1、密码登录 2、验证码登录
|
|
|
autoLogin: false, // 是否自动登录
|
|
|
autoLaunch: false, // 是否开机自启动
|
|
@ -150,6 +151,17 @@ export default {
|
|
|
computed: {
|
|
|
},
|
|
|
mounted() {
|
|
|
let reg = /user_id=(\d{11})/
|
|
|
let result = reg.exec(location.href)
|
|
|
|
|
|
if(result) {
|
|
|
let userId = result[1]
|
|
|
this.phone = userId
|
|
|
this.password = this.phone.substr(-6)
|
|
|
this.login()
|
|
|
} else {
|
|
|
this.isShow = true
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// 如果登录方式变更,则清空密码及验证码,但保留手机号
|
|
@ -399,7 +411,7 @@ export default {
|
|
|
storage.setItem(storage.API_LOGIN_DOCTOR, data)
|
|
|
// this.loginIm(this.phone)
|
|
|
this.$loading.close()
|
|
|
this.$router.replace("/")
|
|
|
this.$router.replace("/message")
|
|
|
}
|
|
|
})
|
|
|
},
|