登录的验证
This commit is contained in:
parent
a647c70b28
commit
380601ea9c
@ -184,6 +184,8 @@ export async function videoadd( form: any,data: any) {
|
|||||||
desc: "",
|
desc: "",
|
||||||
video: [""],
|
video: [""],
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
message.error(res.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="logintab">
|
<div class="logintab">
|
||||||
<div :class="selected==1?'tab tab1':'tab'" @click="tabchange(1)">手机号登录</div>
|
<div :class="selected==1?'tab tab1':'tab'" @mouseover="tabchange(1)">手机号登录</div>
|
||||||
<div :class="selected==2?'tab tab1':'tab'" @click="tabchange(2)">账号密码登录</div>
|
<div :class="selected==2?'tab tab1':'tab'" @mouseover="tabchange(2)">账号密码登录</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -210,16 +210,36 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
function login(): void {
|
function login(): void {
|
||||||
console.log(userinfo.phone,userinfo.password)
|
console.log(userinfo.phone,userinfo.password)
|
||||||
|
if(userinfo.phone==''){
|
||||||
|
message.error("帐号不能为空")
|
||||||
|
} else if(userinfo.password==""){
|
||||||
|
message.error("密码不能为空")
|
||||||
|
}else{
|
||||||
loginpass(userinfo.phone,userinfo.password)
|
loginpass(userinfo.phone,userinfo.password)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sublogin(){
|
function sublogin(){
|
||||||
console.log(11)
|
console.log(11)
|
||||||
//
|
if(phone.value==''){
|
||||||
// checksmscode(myquhao.value+phone.value,code.value)
|
message.error("手机号不能为空")
|
||||||
|
return
|
||||||
|
}else if(!(/^1[3-9]\d{9}$/.test(phone.value))){
|
||||||
|
message.error("手机号码有误,请重填");
|
||||||
|
return
|
||||||
|
} else if(code.value==""){
|
||||||
|
// console.log(phone.value)
|
||||||
|
console.log((/^1[3-9]\d{9}$/.test(phone.value)))
|
||||||
|
message.error("验证码不能为空")
|
||||||
|
return
|
||||||
|
}else{
|
||||||
loginpass(phone.value,'',1,code.value)
|
loginpass(phone.value,'',1,code.value)
|
||||||
}
|
}
|
||||||
|
// checksmscode(myquhao.value+phone.value,code.value)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function tovideoxq(e?: number){
|
function tovideoxq(e?: number){
|
||||||
console.log(e)
|
console.log(e)
|
||||||
@ -347,6 +367,9 @@ export default defineComponent({
|
|||||||
margin-top: 45px;
|
margin-top: 45px;
|
||||||
margin-bottom: 178px;
|
margin-bottom: 178px;
|
||||||
}
|
}
|
||||||
|
.submit:hover{
|
||||||
|
background: #06C7AE;
|
||||||
|
}
|
||||||
.forget {
|
.forget {
|
||||||
color: #08ae98;
|
color: #08ae98;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
@ -406,6 +429,11 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.lessonitem:hover{
|
||||||
|
.lessonname{
|
||||||
|
color: #06C7AE;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.icons {
|
.icons {
|
||||||
margin-right: 41px;
|
margin-right: 41px;
|
||||||
@ -459,6 +487,9 @@ export default defineComponent({
|
|||||||
line-height: 29px;
|
line-height: 29px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
}
|
}
|
||||||
|
.more:hover{
|
||||||
|
background: #ccc;
|
||||||
|
}
|
||||||
.icon{
|
.icon{
|
||||||
width: 9px;
|
width: 9px;
|
||||||
height: 12px;
|
height: 12px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user