添加控制功能和页面逻辑

This commit is contained in:
qianlile
2021-07-29 11:11:14 +08:00
parent 2096a6e755
commit 7c061bbb9b
14 changed files with 265 additions and 49 deletions

View File

@@ -42,7 +42,16 @@ Page({
username: this.data.username
},
})
if (res.data.code !== 200) {
wx.showToast({
title: '登录失败',
});
return;
}
wx.setStorageSync('token', res.data.token);
wx.switchTab({
url: '/pages/index/index',
})
},