From eb468e35a3aaa52f857063d7e577293f0b333cfb Mon Sep 17 00:00:00 2001 From: sunliwei Date: Mon, 23 Sep 2024 09:49:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E6=98=93=E7=99=BB=E5=BD=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 53 ------------------------------------------- 1 file changed, 53 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index cf1c075..2ee9904 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -81,65 +81,12 @@ export default{ if(res.code == 200){ setToken(res.data.accessToken) - // this.userinfo() uni.reLaunch({ url: '/pages/index/index' }) } }) }, - userinfo(){ - request({ - url: '/rescue/getRescueDriverInfo', - method: 'get', - - }).then((res)=>{ - if(res.code =='200'){ - console.log(res) - uni.setStorageSync('driverInfo', res.data.driverInfo.id) - uni.setStorageSync('userId', res.data.user.id) - this.goselect() - } - - - - }) - }, - getxz(index){ - this.activeid = index - }, - goregister(){ - uni.navigateTo({ - url:'/pages/login/register' - }) - }, - goforgot(){ - uni.navigateTo({ - url:'/pages/login/forgot' - }) - }, - goselect(){ - - console.log('去司机端首页'); - uni.navigateTo({ - url:'/pages/index/index' - }) - }, - disableButton() { - this.isButtonDisabled = true; - }, - enableButton() { - this.isButtonDisabled = false; - }, - startCountdown() { - let countdown = setInterval(() => { - this.countdownTime--; - if (this.countdownTime === 0) { - clearInterval(countdown); - this.enableButton(); // 启用按钮 - } - }, 1000); - }, } }