Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
wildfirecode13
new_taobao
Commits
29a186a3
Commit
29a186a3
authored
Dec 26, 2020
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
17e31709
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
pageindexpage.js
taobao_mini/client/pages/pageindexpage/pageindexpage.js
+10
-1
No files found.
taobao_mini/client/pages/pageindexpage/pageindexpage.js
View file @
29a186a3
...
...
@@ -16,6 +16,9 @@ let time1,time2
let
disableEvent
;
let
updateIndexEvent
;
//第一次进入
let
firstUser
=
true
//读取云存储资源
async
function
loadCloud
(
url
,
onLoad
,
onError
)
{
if
(
url
.
indexOf
(
"cloud://"
)
==
0
)
{
...
...
@@ -60,7 +63,11 @@ Page({
// showWinLists:[]
// })
events
.
emit
(
"ON_SHOW"
)
this
.
updateData
()
if
(
!
firstUser
){
//this.updateData()
this
.
getAuth
();
}
},
onLoad
(
query
)
{
this
.
inviteId
=
query
.
inviteId
;
...
...
@@ -104,9 +111,11 @@ Page({
* 获取用户授权信息
*/
async
getAuth
()
{
console
.
log
(
"开始授权"
)
const
userInfo
=
await
getAuthUserInfo
().
catch
(
err
=>
{
console
.
log
(
'未授权成功'
,
err
);
});
firstUser
=
false
;
if
(
userInfo
)
{
console
.
log
(
'userInfo'
,
userInfo
);
const
{
nickName
,
avatar
}
=
userInfo
;
...
...
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