提交 1375282b authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 81039761
<template> <template>
<app-container title="安全设置"> <app-container title="安全设置">
<el-form :model="ruleForm" :rules="rules" label-width="130px" ref="ruleForm" class="form"> <el-form :model="ruleForm" :rules="rules" label-width="110px" ref="ruleForm" class="form" hide-required-asterisk>
<el-form-item label="设置新手机号码" prop="account"> <el-form-item label="设置新手机号码" prop="account">
<el-input v-model="ruleForm.account"></el-input> <el-input v-model="ruleForm.account"></el-input>
</el-form-item> </el-form-item>
......
<template> <template>
<app-container title="安全设置"> <app-container title="安全设置">
<el-form :model="ruleForm" :rules="rules" label-width="100px" ref="ruleForm" class="form"> <el-form :model="ruleForm" :rules="rules" label-width="82px" ref="ruleForm" class="form" hide-required-asterisk>
<el-form-item label="手机号码"> <el-form-item label="手机号码">
<el-input v-model="user.mobile" disabled></el-input> <el-input v-model="user.mobile" disabled></el-input>
<el-button @click="toggleUpdate" class="button-change">{{ buttonText }}</el-button> <el-button @click="toggleUpdate" class="button-change">{{ buttonText }}</el-button>
...@@ -10,12 +10,12 @@ ...@@ -10,12 +10,12 @@
<countdown slot="suffix" size="mini" @start="handlePhoneCode" ref="countdown"></countdown> <countdown slot="suffix" size="mini" @start="handlePhoneCode" ref="countdown"></countdown>
</el-input> </el-input>
</el-form-item> </el-form-item>
<div> <div style="margin-bottom: 20px">
<span>如手机无法收到验证码,请选择</span> <span>如手机无法收到验证码,请选择</span>
<el-button @click="handleEmailCode">注册邮箱接收验证码</el-button> <el-button @click="handleEmailCode">注册邮箱接收验证码</el-button>
</div> </div>
<template v-if="isEmail"> <template v-if="isEmail">
<p>请前往邮箱获取验证码后,</p> <!-- <p>请前往邮箱获取验证码后,</p> -->
<el-form-item label="输入验证码" prop="code"> <el-form-item label="输入验证码" prop="code">
<el-input maxlength="4" v-model="ruleForm.code"></el-input> <el-input maxlength="4" v-model="ruleForm.code"></el-input>
</el-form-item> </el-form-item>
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
// 发送邮箱验证码 // 发送邮箱验证码
sendEmailCode(account) { sendEmailCode(account) {
api.sendCode({ account }).then(response => { api.sendCode({ account }).then(response => {
this.$message({ message: '验证码发送成功', type: 'success' }) this.$message({ message: '验证码发送成功,请前往邮箱获取验证码', type: 'success' })
}) })
}, },
// 提交 // 提交
......
<template> <template>
<app-container title="个人信息"> <app-container title="个人信息">
<el-form :model="ruleForm" :rules="rules" label-width="100px" ref="ruleForm" class="form"> <el-form :model="ruleForm" :rules="rules" label-width="100px" ref="ruleForm" class="form" hide-required-asterisk>
<el-form-item label="所在院校" prop="college"> <el-form-item label="所在院校" prop="college">
<el-input v-model="ruleForm.student_info.college" disabled></el-input> <el-input v-model="ruleForm.student_info.college" disabled></el-input>
</el-form-item> </el-form-item>
......
<template> <template>
<app-container title="修改密码"> <app-container title="修改密码">
<el-form :model="ruleForm" :rules="rules" label-width="100px" ref="ruleForm" class="form"> <el-form :model="ruleForm" :rules="rules" label-width="90px" ref="ruleForm" class="form" hide-required-asterisk>
<el-form-item label="旧密码" prop="old_password"> <el-form-item label="旧密码" prop="old_password">
<el-input type="password" v-model="ruleForm.old_password" placeholder="请输入密码"></el-input> <el-input type="password" v-model="ruleForm.old_password" placeholder="请输入密码"></el-input>
</el-form-item> </el-form-item>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论