From b4c26262fc27f41cffc3623e9025ab09ed62e668 Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Wed, 9 Mar 2022 16:39:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/bind/bind.js | 2 +- pages/login/login.js | 15 +-------------- pages/start/start.js | 2 +- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/pages/login/bind/bind.js b/pages/login/bind/bind.js index a197af6..c545c1b 100644 --- a/pages/login/bind/bind.js +++ b/pages/login/bind/bind.js @@ -59,7 +59,7 @@ Page({ }else if(res.data.registered == 1){ this.setData({ openPhoneTips: true, - tipsMsg: '该手机号已注册,请使用手机号登录或换绑其他手机号录' + tipsMsg: '该手机号已注册,请使用手机号登录或换绑其他手机号' }) } }) diff --git a/pages/login/login.js b/pages/login/login.js index 043a7ea..59cfb34 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -169,20 +169,7 @@ Page({ }, 1000) return false; } - let params = { - phone: this.data.phoneNumber - } - dd.$http.post('/api/user/has-phone-user',params).then(res=>{ - console.log(res,'登录认证数据') - if(res.data.registered == 0){ - this.phoneLogin(); - }else if(res.data.registered == 1){ - this.setData({ - openPhoneTips: true, - tipsMsg: '账号已存在,是否继续登录' - }) - } - }) + this.phoneLogin(); }, // 手机号登录 phoneLogin() { diff --git a/pages/start/start.js b/pages/start/start.js index 0d51a09..234a9d3 100644 --- a/pages/start/start.js +++ b/pages/start/start.js @@ -14,7 +14,7 @@ Page({ }) }, 2000); setTimeout(() => { - if(dd.$toolAll.getCache('userinfo')){ + if(dd.$toolAll.getCache('userData')){ // 前往首页 dd.redirectTo({url:'/pages/home/home'}); }else{