Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
doublescreen-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pengguangpu
doublescreen-front
Commits
383f804d
Commit
383f804d
authored
Mar 13, 2020
by
gaodapeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化登录,优化跳转,优化首页背景
parent
5ac3f75d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
bg_home.png
images/bg_home.png
+0
-0
login.js
pages/login/login.js
+9
-8
No files found.
images/bg_home.png
View replaced file @
5ac3f75d
View file @
383f804d
170 KB
|
W:
|
H:
421 KB
|
W:
|
H:
2-up
Swipe
Onion skin
pages/login/login.js
View file @
383f804d
...
...
@@ -158,14 +158,7 @@ Page({
getApp
().
globalData
.
localAccountInfo
=
res
.
data
;
console
.
info
(
`localAccountInfo:
${
JSON
.
stringify
(
getApp
().
globalData
.
localAccountInfo
)}
`
);
//todo 临时跳转到扫商品页面 跳转广告页
my
.
reLaunch
({
url
:
"/pages/home/home"
});
my
.
showToast
({
type
:
'success'
,
content
:
'登录成功'
,
duration
:
3000
});
//通知后屏登录成功
this
.
sendLoginOkToBackScreen
();
...
...
@@ -206,6 +199,14 @@ Page({
data
:
commonRequest
,
success
:
(
res
)
=>
{
console
.
log
(
"登录成功通知后屏 成功 ===》"
+
JSON
.
stringify
(
res
));
my
.
reLaunch
({
url
:
"/pages/home/home"
});
my
.
showToast
({
type
:
'success'
,
content
:
'登录成功'
,
duration
:
3000
});
},
fail
:
(
res
)
=>
{
console
.
log
(
"登录成功通知后屏 失败 ===》 "
+
JSON
.
stringify
(
res
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment