From a0f333ef7944e2964e6807e86fd6ebe50f66402f Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期五, 29 七月 2022 11:18:58 +0800 Subject: [PATCH] editWX --- pages/login/login.vue | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pages/login/login.vue b/pages/login/login.vue index 35995e9..7681ca0 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -24,12 +24,15 @@ formData:{ username:'fyy', password:'123456!@#' + // username:'anjianwei', + // password:'123456' } }; }, methods:{ loginSubmit(){ - // console.log('login'); + console.log('鐐瑰嚮鐧诲綍'); + // console.log('login'); uni.showLoading({ title:'鐧诲綍涓�...' }); @@ -53,9 +56,15 @@ // error console.log(e); } + } else{ + uni.showToast({ + title:response.data.msg, + icon:'error', + duration:2000 + }) } } - + } }; </script> @@ -98,7 +107,7 @@ } .loginBtn { margin-top: vww(80); - + button { background-color: #007aff; color: #ffffff; -- Gitblit v1.9.1