登录和绑定微信的完善,我的页面需要登录验证
This commit is contained in:
@@ -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',
|
||||
// })
|
||||
|
||||
Reference in New Issue
Block a user