45
chenyc
2022-10-21 251b58150984896c86cd306cd3a4db77f14b7e1a
src/views/login/index.vue
@@ -73,7 +73,9 @@
            if (re===false){
                Toast('登录失败,请重新登录')
            } else {
                console.log(re)
                Session.set('token', re)
                Toast('登录成功。。。。。')
                router.push('/')
            }
        })
    }
@@ -82,8 +84,11 @@
            Toast('手机号码不能为空')
            return
        }
        ajaxPost('patient/info/sendValidCode','phoneNo='+ruleForm3.value.userPhone,config).then(re=>{
        ajaxPost('patient/info/sendValidCode','phoneNo='+ruleForm3.value.userPhone,config).then((re:any)=>{
            console.log(re)
            if (re.code===200){
                return
            }
            const timer= setInterval(() => {
                if (seconds.value > 0) {
                    seconds.value--