Commit 4332a06f authored by 吴冠's avatar 吴冠

找回密码

parent 7184ee5a
......@@ -28,8 +28,8 @@
</el-form-item>
<el-form-item label="注册角色" prop="type" class="item">
<el-select v-model="form.type" placeholder="请输入选择">
<el-option label="采购商" value="采购商"></el-option>
<el-option label="供应商" value="供应商"></el-option>
<el-option label="采购商" value="1"></el-option>
<el-option label="供应商" value="2"></el-option>
</el-select>
</el-form-item>
</el-form>
......@@ -394,8 +394,11 @@
<div>{{form.companyName}}</div>
</div>
<div class="t2 flex">
<!-- <div>注册角色:</div>
<div>{{form.type}}</div> -->
<div>注册角色:</div>
<div>{{form.type}}</div>
<div v-if="form.type==='1'">采购商</div>
<div v-else>采购商</div>
</div>
<div class="t2 flex" v-if = "1<0">
<div>行政区域:</div>
......
......@@ -175,8 +175,33 @@
},
methods: {
//发送短信
async getPhoneCode(){
if(this.form.code ===this.code.toLowerCase()){
async getPhoneCode(){
if(this.form.code.toLowerCase() ===this.code.toLowerCase()&&this.form.phone.length==11){
/* this.$refs.form.validateField('phone',async (phone_check) => {
if(!phone_check) return
let phonemes = {}
phonemes.phone = this.form.phone
phonemes.type = 2
const {data,code,msg} =await sendSms(phonemes)
if(code ==200){
this.Verification = false; //点击button改变v-show的状态
let auth_timer = setInterval(()=>{ //定时器设置每秒递减
this.timer--; //递减时间
if(this.timer<=0){
this.Verification = true; //60s时间结束还原v-show状态并清除定时器
clearInterval(auth_timer)
}
},1000)
}
if(code ==500){
this.$message.error(msg);
}
})
}else{
alert("有未填写的选项或错误")
}
}, */
let phonemes = {}
phonemes.phone = this.form.phone
phonemes.type = 2
......@@ -195,9 +220,9 @@
if(code ==500){
this.$message.error(msg);
}
}else{
alert("验证码输入有误!请重新输入")
}
} else{
this.$message.error("你的输入有误,请重新输入")
}
},
countDown() {
let clock = window.setInterval(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment