master
271556543@qq.com 3 years ago
parent 865132c2be
commit 544ec611d7

@ -66,7 +66,7 @@
letterSpacing: "10rpx",
marginTop: "66rpx",
},
isRemeber: false,
isRemeber: true,
form: {
username: "",
password: "",
@ -75,23 +75,23 @@
},
methods: {
login() {
if(this.form.username==""){
if (this.form.username == "") {
uni.showToast({
icon: "none",
title: `请正确填写登录名`,
});
return false
}
if(this.form.password==""){
if (this.form.password == "") {
uni.showToast({
icon: "none",
title: `请正确填写密码`,
});
return false
}
this.$u.api.login(this.form).then(res => {
this.$u.vuex("vuex_token", res.access_token);

Loading…
Cancel
Save