pages/testLogin/index.js
@@ -7,7 +7,7 @@ * 页面的初始数据 */ data: { textName: "18892081234", textName: "15111111116", textPassword: "xA123456", loading: false, userInfo: { @@ -39,6 +39,9 @@ title: res.message || "手机号或密码错误", icon: "error", duration: 2000 }) this.setData({ loading: false }) } }); @@ -74,7 +77,7 @@ } else if (secretData) { defaultUser = { nickName: secretData.credential, avatarUrl: "../../static/images/index/tab.png", avatarUrl: "", userId: res.userId } }