Commit 383f804d authored by gaodapeng's avatar gaodapeng

优化登录,优化跳转,优化首页背景

parent 5ac3f75d
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
...@@ -158,14 +158,7 @@ Page({ ...@@ -158,14 +158,7 @@ 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 临时跳转到扫商品页面 跳转广告页 //todo 临时跳转到扫商品页面 跳转广告页
my.reLaunch({
url: "/pages/home/home"
});
my.showToast({
type: 'success',
content: '登录成功',
duration: 3000
});
//通知后屏登录成功 //通知后屏登录成功
this.sendLoginOkToBackScreen(); this.sendLoginOkToBackScreen();
...@@ -206,6 +199,14 @@ Page({ ...@@ -206,6 +199,14 @@ Page({
data: commonRequest, data: commonRequest,
success: (res) => { success: (res) => {
console.log("登录成功通知后屏 成功 ===》" + JSON.stringify(res)); console.log("登录成功通知后屏 成功 ===》" + JSON.stringify(res));
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