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
c73bc7cb
Commit
c73bc7cb
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
61ba286a
1e17ae37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
comtask.js
taobao_mini/client/components/comtask/comtask.js
+6
-5
No files found.
taobao_mini/client/components/comtask/comtask.js
View file @
c73bc7cb
...
@@ -4,7 +4,7 @@ import resList from '../../resconfig/resList';
...
@@ -4,7 +4,7 @@ import resList from '../../resconfig/resList';
import
API
from
'../../api'
;
import
API
from
'../../api'
;
const
app
=
getApp
();
const
app
=
getApp
();
const
{
tbcc
}
=
app
;
const
{
tbcc
}
=
app
;
const
{
commonToast
,
favorShop
}
=
tbcc
.
tb
;
const
{
commonToast
,
favorShop
,
navigateToOutside
}
=
tbcc
.
tb
;
let
flag
=
0
;
let
flag
=
0
;
const
findTask
=
(
key
,
list
)
=>
{
const
findTask
=
(
key
,
list
)
=>
{
...
@@ -54,8 +54,8 @@ Component({
...
@@ -54,8 +54,8 @@ Component({
// my.showLoading();
// my.showLoading();
flag
=
1
;
flag
=
1
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
taskType
,
sellerId
}
=
item
;
const
{
taskType
,
sellerId
}
=
item
;
const
{
success
,
data
,
message
}
=
await
API
.
receiveTaskRewards
({
taskType
,
sellerId
}).
catch
(
res
=>
{
const
{
success
,
data
,
message
}
=
await
API
.
receiveTaskRewards
({
taskType
,
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
commonToast
(
res
&&
res
.
message
);
})
||
{};
})
||
{};
// my.hideLoading();
// my.hideLoading();
...
@@ -70,12 +70,13 @@ Component({
...
@@ -70,12 +70,13 @@ Component({
if
(
flag
)
return
;
if
(
flag
)
return
;
flag
=
1
;
flag
=
1
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
taskType
,
sellerId
}
=
item
;
const
{
taskType
,
sellerId
,
itemId
,
url
}
=
item
;
switch
(
taskType
)
{
switch
(
taskType
)
{
case
'browseGoods'
:
case
'browseGoods'
:
await
this
.
handleGoBrowseGoods
();
await
this
.
handleGoBrowseGoods
();
await
this
.
getTaskList
();
await
this
.
getTaskList
();
navigateToOutside
(
url
);
break
;
break
;
case
'follow'
:
case
'follow'
:
await
this
.
handleGoFollow
(
sellerId
);
await
this
.
handleGoFollow
(
sellerId
);
...
@@ -96,7 +97,7 @@ Component({
...
@@ -96,7 +97,7 @@ Component({
})
||
{};
})
||
{};
},
},
async
handleGoFollow
(
sellerId
)
{
async
handleGoFollow
(
sellerId
)
{
await
API
.
doFollowTask
({
sellerId
}).
catch
(
res
=>
{
await
API
.
doFollowTask
({
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
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