You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.6 KiB
28 lines
1.6 KiB
<el-dialog :visible="sharedState.accountVisible" :title="sharedState.isAccount ? '修改手机号' : '修改密码'" width="470px" custom-class="phone-pwd-dialog" center @close="accountClose">
|
|
<el-form>
|
|
<template v-if="sharedState.isAccount">
|
|
<el-form-item v-if="state">
|
|
<el-input :value="currentPhone" disabled></el-input>
|
|
</el-form-item>
|
|
<el-form-item v-else>
|
|
<el-input v-model.trim="phone" placeholder="请输入新手机号" clearable></el-input>
|
|
</el-form-item>
|
|
</template>
|
|
<el-form-item v-else>
|
|
<el-input :value="currentPhone" disabled></el-input>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-input v-model.trim="code" placeholder="请输入验证码" maxlength="6" minlength="6" clearable>
|
|
<el-button v-if="isCaptcha" slot="append" @click="getCaptcha"><img :src="'../auth_api/captcha?' + timestamp" alt=""></el-button>
|
|
<el-button v-else slot="append" :disabled="count >= 0" @click="getCode">{{ count < 0 ? '获取验证码' : '重新获取(' + count + 's)' }}</el-button>
|
|
</el-input>
|
|
</el-form-item>
|
|
<el-form-item v-if="!sharedState.isAccount && !isCaptcha">
|
|
<el-input v-model.trim="pwd" placeholder="请输入8-16位字母加数字组合新密码" maxlength="16" minlength="8" show-password></el-input>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button v-if="isCaptcha" @click="del_redis_phone">提交验证</el-button>
|
|
<el-button v-else @click="submit">确认</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-dialog> |