提交 5d080401 编写于 作者: D devil_gong

小程序登录优化

上级 7a4007cb
......@@ -60,8 +60,9 @@ Page({
}, 2000);
} else {
this.setData({form_submit_loading: false});
app.showToast(res.data.msg);
if (app.is_login_check(res.data)) {
app.showToast(res.data.msg);
}
}
},
fail: () => {
......
......@@ -76,8 +76,9 @@ Page({
this.setData({
data_list_loding_status: 0
});
app.showToast(res.data.msg);
if (app.is_login_check(res.data)) {
app.showToast(res.data.msg);
}
}
},
fail: () => {
......
......@@ -75,8 +75,9 @@ Page({
this.setData({
data_list_loding_status: 0
});
app.showToast(res.data.msg);
if (app.is_login_check(res.data)) {
app.showToast(res.data.msg);
}
}
},
fail: () => {
......
......@@ -42,7 +42,10 @@ Page({
goods_score: res.data.data || null,
});
} else {
app.showToast(res.data.msg);
if(res.data.code != -400)
{
app.showToast(res.data.msg);
}
}
},
fail: () => {
......@@ -125,8 +128,9 @@ Page({
this.setData({
data_list_loding_status: 0
});
app.showToast(res.data.msg);
if (app.is_login_check(res.data)) {
app.showToast(res.data.msg);
}
}
},
fail: () => {
......
......@@ -77,7 +77,9 @@ Page({
data_bottom_line_status: false,
data_list_loding_msg: res.data.msg,
});
app.showToast(res.data.msg);
if (app.is_login_check(res.data)) {
app.showToast(res.data.msg);
}
}
},
fail: () => {
......
......@@ -166,7 +166,9 @@ Page({
data_bottom_line_status: false,
data_list_loding_msg: res.data.msg,
});
app.showToast(res.data.msg);
if (app.is_login_check(res.data)) {
app.showToast(res.data.msg);
}
}
},
fail: () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册