Commit 99c79097 authored by zhangyanni's avatar zhangyanni

多次调取验证码

parent fc100614
......@@ -387,7 +387,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isSendCode')
},
}
</script>
......
......@@ -265,7 +265,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isSendCode')
},
}
</script>
......
......@@ -247,12 +247,16 @@
},
},
mounted() {
window.isPhone = -1;
globalMsg.$on("isSendCode",(data,which)=>{
if(data&&which==7){
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isSendCode')
},
}
</script>
......
<template>
<div class="wrapper" element-loading-background="rgba(0, 0, 0, 0.8)">
<p>{{$t("login.title")}}</p>
<el-tabs v-model="activeName" @tab-click="handleTab">
<el-tabs v-model="activeName">
<el-tab-pane :label="$t('login.phonePwdLogin')" name="first">
<mbByPwdCmpt></mbByPwdCmpt>
</el-tab-pane>
......@@ -26,19 +26,7 @@
activeName: "first",
}
},
methods: {
//切换
handleTab(tab){
if(tab.name==="first"){
// this.$refs["yzCodeForm"].resetFields();
this.isShowSlider = false;
this.showMessageInfo = false;
}
// else this.$refs["loginForm"].resetFields();
}
}
methods: {}
}
</script>
......
......@@ -325,7 +325,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isSendCode')
},
}
</script>
......
......@@ -243,7 +243,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isSendCode')
},
}
</script>
......
......@@ -302,7 +302,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isSendCode')
},
}
</script>
......
......@@ -575,7 +575,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isPhoneSendCode')
},
}
</script>
......
......@@ -247,7 +247,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isPhoneSendCode')
},
}
</script>
......
......@@ -273,7 +273,10 @@
this.getCodeFunc();
}
})
}
},
beforeDestroy () {
globalMsg.$off('isPhoneSendCode')
},
}
</script>
......
......@@ -238,7 +238,10 @@
}
})
}
},
beforeDestroy () {
globalMsg.$off('isPhoneSendCode')
},
}
</script>
......
......@@ -277,7 +277,10 @@
})
}
},
beforeDestroy () {
globalMsg.$off('isPhoneSendCode')
},
}
</script>
......
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