Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wx-shopping-mall
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
engine
wx-shopping-mall
Commits
fec9e467
Commit
fec9e467
authored
Apr 10, 2020
by
wanghuihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改onload执行的东西都放到onshow,为了避免登陆成功不刷新的问题
parent
7645b796
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
index.js
pages/ucenter/index/index.js
+6
-7
No files found.
pages/ucenter/index/index.js
View file @
fec9e467
...
...
@@ -27,6 +27,12 @@ Page({
loginPhoneShow
:
false
},
onLoad
:
function
(
options
)
{
},
onReady
:
function
()
{
},
onShow
:
function
()
{
// 页面初始化 options为页面跳转所带来的参数
//获取用户的登录信息
if
(
app
.
globalData
.
hasLogin
)
{
...
...
@@ -39,13 +45,6 @@ Page({
}
this
.
getSetUp
();
},
onReady
:
function
()
{
},
onShow
:
function
()
{
console
.
log
(
5
)
},
getUserMsg
()
{
let
that
=
this
;
util
.
request
(
api
.
UserIndex
).
then
(
function
(
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