登录和绑定微信的完善,我的页面需要登录验证

This commit is contained in:
姚亚男
2021-10-18 17:39:06 +08:00
parent 78715f6712
commit 78f894957a
9 changed files with 150 additions and 127 deletions
+6 -8
View File
@@ -22,7 +22,6 @@ const http = (method, url, data, header= headerDefault) => {
header: header,
data: data,
success: res => {
console.log(res)
wx.hideLoading();
if (res.statusCode === 200) {
// 接口请求错误的时候提示
@@ -37,15 +36,14 @@ const http = (method, url, data, header= headerDefault) => {
// 200: 服务端业务处理正常结束
resolve(res.data)
} else {
console.error(res.data);
reject(res.data);
wx.hideLoading();
wx.showToast({
title: "登录失效,请重新登录",
icon: "none",
duration: 1500,
mask: true
});
// wx.showToast({
// title: "登录失效,请重新登录",
// icon: "none",
// duration: 1500,
// mask: true
// });
// wx.navigateTo({
// url: '/pages/login/login',
// })