发送短信
This commit is contained in:
parent
5a92b6dedf
commit
6303b442a4
|
@ -28,7 +28,7 @@
|
||||||
<el-input v-model="ruleForm.phoneNumber" placeholder="请输入手机号" />
|
<el-input v-model="ruleForm.phoneNumber" placeholder="请输入手机号" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="验证码" prop="Code" v-if="activeIndex==1">
|
<el-form-item label="验证码" prop="Code" v-if="activeIndex==1">
|
||||||
<el-input style="width:60%" v-model="ruleForm.Code" :disabled="true" placeholder="请输入验证码" />
|
<el-input style="width:60%" v-model="ruleForm.Code" :disabled="false" placeholder="请输入验证码" />
|
||||||
<el-button type="primary" style="margin-left:10px" @click="sendcaptchaImg">发送验证码</el-button>
|
<el-button type="primary" style="margin-left:10px" @click="sendcaptchaImg">发送验证码</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="设置密码" prop="password" v-if="activeIndex==1">
|
<el-form-item label="设置密码" prop="password" v-if="activeIndex==1">
|
||||||
|
@ -409,11 +409,13 @@ const sbmitImg=()=>{
|
||||||
type: type.value
|
type: type.value
|
||||||
}
|
}
|
||||||
sendCode(params).then(res=>{
|
sendCode(params).then(res=>{
|
||||||
if(res.code==200){
|
|
||||||
ruleForm.Code=res.data
|
|
||||||
isImg.value=false
|
isImg.value=false
|
||||||
|
if(res.code==200){
|
||||||
|
// ruleForm.Code=res.data
|
||||||
|
ElMessage.success(res.msg||'验证码-已发送')
|
||||||
}
|
}
|
||||||
|
}).catch(err=>{
|
||||||
|
isImg.value=false
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
ElMessage.error('请根据图片输入验证码')
|
ElMessage.error('请根据图片输入验证码')
|
||||||
|
|
Loading…
Reference in New Issue