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
e6ef8160
Commit
e6ef8160
authored
Sep 28, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0e305bdf
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
10 deletions
+22
-10
tmallCat.getTaskList.json
...ect/src/canvas/game/mock/miniTb/tmallCat.getTaskList.json
+2
-2
tmallCat.receiveTaskRewards.json
.../canvas/game/mock/miniTb/tmallCat.receiveTaskRewards.json
+2
-2
comtask.js
taobao_mini/client/components/comtask/comtask.js
+18
-3
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+0
-3
No files found.
project/src/canvas/game/mock/miniTb/tmallCat.getTaskList.json
View file @
e6ef8160
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"completeTimes"
:
0
,
"completeTimes"
:
0
,
"rewards"
:
10
,
"rewards"
:
10
,
"sellerId"
:
"oooo"
,
"sellerId"
:
"oooo"
,
"status"
:
2
,
"status"
:
1
,
"taskRateType"
:
1
,
"taskRateType"
:
1
,
"taskType"
:
"follow"
,
"taskType"
:
"follow"
,
"title"
:
"关注店铺1"
"title"
:
"关注店铺1"
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
"completeTimes"
:
0
,
"completeTimes"
:
0
,
"rewards"
:
10
,
"rewards"
:
10
,
"sellerId"
:
"wwwww"
,
"sellerId"
:
"wwwww"
,
"status"
:
2
,
"status"
:
1
,
"taskRateType"
:
1
,
"taskRateType"
:
1
,
"taskType"
:
"follow"
,
"taskType"
:
"follow"
,
"title"
:
"关注店铺2"
"title"
:
"关注店铺2"
...
...
project/src/canvas/game/mock/miniTb/tmallCat.receiveTaskRewards.json
View file @
e6ef8160
{
{
"success"
:
1
,
"success"
:
1
,
"data"
:
{
"data"
:
{
"
value
"
:
"500"
,
"
energy
"
:
"500"
,
"
backTime
"
:
"1989897768"
,
"
times
"
:
"1989897768"
,
"serverTime"
:
"188888776"
"serverTime"
:
"188888776"
},
},
"message"
:
"fuck"
"message"
:
"fuck"
...
...
taobao_mini/client/components/comtask/comtask.js
View file @
e6ef8160
...
@@ -60,7 +60,22 @@ Component({
...
@@ -60,7 +60,22 @@ Component({
})
||
{};
})
||
{};
// my.hideLoading();
// my.hideLoading();
if
(
success
&&
data
)
{
if
(
success
&&
data
)
{
commonToast
(
'领取成功~'
);
let
str
=
'领取成功~'
;
switch
(
taskType
)
{
case
'sign'
:
break
;
case
'browseGoods'
:
break
;
case
'follow'
:
break
;
case
'invites'
:
str
=
`成功邀请
${
data
.
times
}
名好友,奖励为精力值+
${
data
.
energy
}
`
break
;
default
:
break
;
}
commonToast
(
str
);
}
}
my
.
__updateUserInfo__
();
my
.
__updateUserInfo__
();
await
this
.
getTaskList
()
await
this
.
getTaskList
()
...
@@ -74,7 +89,7 @@ Component({
...
@@ -74,7 +89,7 @@ Component({
switch
(
taskType
)
{
switch
(
taskType
)
{
case
'browseGoods'
:
case
'browseGoods'
:
navigateToOutside
(
url
);
navigateToOutside
(
url
);
await
this
.
handleGoBrowseGoods
();
await
this
.
handleGoBrowseGoods
();
await
this
.
getTaskList
();
await
this
.
getTaskList
();
break
;
break
;
...
@@ -101,7 +116,7 @@ Component({
...
@@ -101,7 +116,7 @@ Component({
console
.
log
(
'关注店铺失败'
,
err
);
console
.
log
(
'关注店铺失败'
,
err
);
});
});
commonToast
(
favorStatus
?
'关注成功'
:
'关注失败'
);
commonToast
(
favorStatus
?
'关注成功'
:
'关注失败'
);
if
(
favorStatus
)
{
if
(
favorStatus
)
{
await
API
.
doFollowTask
({
sellerId
}).
catch
(
res
=>
{
await
API
.
doFollowTask
({
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
commonToast
(
res
&&
res
.
message
);
})
||
{};
})
||
{};
...
...
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
e6ef8160
...
@@ -154,7 +154,6 @@ Page({
...
@@ -154,7 +154,6 @@ Page({
initCanvas
()
{
initCanvas
()
{
console
.
log
(
'do init'
);
console
.
log
(
'do init'
);
this
.
spark_startEngine
();
this
.
spark_startEngine
();
},
},
spark_startEngine
()
{
spark_startEngine
()
{
...
@@ -179,8 +178,6 @@ Page({
...
@@ -179,8 +178,6 @@ Page({
this
.
main
.
addGlobalEvent
(
"toast"
,
self
.
showToastHandler
,
self
);
this
.
main
.
addGlobalEvent
(
"toast"
,
self
.
showToastHandler
,
self
);
this
.
main
.
addGlobalEvent
(
"loading"
,
self
.
showLoadingHandler
,
self
);
this
.
main
.
addGlobalEvent
(
"loading"
,
self
.
showLoadingHandler
,
self
);
this
.
main
.
addGlobalEvent
(
"hideloading"
,
self
.
hideLoadingHandler
,
self
);
this
.
main
.
addGlobalEvent
(
"hideloading"
,
self
.
hideLoadingHandler
,
self
);
this
.
doHelp
();
}
}
},
},
fail
:
()
=>
{
fail
:
()
=>
{
...
...
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