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