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
b4b8bbd1
Commit
b4b8bbd1
authored
Sep 28, 2020
by
AU-Pro-mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change
parent
22378f38
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
yd.clickStat.json
project/src/canvas/game/mock/miniTb/yd.clickStat.json
+1
-0
yd.getTaskList.json
project/src/canvas/game/mock/miniTb/yd.getTaskList.json
+1
-1
homePage.js
taobao_mini/client/pages/homePage/homePage.js
+17
-10
No files found.
project/src/canvas/game/mock/miniTb/yd.clickStat.json
0 → 100644
View file @
b4b8bbd1
{
"code"
:
68941424.68267184
,
"success"
:
true
}
\ No newline at end of file
project/src/canvas/game/mock/miniTb/yd.getTaskList.json
View file @
b4b8bbd1
{
"success"
:
fals
e
,
"success"
:
tru
e
,
"code"
:
"sit nulla labore in"
,
"data"
:[
{
...
...
taobao_mini/client/pages/homePage/homePage.js
View file @
b4b8bbd1
const
app
=
getApp
();
import
API
from
'../../api'
;
import
{
clickStat
}
from
'../../md'
;
import
resList
from
'../../resconfig/resList.js'
const
{
tbcc
}
=
app
;
const
{
SHARE_CONFIG
,
REDIRECT_URL
}
=
tbcc
.
constants
;
...
...
@@ -90,7 +91,6 @@ Page({
console
.
info
(
`%cPage onLoad with query:
${
JSON
.
stringify
(
query
)}
`
,
ConsoleStyle
)
if
(
query
.
inviteId
)
this
.
inviteId
=
query
.
inviteId
// 页面加载
// 开场动画
// this.openAnimation().then(async res_ => {
// this.backToPage()
...
...
@@ -98,6 +98,9 @@ Page({
// this.init()
// })
// 打点
clickStat
(
1
,
'2'
)
this
.
getAuth
()
},
...
...
@@ -131,22 +134,26 @@ Page({
API
.
getActivityBaseInfoById
({
activityId
:
app
.
activityId
})
.
then
(
res
=>
{
const
{
success
,
message
,
data
}
=
res
if
(
!
success
)
{
console
.
warn
(
res
)
commonToast
(
res
&&
res
.
message
)
}
else
{
if
(
!
success
)
{
console
.
warn
(
res
);
commonToast
(
res
&&
res
.
message
)
}
else
{
console
.
log
(
'%c-----活动基本信息
\
n'
+
'-----yd.getActivityBaseInfoById
\
n'
,
ConsoleStyle
,
data
)
}
})
.
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
.
catch
(
res
=>
{
co
nsole
.
warn
(
res
);
co
mmonToast
(
res
&&
res
.
message
);
})
||
{};
let
res
=
await
API
.
getTaskList
({
activityId
:
app
.
activityId
})
API
.
getTaskList
({
activityId
:
app
.
activityId
})
.
then
(
res
=>
{
const
{
success
,
message
,
data
}
=
res
console
.
log
(
res
)
if
(
!
success
)
{
console
.
warn
(
res
);
commonToast
(
res
&&
res
.
message
)
}
else
{
console
.
log
(
'%c--------任务列表
\
n'
+
'-----yd.getTaskList
\
n'
,
ConsoleStyle
,
data
)
this
.
setData
({
missionDataList
:
data
})
}
})
.
catch
(
res
=>
{
console
.
warn
(
res
);
commonToast
(
res
&&
res
.
message
);
})
||
{};
},
// 分享
...
...
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