登录等修改

dev_2022-04-07
yujialong 3 years ago
parent 267534fddc
commit 706aa577d6
  1. 138
      src/api/index.js
  2. BIN
      src/assets/img/login/school.png
  3. BIN
      src/assets/img/login/workNumber.png
  4. 508
      src/pages/account/login/index.vue
  5. 6
      src/pages/screen/list/index.vue
  6. 20
      src/pages/setting/person/info.vue
  7. 1
      src/plugins/requests/index.js
  8. 2
      src/setting.js
  9. 2
      src/styles/page/screen.scss

@ -1,92 +1,96 @@
import Setting from '@/setting'
const host = Setting.apiBaseURL
export default {
// 登录注册
logins: `/users/users/user/login`,
verification:`${Setting.apiBaseURL}/users/users/user/captcha`,
logins: `users/users/user/login`,
verification:`${host}users/users/user/captcha`,
sendPhoneVerificationCode: `${host}users/users/user/sendPhoneVerificationCode`,
getToken: `users/users/user/getToken`,
// 加密货币
market: `/topic/market`,
market: `topic/market`,
getTopList: `${Setting.cryptoBaseURL}currency/market/getTopList`,
platformLogList: `/nakadai/log/platformLogList`,
logNotification: `/nakadai/log/logNotification`,
platformLogList: `nakadai/log/platformLogList`,
logNotification: `nakadai/log/logNotification`,
// 公用接口
queryProvince: `/nakadai/nakadai/province/queryProvince`,
queryCity: `/nakadai/nakadai/city/queryCity`,
querySchool: `/nakadai/nakadai/school/querySchool`,
queryProvince: `nakadai/nakadai/province/queryProvince`,
queryCity: `nakadai/nakadai/city/queryCity`,
querySchool: `nakadai/nakadai/school/querySchool`,
queryCourseDiscipline: `/nakadai/nakadai/subject/courseDiscipline`,
queryCourseProfessionalClass: `/nakadai/nakadai/subject/courseProfessionalClass`,
queryCourseProfessional: `/nakadai/nakadai/subject/courseProfessional`,
queryCourseDiscipline: `nakadai/nakadai/subject/courseDiscipline`,
queryCourseProfessionalClass: `nakadai/nakadai/subject/courseProfessionalClass`,
queryCourseProfessional: `nakadai/nakadai/subject/courseProfessional`,
getSchoolIdByToken: `/users/users/data/user/getSchoolIdByToken`,
getSchoolIdByToken: `users/users/data/user/getSchoolIdByToken`,
// 个人中心
uploadUserAvatars: `${Setting.apiBaseURL}/users/users/userAccount/updateUserAvatars`,
userInfo:`/users/users/userInfo/getUserInfo`,
updateUser:`/users/users/userInfo/updateUser`,
findPasswordByEmail:`/users/users/userAccount/findPasswordByEmail`,
findPasswordByPhone:`/users/users/userAccount/findPasswordByPhone`,
uploadUserAvatars: `${host}users/users/userAccount/updateUserAvatars`,
userInfo:`users/users/userInfo/getUserInfo`,
updateUser:`users/users/userInfo/updateUser`,
findPasswordByEmail:`users/users/userAccount/findPasswordByEmail`,
findPasswordByPhone:`users/users/userAccount/findPasswordByPhone`,
// 用户管理
saveUser: `/users/users/data/user/save`,
getDetailByAccount: `/occupationlab/architecture/getDetailByAccount`,
getUserList: `/users/users/data/user/getUserList`,
getUserTotalBySchoolId: `/users/users/data/user/getUserTotalBySchoolId`,
checkAccount:`/occupationlab/architecture/checkWorkNumOrAccount`,
getDetail:`/users/users/data/user/getDetail`,
modifyUser:`/users/users/data/user/modify`,
export_failure:`${Setting.apiBaseURL}/users/users/data/user/export_failure`,
uploadFile:`${Setting.apiBaseURL}/users/users/data/user/uploadFile`,
deleteUser:`/users/users/data/user/delete`,
resetPwd: `/users/users/userAccount/resetPwd`,
sendPhoneOrEmailCode: `/users/users/userAccount/sendPhoneOrEmailCode`,
bindPhoneOrEmail: `/users/users/userAccount/bindPhoneOrEmail`,
examinePassword: `/users/users/userAccount/examinePassword`,
isClient: `/users/users/user/isClient`,
deleteProfile: `/users/users/userInfo/deleteProfile`,
checkEmailOrPhone: `/occupationlab/architecture/checkEmailOrPhone`,
accountIsDisabled: `/users/users/user/accountIsDisabled`,
saveUser: `users/users/data/user/save`,
getDetailByAccount: `occupationlab/architecture/getDetailByAccount`,
getUserList: `users/users/data/user/getUserList`,
getUserTotalBySchoolId: `users/users/data/user/getUserTotalBySchoolId`,
checkAccount:`occupationlab/architecture/checkWorkNumOrAccount`,
getDetail:`users/users/data/user/getDetail`,
modifyUser:`users/users/data/user/modify`,
export_failure:`${host}users/users/data/user/export_failure`,
uploadFile:`${host}users/users/data/user/uploadFile`,
deleteUser:`users/users/data/user/delete`,
resetPwd: `users/users/userAccount/resetPwd`,
sendPhoneOrEmailCode: `users/users/userAccount/sendPhoneOrEmailCode`,
unbindMobilePhone: `users/users/userAccount/unbindMobilePhone`,
bindPhoneOrEmail: `users/users/userAccount/bindPhoneOrEmail`,
examinePassword: `users/users/userAccount/examinePassword`,
isClient: `users/users/user/isClient`,
deleteProfile: `users/users/userInfo/deleteProfile`,
checkEmailOrPhone: `occupationlab/architecture/checkEmailOrPhone`,
accountIsDisabled: `users/users/user/accountIsDisabled`,
userTemplate: `http://39.108.250.202/template/%E6%95%B0%E6%8D%AE%E5%B9%B3%E5%8F%B0%E7%94%A8%E6%88%B7%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx`,
// 角色管理
batchRemove:`/users/role/batchRemove`,
getRole:`/users/role/obtainDetails`,
getName:`/data/data/role/getName`,
listRole:`/users/role/list`,
removeRole:`/data/data/role/remove`,
saveOrUpdate:`/users/role/saveOrUpdate`,
getPermissions:`/users/user-role/getUserRolesPermissionMenu`,
batchRemove:`users/role/batchRemove`,
getRole:`users/role/obtainDetails`,
getName:`data/data/role/getName`,
listRole:`users/role/list`,
removeRole:`data/data/role/remove`,
saveOrUpdate:`users/role/saveOrUpdate`,
getPermissions:`users/user-role/getUserRolesPermissionMenu`,
// 权限菜单管理
doAssign:`/data/data/permission/doAssign`,
queryAllMenus:`/users/users/permission/queryAllMenus`,
savePer:`/users/user-role/rolePermissionService`,
toAssign:`/data/data/permission/toAssign`,
doAssign:`data/data/permission/doAssign`,
queryAllMenus:`users/users/permission/queryAllMenus`,
savePer:`users/user-role/rolePermissionService`,
toAssign:`data/data/permission/toAssign`,
// 表展示
getIdQueryTable:`/data/data/table/getIdQueryTable`,
getTableByClassification:`/data/data/table/getTableByClassification`,
getTableByCondition:`/data/data/table/getTableByCondition`,
downloadData:`${Setting.apiBaseURL}/data/data/download`,
previewData:`/data/data/preview`,
visualPreview:`/data/data/visualPreview`,
downloadRecord:`/data/data/myDownload/downloadRecord`,
getDownloadRecord:`/data/data/myDownload/getDownloadRecord`,
downloadAgain:`/data/data/downloadAgain`,
isDownload:`/data/data/product/isDownload`,
getTableTime:`/data/data/tableTime/getTableTime`,
getLevel: `/data/category/getLevel`,
multipleTablePreview: `/data/data/multipleTablePreview`,
getIdQueryTable:`data/data/table/getIdQueryTable`,
getTableByClassification:`data/data/table/getTableByClassification`,
getTableByCondition:`data/data/table/getTableByCondition`,
downloadData:`${host}data/data/download`,
previewData:`data/data/preview`,
visualPreview:`data/data/visualPreview`,
downloadRecord:`data/data/myDownload/downloadRecord`,
getDownloadRecord:`data/data/myDownload/getDownloadRecord`,
downloadAgain:`data/data/downloadAgain`,
isDownload:`data/data/product/isDownload`,
getTableTime:`data/data/tableTime/getTableTime`,
getLevel: `data/category/getLevel`,
multipleTablePreview: `data/data/multipleTablePreview`,
// 数据操作记录
queryAccumulate:`/data/data/dataRecord/queryAccumulate`,
queryDatabaseInfo:`/data/data/dataRecord/queryDatabaseInfo`,
queryDatabaseInfoByMonth:`/data/data/dataRecord/queryDatabaseInfoByMonth`,
saveRecord:`/data/data/dataRecord/saveRecord`,
databaseInfoExport:`${Setting.apiBaseURL}/data/data/dataRecord/databaseInfoExport`,
databaseInfoByMonthExport:`${Setting.apiBaseURL}/data/data/dataRecord/databaseInfoByMonthExport`,
onlineNumber:`/data/data/dataRecord/onlineNumber`,
getProductInfoBySchoolId:`/data/data/product/getProductInfoBySchoolId`,
queryAccumulate:`data/data/dataRecord/queryAccumulate`,
queryDatabaseInfo:`data/data/dataRecord/queryDatabaseInfo`,
queryDatabaseInfoByMonth:`data/data/dataRecord/queryDatabaseInfoByMonth`,
saveRecord:`data/data/dataRecord/saveRecord`,
databaseInfoExport:`${host}data/data/dataRecord/databaseInfoExport`,
databaseInfoByMonthExport:`${host}data/data/dataRecord/databaseInfoByMonthExport`,
onlineNumber:`data/data/dataRecord/onlineNumber`,
getProductInfoBySchoolId:`data/data/product/getProductInfoBySchoolId`,
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 B

@ -6,21 +6,65 @@
<ul class="tab">
<li v-for="(item,index) in tabList" :key="index" :class="{active: form.distinguish == item.id}" @click="typeClick(item)">{{item.label}}</li>
</ul>
<el-form :model="form" :rules="rules" ref="login" label-width="0px">
<el-form-item prop="account">
<label class="account"></label>
<el-input v-model="form.account" :placeholder="form.distinguish == 1 ? '请输入账号' : '请输入手机号/邮箱'" @keyup.enter.native="submitForm"></el-input>
</el-form-item>
<el-form-item prop="password">
<label class="password"></label>
<el-input type="password" placeholder="请输入密码" v-model="form.password" @keyup.enter.native="submitForm"></el-input>
</el-form-item>
<el-form-item prop="code">
<label class="code"></label>
<el-input placeholder="请输入验证码" v-model="form.code" @keyup.enter.native="submitForm"></el-input>
<img @click="getVerImg" :src="verificationIMG" class="ver-img" alt="">
<el-form :model="form" :rules="rules" ref="form" style="margin-top: 20px">
<!-- 学号工号 -->
<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>
<div class="default-check">
<el-checkbox v-model="setDefault">设置为默认学校</el-checkbox>
</div>
</el-form-item>
<el-form-item prop="workNumber">
<label class="label account"></label>
<el-input v-model.trim="form.workNumber" :placeholder="'请输入学号/工号'" @keyup.enter.native="submit"></el-input>
</el-form-item>
</div>
<!-- 手机号登录 -->
<el-form-item v-show="form.distinguish === 1" prop="account">
<label class="label account"></label>
<el-input v-model.trim="form.account" placeholder="请输入账号" @keyup.enter.native="submit"></el-input>
</el-form-item>
<el-button class="submit" type="primary" @click="submitForm">登录</el-button>
<template v-if="form.distinguish === 2">
<el-form-item prop="account">
<label class="label account"></label>
<el-input v-model.trim="form.account" placeholder="请输入手机号/邮箱" @keyup.enter.native="submit"></el-input>
</el-form-item>
<el-form-item prop="code">
<label class="label code"></label>
<div class="flex">
<el-input v-model="form.code" placeholder="请输入验证码" maxlength="6" @keyup.enter.native="submit"></el-input>
<el-button style="margin-left: 10px" type="text" @click="sendPhoneCodeLogin" :disabled="phoneDisabledLogin">{{ phoneBtnTextLogin }}
</el-button>
</div>
</el-form-item>
</template>
<template v-if="form.distinguish !== 2">
<el-form-item prop="password">
<label class="password label"></label>
<el-input
type="password"
placeholder="请输入密码"
v-model.trim="form.password"
@keyup.enter.native="submit"
>
</el-input>
</el-form-item>
<el-form-item prop="code">
<label class="label code"></label>
<el-input
placeholder="请输入验证码"
v-model.trim="form.code"
@keyup.enter.native="submit"
>
</el-input>
<img @click="getVerImg" :src="verificationIMG" class="ver-img" alt="">
</el-form-item>
</template>
<el-button class="submit" type="primary" @click="submit">登录</el-button>
</el-form>
</div>
</div>
@ -43,6 +87,15 @@
<el-button size="small" type="primary" @click="phoneSubmit"> </el-button>
</span>
</el-dialog>
<el-dialog title="请选择您要登录的用户" :visible.sync="userVisible" :close-on-click-modal="false" custom-class="user-dia" width="500px">
<p class="tips">该手机号已绑定以下用户信息</p>
<ul class="users">
<li v-for="(user, i) in users" :key="i" @click="chooseUser(user)">
<span>{{ user.schoolName }}{{ user.userName }}{{ user.workNumber }}</span>
<i class="el-icon-right"></i>
</li>
</ul>
</el-dialog>
<div class="footer">
<div class="copyright">
@ -53,64 +106,117 @@
</template>
<script>
const schoolIdKey = 'dataSchoolId'
import { mapMutations, mapActions } from 'vuex'
import vHead from '@/layouts/header'
import util from '@/libs/util'
import Setting from '@/setting'
import vFooter from '@/layouts/footer'
import axios from 'axios'
export default {
data: function() {
return {
tabList: [
{
id: '1',
label: '账号'
},{
id: '2',
label: '手机号/邮箱'
}
{
id: 0,
label: '学号/工号登录'
}, {
id: 1,
label: '学校管理员登录'
}, {
id: 2,
label: '手机号/邮箱'
}
],
setDefault: !!util.local.get(schoolIdKey), // id
verificationIMG: '',
schoolList: [],
form: {
distinguish: '1',
account: '',
password: '',
random: '',
code: '',
type: 2, // 0-> 1-> 2->
platform: Setting.platformId, // id(1. 2. 3.)
schoolId: '',
workNumber: '',
account: '',
password: '',
code: '', //
random: '', //
distinguish: 0, // ,1,2
type: 2, // 0-> 1-> 2->
platform: Setting.platformId
},
rules: {
account: [{ required: true, message: '请输入账号', trigger: 'blur' }],
password: [{ required: true, message: '请输入密码', trigger: 'blur' }],
code: [{ required: true, message: '请输入验证码', trigger: 'blur' }],
schoolId: [{ required: true, message: "请选择学校", trigger: "change" }],
workNumber: [{ required: true, message: "请输入学生学号", trigger: "blur" }],
account: [{ required: false, message: "请输入账号", trigger: "blur" }],
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
code: [{ required: true, message: "请输入验证码", trigger: "blur" }]
},
phoneDisabledLogin: false,
phoneTimerLogin: null,
phoneBtnTextLogin: '发送验证码',
token: '',
phoneVisible: false,
phone: '',
phoneCode: '',
phoneDisabled: false,
phoneTimer: null,
phoneBtnText: '发送验证码'
phoneBtnText: '发送验证码',
userVisible: false,
users: []
};
},
components: {vHead,vFooter},
mounted(){
this.getVerImg()
this.getSchool()
this.getVerImg()
},
methods: {
...mapMutations("user", [
'SET_CUSTOMERNAME', 'SET_CUSTOMER', 'SET_INFO'
]),
...mapActions('user', [
'login','setCustomer'
'login', 'setCustomer'
]),
typeClick(item){
this.form.account = ''
this.form.distinguish = item.id
this.$refs.login.clearValidate()
this.rules.account[0].message = item.id == 1 ? '请输入账号' : '请输入手机号/邮箱'
getSchool() {
this.$get(this.api.querySchool, {
provinceId: '',
cityId: ''
}).then(res => {
this.schoolList = res.list
// id
const schoolId = util.local.get(schoolIdKey)
if (schoolId) this.form.schoolId = schoolId
}).catch(res => {})
},
//
typeClick(tab) {
const { id } = tab
const form = this.form
//
this.form = {
schoolId: form.schoolId,
workNumber: '',
account: '',
password: '',
code: '',
random: form.random,
distinguish: id,
type: 2,
platform: form.platform
}
this.$refs.form.clearValidate()
//
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) {
this.$post(`${this.api.getToken}?id=${user.id}`).then(({ data }) => {
this.queryClient(data.token)
}).catch(res => {})
},
//
setLogin() {
@ -145,20 +251,34 @@ export default {
this.$router.replace(redirect)
}).catch(res => {})
},
submitForm() {
this.$refs.login.validate(valid => {
submit() {
this.$refs.form.validate(valid => {
if (valid) {
this.$post(this.api.logins, this.form).then(res => {
//
if (res && res.status == 30001) {
this.phoneVisible = true
this.getVerImg()
this.form.code = ''
} else {
this.token = res.data.token
this.setLogin()
}
}).catch(res => {})
const form = JSON.parse(JSON.stringify(this.form))
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 }) => {
//
if (status == 30001) {
this.phoneVisible = true
this.getVerImg()
form.code = ''
} else if (status == 200) {
//
if (data instanceof Array) {
this.users = data
this.userVisible = true
} else {
this.token = data.token
this.setLogin()
}
} else {
util.errorMsg(message)
}
}).catch(res => {})
}
})
},
@ -166,6 +286,48 @@ export default {
this.form.random = Math.floor(Math.random()*999999999)
this.verificationIMG = this.api.verification+'?random='+`${this.form.random}`
},
//
verifyPhone(phone) {
if (!phone) {
util.warningMsg("请输入手机号")
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)) {
util.warningMsg("请输入正确的手机号/邮箱")
return false
}
return true
},
//
phoneCountdownLogin() {
let count = 60
if (!this.phoneTimerLogin) {
this.phoneDisabledLogin = true
this.phoneTimerLogin = setInterval(() => {
if (count > 0) {
count--
this.phoneBtnTextLogin = `${count}秒后重试`
} else {
this.phoneDisabledLogin = false
clearInterval(this.phoneTimerLogin)
this.phoneTimerLogin = null
this.phoneBtnTextLogin = `发送验证码`
}
}, 1000)
}
},
//
sendPhoneCodeLogin() {
const phone = this.form.account
if (!this.verifyPhone(phone)) return false
this.$post(`${this.api.sendPhoneVerificationCode}?phoneOrEmail=${phone}`).then(({ message }) => {
util.successMsg(message)
this.phoneCountdownLogin()
}).catch(res => {})
},
phoneCountdown(){
let count = 60
if(!this.phoneTimer){
@ -185,10 +347,10 @@ export default {
}
},
sendPhoneCode(){
if(!this.phone) return util.warningMsg('请输入手机号')
if(!/^1[3456789]\d{9}$/.test(this.phone)) return util.warningMsg('请输入正确的手机号')
const { phone } = this
if (!this.verifyPhone(phone)) return false
let data = {
phone: this.phone,
phone,
types: 2 // 12
}
this.$post(this.api.sendPhoneOrEmailCode,data).then(res => {
@ -228,105 +390,120 @@ export default {
.wrap {
min-height: 100%;
background-color: #F3F6FA;
.login{
min-height: calc(100vh - 70px);
padding-top: calc((100vh - 611px) / 2);
background: url(../../../assets/img/shapes/shape1.png) (0 123px)/auto no-repeat,
url(../../../assets/img/shapes/shape2.png) (35px 238px)/auto no-repeat,
url(../../../assets/img/shapes/shape3.png) (0 485px)/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/shape6.png) (right bottom)/auto no-repeat;
.form{
width: 436px;
padding: 38px 38px 60px;
margin: 0 auto 0;
border-radius: 6px;
background-color: #fff;
.title{
margin-bottom: 25px;
font-size: 26px;
color: #0B1D30;
letter-spacing: 4px;
}
.tab{
display: flex;
align-items: center;
margin-bottom: 24px;
border-bottom: 2px solid #E1E6F2;
li{
padding: 18px 0;
margin-bottom: -1px;
font-size: 18px;
color: #555;
cursor: pointer;
border-bottom: 4px solid transparent;
&:first-child{
margin-right: 50px;
}
&.active{
color: #006EFF;;
border-bottom-color: #006EFF;
}
}
}
.label{
margin-bottom: 10px;
color: #105CB2;
}
/deep/.el-form-item{
margin-bottom: 20px;
}
/deep/.el-input__inner{
position: relative;
height: 52px;
padding: 0 20px 0 34px;
line-height: 50px;
background-color: #FBFBFB;
border: 1px solid #E1E6F2;
border-radius: 4px !important;
}
.account,.password,.code{
z-index: 1;
position: absolute;
top: 17px;
left: 11px;
width: 18px;
height: 18px;
background: url(../../../assets/img/login/account.png) 0 0/100% 100% no-repeat;
}
.password{
top: 18px;
background-image: url(../../../assets/img/login/password.png);
}
.code{
top: 18px;
background-image: url(../../../assets/img/login/code.png);
}
.ver-img{
position: absolute;
top: 1px;
right: 1px;
}
/deep/.el-form-item__error{
top: 105%;
left: auto;
right: 0;
color: #FFA94E;
}
.login{
min-height: calc(100vh - 70px);
padding-top: calc((100vh - 611px) / 2);
background: url(../../../assets/img/shapes/shape1.png) (0 123px)/auto no-repeat,
url(../../../assets/img/shapes/shape2.png) (35px 238px)/auto no-repeat,
url(../../../assets/img/shapes/shape3.png) (0 485px)/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/shape6.png) (right bottom)/auto no-repeat;
.tab{
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
border-bottom: 2px solid #E1E6F2;
li{
padding: 18px 0;
margin-bottom: -1px;
font-size: 16px;
color: #555;
cursor: pointer;
border-bottom: 4px solid transparent;
&:last-child{
margin-right: 0;
}
.submit{
width: 100%;
height: 48px;
margin-top: 30px;
line-height: 48px;
padding: 0;
font-size: 20px;
background-color: $main-color;
border-radius: 4px;
border: 0;
&.active{
color: $main-color;;
border-bottom-color: $main-color;
}
}
}
.items {
display: flex;
align-items: center;
}
.form{
width: 436px;
padding: 38px 38px 60px;
margin: 0 auto 0;
border-radius: 6px;
background-color: #fff;
.title{
margin-bottom: 25px;
font-size: 26px;
color: #0B1D30;
letter-spacing: 4px;
}
}
/deep/.el-form-item{
margin-bottom: 20px;
}
/deep/.el-input__inner{
position: relative;
height: 52px;
padding: 0 20px 0 34px;
line-height: 50px;
background-color: #FBFBFB;
border: 1px solid #E1E6F2;
border-radius: 4px !important;
}
.default-check {
margin-top: -6px;
text-align: right;
}
.el-select {
width: 100%;
}
.label {
z-index: 1;
position: absolute;
top: 17px;
left: 11px;
width: 18px;
height: 18px;
background: url(../../../assets/img/login/account.png) 0 0/100% 100% no-repeat;
}
.school{
background-image: url(../../../assets/img/login/school.png);
}
.workNumber{
width: 17px;
background-image: url(../../../assets/img/login/workNumber.png);
}
.password{
top: 18px;
background-image: url(../../../assets/img/login/password.png);
}
.code{
top: 18px;
background-image: url(../../../assets/img/login/code.png);
}
.ver-img{
position: absolute;
top: 1px;
right: 1px;
}
/deep/.el-form-item__error{
top: 105%;
left: auto;
right: 0;
color: #FFA94E;
}
.submit{
width: 100%;
height: 48px;
margin-top: 30px;
line-height: 48px;
padding: 0;
font-size: 20px;
background-color: $main-color;
border-radius: 4px;
border: 0;
}
}
.copyright{
padding: 18px 0;
@ -347,6 +524,35 @@ export default {
text-align: center;
color: #666;
}
/deep/.user-dia {
.tips {
margin-bottom: 20px;
text-align: center;
color: #666;
}
.users {
li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 15px;
margin-bottom: 10px;
line-height: 40px;
font-size: 14px;
background-color: #ebeef5;
cursor: pointer;
&:last-child {
margin-bottom: 0;
}
&:hover {
background-color: #d3e0ff;
}
i {
font-size: 16px;
}
}
}
}
@media (max-height: 680px) {
.wrap .login {
padding: 40px 0;

@ -1132,7 +1132,7 @@ export default {
realtime: false, //
//
inRange: {
color: ['#337cfd', '#e6ac53', '#74e2ca', '#85daef', '#9feaa5', '#5475f5'] //
color: ['rgba(219, 207, 149, .9)', '#e6ac53', '#74e2ca', '#85daef', '#9feaa5', '#5475f5'] //
}
},
series: [
@ -1149,7 +1149,7 @@ export default {
},
//
itemStyle: {
areaColor: '#7B68EE', // visualMapareaColor
areaColor: '#4c60ff', // visualMapareaColor
borderWidth: 0.5, // 线 0
borderColor: '#000', // color
borderType: 'solid' // 线 'solid', 'dashed', 'dotted'
@ -1161,7 +1161,7 @@ export default {
color: '#fff' // 'auto'
},
itemStyle: {
areaColor: '#FF6347' //
areaColor: 'rgba(41, 63, 255, .9)' //
}
},
//

@ -122,12 +122,11 @@
<div class="page-content">
<ul class="list">
<div class="line info imp">
<li>
<label>用户账号</label>
<el-input class="m-r-10" size="small" v-model="form.account" clearable disabled></el-input>
<el-button type="text" size="small" @click="openAccount">编辑</el-button>
<li style="width: 334px;margin-right: 90px">
<label>学号</label>
<el-input class="m-r-10" size="small" v-model="form.workNumber" clearable disabled></el-input>
</li>
<li>
<li class="phone-li">
<label>手机号</label>
<el-input class="m-r-10" type="text" size="small" v-model="form.phone" disabled></el-input>
<el-button type="text" size="small" @click="bindPhone">{{ form.phone ? '更换' : '绑定' }}</el-button>
@ -345,7 +344,7 @@ export default {
}
},
mounted() {
this.getdata()
this.getData()
this.getProvince()
this.getSchoolData()
this.getSubject()
@ -355,7 +354,7 @@ export default {
...mapActions('user', [
'setAvatar','setInfo'
]),
getdata() {
getData() {
this.$get(this.api.userInfo).then(res => {
let userInfo = res.userInfo || {}
this.form = Object.assign(userInfo,res.userAccount)
@ -485,7 +484,7 @@ export default {
util.successMsg('更新成功')
this.updateTime = 0
this.$emit('updateStatus',false)
this.getdata()
this.getData()
}else{
util.errorMsg('更新失败')
}
@ -542,7 +541,7 @@ export default {
}).then(() => {
this.$get(this.api.unbindMobilePhone).then(res => {
this.$message.success('解绑成功')
this.getdata()
this.getData()
}).catch(res => {})
}).catch(() => {})
},
@ -848,6 +847,9 @@ export default {
}
&.imp li{
width: calc(30% + 36px) !important;
&.phone-li {
width: calc(30% + 72px) !important;
}
}
}
li{

@ -26,7 +26,6 @@ function checkDisabled () {
token
}
}).then(res => {
console.log(11, res.data)
if (res.data) {
util.errorMsg('账号被禁用,已强制退出,有疑问请联系管理员')
setTimeout(() => {

@ -25,7 +25,7 @@ const Setting = {
* 正式http://www.dataforward.cn:9000
* */
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://39.108.250.202:9000',
apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : `${location.origin}:9000`,
apiBaseURL: env === 'development' ? 'http://192.168.31.137:9000/' : `${location.origin}:9000/`,
// 加密货币接口地址
cryptoBaseURL: `http://159.138.53.111/`,
// 接口请求返回错误时,弹窗的持续时间,单位:秒

@ -85,7 +85,7 @@
overflow: hidden;
img {
position: absolute;
top: 50%;
top: 52%;
left: 50%;
transform: translate(-50%, -50%);
opacity: .4;

Loading…
Cancel
Save