Commit 7ea3b03b authored by gaodapeng's avatar gaodapeng

优化

parent 383f804d
......@@ -147,7 +147,6 @@ Page({
},
loginCallback(res) {
console.log("业务层登录 success==>" + JSON.stringify(res));
my.hideLoading();
if (res.code == 0) {
//本地存储账户信息
my.setStorageSync({
......@@ -157,9 +156,6 @@ Page({
//登陆信息设置到全局变量
getApp().globalData.localAccountInfo = res.data;
console.info(`localAccountInfo: ${JSON.stringify(getApp().globalData.localAccountInfo)}`);
//todo 临时跳转到扫商品页面 跳转广告页
//通知后屏登录成功
this.sendLoginOkToBackScreen();
......@@ -167,6 +163,7 @@ Page({
errHidden: true
});
} else {
my.hideLoading();
//提示登录失败
my.showToast({
type: 'fail',
......@@ -199,6 +196,7 @@ Page({
data: commonRequest,
success: (res) => {
console.log("登录成功通知后屏 成功 ===》" + JSON.stringify(res));
my.hideLoading();
my.reLaunch({
url: "/pages/home/home"
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment