Commit 8bfa6655 authored by pengguangpu's avatar pengguangpu

合并远程代码;

parents e321ba57 7ea3b03b
images/bg_home.png

170 KB | W: | H:

images/bg_home.png

421 KB | W: | H:

images/bg_home.png
images/bg_home.png
images/bg_home.png
images/bg_home.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -147,7 +147,6 @@ Page({ ...@@ -147,7 +147,6 @@ Page({
}, },
loginCallback(res) { loginCallback(res) {
console.log("业务层登录 success==>" + JSON.stringify(res)); console.log("业务层登录 success==>" + JSON.stringify(res));
my.hideLoading();
if (res.code == 0) { if (res.code == 0) {
//本地存储账户信息 //本地存储账户信息
my.setStorageSync({ my.setStorageSync({
...@@ -157,16 +156,6 @@ Page({ ...@@ -157,16 +156,6 @@ Page({
//登陆信息设置到全局变量 //登陆信息设置到全局变量
getApp().globalData.localAccountInfo = res.data; getApp().globalData.localAccountInfo = res.data;
console.info(`localAccountInfo: ${JSON.stringify(getApp().globalData.localAccountInfo)}`); console.info(`localAccountInfo: ${JSON.stringify(getApp().globalData.localAccountInfo)}`);
//todo 临时跳转到扫商品页面 跳转广告页
my.reLaunch({
url: "/pages/home/home"
});
my.showToast({
type: 'success',
content: '登录成功',
duration: 3000
});
//通知后屏登录成功 //通知后屏登录成功
this.sendLoginOkToBackScreen(); this.sendLoginOkToBackScreen();
...@@ -174,6 +163,7 @@ Page({ ...@@ -174,6 +163,7 @@ Page({
errHidden: true errHidden: true
}); });
} else { } else {
my.hideLoading();
//提示登录失败 //提示登录失败
my.showToast({ my.showToast({
type: 'fail', type: 'fail',
...@@ -206,6 +196,15 @@ Page({ ...@@ -206,6 +196,15 @@ Page({
data: commonRequest, data: commonRequest,
success: (res) => { success: (res) => {
console.log("登录成功通知后屏 成功 ===》" + JSON.stringify(res)); console.log("登录成功通知后屏 成功 ===》" + JSON.stringify(res));
my.hideLoading();
my.reLaunch({
url: "/pages/home/home"
});
my.showToast({
type: 'success',
content: '登录成功',
duration: 3000
});
}, },
fail: (res) => { fail: (res) => {
console.log("登录成功通知后屏 失败 ===》 " + JSON.stringify(res)); console.log("登录成功通知后屏 失败 ===》 " + JSON.stringify(res));
......
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