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
7d54c2d4
Commit
7d54c2d4
authored
Sep 28, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e6ef8160
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
15 deletions
+18
-15
comtask.js
taobao_mini/client/components/comtask/comtask.js
+18
-15
No files found.
taobao_mini/client/components/comtask/comtask.js
View file @
7d54c2d4
...
@@ -60,22 +60,25 @@ Component({
...
@@ -60,22 +60,25 @@ Component({
})
||
{};
})
||
{};
// my.hideLoading();
// my.hideLoading();
if
(
success
&&
data
)
{
if
(
success
&&
data
)
{
let
str
=
'领取成功~'
;
let
str
;
switch
(
taskType
)
{
// switch (taskType) {
case
'sign'
:
// case 'sign':
break
;
// break;
case
'browseGoods'
:
// case 'browseGoods':
break
;
// break;
case
'follow'
:
// case 'follow':
break
;
// break;
case
'invites'
:
// case 'invites':
str
=
`成功邀请
${
data
.
times
}
名好友,奖励为精力值+
${
data
.
energy
}
`
// break;
break
;
default
:
// default:
break
;
// break;
}
commonToast
(
str
);
// }
console
.
log
(
'taskType'
,
taskType
)
if
(
taskType
==
'invites'
)
str
=
`成功邀请
${
data
.
times
}
名好友,奖励为精力值+
${
data
.
energy
}
`
commonToast
(
str
||
'领取成功'
);
}
}
my
.
__updateUserInfo__
();
my
.
__updateUserInfo__
();
await
this
.
getTaskList
()
await
this
.
getTaskList
()
...
...
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