|
|
@ -4,16 +4,20 @@ |
|
|
|
<div class="form"> |
|
|
|
<div class="form"> |
|
|
|
<h6 class="title">欢迎使用请登录</h6> |
|
|
|
<h6 class="title">欢迎使用请登录</h6> |
|
|
|
<ul class="tab"> |
|
|
|
<ul class="tab"> |
|
|
|
<li v-for="(item, index) in tabList" :key="index" :class="{ active: form.distinguish == item.id }" |
|
|
|
<li v-for="(item,index) in tabList" :key="index" :class="{active: form.distinguish == item.id}" @click="typeClick(item)">{{item.label}}</li> |
|
|
|
@click="typeClick(item)">{{ item.label }}</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<el-form :model="form" :rules="rules" ref="form" style="margin-top: 20px"> |
|
|
|
<el-form :model="form" :rules="rules" ref="form" style="margin-top: 20px"> |
|
|
|
<!-- 学号工号 --> |
|
|
|
<!-- 学号工号 --> |
|
|
|
<div v-show="!form.distinguish && !verCodeLogin" class="items"> |
|
|
|
<div v-show="!form.distinguish"> |
|
|
|
|
|
|
|
<el-form-item class="school-select" prop="schoolId"> |
|
|
|
|
|
|
|
<label class="label school"></label> |
|
|
|
|
|
|
|
<el-select v-model="form.schoolId" clearable filterable placeholder="请选择学校"> |
|
|
|
|
|
|
|
<el-option v-for="(item, i) in schoolList" :key="i" :label="item.schoolName" :value="item.schoolId"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
<el-form-item class="flex-1" prop="workNumber"> |
|
|
|
<el-form-item class="flex-1" prop="workNumber"> |
|
|
|
<label class="label account"></label> |
|
|
|
<label class="label account"></label> |
|
|
|
<el-input v-model.trim="form.workNumber" placeholder="请输入学号/工号/手机号/邮箱" |
|
|
|
<el-input v-model.trim="form.workNumber" :placeholder="'请输入学号/工号'" @keyup.enter.native="submit"></el-input> |
|
|
|
@keyup.enter.native="submit"></el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 手机号登录 --> |
|
|
|
<!-- 手机号登录 --> |
|
|
@ -21,7 +25,7 @@ |
|
|
|
<label class="label account"></label> |
|
|
|
<label class="label account"></label> |
|
|
|
<el-input v-model.trim="form.account" placeholder="请输入账号" @keyup.enter.native="submit"></el-input> |
|
|
|
<el-input v-model.trim="form.account" placeholder="请输入账号" @keyup.enter.native="submit"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<template v-if="verCodeLogin"> |
|
|
|
<template v-if="form.distinguish === 2"> |
|
|
|
<el-form-item prop="account"> |
|
|
|
<el-form-item prop="account"> |
|
|
|
<label class="label account"></label> |
|
|
|
<label class="label account"></label> |
|
|
|
<el-input v-model.trim="form.account" placeholder="请输入手机号/邮箱" @keyup.enter.native="submit"></el-input> |
|
|
|
<el-input v-model.trim="form.account" placeholder="请输入手机号/邮箱" @keyup.enter.native="submit"></el-input> |
|
|
@ -29,30 +33,36 @@ |
|
|
|
<el-form-item prop="code"> |
|
|
|
<el-form-item prop="code"> |
|
|
|
<label class="label code"></label> |
|
|
|
<label class="label code"></label> |
|
|
|
<div class="ver-code"> |
|
|
|
<div class="ver-code"> |
|
|
|
<el-input v-model="form.code" placeholder="请输入验证码" maxlength="6" |
|
|
|
<el-input v-model="form.code" placeholder="请输入验证码" maxlength="6" @keyup.enter.native="submit"></el-input> |
|
|
|
@keyup.enter.native="submit"></el-input> |
|
|
|
<el-button type="text" @click="sendPhoneCodeLogin" :disabled="phoneDisabledLogin">{{ phoneBtnTextLogin }} |
|
|
|
<el-button type="text" @click="sendPhoneCodeLogin" :disabled="phoneDisabledLogin">{{ phoneBtnTextLogin |
|
|
|
|
|
|
|
}} |
|
|
|
|
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<template v-if="form.distinguish !== 2"> |
|
|
|
<el-form-item prop="password"> |
|
|
|
<el-form-item prop="password"> |
|
|
|
<label class="password label"></label> |
|
|
|
<label class="password label"></label> |
|
|
|
<el-input type="password" placeholder="请输入密码" v-model.trim="form.password" @keyup.enter.native="submit"> |
|
|
|
<el-input |
|
|
|
|
|
|
|
type="password" |
|
|
|
|
|
|
|
placeholder="请输入密码" |
|
|
|
|
|
|
|
v-model.trim="form.password" |
|
|
|
|
|
|
|
@keyup.enter.native="submit" |
|
|
|
|
|
|
|
> |
|
|
|
</el-input> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item prop="code"> |
|
|
|
<el-form-item prop="code"> |
|
|
|
<label class="label code"></label> |
|
|
|
<label class="label code"></label> |
|
|
|
<el-input placeholder="请输入验证码" v-model.trim="form.code" @keyup.enter.native="submit"> |
|
|
|
<el-input |
|
|
|
|
|
|
|
placeholder="请输入验证码" |
|
|
|
|
|
|
|
v-model.trim="form.code" |
|
|
|
|
|
|
|
@keyup.enter.native="submit" |
|
|
|
|
|
|
|
> |
|
|
|
</el-input> |
|
|
|
</el-input> |
|
|
|
<img @click="getVerImg" :src="verificationIMG" class="ver-img" alt=""> |
|
|
|
<img @click="getVerImg" :src="verificationIMG" class="ver-img" alt=""> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<div class="bottom"> |
|
|
|
<div v-show="!form.distinguish" class="default-check"> |
|
|
|
<el-link :underline="false" type="primary" @click="switchType">{{ verCodeLogin ? '密码' : '验证码' }}登录</el-link> |
|
|
|
<el-checkbox v-model="setDefault">设置为默认学校</el-checkbox> |
|
|
|
<el-link :underline="false" type="primary" @click="toAccount">没有账号,点击申请</el-link> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-button class="submit" type="primary" @click="submit">登录</el-button> |
|
|
|
<el-button class="submit" type="primary" @click="submit">登录</el-button> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
@ -68,9 +78,7 @@ |
|
|
|
<el-form-item label="验证码"> |
|
|
|
<el-form-item label="验证码"> |
|
|
|
<div class="ver-code"> |
|
|
|
<div class="ver-code"> |
|
|
|
<el-input v-model="phoneCode" placeholder="请输入验证码" maxlength="6"></el-input> |
|
|
|
<el-input v-model="phoneCode" placeholder="请输入验证码" maxlength="6"></el-input> |
|
|
|
<el-button style="top: 1px" type="text" @click="sendPhoneCode(1)" |
|
|
|
<el-button style="top: 1px" type="text" @click="sendPhoneCode(1)" :disabled="binding === '' || phoneDisabled">{{phoneBtnText}}</el-button> |
|
|
|
:disabled="binding === '' || phoneDisabled">{{ |
|
|
|
|
|
|
|
phoneBtnText }}</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
@ -79,8 +87,7 @@ |
|
|
|
<el-button size="small" type="primary" @click="phoneSubmit">确 定</el-button> |
|
|
|
<el-button size="small" type="primary" @click="phoneSubmit">确 定</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog title="请选择您要登录的用户" :visible.sync="userVisible" :close-on-click-modal="false" custom-class="user-dia" |
|
|
|
<el-dialog title="请选择您要登录的用户" :visible.sync="userVisible" :close-on-click-modal="false" custom-class="user-dia" width="500px"> |
|
|
|
width="500px"> |
|
|
|
|
|
|
|
<p class="tips">该手机号已绑定以下用户信息</p> |
|
|
|
<p class="tips">该手机号已绑定以下用户信息</p> |
|
|
|
<ul class="users"> |
|
|
|
<ul class="users"> |
|
|
|
<li :class="{isEnable: !user.isEnable}" v-for="(user, i) in users" :key="i" @click="chooseUser(user)"> |
|
|
|
<li :class="{isEnable: !user.isEnable}" v-for="(user, i) in users" :key="i" @click="chooseUser(user)"> |
|
|
@ -89,8 +96,7 @@ |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog :visible.sync="infoVisible" :close-on-click-modal="false" :show-close="false" custom-class="info-dia" |
|
|
|
<el-dialog :visible.sync="infoVisible" :close-on-click-modal="false" :show-close="false" custom-class="info-dia" width="400px"> |
|
|
|
width="400px"> |
|
|
|
|
|
|
|
<div class="info-header"> |
|
|
|
<div class="info-header"> |
|
|
|
<i class="el-icon-warning"></i> |
|
|
|
<i class="el-icon-warning"></i> |
|
|
|
提示 |
|
|
|
提示 |
|
|
@ -130,30 +136,36 @@ export default { |
|
|
|
tabList: [ |
|
|
|
tabList: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 0, |
|
|
|
id: 0, |
|
|
|
label: '学生/老师登录' |
|
|
|
label: '学号/工号登录' |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
id: 1, |
|
|
|
id: 1, |
|
|
|
label: '学校管理员登录' |
|
|
|
label: '学校管理员登录' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
id: 2, |
|
|
|
|
|
|
|
label: '手机号/邮箱' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
setDefault: !!util.local.get(schoolIdKey), // 本地缓存里有学校id,则默认勾选 |
|
|
|
verificationIMG: '', |
|
|
|
verificationIMG: '', |
|
|
|
schoolList: [], |
|
|
|
schoolList: [], |
|
|
|
form: { |
|
|
|
form: { |
|
|
|
|
|
|
|
schoolId: '', |
|
|
|
workNumber: '', |
|
|
|
workNumber: '', |
|
|
|
account: '', // 手机号验证码模式用这个字段 |
|
|
|
account: '', |
|
|
|
password: '', |
|
|
|
password: '', |
|
|
|
code: '', // 验证码 |
|
|
|
code: '', // 验证码 |
|
|
|
random: '', // 随机数 |
|
|
|
random: '', // 随机数 |
|
|
|
platform: Setting.platformId, |
|
|
|
distinguish: 0, // 区分手机号账号登录,1为账号登录,2为手机号或邮箱登录 |
|
|
|
distinguish: 0, |
|
|
|
type: 2, // 平台端区分:0->教师端 1->学生端 2->无端 |
|
|
|
|
|
|
|
platform: Setting.platformId |
|
|
|
}, |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
workNumber: [{ required: true, message: "请输入学号/工号/手机号/邮箱", trigger: "blur" }], |
|
|
|
schoolId: [{ required: true, message: "请选择学校", trigger: "change" }], |
|
|
|
|
|
|
|
workNumber: [{ required: true, message: "请输入学生学号", trigger: "blur" }], |
|
|
|
account: [{ required: false, message: "请输入账号", trigger: "blur" }], |
|
|
|
account: [{ required: false, message: "请输入账号", trigger: "blur" }], |
|
|
|
password: [{ required: true, message: "请输入密码", trigger: "blur" }], |
|
|
|
password: [{ required: true, message: "请输入密码", trigger: "blur" }], |
|
|
|
code: [{ required: true, message: "请输入验证码", trigger: "blur" }] |
|
|
|
code: [{ required: true, message: "请输入验证码", trigger: "blur" }] |
|
|
|
}, |
|
|
|
}, |
|
|
|
verCodeLogin: false, |
|
|
|
|
|
|
|
phoneDisabledLogin: false, |
|
|
|
phoneDisabledLogin: false, |
|
|
|
phoneTimerLogin: null, |
|
|
|
phoneTimerLogin: null, |
|
|
|
phoneBtnTextLogin: '发送验证码', |
|
|
|
phoneBtnTextLogin: '发送验证码', |
|
|
@ -176,6 +188,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: {vHead,vFooter}, |
|
|
|
components: {vHead,vFooter}, |
|
|
|
mounted(){ |
|
|
|
mounted(){ |
|
|
|
|
|
|
|
this.getSchool() |
|
|
|
this.getVerImg() |
|
|
|
this.getVerImg() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
@ -185,17 +198,27 @@ export default { |
|
|
|
...mapActions('user', [ |
|
|
|
...mapActions('user', [ |
|
|
|
'login', 'setCustomer' |
|
|
|
'login', 'setCustomer' |
|
|
|
]), |
|
|
|
]), |
|
|
|
// 重置验证规则 |
|
|
|
// 赋值学校列表及id |
|
|
|
handleRule () { |
|
|
|
setSchool(list) { |
|
|
|
const type = this.form.distinguish |
|
|
|
this.schoolList = list |
|
|
|
const rules = this.rules |
|
|
|
// 取本地缓存里的学校id |
|
|
|
rules.workNumber[0].required = !type && !this.verCodeLogin |
|
|
|
const schoolId = util.local.get(schoolIdKey) |
|
|
|
rules.account[0].required = (!type && this.verCodeLogin) || type |
|
|
|
if (schoolId) this.form.schoolId = schoolId |
|
|
|
this.rules.account[0].message = type ? |
|
|
|
}, |
|
|
|
'请输入账号' : |
|
|
|
// 获取学校列表 |
|
|
|
this.verCodeLogin ? |
|
|
|
getSchool() { |
|
|
|
'请输入手机号/邮箱' : |
|
|
|
const schoolList = util.local.get('schoolList') |
|
|
|
'请输入学号/工号/手机号/邮箱' |
|
|
|
if (schoolList && schoolList.length) { |
|
|
|
|
|
|
|
this.setSchool(schoolList) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$get(this.api.querySchool, { |
|
|
|
|
|
|
|
provinceId: '', |
|
|
|
|
|
|
|
cityId: '' |
|
|
|
|
|
|
|
}).then(({ list }) => { |
|
|
|
|
|
|
|
this.setSchool(list) |
|
|
|
|
|
|
|
util.local.set('schoolList', list) |
|
|
|
|
|
|
|
}).catch(res => {}) |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 切换标签 |
|
|
|
// 切换标签 |
|
|
|
typeClick(tab) { |
|
|
|
typeClick(tab) { |
|
|
@ -214,7 +237,14 @@ export default { |
|
|
|
platform: form.platform |
|
|
|
platform: form.platform |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.form.clearValidate() |
|
|
|
this.$refs.form.clearValidate() |
|
|
|
this.handleRule() |
|
|
|
// 切换了登录方式后,校验规则要变化 |
|
|
|
|
|
|
|
const rules = this.rules |
|
|
|
|
|
|
|
rules.schoolId[0].required = id === 0 |
|
|
|
|
|
|
|
rules.workNumber[0].required = id === 0 |
|
|
|
|
|
|
|
rules.account[0].required = !!id |
|
|
|
|
|
|
|
this.rules.account[0].message = id === 1 ? |
|
|
|
|
|
|
|
'请输入账号' : |
|
|
|
|
|
|
|
'请输入手机号/邮箱' |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 选择用户回调 |
|
|
|
// 选择用户回调 |
|
|
|
chooseUser(user) { |
|
|
|
chooseUser(user) { |
|
|
@ -252,7 +282,11 @@ export default { |
|
|
|
this.$refs.form.validate(valid => { |
|
|
|
this.$refs.form.validate(valid => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
const form = JSON.parse(JSON.stringify(this.form)) |
|
|
|
const form = JSON.parse(JSON.stringify(this.form)) |
|
|
|
if (this.verCodeLogin) form.distinguish = 2 |
|
|
|
const { distinguish } = form |
|
|
|
|
|
|
|
if (!form.distinguish && this.setDefault) util.local.set(schoolIdKey, form.schoolId) // 选的是学号工号登录,并且勾选了默认,则存入缓存 |
|
|
|
|
|
|
|
if (util.local.get(schoolIdKey) && !this.setDefault) util.local.remove(schoolIdKey) // 本地缓存了学校id,并且没有勾选默认,则删除缓存 |
|
|
|
|
|
|
|
if (distinguish) form.schoolId = '' |
|
|
|
|
|
|
|
if (!distinguish) form.distinguish = 1 |
|
|
|
this.$post(this.api.logins, form).then(({ status, data, message }) => { |
|
|
|
this.$post(this.api.logins, form).then(({ status, data, message }) => { |
|
|
|
// 未绑定手机号,则弹框去绑定 |
|
|
|
// 未绑定手机号,则弹框去绑定 |
|
|
|
if (status == 30001) { |
|
|
|
if (status == 30001) { |
|
|
@ -260,23 +294,23 @@ export default { |
|
|
|
this.getVerImg() |
|
|
|
this.getVerImg() |
|
|
|
form.code = '' |
|
|
|
form.code = '' |
|
|
|
} else if (status == 200) { |
|
|
|
} else if (status == 200) { |
|
|
|
const accounts = data.userAccounts |
|
|
|
|
|
|
|
// 如果返回的是数组,则弹框给用户选择登录哪个用户,否则,直接登录 |
|
|
|
// 如果返回的是数组,则弹框给用户选择登录哪个用户,否则,直接登录 |
|
|
|
if (accounts instanceof Array) { |
|
|
|
if (data instanceof Array) { |
|
|
|
this.users = accounts |
|
|
|
// 如果只查询到一个用户,则直接登录,否则,弹框让用户选择 |
|
|
|
|
|
|
|
if (data.length === 1) { |
|
|
|
|
|
|
|
this.chooseUser(data[0]) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.users = data |
|
|
|
this.userVisible = true |
|
|
|
this.userVisible = true |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.token = data.token |
|
|
|
this.token = data.token |
|
|
|
this.setLogin() |
|
|
|
this.setLogin() |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
form.code = '' |
|
|
|
|
|
|
|
util.errorMsg(message) |
|
|
|
util.errorMsg(message) |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(res => { |
|
|
|
}).catch(res => {}) |
|
|
|
this.getVerImg() |
|
|
|
|
|
|
|
form.code = '' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -288,27 +322,16 @@ export default { |
|
|
|
// 验证手机号 |
|
|
|
// 验证手机号 |
|
|
|
verifyPhone(phone) { |
|
|
|
verifyPhone(phone) { |
|
|
|
if (!phone) { |
|
|
|
if (!phone) { |
|
|
|
this.$message.error("请输入手机号") |
|
|
|
util.warningMsg("请输入手机号") |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
if (!/^1[3456789]\d{9}$/.test(phone) && !/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(phone)) { |
|
|
|
if (!/^1[3456789]\d{9}$/.test(phone) && !/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(phone)) { |
|
|
|
this.$message.error("请输入正确的手机号/邮箱") |
|
|
|
util.warningMsg("请输入正确的手机号/邮箱") |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
return true |
|
|
|
return true |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 账号申请 |
|
|
|
|
|
|
|
switchType () { |
|
|
|
|
|
|
|
this.verCodeLogin = !this.verCodeLogin |
|
|
|
|
|
|
|
this.$refs.form.clearValidate() |
|
|
|
|
|
|
|
this.handleRule() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 账号申请 |
|
|
|
|
|
|
|
toAccount () { |
|
|
|
|
|
|
|
this.accountVisible = true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 验证码倒计时 |
|
|
|
// 验证码倒计时 |
|
|
|
phoneCountdownLogin() { |
|
|
|
phoneCountdownLogin() { |
|
|
|
let count = 60 |
|
|
|
let count = 60 |
|
|
@ -434,7 +457,6 @@ export default { |
|
|
|
const { workNumber, schoolId } = this.form |
|
|
|
const { workNumber, schoolId } = this.form |
|
|
|
if (this.binding) { |
|
|
|
if (this.binding) { |
|
|
|
this.$post(this.api.bindPhoneOrEmail, { |
|
|
|
this.$post(this.api.bindPhoneOrEmail, { |
|
|
|
mark: 2, |
|
|
|
|
|
|
|
phone, |
|
|
|
phone, |
|
|
|
types: 2, |
|
|
|
types: 2, |
|
|
|
code: phoneCode, |
|
|
|
code: phoneCode, |
|
|
@ -457,19 +479,16 @@ export default { |
|
|
|
<style scoped lang="scss"> |
|
|
|
<style scoped lang="scss"> |
|
|
|
.wrap { |
|
|
|
.wrap { |
|
|
|
min-height: 100%; |
|
|
|
min-height: 100%; |
|
|
|
background-color: #f3f6fa; |
|
|
|
background-color: #F3F6FA; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ver-code { |
|
|
|
.ver-code { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
|
|
.el-button { |
|
|
|
.el-button { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 10px; |
|
|
|
top: 10px; |
|
|
|
right: 10px; |
|
|
|
right: 10px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.login{ |
|
|
|
.login{ |
|
|
|
min-height: calc(100vh - 70px); |
|
|
|
min-height: calc(100vh - 70px); |
|
|
|
padding-top: calc((100vh - 611px) / 2); |
|
|
|
padding-top: calc((100vh - 611px) / 2); |
|
|
@ -479,14 +498,12 @@ export default { |
|
|
|
url(../../../assets/img/shapes/shape4.png) (right 50%)/auto no-repeat, |
|
|
|
url(../../../assets/img/shapes/shape4.png) (right 50%)/auto no-repeat, |
|
|
|
url(../../../assets/img/shapes/shape5.png) (right 80%)/auto no-repeat, |
|
|
|
url(../../../assets/img/shapes/shape5.png) (right 80%)/auto no-repeat, |
|
|
|
url(../../../assets/img/shapes/shape6.png) (right bottom)/auto no-repeat; |
|
|
|
url(../../../assets/img/shapes/shape6.png) (right bottom)/auto no-repeat; |
|
|
|
|
|
|
|
|
|
|
|
.tab{ |
|
|
|
.tab{ |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-around; |
|
|
|
justify-content: space-between; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
margin-bottom: 24px; |
|
|
|
margin-bottom: 24px; |
|
|
|
border-bottom: 2px solid #e1e6f2; |
|
|
|
border-bottom: 2px solid #E1E6F2; |
|
|
|
|
|
|
|
|
|
|
|
li{ |
|
|
|
li{ |
|
|
|
padding: 18px 0; |
|
|
|
padding: 18px 0; |
|
|
|
margin-bottom: -1px; |
|
|
|
margin-bottom: -1px; |
|
|
@ -494,62 +511,50 @@ export default { |
|
|
|
color: #555; |
|
|
|
color: #555; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
border-bottom: 4px solid transparent; |
|
|
|
border-bottom: 4px solid transparent; |
|
|
|
|
|
|
|
|
|
|
|
&:last-child{ |
|
|
|
&:last-child{ |
|
|
|
margin-right: 0; |
|
|
|
margin-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.active{ |
|
|
|
&.active{ |
|
|
|
color: $main-color; |
|
|
|
color: $main-color;; |
|
|
|
border-bottom-color: $main-color; |
|
|
|
border-bottom-color: $main-color; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.items { |
|
|
|
.items { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.form{ |
|
|
|
.form{ |
|
|
|
width: 436px; |
|
|
|
width: 436px; |
|
|
|
padding: 38px 38px 60px; |
|
|
|
padding: 38px 38px 60px; |
|
|
|
margin: 0 auto 0; |
|
|
|
margin: 0 auto 0; |
|
|
|
border-radius: 6px; |
|
|
|
border-radius: 6px; |
|
|
|
background-color: #fff; |
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
|
|
|
|
.title{ |
|
|
|
.title{ |
|
|
|
margin-bottom: 25px; |
|
|
|
margin-bottom: 25px; |
|
|
|
font-size: 26px; |
|
|
|
font-size: 26px; |
|
|
|
color: #0b1d30; |
|
|
|
color: #0B1D30; |
|
|
|
letter-spacing: 4px; |
|
|
|
letter-spacing: 4px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-form-item{ |
|
|
|
/deep/.el-form-item{ |
|
|
|
margin-bottom: 20px; |
|
|
|
margin-bottom: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-input__inner{ |
|
|
|
/deep/.el-input__inner{ |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
height: 52px; |
|
|
|
height: 52px; |
|
|
|
padding: 0 20px 0 34px; |
|
|
|
padding: 0 20px 0 34px; |
|
|
|
line-height: 50px; |
|
|
|
line-height: 50px; |
|
|
|
background-color: #fbfbfb; |
|
|
|
background-color: #FBFBFB; |
|
|
|
border: 1px solid #e1e6f2; |
|
|
|
border: 1px solid #E1E6F2; |
|
|
|
border-radius: 4px !important; |
|
|
|
border-radius: 4px !important; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.default-check { |
|
|
|
.bottom { |
|
|
|
text-align: right; |
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-select { |
|
|
|
.el-select { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.label { |
|
|
|
.label { |
|
|
|
z-index: 1; |
|
|
|
z-index: 1; |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
@ -559,39 +564,32 @@ export default { |
|
|
|
height: 18px; |
|
|
|
height: 18px; |
|
|
|
background: url(../../../assets/img/login/account.png) 0 0/100% 100% no-repeat; |
|
|
|
background: url(../../../assets/img/login/account.png) 0 0/100% 100% no-repeat; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.school{ |
|
|
|
.school{ |
|
|
|
background-image: url(../../../assets/img/login/school.png); |
|
|
|
background-image: url(../../../assets/img/login/school.png); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.workNumber{ |
|
|
|
.workNumber{ |
|
|
|
width: 17px; |
|
|
|
width: 17px; |
|
|
|
background-image: url(../../../assets/img/login/workNumber.png); |
|
|
|
background-image: url(../../../assets/img/login/workNumber.png); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.password{ |
|
|
|
.password{ |
|
|
|
top: 18px; |
|
|
|
top: 18px; |
|
|
|
background-image: url(../../../assets/img/login/password.png); |
|
|
|
background-image: url(../../../assets/img/login/password.png); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.code{ |
|
|
|
.code{ |
|
|
|
top: 18px; |
|
|
|
top: 18px; |
|
|
|
background-image: url(../../../assets/img/login/code.png); |
|
|
|
background-image: url(../../../assets/img/login/code.png); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ver-img{ |
|
|
|
.ver-img{ |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 1px; |
|
|
|
top: 1px; |
|
|
|
right: 1px; |
|
|
|
right: 1px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.el-form-item__error{ |
|
|
|
/deep/.el-form-item__error{ |
|
|
|
top: 105%; |
|
|
|
top: 105%; |
|
|
|
left: auto; |
|
|
|
left: auto; |
|
|
|
right: 0; |
|
|
|
right: 0; |
|
|
|
color: #ffa94e; |
|
|
|
color: #FFA94E; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.submit{ |
|
|
|
.submit{ |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 48px; |
|
|
|
height: 48px; |
|
|
@ -604,37 +602,31 @@ export default { |
|
|
|
border: 0; |
|
|
|
border: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.copyright{ |
|
|
|
.copyright{ |
|
|
|
padding: 18px 0; |
|
|
|
padding: 18px 0; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
background-color: #f3f6fa; |
|
|
|
background-color: #F3F6FA; |
|
|
|
|
|
|
|
|
|
|
|
a{ |
|
|
|
a{ |
|
|
|
color: #b1b4b8; |
|
|
|
color:#B1B4B8; |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
|
|
|
|
|
|
|
|
&:hover{ |
|
|
|
&:hover{ |
|
|
|
opacity: 0.8; |
|
|
|
opacity: .8; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.tips { |
|
|
|
.tips { |
|
|
|
margin: 0 0 10px 5px; |
|
|
|
margin: 0 0 10px 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
color: #666; |
|
|
|
color: #666; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.user-dia { |
|
|
|
/deep/.user-dia { |
|
|
|
.tips { |
|
|
|
.tips { |
|
|
|
margin-bottom: 20px; |
|
|
|
margin-bottom: 20px; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
color: #666; |
|
|
|
color: #666; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.users { |
|
|
|
.users { |
|
|
|
li { |
|
|
|
li { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
@ -646,33 +638,27 @@ export default { |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
background-color: #ebeef5; |
|
|
|
background-color: #ebeef5; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
|
|
|
|
&.isEnable { |
|
|
|
&.isEnable { |
|
|
|
color: #c0c4cc; |
|
|
|
color: #c0c4cc; |
|
|
|
background-color: #f5f7fa; |
|
|
|
background-color: #f5f7fa; |
|
|
|
cursor: not-allowed; |
|
|
|
cursor: not-allowed; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:last-child { |
|
|
|
&:last-child { |
|
|
|
margin-bottom: 0; |
|
|
|
margin-bottom: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
background-color: #d3e0ff; |
|
|
|
background-color: #d3e0ff; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
i { |
|
|
|
i { |
|
|
|
font-size: 16px; |
|
|
|
font-size: 16px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/.info-dia { |
|
|
|
/deep/.info-dia { |
|
|
|
.el-dialog__header { |
|
|
|
.el-dialog__header { |
|
|
|
border-bottom: 0; |
|
|
|
border-bottom: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.info-header { |
|
|
|
.info-header { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
|
top: 20px; |
|
|
|
top: 20px; |
|
|
@ -681,46 +667,38 @@ export default { |
|
|
|
font-size: 16px; |
|
|
|
font-size: 16px; |
|
|
|
color: #333; |
|
|
|
color: #333; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.el-icon-warning { |
|
|
|
.el-icon-warning { |
|
|
|
margin-right: 10px; |
|
|
|
margin-right: 10px; |
|
|
|
color: #e6a23c; |
|
|
|
color: #e6a23c; |
|
|
|
font-size: 24px; |
|
|
|
font-size: 24px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.info-wrap { |
|
|
|
.info-wrap { |
|
|
|
padding: 10px 33px; |
|
|
|
padding: 10px 33px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.users { |
|
|
|
.users { |
|
|
|
max-height: 125px; |
|
|
|
max-height: 125px; |
|
|
|
margin-top: 20px; |
|
|
|
margin-top: 20px; |
|
|
|
overflow: auto; |
|
|
|
overflow: auto; |
|
|
|
|
|
|
|
|
|
|
|
li { |
|
|
|
li { |
|
|
|
margin: 5px; |
|
|
|
margin: 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
color: #333; |
|
|
|
color: #333; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.info-footer { |
|
|
|
.info-footer { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: space-between; |
|
|
|
// align-items: center; |
|
|
|
// align-items: center; |
|
|
|
margin-top: 20px; |
|
|
|
margin-top: 20px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.el-button { |
|
|
|
.el-button { |
|
|
|
width: 142px; |
|
|
|
width: 142px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.unbind { |
|
|
|
.unbind { |
|
|
|
white-space: normal; |
|
|
|
white-space: normal; |
|
|
|
line-height: 1.6; |
|
|
|
line-height: 1.6; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media (max-height: 680px) { |
|
|
|
@media (max-height: 680px) { |
|
|
|
.wrap .login { |
|
|
|
.wrap .login { |
|
|
|
padding: 40px 0; |
|
|
|
padding: 40px 0; |
|
|
|